@font-face {
  font-family: "CircularXX TT";
  src: url("../fonts/circular/CircularXXTT-Light.woff2") format("woff2"), url("../fonts/circular/CircularXXTT-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "CircularXX TT";
  src: url("../fonts/circular/CircularXXTT-Regular.woff2") format("woff2"), url("../fonts/circular/CircularXXTT-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "CircularXX TT";
  src: url("../fonts/circular/CircularXXTT-Medium.woff2") format("woff2"), url("../fonts/circular/CircularXXTT-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "CircularXX TT";
  src: url("../fonts/circular/CircularXXTT-Bold.woff2") format("woff2"), url("../fonts/circular/CircularXXTT-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "CircularXX TT";
  src: url("../fonts/circular/CircularXXTT-Black.woff2") format("woff2"), url("../fonts/circular/CircularXXTT-Black.woff") format("woff");
  font-weight: 900; font-style: normal; font-display: swap;
}

@charset "UTF-8";
/* ==========================================================================
   Fundació Estabanell — capa visual sobre Bootstrap 5.3
   Identitat: gris #3d3d3d + lima #c8ee38 sobre blanc · CircularXX TT · sense radis
   ========================================================================== */

:root {
  --fe-ink: #3d3d3d;
  --fe-ink-900: #2e2e2e;
  --fe-lime: #c8ee38;
  --fe-lime-100: #f6fcde;
  --fe-lime-200: #ecf9bc;
  --fe-lime-400: #d3f166;
  --fe-lime-600: #a9cf14;
  --fe-lime-700: #5d7500;
  --fe-lime-800: #445400;
  --fe-surface: #f4f9e2;
  --fe-n200: #e8e8e8;
  --fe-n400: #b8b8b8;
  --fe-n500: #989898;
  --fe-n600: #737373;
  --fe-n700: #5a5a5a;
  --fe-n800: #454545;
  --fe-divider: rgba(61, 61, 61, .22);
  --fe-ease: cubic-bezier(.25, .8, .25, 1);      /* suau, sense rebot */
  --fe-ease-out: cubic-bezier(.16, 1, .3, 1);    /* entrades llargues */
  --fe-fast: .45s;
  --fe-slow: 1.4s;
  --fe-font: "CircularXX TT", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--fe-font);
  --bs-body-color: var(--fe-ink);
  --bs-body-bg: #fff;
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-pill: 0;
  --bs-link-color: var(--fe-lime-700);
  --bs-link-color-rgb: 93, 117, 0;
  --bs-link-hover-color: var(--fe-ink);
  --bs-link-hover-color-rgb: 61, 61, 61;
  --bs-border-color: var(--fe-divider);
}

html { scroll-behavior: smooth; }
body { font-size: 15.5px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, .fe-display { font-family: var(--fe-font); font-weight: 800; letter-spacing: -.02em; text-wrap: pretty; }
p { text-wrap: pretty; }
a { text-decoration: none; transition: color .25s; }
::selection { background: var(--fe-lime); color: var(--fe-ink); }
:focus-visible { outline: 2px solid var(--fe-lime-600) !important; outline-offset: 2px; box-shadow: none !important; }

.container { max-width: 1320px; }
.fe-rule-top { border-top: 2px solid var(--fe-ink); }
.fe-rule-bottom { border-bottom: 2px solid var(--fe-ink); }
.fe-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.fe-muted { color: var(--fe-n700); }
.fe-small { font-size: 13.5px; }
.fe-label {font-size: 13.5px;letter-spacing: .1em;font-weight: 700;text-transform: uppercase;color: var(--fe-n600);}
.fe-section { padding-block: clamp(48px, 6vw, 88px); }
.fe-h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }

/* ---------- Barra de progrés de scroll ---------- */
.fe-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1080;
  background: var(--fe-lime); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Botons ---------- */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 16px;
  --bs-btn-padding-x: 1.15rem;
  --bs-btn-padding-y: .72rem;
  border-radius: 0;
  font-family: var(--fe-font);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-content: flex-start;
  transition: background-color var(--fe-fast) var(--fe-ease), color var(--fe-fast) var(--fe-ease),
              border-color var(--fe-fast) var(--fe-ease), box-shadow var(--fe-fast) var(--fe-ease),
              transform var(--fe-fast) var(--fe-ease);
}
.btn .bi { transition: transform var(--fe-fast) var(--fe-ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .bi-arrow-right, .btn:hover .bi-arrow-up-right { transform: translateX(3px); }
.btn:active { transform: translateY(0); transition-duration: .15s; }

.btn-fe { background: var(--fe-lime); color: var(--fe-ink); border: 2px solid var(--fe-lime); }
.btn-fe:hover, .btn-fe:focus-visible { background: var(--fe-lime-400); border-color: var(--fe-lime-400); color: var(--fe-ink); box-shadow: 0 8px 22px -12px rgba(93, 117, 0, .55); }
.btn-fe:active { background: var(--fe-lime-600); border-color: var(--fe-lime-600); box-shadow: none; }

.btn-fe-outline { color: var(--fe-ink); border: 2px solid var(--fe-ink); background: transparent; }
.btn-fe-outline:hover { color: var(--fe-ink); background: rgba(61, 61, 61, .06); border-color: var(--fe-ink); }

.btn-fe-light { color: #fff; border: 2px solid rgba(255, 255, 255, .85); background: transparent; }
.btn-fe-light:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: #fff; }

.fe-link-arrow {font-weight: 700;font-size: 16px;color: var(--fe-lime-700);display: inline-flex;gap: .4rem;align-items: center;transition: color var(--fe-fast) var(--fe-ease);}
.fe-link-arrow .bi { transition: transform var(--fe-fast) var(--fe-ease); }
.fe-link-arrow:hover { color: var(--fe-ink); }
.fe-link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- Etiquetes ---------- */
.fe-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.fe-tag-open { background: var(--fe-lime-200); color: #3c4a00; }
.fe-tag-closed { background: #f0f0f0; color: var(--fe-n800); }
.fe-tag-outline { border: 1px solid var(--fe-n400); color: var(--fe-n800); }
.fe-tag-open::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fe-lime-700);
  animation: fe-pulse 3.2s ease-in-out infinite;
}
@keyframes fe-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Capçalera ---------- */
.fe-header {
  position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid var(--fe-ink);
  transition: box-shadow .8s var(--fe-ease);
}
.fe-header .navbar {min-height: 81px;padding-block: 0;transition: min-height .8s var(--fe-ease);}
.fe-header .navbar-brand img {height: 45px;width: auto;transition: height .8s var(--fe-ease);}
.fe-header.is-scrolled { box-shadow: 0 12px 34px -24px rgba(0, 0, 0, .3); }
.fe-header.is-scrolled .navbar { min-height: 78px; }
.fe-header.is-scrolled .navbar-brand img { height: 38px; }

.fe-nav .nav-link {
  position: relative; color: var(--fe-ink); font-size: 16px; font-weight: 600; letter-spacing: .01em;
  padding: .55rem 0 !important; margin-inline: clamp(10px, 1.1vw, 20px); white-space: nowrap;
  transition: color var(--fe-fast) var(--fe-ease);
}
.fe-nav .nav-link::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fe-lime);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--fe-ease);
}
.fe-nav .nav-link:hover { color: var(--fe-n700); }
.fe-nav .nav-link.active { color: var(--fe-ink); }
.fe-nav .nav-link:hover::before, .fe-nav .nav-link.active::before { transform: scaleX(1); }
.fe-lang { font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fe-n600); }
.fe-lang b { color: var(--fe-lime-700); }
.fe-lang a { color: var(--fe-n600); }
.fe-lang a:hover { color: var(--fe-ink); }

.fe-burger { border: 2px solid var(--fe-ink); width: 44px; height: 44px; padding: 0; background: transparent; position: relative; }
.fe-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--fe-ink); transition: transform .35s var(--fe-ease), top .35s; }
.fe-burger span:nth-child(1) { top: 15px; }
.fe-burger span:nth-child(2) { top: 25px; }

.offcanvas.fe-offcanvas { background: var(--fe-ink); color: #fff; border-left: 0; --bs-offcanvas-width: min(420px, 100vw); }
.fe-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.fe-offcanvas .btn-close { filter: invert(1); opacity: .9; }
.fe-offcanvas .fe-mnav > a, .fe-offcanvas .fe-mnav > div {
  display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 800;
  font-size: 26px; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .15);
  opacity: 0; transform: translateX(12px); transition: color var(--fe-fast) var(--fe-ease);
}
.fe-offcanvas .fe-mnav a .bi { color: var(--fe-lime); transition: transform var(--fe-fast) var(--fe-ease); }
.fe-offcanvas .fe-mnav a:hover { color: var(--fe-lime); }
.fe-offcanvas .fe-mnav > a:hover .bi { transform: translateX(3px); }
.fe-offcanvas { transition: transform .6s var(--fe-ease) !important; }
.fe-offcanvas.show .fe-mnav > a, .fe-offcanvas.show .fe-mnav > div { animation: fe-slide-in .9s var(--fe-ease-out) .15s forwards; }
.fe-offcanvas.show .fe-mnav > *:nth-child(2) { animation-delay: .22s; }
.fe-offcanvas.show .fe-mnav > *:nth-child(3) { animation-delay: .29s; }
.fe-offcanvas.show .fe-mnav > *:nth-child(4) { animation-delay: .36s; }
.fe-offcanvas.show .fe-mnav > *:nth-child(5) { animation-delay: .43s; }
@keyframes fe-slide-in { to { opacity: 1; transform: none; } }

@media (min-width: 1200px) {
  .fe-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.fe-mnav-wrapper {
  display: flex; width: 200%; transition: transform 0.4s var(--fe-ease);
}
.fe-mnav-pane {
  width: 50%; flex-shrink: 0;
}
.fe-mnav-sliding { transform: translateX(-50%); }

/* ---------- Hero ---------- */
.fe-hero { position: relative; color: #fff; background: var(--fe-ink); overflow: hidden; isolation: isolate; }
.fe-hero-bg {
  position: absolute; inset: -6%; z-index: -2;
  background: url(../img/fons.jpg) center/cover no-repeat;
  animation: fe-kenburns 40s ease-in-out infinite alternate; will-change: transform;
}
@keyframes fe-kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-1%, .8%, 0); } }
.fe-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(40, 40, 40, .88) 0%, rgba(40, 40, 40, .55) 55%, rgba(40, 40, 40, .2) 100%);
}
/* línies lima que es dibuixen */
.fe-hero-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.fe-hero-lines line { stroke: var(--fe-lime); stroke-opacity: .7; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fe-draw 9s cubic-bezier(.65, 0, .35, 1) .4s infinite; }
.fe-hero-lines line:nth-child(2) { animation-delay: 1.8s; animation-duration: 11s; }
.fe-hero-lines line:nth-child(3) { animation-delay: 3.2s; animation-duration: 13s; }
/* es dibuixa i després s'esborra pel mateix sentit, en bucle continu */
@keyframes fe-draw { 0% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

.fe-hero .container { padding-block: clamp(64px, 9vw, 130px) clamp(52px, 6vw, 88px); }
.fe-hero h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.02; color: #fff; }
.fe-hero-lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 46ch; color: var(--fe-n200); }

/* titular paraula a paraula */
.fe-split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.fe-split .w > span {
  display: inline-block; transform: translateY(40%); opacity: 0;
  transition: transform 1.3s var(--fe-ease-out), opacity 1.1s var(--fe-ease);
  transition-delay: calc(var(--i) * 45ms + 200ms);
}
.fe-split.is-in .w > span { transform: none; opacity: 1; }
.fe-hero h1 .fe-hl { color: var(--fe-lime); }

.fe-stats { border-top: 2px solid var(--fe-lime); padding-top: 10px; }
.fe-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); gap: 16px; }
.fe-stat:last-child { border-bottom: 0; }
.fe-stat span { font-size: 13.5px; color: var(--fe-n200); }
.fe-stat b { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fe-stat small { display: block; font-size: 12px; color: var(--fe-lime); font-weight: 600; margin-top: 4px; text-align: right; }

.fe-scroll-cue {
  position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 12px; transform: translateX(-50%);
}
.fe-scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; background: var(--fe-lime);
  transform: translateX(-50%); animation: fe-cue 1.6s infinite;
}
@keyframes fe-cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Ticker ---------- */
.fe-ticker { background: var(--fe-lime); color: var(--fe-ink); border-block: 2px solid var(--fe-ink); overflow: hidden; white-space: nowrap; }
.fe-ticker-track { display: inline-flex; animation: fe-marquee 70s linear infinite; padding-block: 14px; }
.fe-ticker:hover .fe-ticker-track { animation-play-state: paused; }
.fe-ticker-track span {font-weight: 500;font-size: clamp(16px, 1.8vw, 19px);letter-spacing: -.01em;padding-inline: 28px;display: inline-flex;align-items: center;gap: 28px;}
.fe-ticker-track span::after { content: "\2726"; /* ✦ */ font-size: .7em; }
@keyframes fe-marquee { to { transform: translateX(-50%); } }

/* ---------- Àmbits ---------- */
.fe-grid { background: var(--fe-divider); border-block: 2px solid var(--fe-ink); display: grid; gap: 2px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fe-grid { grid-template-columns: repeat(2, 1fr); } }
.fe-cell {
  position: relative; background: #fff; color: var(--fe-ink); padding: clamp(22px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 14px; min-height: 250px; overflow: hidden; isolation: isolate;
}
.fe-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ffffff;
  opacity: 0;
  transition: opacity .7s var(--fe-ease);
}
.fe-cell::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--fe-lime);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--fe-ease);
}
.fe-cell:hover { color: var(--fe-ink); }
.fe-cell:hover::before { opacity: 1; }
.fe-cell:hover::after { transform: scaleX(1); }
.fe-cell-num { font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--fe-n500); transition: color .7s var(--fe-ease); }
.fe-cell-icon { font-size: 30px; color: var(--fe-ink); display: inline-block; }
.fe-cell:hover .fe-cell-num { color: var(--fe-lime-700); }
.fe-cell h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.12; max-width: 20ch; margin: 0; }
.fe-cell p { font-size: 14px; line-height: 1.5; color: var(--fe-n700); max-width: 36ch; margin: 0; }
.fe-cell-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--fe-divider); font-size: 13px; color: var(--fe-n800); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.fe-cell-arrow {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 2px solid var(--fe-ink);
  transition: background-color .6s var(--fe-ease), color .6s var(--fe-ease);
}
.fe-cell-arrow .bi { transition: transform .6s var(--fe-ease); }
.fe-cell:hover .fe-cell-arrow { background: var(--fe-ink); color: var(--fe-lime); }
.fe-cell:hover .fe-cell-arrow .bi { transform: translateX(2px); }

/* ---------- Taula de convocatòries ---------- */
.fe-surface { background: var(--fe-surface); }
.fe-table { --bs-table-bg: transparent; --bs-table-hover-bg: transparent; margin: 0; font-size: 14px; }
.fe-table thead th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fe-n700); border-bottom: 2px solid var(--fe-ink) !important; font-weight: 600; padding: 12px 14px; white-space: nowrap; }
.fe-table tbody td { padding: 18px 14px; border-bottom: 1px solid var(--fe-divider); vertical-align: middle; transition: background-color .6s var(--fe-ease); }
.fe-table tbody tr { position: relative; }
.fe-table tbody tr td:first-child { box-shadow: inset 0 0 0 var(--fe-lime); transition: box-shadow .6s var(--fe-ease), background-color .6s var(--fe-ease); }
.fe-table tbody tr:hover td { background: rgba(255, 255, 255, .7); }
.fe-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--fe-lime-600); }
.fe-countdown { font-variant-numeric: tabular-nums; }
.fe-bar { height: 4px; background: rgba(61, 61, 61, .12); margin-top: 8px; overflow: hidden; }
.fe-bar i { display: block; height: 100%; background: var(--fe-lime-600); width: 0; transition: width 2.4s var(--fe-ease-out) .3s; }

/* ---------- Targetes de projecte ---------- */
.fe-project { display: flex; flex-direction: column; gap: 14px; height: 100%; color: var(--fe-ink); }
.fe-thumb {
  position: relative; overflow: hidden; border: 1px solid var(--fe-divider); aspect-ratio: 4 / 3; background: var(--fe-ink);
}
.fe-thumb-img {
  position: absolute; inset: 0; background: url(../img/fons.jpg) no-repeat; background-size: 260%;
  transition: transform 1.6s var(--fe-ease);
}
.fe-thumb-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); }
.fe-thumb-label { position: absolute; left: 16px; bottom: 14px; right: 16px; color: #fff; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; z-index: 1; }
.fe-thumb-label .bi { color: var(--fe-lime); font-size: 18px; }
.fe-thumb-label { transition: opacity .6s var(--fe-ease); }
.fe-thumb-overlay {
  position: absolute; inset: 0; z-index: 2; color: #fff;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0) 30%, rgba(40, 40, 40, .72));
  display: flex; align-items: flex-end; padding: 18px; font-weight: 700; font-size: 15px; gap: 10px;
  opacity: 0; transition: opacity .7s var(--fe-ease);
}
.fe-thumb-overlay .bi {
  margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; font-size: 18px;
  background: var(--fe-lime); color: var(--fe-ink); transform: translateY(6px); transition: transform .8s var(--fe-ease);
}
.fe-project:hover .fe-thumb-img { transform: scale(1.04); }
.fe-project:hover .fe-thumb-overlay { opacity: 1; }
.fe-project:hover .fe-thumb-label { opacity: 0; }
.fe-project:hover .fe-thumb-overlay .bi { transform: none; }
.fe-project h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.14; margin: 0; transition: color .6s var(--fe-ease); }
.fe-project:hover h3 { color: var(--fe-lime-700); }
.fe-project p { font-size: 14px; line-height: 1.55; color: var(--fe-n700); margin: 0; }
.fe-meta { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fe-n600); border-top: 1px solid var(--fe-divider); padding-top: 10px; margin-top: auto; }

/* ---------- Franja de xifres ---------- */
.fe-statement { background: var(--fe-lime); color: var(--fe-ink); border-top: 2px solid var(--fe-ink); position: relative; overflow: hidden; }
.fe-statement::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .45), transparent 65%);
  animation: fe-float 24s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes fe-float { to { transform: translate(-10%, 14%); } }
.fe-statement-text { font-weight: 800; font-size: clamp(28px, 4.6vw, 56px); line-height: 1.04; max-width: 24ch; letter-spacing: -.025em; position: relative; }
.fe-statement-text mark { background: linear-gradient(var(--fe-ink), var(--fe-ink)) no-repeat 0 100% / 0% 100%; color: inherit; padding: 0 .08em; transition: background-size 1.8s var(--fe-ease) .6s, color 1s var(--fe-ease) 1s; }
.fe-statement-text.is-visible mark { background-size: 100% 100%; color: var(--fe-lime); }
.fe-figure b { display: block; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fe-figure span { font-size: 14px; }

/* ---------- Pàgina interior ---------- */
.fe-crumbs { font-size: 13px; color: var(--fe-n600); }
.fe-crumbs a { color: var(--fe-lime-700); }
.fe-crumbs a:hover { color: var(--fe-ink); }
.fe-page-title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.03; }
.fe-facts .row-fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--fe-divider); font-size: 14px; }
.fe-facts .row-fact:last-child { border-bottom: 0; }
.fe-banner { position: relative; aspect-ratio: 21 / 8; overflow: hidden; border: 1px solid var(--fe-divider); background: var(--fe-ink); }
.fe-banner-img { position: absolute; inset: -15% 0; background: url(../img/fons.jpg) center/cover; will-change: transform; }
.fe-banner-caption { position: absolute; left: 0; bottom: 0; background: var(--fe-lime); color: var(--fe-ink); font-weight: 800; padding: 10px 16px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

.fe-stack { display: flex; flex-direction: column; gap: 2px; background: var(--fe-divider); border-block: 2px solid var(--fe-ink); }
.fe-row-card { background: #fff; padding: clamp(22px, 2.4vw, 30px); position: relative; transition: background-color .7s var(--fe-ease); }
.fe-row-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fe-lime); opacity: 0; transition: opacity .7s var(--fe-ease); }
.fe-row-card:hover::before { opacity: 1; }
.fe-row-card h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.15; margin: 12px 0 0; }

.fe-res a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--fe-divider); color: var(--fe-ink); position: relative; transition: padding .7s var(--fe-ease), color .6s var(--fe-ease); }
.fe-res a b { font-size: 15px; }
.fe-res a span { font-size: 13px; color: var(--fe-n700); }
.fe-res a:hover { padding-left: 22px; color: var(--fe-lime-700); }
.fe-res a::before { content: "\2192"; position: absolute; left: 0; opacity: 0; transform: translateX(-6px); transition: opacity .6s var(--fe-ease), transform .7s var(--fe-ease); color: var(--fe-lime-700); font-weight: 800; }
.fe-res a:hover::before { opacity: 1; transform: none; }

/* acordió de requisits */
.fe-accordion .accordion-item { border: 0; border-bottom: 1px solid var(--fe-divider); background: transparent; }
.fe-accordion .accordion-button { font-weight: 800; font-size: 17px; color: var(--fe-ink); background: transparent; padding: 18px 0; box-shadow: none; }
.fe-accordion .accordion-button:not(.collapsed) { color: var(--fe-lime-700); }
.fe-accordion .accordion-button { transition: color .6s var(--fe-ease); }
.fe-accordion .accordion-collapse.collapsing { transition: height .6s var(--fe-ease); }
.fe-accordion .accordion-button::after { background-image: none; content: "+"; font-size: 26px; font-weight: 400; width: auto; height: auto; line-height: 1; transition: transform .6s var(--fe-ease); }
.fe-accordion .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.fe-accordion .accordion-body { padding: 0 0 20px; color: var(--fe-n800); font-size: 15px; line-height: 1.6; }

/* filtres */
.fe-filters { border-top: 2px solid var(--fe-ink); border-bottom: 1px solid var(--fe-divider); padding: 16px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fe-filter {
  border: 2px solid var(--fe-divider); background: #fff; color: var(--fe-ink); font-weight: 700; font-size: 13.5px;
  padding: 8px 14px;
  transition: color var(--fe-fast) var(--fe-ease), border-color var(--fe-fast) var(--fe-ease), background-color var(--fe-fast) var(--fe-ease);
}
.fe-filter:hover { border-color: rgba(61, 61, 61, .55); }
.fe-filter.active { border-color: var(--fe-lime); background: var(--fe-lime); }
.fe-filter sup { font-size: 10px; margin-left: 3px; color: var(--fe-n600); }
.fe-count { margin-left: auto; font-size: 13px; color: var(--fe-n700); }
.fe-count b { font-variant-numeric: tabular-nums; }
.fe-item.fe-item.is-out { opacity: 0; transform: translate3d(0, 10px, 0); transition-duration: .5s; }
.fe-item.is-gone { display: none; }

/* ---------- Peu ---------- */
.fe-footer { background: var(--fe-ink); color: var(--fe-n200); border-top: 2px solid var(--fe-ink); position: relative; overflow: hidden; isolation: isolate; }
.fe-footer h6 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fe-n500); margin-bottom: 14px; font-weight: 600; }
.fe-footer a { color: var(--fe-n200); font-size: 13.5px; display: inline-block; position: relative; }
.fe-footer a { transition: color var(--fe-fast) var(--fe-ease); }
.fe-footer a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--fe-lime); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--fe-ease); }
.fe-footer a:hover { color: #fff; }
.fe-footer a:hover::after { transform: scaleX(1); }
.fe-footer address { font-size: 13.5px; line-height: 1.6; color: var(--fe-n400); font-style: normal; }
.fe-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: var(--fe-n500); }
.fe-newsletter .form-control { border-radius: 0; background: transparent; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .4); color: #fff; padding-left: 0; font-size: 14px; }
.fe-newsletter .form-control::placeholder { color: var(--fe-n500); }
.fe-newsletter .form-control:focus { box-shadow: none; border-color: var(--fe-lime); background: transparent; color: #fff; }
.fe-newsletter .btn { padding-inline: .9rem; }

/* ---------- Tornar amunt ---------- */
.fe-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 52px; height: 52px; border: 0; background: var(--fe-ink);
  color: var(--fe-lime); display: grid; place-items: center; font-size: 20px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .8s var(--fe-ease), transform .8s var(--fe-ease), background-color var(--fe-fast) var(--fe-ease), color var(--fe-fast) var(--fe-ease);
}
.fe-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fe-top:hover { background: var(--fe-n800); }
.fe-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fe-top svg rect { fill: none; stroke: var(--fe-lime); stroke-width: 3; transition: stroke-dashoffset .2s linear; }
.fe-top .bi { position: relative; transition: transform var(--fe-fast) var(--fe-ease); }
.fe-top:hover .bi { transform: translateY(-2px); }

/* ---------- Revelat en fer scroll ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--fe-slow) var(--fe-ease), transform var(--fe-slow) var(--fe-ease-out);
  transition-delay: var(--d, 0ms); will-change: opacity, transform;
}
[data-reveal="up"] { transform: translate3d(0, 18px, 0); }
[data-reveal="left"] { transform: translate3d(-16px, 0, 0); }
[data-reveal="right"] { transform: translate3d(16px, 0, 0); }
[data-reveal="zoom"] { transform: scale(.985); }
[data-reveal="wipe"] { opacity: 1; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.fe-wipe { display: inline-block; opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity var(--fe-slow) var(--fe-ease), transform var(--fe-slow) var(--fe-ease-out); transition-delay: var(--d, 0ms); }
.fe-wipe::after { content: ""; display: block; height: 3px; width: 48px; background: var(--fe-lime); margin-top: 12px; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--fe-ease) calc(var(--d, 0ms) + .35s); }
[data-reveal="wipe"].is-visible > .fe-wipe { opacity: 1; transform: none; }
[data-reveal="wipe"].is-visible > .fe-wipe::after { transform: scaleX(1); }
/* ---------- Mobil ---------- */
@media (max-width: 767.98px) {
  .fe-header .navbar { min-height: 80px; }
  .fe-header .navbar-brand img { height: 40px; }
  .fe-header.is-scrolled .navbar { min-height: 66px; }
  .fe-header.is-scrolled .navbar-brand img { height: 32px; }
}
@media (max-width: 991.98px) {
  .fe-scroll-cue { display: none; }
}
@media (max-width: 767.98px) {
  .fe-table thead { display: none; }
  .fe-table, .fe-table tbody, .fe-table tr, .fe-table td { display: block; width: 100%; }
  .fe-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--fe-divider); }
  .fe-table tbody td { border: 0; padding: 4px 0; }
  .fe-table tbody tr:hover td:first-child { box-shadow: none; }
  .fe-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fe-n600); }
  .fe-count { margin-left: 0; width: 100%; }
}

/* ---------- Moviment reduït ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  [data-reveal], .fe-split .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .fe-hero-lines line { stroke-dashoffset: 0; }
}

.fe-crumbs .bi-house-door { font-size: 15px; vertical-align: -2px; margin-right: 4px; }
.fe-crumbs a.fe-home { color: var(--fe-ink); font-weight: 700; }

/* Llista de documents (resolucions) */
.fe-docs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fe-ink); }
.fe-docs li { border-bottom: 1px solid var(--fe-divider); }
.fe-docs a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 3vw, 36px); padding: 20px 0; color: var(--fe-ink); transition: background-color .5s var(--fe-ease), padding .6s var(--fe-ease); }
.fe-docs-year { font-size: clamp(30px, 4vw, 48px); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 2.4em; }
.fe-docs-title { font-size: clamp(15px, 1.3vw, 17px); font-weight: 500; line-height: 1.35; }
.fe-docs-title small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fe-n600); }
.fe-docs-dl { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--fe-ink); font-size: 19px; transition: background-color .4s var(--fe-ease), transform .5s var(--fe-ease); }
.fe-docs a:hover { background: var(--fe-lime-100); padding-inline: 16px; }
.fe-docs a:hover .fe-docs-dl { background: var(--fe-lime); transform: translateY(2px); }

/* Obertura d'àmbit: text + imatge gran amb ombra lima */
.fe-ambit-open { padding-bottom: clamp(16px, 2vw, 24px); }
.fe-ambit-lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 700; color: var(--fe-ink); max-width: 30ch; }
.fe-ambit-open .fe-ambit-txt { font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.65; max-width: 58ch; }
.fe-ambit-photo { position: relative; height: 100%; min-height: clamp(340px, 52vw, 640px); background: var(--fe-ink); overflow: visible; box-shadow: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 0 var(--fe-lime); }
.fe-ambit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% center; display: block; }
@media (min-width: 992px) { .fe-ambit-photo { margin-right: clamp(10px, 1.4vw, 18px); margin-bottom: clamp(10px, 1.4vw, 18px); } }

/* Colors per àmbit (com a la web antiga) — només com a accent subtil */
.amb-com { --amb: #d2a8f9; }  /* Desenvolupament Comunitari */
.amb-art { --amb: #5dccfc; }  /* Arts plàstiques i escèniques */
.amb-for { --amb: #f8ae48; }  /* Formació, Lleure i Esport */
.amb-inn { --amb: #fcbeac; }  /* Innovació i Sostenibilitat */
[class*="amb-"] { --amb-tint: color-mix(in srgb, var(--amb) 9%, #fff); }

.fe-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .6em; background: var(--amb); vertical-align: .06em; flex: none; }
.fe-chip { display: inline-flex; align-items: center; }
.fe-chip::before { content: ""; width: 8px; height: 8px; margin-right: .6em; background: var(--amb); flex: none; }
.fe-filter.fe-dot::before { margin-right: .5em; }

.fe-ticker-track span[class*="amb-"]::before { content: ""; width: 9px; height: 9px; background: var(--amb); border: 1px solid var(--fe-ink); flex: none; }

.fe-cell[class*="amb-"]::before { background: transparent; }
.fe-cell[class*="amb-"]::after { background: var(--amb); }
.fe-cell[class*="amb-"]:hover .fe-cell-num { color: var(--fe-ink); }

/* Pàgines d'àmbit */
body[class*="amb-"] .fe-docs a:hover { background: var(--amb-tint); }
body[class*="amb-"] .fe-crumbs span.text-body { box-shadow: inset 0 -2px 0 var(--amb); }
.fe-cell[class*="amb-"] .fe-cell-num::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .7em; background: var(--amb); vertical-align: -1px; }
body[class*="amb-"] .fe-ambit-photo { box-shadow: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 0 var(--amb); }

/* Hero: panell de convocatòries obertes (accés directe) */
#convocatories { scroll-margin-top: 80px; }
.fe-hero .container { padding-block: clamp(48px, 6vw, 88px) clamp(44px, 5vw, 72px); }
.fe-open { background: #fff; color: var(--fe-ink); border-top: 6px solid var(--fe-lime); }
.fe-open-head { display: flex; align-items: center; gap: 14px; padding: 16px clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--fe-divider); }
.fe-open-head b { background: var(--fe-lime); font-size: 22px; font-weight: 900; line-height: 1; min-width: 40px; height: 40px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.fe-open-head span { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.fe-open-list { list-style: none; margin: 0; padding: 0; }
.fe-open-list li + li { border-top: 1px solid var(--fe-divider); }
.fe-open-list a { display: block; padding: 14px clamp(18px, 2vw, 26px); color: var(--fe-ink); position: relative; transition: background-color .4s var(--fe-ease), padding .5s var(--fe-ease); }
.fe-open-list a::after { content: "\2192"; position: absolute; right: clamp(18px, 2vw, 26px); top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .4s var(--fe-ease), transform .5s var(--fe-ease); }
.fe-open-list a:hover { background: var(--amb-tint); padding-left: clamp(24px, 2.4vw, 32px); }
.fe-open-list a:hover::after { opacity: 1; transform: translate(-4px, -50%); }
.fe-open-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.25; }
.fe-open-meta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--fe-n700); }
.fe-open-all { display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(18px, 2vw, 26px); background: var(--fe-ink); color: #fff; font-weight: 700; font-size: 14px; transition: background-color .4s var(--fe-ease), color .4s var(--fe-ease); }
.fe-open-all:hover { background: var(--fe-lime); color: var(--fe-ink); }

/* Hero B: clar i tipogràfic + accés ràpid a les convocatòries */
.fe-hero2 { position: relative; background: var(--fe-surface); color: var(--fe-ink); overflow: hidden; isolation: isolate; }
.fe-hero2 .container { padding-block: clamp(52px, 7vw, 104px) clamp(88px, 9vw, 130px); }
.fe-hero2-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.fe-hero2-lines line { stroke: var(--fe-ink); stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; animation: fe-draw 9s cubic-bezier(.65, 0, .35, 1) .4s infinite; }
.fe-hero2-lines line:nth-child(2) { animation-delay: 1.8s; animation-duration: 11s; }
.fe-hero2-lines line:nth-child(3) { animation-delay: 3.2s; animation-duration: 13s; }
.fe-hero2 .fe-eyebrow { color: var(--fe-n700); }
.fe-hero2-title {font-size: clamp(32px, 4.8vw, 60px);line-height: 1;letter-spacing: -.035em;font-weight: 900;max-width: 22ch;}
.fe-hl2 { background: linear-gradient(var(--fe-lime), var(--fe-lime)) no-repeat 0 90% / 100% .42em; padding-right: .1em; }
.fe-hero2-lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 52ch; color: var(--fe-n800); }

.fe-quick { margin-top: calc(-1 * clamp(52px, 5.5vw, 76px)); position: relative; z-index: 2; padding-bottom: clamp(28px, 3vw, 44px); }
.fe-quick-tab { display: inline-flex; align-items: center; gap: 10px; background: var(--fe-ink); color: #fff; padding: 10px 18px 10px 10px; font-weight: 700; font-size: 14px; }
.fe-quick-tab b { background: var(--fe-lime); color: var(--fe-ink); min-width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; font-weight: 900; }
.fe-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); background: var(--fe-divider); gap: 1px; border: 2px solid var(--fe-ink); box-shadow: 10px 10px 0 var(--fe-lime); }
/* Una sola convocatòria: targeta horitzontal a tota l'amplada */
.fe-quick-card:only-child { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 12px 32px; }
.fe-quick-card:only-child > div:first-child { flex-direction: column; align-items: flex-start !important; gap: 8px; margin: 0 !important; }
.fe-quick-card:only-child .fe-quick-name { font-size: clamp(22px, 2.4vw, 32px); }
.fe-quick-card:only-child .fe-quick-foot { margin: 0; padding: 0; gap: 18px; }
@media (max-width: 767.98px) { .fe-quick-card:only-child { grid-template-columns: 1fr; } }
.fe-quick-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: clamp(18px, 2vw, 28px); color: var(--fe-ink); background: #fff; transition: background-color .5s var(--fe-ease); }
.fe-quick-area { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fe-n700); }
.fe-quick-name { font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.fe-quick-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--fe-n800); }
.fe-quick-foot .bi { font-size: 20px; transition: transform .5s var(--fe-ease); }
.fe-quick-card:hover { background: var(--amb-tint); color: var(--fe-ink); }
.fe-quick-card:hover .bi { transform: translateX(4px); }

/* Hero B amb la imatge de fons original (fosc) */
.fe-hero2 { background: var(--fe-ink) url(../img/fons.jpg) center/cover no-repeat; color: #fff; }
.fe-hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(40,40,40,.88) 0%, rgba(40,40,40,.55) 55%, rgba(40,40,40,.2) 100%); }
.fe-hero2-lines line { stroke: var(--fe-lime); opacity: .7; }
.fe-hero2 .fe-eyebrow { color: var(--fe-lime); }
.fe-hero2-title { color: #fff; }
.fe-hero2-lead { color: var(--fe-n200); }
.fe-hl2 { background: none; color: var(--fe-lime); }

/* Accions al peu de la targeta de convocatòria */
.fe-card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--fe-divider); }
.fe-card-actions .fe-link-arrow { font-size: 15px; }

/* Etiquetes d'estat tenyides pel color de l'àmbit (com a la versió HTML) */
body[class*="amb-"] .fe-tag,
body[class*="amb-"] .fe-tag-open,
body[class*="amb-"] .fe-tag-closed,
[class*="amb-"] .fe-tag,
[class*="amb-"] .fe-tag-open,
[class*="amb-"] .fe-tag-closed,
.fe-tag[class*="amb-"],
.fe-tag-open[class*="amb-"],
.fe-tag-closed[class*="amb-"] { background: var(--amb); color: var(--fe-ink); }

body[class*="amb-"] .fe-tag-outline,
[class*="amb-"] .fe-tag-outline,
.fe-tag-outline[class*="amb-"] { background: transparent; border: 1px solid var(--amb); color: var(--fe-ink); }

body[class*="amb-"] .fe-tag-open::before,
[class*="amb-"] .fe-tag-open::before,
.fe-tag-open[class*="amb-"]::before { background: var(--fe-ink); }
.fe-ambit-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fe-ambit-name { font-size: 13.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--amb) 60%, var(--fe-ink)); }
body[class*="amb-"] .fe-row-card::before { background: var(--amb); }

/* Barra de desplaçament corporativa */
html { scrollbar-width: thin; scrollbar-color: var(--fe-ink) var(--fe-surface); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--fe-surface); border-left: 1px solid var(--fe-divider); }
::-webkit-scrollbar-thumb { background: var(--fe-ink); border: 3px solid var(--fe-surface); min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: var(--fe-lime-700); }
::-webkit-scrollbar-corner { background: var(--fe-surface); }


/* Estils auxiliars per a blocs de contingut i pantalles dinàmiques */
.fe-prose { color: var(--fe-ink); }
.fe-prose h2, .fe-prose h3, .fe-prose h4 { margin-top: 1.5em; margin-bottom: 0.6em; }
.fe-prose p { margin-bottom: 1.25em; line-height: 1.7; }
.fe-prose ul, .fe-prose ol { margin-bottom: 1.5em; padding-left: 1.25em; }
.fe-prose li { margin-bottom: 0.5em; }
.fe-prose img { max-width: 100%; height: auto; }
.fe-docs-static { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(14px, 3vw, 36px); padding: 20px 0; color: var(--fe-ink); }
.fe-quick-note { font-size: 13.5px; color: var(--fe-n700); margin-top: 10px; margin-bottom: 0; }
.fe-video-frame video, .fe-video-frame iframe { width: 100%; max-height: 70vh; object-fit: cover; border: 2px solid var(--fe-ink); }


/* ---------- Formulari de sol·licitud ---------- */
.fe-form-wrap, .fe-form-ko { border-top: 2px solid var(--fe-ink); border-bottom: 2px solid var(--fe-ink); }
.fe-form { display: block; margin: 0; }

/* Cada bloc: títol a l'esquerra, camps a la dreta (com la resta de seccions del web) */
.fe-fsec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px clamp(28px, 5vw, 80px); padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--fe-divider); background: transparent; margin: 0; }
@media (min-width: 992px) { .fe-fsec { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); } .fe-fhead { position: sticky; top: 104px; align-self: start; } }
.fe-fnum { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--fe-lime-700); margin-bottom: 6px; }
.fe-fhead h3 { margin: 0; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.fe-fhead h3::after { content: ""; display: block; width: 48px; height: 3px; background: var(--fe-lime); margin-top: 14px; }
.fe-fhead .fe-fhint-inline { display: block; margin-top: 6px; }
.fe-fbody { min-width: 0; }

/* Convocatòria */
.fe-fsec-conv { background: var(--fe-lime-100); padding-inline: clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--fe-divider); }
.fe-fsec-conv .fe-flabel { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--fe-lime-700); }
.fe-conv-name { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; max-width: 34ch; }
.fe-conv-area { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fe-n700); }
.fe-fsec-conv .fe-fhead { position: static; }

/* Etiquetes i camps */
.fe-flabel { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.fe-flabel i { color: var(--fe-lime-700); font-style: normal; font-weight: 800; }
.fe-fhint { font-size: 13.5px; color: var(--fe-n700); margin: 0 0 8px; }
.fe-fhint-inline { font-weight: 500; font-size: 13px; color: var(--fe-n700); letter-spacing: 0; }
.fe-form .form-control, .fe-form .form-select { border: 2px solid var(--fe-divider); border-radius: 0; padding: 11px 13px; font-size: 15.5px; background-color: #fff; transition: border-color .4s var(--fe-ease); }
.fe-form .form-control:hover, .fe-form .form-select:hover { border-color: var(--fe-n500); }
.fe-form .form-control:focus, .fe-form .form-select:focus { border-color: var(--fe-ink); box-shadow: none; outline: 3px solid var(--fe-lime); outline-offset: 0; }
.fe-form textarea.form-control { resize: vertical; line-height: 1.5; }
.fe-count { text-align: right; font-size: 12.5px; color: var(--fe-n600); margin-top: 4px; font-variant-numeric: tabular-nums; }
.fe-count.is-near { color: var(--fe-ink); font-weight: 700; }
.fe-radios { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.fe-radios label, .fe-check { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; cursor: pointer; }
.fe-radios input, .fe-check input { width: 18px; height: 18px; accent-color: var(--fe-ink); flex: none; margin: 0; }

/* Files repetibles (objectius, cronograma) */
.fe-rep-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.fe-rep-row[hidden], .fe-cron-row[hidden], .fe-rep-add[hidden] { display: none !important; }
.fe-rep-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--fe-ink); color: var(--fe-lime); font-weight: 800; font-size: 14px; margin-top: 3px; }
.fe-rep-add { background: none; border: 2px dashed var(--fe-n500); padding: 10px 16px; font-weight: 700; font-size: 14.5px; color: var(--fe-ink); transition: border-color .4s var(--fe-ease), background-color .4s var(--fe-ease); }
.fe-rep-add:hover { border-color: var(--fe-ink); background: var(--fe-lime-100); }
.fe-cron-head, .fe-cron-row { display: grid; grid-template-columns: 2.2fr 1.2fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.fe-cron-head { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fe-n600); font-weight: 600; }
@media (max-width: 767.98px) {
  .fe-cron-head { display: none; }
  .fe-cron-row { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--fe-divider); }
  .fe-cron-row > :first-child { grid-column: 1 / -1; }
}

/* Fitxer */
.fe-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fe-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fe-file:focus-within label { outline: 3px solid var(--fe-lime); outline-offset: 2px; }
.fe-file-name { font-size: 14px; color: var(--fe-n800); }
.fe-file-name.is-error { color: #b3261e; font-weight: 700; }

/* Enviament: franja fosca corporativa */
.fe-fsec-send { display: block; background: var(--fe-ink); color: #fff; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); border-bottom: 0; }
.fe-fsec-send a { color: var(--fe-lime); text-decoration: underline; text-underline-offset: 3px; }
.fe-fsec-send .fe-check { color: #fff; font-size: 15px; }
.fe-fsec-send .fe-check input { accent-color: var(--fe-lime); }
.fe-fsec-send .fe-check i { color: var(--fe-lime); font-style: normal; }
.fe-fsec-send .fe-fhint { color: var(--fe-n200); }
.fe-fsec-send .wpcf7-not-valid-tip { color: #ffb4ab; }
.fe-fsec-send input[type="submit"].btn-fe { border: 0; }

/* Missatges de Contact Form 7 */
.fe-form .wpcf7-form-control-wrap { display: block; }
.fe-form .wpcf7-list-item { margin: 0; }
.fe-form .wpcf7-not-valid-tip { font-size: 13px; color: #b3261e; margin-top: 4px; }
.fe-form .wpcf7-not-valid { border-color: #b3261e !important; }
.fe-form .wpcf7-spinner { display: none; }
.fe-form .wpcf7-response-output { margin: 0 !important; padding: 18px clamp(20px, 3vw, 40px) !important; border: 0 !important; background: var(--fe-surface); font-weight: 700; font-size: 15px; color: var(--fe-ink); }
.fe-form.sent .wpcf7-response-output { background: var(--fe-lime); }
.fe-form.invalid .wpcf7-response-output, .fe-form.failed .wpcf7-response-output, .fe-form.aborted .wpcf7-response-output, .fe-form.unaccepted .wpcf7-response-output { background: #fbe9e7; color: #8c1d18; }

/* Mides de text més grans per a una lectura còmoda */
.fe-small { font-size: 16px; line-height: 1.55; }
.fe-label { font-size: 14px; }
.fe-eyebrow { font-size: 13.5px; }
.fe-tag { font-size: 14.5px; }
.fe-chip { font-size: 14px; }
.fe-link-arrow { font-size: 16.5px; }
.fe-cell-num { font-size: 14px; }
.fe-cell h3 { font-size: clamp(22px, 2.2vw, 28px); max-width: 22ch; }
.fe-cell p { font-size: 16px; line-height: 1.5; max-width: 42ch; }
.fe-cell-foot { font-size: 15px; }
.fe-table { font-size: 16px; }
.fe-table thead th { font-size: 13px; }
.fe-project p { font-size: 16px; }
.fe-meta { font-size: 13.5px; }
.fe-quick-area { font-size: 13px; }
.fe-quick-foot { font-size: 15px; }

/* Taula de convocatòries: l'àmbit va a sobre del títol */
.fe-table td .fe-chip { margin-bottom: 6px; }
.fe-table td > div b { font-size: 17px; line-height: 1.3; }

/* Logo i capçalera sempre amb la mida de quan es fa scroll */
.fe-header .navbar { min-height: 78px; }
.fe-header .navbar-brand img { height: 38px; }
@media (max-width: 767.98px) {
  .fe-header .navbar { min-height: 66px; }
  .fe-header .navbar-brand img { height: 32px; }
}
.fe-radios .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.fe-radios .wpcf7-list-item { margin: 0; }
.fe-radios .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; cursor: pointer; }

/* Botó per eliminar files afegides (objectius i cronograma) */
.fe-rep-del { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 2px solid var(--fe-divider); color: var(--fe-ink); font-size: 15px; margin-top: 0; transition: background-color .3s var(--fe-ease), border-color .3s var(--fe-ease), color .3s var(--fe-ease); }
.fe-rep-del:hover, .fe-rep-del:focus-visible { background: var(--fe-ink); border-color: var(--fe-ink); color: var(--fe-lime); }
.fe-rep-row .fe-rep-del { margin-top: 0; align-self: flex-start; }
.fe-cron-head, .fe-cron-row { grid-template-columns: 2.2fr 1.2fr 1fr 1fr 40px; }
@media (max-width: 767.98px) {
  .fe-cron-row { grid-template-columns: 1fr 1fr; }
  .fe-cron-row > :first-child { grid-column: 1 / -1; }
  .fe-cron-row .fe-rep-del { grid-column: 1 / -1; justify-self: end; width: auto; padding: 0 14px; height: 36px; }
}

/* ---------- Menú mòbil: panells lliscants (principal + submenús) ---------- */
.fe-offcanvas .offcanvas-body { position: relative; }
.fe-mpanes { position: absolute; inset: 0; overflow: hidden; }
.fe-mpane { position: absolute; inset: 0; overflow-y: auto; padding-top: 8px; padding-bottom: 32px; background: var(--fe-ink); transform: translateX(100%); visibility: hidden; transition: transform .45s var(--fe-ease), visibility 0s linear .45s; }
.fe-mpane.is-main { transform: none; visibility: visible; transition: transform .45s var(--fe-ease), opacity .3s var(--fe-ease); }
.fe-mpanes.is-sub .fe-mpane.is-main { transform: translateX(-22%); opacity: 0; visibility: hidden; transition: transform .45s var(--fe-ease), opacity .3s var(--fe-ease), visibility 0s linear .45s; }
.fe-mpane.is-open { transform: none; visibility: visible; transition: transform .45s var(--fe-ease), visibility 0s; }
.fe-mback { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 14px -2px; padding: 8px 0; background: none; border: 0; color: var(--fe-lime); font-weight: 700; font-size: 16px; }
.fe-mback:hover { color: #fff; }
.fe-mtitle { margin: 0 0 18px; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fe-msub { border-top: 1px solid rgba(255, 255, 255, .15); }
.fe-offcanvas .fe-msub > a { font-size: 20px; padding: 14px 0; justify-content: flex-start; gap: 4px; }
.fe-offcanvas .fe-msub > a.fe-dot::before { margin-right: .7em; }

/* Fil d'Ariadna en blanc sobre la imatge de fons del hero */
.fe-crumbbar { background: var(--fe-ink) url(../img/fons.jpg) center/cover no-repeat; border-bottom: 4px solid var(--fe-lime); }
.fe-crumbbar .fe-crumbs { font-size: 15px; color: rgba(255, 255, 255, .78); padding: 16px 0; }
.fe-crumbbar .fe-crumbs a, .fe-crumbbar .fe-crumbs a.fe-home { color: #fff; }
.fe-crumbbar .fe-crumbs a:hover { color: var(--fe-lime); }
.fe-crumbbar .fe-crumbs .text-body { color: #fff !important; font-weight: 700; }
.fe-crumbbar .fe-crumbs .bi-house-door { font-size: 17px; }
.fe-crumbbar { margin-bottom: clamp(28px, 4vw, 56px); }
.fe-crumbbar .fe-crumbs { padding: 26px 0; }

/* Contingut de les pàgines estàndard: mateixa mida de text que el contingut dels àmbits */
.fe-page-default .fe-page-content { font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.65; }

/* Targetes de convocatòria: sense línia lateral en passar-hi per sobre */
.fe-row-card:hover::before { opacity: 0; }

/* ---------- Projectes (entrades): fitxa d'un projecte ---------- */
.fe-project-head { padding-top: clamp(8px, 1vw, 16px); margin-bottom: clamp(24px, 3vw, 40px); }
.fe-project-lead { margin: 22px 0 0; max-width: 46ch; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--fe-ink); }
.fe-project-cover { margin: 0 0 clamp(32px, 4vw, 56px); border: 1px solid var(--fe-divider); box-shadow: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 0 var(--fe-lime); margin-right: clamp(10px, 1.4vw, 18px); }
.fe-project-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.fe-doclist-box { border-top: 2px solid var(--fe-ink); background: var(--fe-surface); padding: 22px 22px 8px; position: sticky; top: 100px; }
.fe-doclist-title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--fe-lime-700); margin: 0 0 8px; }
.fe-doclist { list-style: none; margin: 0; padding: 0; }
.fe-doclist li + li { border-top: 1px solid var(--fe-divider); }
.fe-doclist a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 0; color: var(--fe-ink); transition: padding .4s var(--fe-ease); }
.fe-doclist a:hover { padding-left: 8px; color: var(--fe-ink); }
.fe-doc-ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--fe-ink); color: var(--fe-lime); font-size: 20px; }
.fe-doc-txt b { display: block; font-size: 15px; line-height: 1.25; }
.fe-doc-txt small { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fe-n600); }
.fe-doc-dl { font-size: 18px; transition: transform .4s var(--fe-ease); }
.fe-doclist a:hover .fe-doc-dl { transform: translateY(3px); }
.fe-project-gallery { margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--fe-ink); }
.fe-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fe-photos figure { margin: 0; }
.fe-photos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fe-ink); }
.fe-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--fe-ease), opacity .6s var(--fe-ease); }
.fe-photos a:hover img { transform: scale(1.05); opacity: .92; }
.fe-photos figcaption { font-size: 13.5px; color: var(--fe-n700); margin-top: 6px; }
.fe-project .fe-meta .bi { margin-right: 2px; }

/* Pàgina per defecte: imatge amb ombra verda corporativa (com la pàgina d'àmbit) i subtítol igual */
.fe-page-default .fe-ambit-lead { max-width: 40ch; }
.fe-page-default .fe-page-photo { min-height: clamp(220px, 30vw, 380px); box-shadow: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 0 var(--fe-lime); }
.fe-page-default .fe-page-photo-wrap { padding-right: clamp(10px, 1.4vw, 18px); padding-bottom: clamp(10px, 1.4vw, 18px); }

/* Portada sense convocatòries obertes */
.fe-quick-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: #fff; border: 2px solid var(--fe-ink); box-shadow: 10px 10px 0 var(--fe-lime); padding: clamp(18px, 2vw, 28px); font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; }

/* Portada: pestanyes obertes / resoltes */
.fe-quick-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.fe-quick-tabs .fe-quick-tab { border: 0; cursor: pointer; font-family: inherit; background: var(--fe-n700); color: #fff; opacity: .85; transition: background-color .3s var(--fe-ease), opacity .3s; }
.fe-quick-tabs .fe-quick-tab:hover { opacity: 1; }
.fe-quick-tabs .fe-quick-tab.is-active { background: var(--fe-ink); opacity: 1; }
.fe-quick-tabs .fe-quick-tab:focus-visible { outline: 3px solid var(--fe-lime); outline-offset: 2px; }
.fe-quick-panel[hidden] { display: none; }
.fe-quick-panel .fe-quick-grid, .fe-quick-panel .fe-quick-empty { margin-top: 0; }

/* Portada: en mòbil el bloc de convocatòries no se sobreposa al hero, hi ha marge entre tots dos */
@media (max-width: 767.98px) { .fe-quick { margin-top: 0; padding-top: clamp(24px, 6vw, 36px); } }

/* Peu de pàgina professional */
.fe-footer-cta { background: var(--fe-lime); color: var(--fe-ink); padding: clamp(28px, 4vw, 48px) 0; }
.fe-footer-cta-title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px; color: var(--fe-ink); }
.fe-footer-cta p { font-size: 15px; font-weight: 500; }
.fe-footer-cta .btn-fe { background: var(--fe-ink); color: #fff; border-color: var(--fe-ink); }
.fe-footer-cta .btn-fe:hover { background: #fff; color: var(--fe-ink); border-color: #fff; }
.fe-footer-about { font-size: 15px; line-height: 1.5; font-weight: 600; color: #fff; max-width: 32ch; margin-bottom: 20px; }
.fe-footer address { display: flex; gap: 10px; align-items: flex-start; }
.fe-footer address .bi { color: var(--fe-lime); font-size: 16px; line-height: 1.4; }
.fe-footer .fe-footer-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .35); padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: #fff; transition: background-color .3s, color .3s, border-color .3s; }
.fe-footer .fe-footer-btn::after { display: none; }
.fe-footer .fe-footer-btn:hover { background: var(--fe-lime); border-color: var(--fe-lime); color: var(--fe-ink); }
.fe-footer h6 { padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.fe-footer-bottom .container { align-items: center; }
.fe-footer-bottom a { font-size: 12px; color: var(--fe-n400); }

/* Pàgina d'àmbit: imatge menys alta (ja no s'estira amb el text) */
@media (min-width: 992px) {
	.fe-ambit-open .row > [class*="col-"]:has(> .fe-ambit-photo) { align-self: center; }
	.fe-ambit-open .fe-ambit-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; max-height: 420px; }
}
@media (max-width: 991.98px) { .fe-ambit-open .fe-ambit-photo { min-height: 0; aspect-ratio: 16 / 10; } }

/* Submenú d'escriptori: tauler flotant separat del menú */
@media (min-width: 1200px) {
	.fe-nav .dropdown { position: relative; }
	.fe-nav .dropdown > .fe-submenu {
		min-width: 330px; margin-top: 18px !important; padding: 10px 0 12px; border: 2px solid var(--fe-ink); border-radius: 0; background: #fff;
		box-shadow: 8px 8px 0 var(--fe-lime); inset: 100% auto auto 50% !important; transform: translateX(-50%) !important;
	}
	/* pont invisible perquè el cursor no perdi el hover en creuar l'espai */
	.fe-nav .dropdown > .fe-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
	.fe-nav .dropdown:hover > .fe-submenu, .fe-nav .dropdown > .fe-submenu.show { display: block; animation: fe-submenu-in .35s var(--fe-ease-out) both; }
	.fe-submenu-head { padding: 6px 24px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--fe-divider); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fe-n500); }
	.fe-submenu .dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 24px; font-size: 15px; font-weight: 700; color: var(--fe-ink); white-space: normal; background: transparent; }
	.fe-submenu .dropdown-item .bi { color: var(--fe-ink); opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--fe-ease), transform .3s var(--fe-ease); }
	.fe-submenu .dropdown-item:hover, .fe-submenu .dropdown-item:focus { background: var(--fe-surface, #f5f5f2); color: var(--fe-ink); }
	.fe-submenu .dropdown-item:hover .bi, .fe-submenu .dropdown-item:focus .bi, .fe-submenu .dropdown-item.active .bi { opacity: 1; transform: none; }
	.fe-submenu .dropdown-item.active { background: transparent; color: var(--fe-ink); box-shadow: inset 3px 0 0 var(--fe-lime); }
	@keyframes fe-submenu-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media (min-width: 1200px) {
	.fe-submenu .dropdown-item { justify-content: flex-start; gap: 12px; }
	.fe-submenu .dropdown-item span { flex: 1; text-align: left; }
	.fe-submenu .dropdown-item .bi { flex: none; }
}

/* Submenú: sense fons/ombra verda i noms alineats a l'esquerra */
@media (min-width: 1200px) {
	.fe-nav .dropdown > .fe-submenu { box-shadow: 0 18px 40px -22px rgba(40, 40, 40, .45); inset: 100% auto auto 0 !important; transform: none !important; text-align: left; }
	.fe-submenu .dropdown-item.active { box-shadow: none; background: var(--fe-surface); }
}

/* Pàgina de contacte (plantilla «Sense foto»): formulari CF7 amb l'estil de la web */
.fe-page-sense-foto .wpcf7 { max-width: 920px; margin-top: 8px; }
.fe-page-sense-foto .wpcf7 .pregunta { --bs-gutter-x: 28px; --bs-gutter-y: 0; justify-content: flex-start !important; text-align: left !important; }
.fe-page-sense-foto .wpcf7-form-control-wrap { display: block; margin-bottom: 18px; }
.fe-page-sense-foto .wpcf7 input[type="text"], .fe-page-sense-foto .wpcf7 input[type="email"], .fe-page-sense-foto .wpcf7 input[type="tel"], .fe-page-sense-foto .wpcf7 textarea {
	width: 100%; border: 2px solid var(--fe-divider); border-radius: 0; padding: 13px 15px; font: inherit; font-size: 15.5px; line-height: 1.4; color: var(--fe-ink); background: #fff; transition: border-color .4s var(--fe-ease);
}
.fe-page-sense-foto .wpcf7 input::placeholder, .fe-page-sense-foto .wpcf7 textarea::placeholder { color: var(--fe-n500); }
.fe-page-sense-foto .wpcf7 input:hover, .fe-page-sense-foto .wpcf7 textarea:hover { border-color: var(--fe-n500); }
.fe-page-sense-foto .wpcf7 input:focus, .fe-page-sense-foto .wpcf7 textarea:focus { border-color: var(--fe-ink); outline: 3px solid var(--fe-lime); outline-offset: 0; box-shadow: none; }
.fe-page-sense-foto .wpcf7 textarea { height: calc(100% - 18px); min-height: 220px; resize: vertical; }
.fe-page-sense-foto .wpcf7 .wpcf7-acceptance { display: block; margin: 4px 0 24px; }
.fe-page-sense-foto .wpcf7 .wpcf7-list-item { margin: 0; }
.fe-page-sense-foto .wpcf7 .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.fe-page-sense-foto .wpcf7 input[type="checkbox"] { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--fe-ink); }
.fe-page-sense-foto .wpcf7 .text-small { font-size: 14px; line-height: 1.5 !important; color: var(--fe-n700); }
.fe-page-sense-foto .wpcf7 .text-small a { color: var(--fe-ink); text-decoration: underline; }
.fe-page-sense-foto .wpcf7 input[type="submit"] {
	background: var(--fe-lime); color: var(--fe-ink); border: 2px solid var(--fe-lime); border-radius: 0; padding: 14px 32px; font-size: 15px; font-weight: 800; cursor: pointer; width: auto; display: inline-block !important;
	transition: background-color .3s var(--fe-ease), border-color .3s var(--fe-ease);
}
.fe-page-sense-foto .wpcf7 input[type="submit"]:hover, .fe-page-sense-foto .wpcf7 input[type="submit"]:focus-visible { background: var(--fe-lime-400); border-color: var(--fe-lime-400); }
.fe-page-sense-foto .wpcf7 .text-md-end { text-align: left !important; }
.fe-page-sense-foto .wpcf7-spinner { display: none; }
.fe-page-sense-foto .wpcf7-not-valid-tip { display: block; font-size: 13px; line-height: 1.3; color: #b3261e; margin: 6px 0 0; }
.fe-page-sense-foto .wpcf7-not-valid { border-color: #b3261e !important; }
.fe-page-sense-foto .wpcf7 .wpcf7-response-output { margin: 24px 0 0 !important; padding: 16px 20px !important; border: 0 !important; background: var(--fe-surface); font-weight: 700; font-size: 15px; }
.fe-page-sense-foto .wpcf7 form.sent .wpcf7-response-output { background: var(--fe-lime); }
.fe-page-sense-foto .wpcf7 form.invalid .wpcf7-response-output, .fe-page-sense-foto .wpcf7 form.failed .wpcf7-response-output { background: #fbe9e7; color: #8c1d18; }
@media (max-width: 767.98px) { .fe-page-sense-foto .wpcf7 textarea { height: 180px; min-height: 0; } }

/* Àmbits d'actuació: fletxa en quadrat verd, com la dels projectes */
.fe-cell-arrow { width: 40px; height: 40px; border: 0; background: var(--fe-lime); color: var(--fe-ink); font-size: 18px; }
.fe-cell:hover .fe-cell-arrow { background: var(--fe-ink); color: var(--fe-lime); }
.fe-cell:hover .fe-cell-arrow .bi { transform: translate(2px, -2px); }

/* Pàgines legals: el document de Complianz (cookies) ocupa tot l'ample, no els 800px per defecte */
.fe-page-legal #cmplz-document, .fe-page-legal .cmplz-document { max-width: 100% !important; width: 100%; font-size: inherit; }
.fe-page-legal #cmplz-document p, .fe-page-legal #cmplz-document li, .fe-page-legal #cmplz-document td { font-size: inherit; }
.fe-page-legal #cmplz-document ul { margin-left: 0; padding-left: 1.25em; }

/* Portada: més de 4 convocatòries → slide */
.fe-quick-wrap { position: relative; }
.fe-quick-grid.is-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.fe-quick-grid.is-slider::-webkit-scrollbar { display: none; }
.fe-quick-grid.is-slider .fe-quick-card { flex: 0 0 calc((100% - 2px) / 3); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1199.98px) { .fe-quick-grid.is-slider .fe-quick-card { flex-basis: calc((100% - 1px) / 2); } }
@media (max-width: 575.98px) { .fe-quick-grid.is-slider .fe-quick-card { flex-basis: 100%; } }
.fe-quick-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 2px solid var(--fe-ink); background: var(--fe-lime); color: var(--fe-ink); font-size: 18px; cursor: pointer; transition: background-color .3s var(--fe-ease), color .3s var(--fe-ease); }
.fe-quick-nav:hover, .fe-quick-nav:focus-visible { background: var(--fe-ink); color: var(--fe-lime); }
.fe-quick-prev { left: -22px; }
.fe-quick-next { right: -22px; }
@media (max-width: 1399.98px) { .fe-quick-prev { left: -10px; } .fe-quick-next { right: -10px; } }

/* Slide de convocatòries: targetes de la mateixa alçada i fletxes petites a sota, a la dreta */
.fe-quick-grid.is-slider { align-items: stretch; }
.fe-quick-grid.is-slider .fe-quick-card { height: auto; }
.fe-quick-wrap.is-slider { padding-bottom: 58px; }
.fe-quick-nav { top: auto; bottom: 8px; width: 36px; height: 36px; margin-top: 0; font-size: 15px; }
.fe-quick-prev { left: auto; right: 44px; }
.fe-quick-next { right: 0; }
@media (max-width: 1399.98px) { .fe-quick-prev { left: auto; right: 44px; } .fe-quick-next { right: 0; } }

/* Mòbil: sense slide, les targetes una sota l'altra */
@media (max-width: 767.98px) {
	.fe-quick-grid.is-slider { display: grid; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; }
	.fe-quick-grid.is-slider .fe-quick-card { flex: none; }
	.fe-quick-wrap.is-slider { padding-bottom: 0; }
	.fe-quick-wrap.is-slider .fe-quick-nav { display: none; }
}

/* Hero de la portada: 80px més alt a escriptori */
@media (min-width: 992px) { .fe-hero2 .container { padding-block: calc(clamp(52px, 7vw, 104px) + 40px) calc(clamp(88px, 9vw, 130px) + 40px); } }

/* Taula de la portada: tota la fila és un enllaç; títol 17px, enllaç 15px */
.fe-table td > div b { font-size: 17px; line-height: 1.3; }
.fe-table td .fe-link-arrow { font-size: 15px; white-space: nowrap; }
.fe-table tbody tr.fe-row-link { cursor: pointer; }
.fe-table tbody tr.fe-row-link:hover .fe-link-arrow { color: var(--fe-ink); }
.fe-table tbody tr.fe-row-link:hover .fe-link-arrow .bi { transform: translateX(3px); }

/* Taula de la portada: títol més curt (salta de línia abans) sense moure la columna de l'any */
@media (min-width: 992px) { .fe-table td:first-child > div { max-width: 600px; } }
@media (min-width: 992px) { .fe-table thead th:first-child, .fe-table tbody td:first-child { width: 65.4%; } }
