/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:  #0000FF;
  --white: #FFFFFF;
  --font:  'Elms Sans', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

/* ── Estil base (body) ────────────────────────────────────── */
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--blue);
  background: var(--white);
  overflow-x: hidden;
  word-spacing: -0.20em;
}

/* ── Estil títols ─────────────────────────────────────────── */
.title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  word-spacing: -0.20em;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background-color: var(--blue);
  position: sticky;
  top: 0;
  z-index: 0;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 4rem 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  position: relative;
  z-index: 2;
}

.logo-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  /* cursor: crosshair;*/
}

/* Esquerra i dreta: tota l'alçada */
.logo-zone[data-zone="0"] { grid-column: 1; grid-row: 1 / 3; }
.logo-zone[data-zone="1"] { grid-column: 2; grid-row: 1;     } /* centre dalt */
.logo-zone[data-zone="2"] { grid-column: 2; grid-row: 2;     } /* centre baix */
.logo-zone[data-zone="3"] { grid-column: 3; grid-row: 1 / 3; }

.logo-svg {
  width: clamp(280px, 65vw, 750px);
  height: auto;
  display: block;
}

/* ── Hover element ────────────────────────────────────────── */
.hover-element {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  will-change: opacity;
}

.hover-element img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
}

.hover-element.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── BIO ──────────────────────────────────────────────────── */
.bio {
  background: var(--white);
  padding: 60px 0;
  border-top: 0px solid var(--blue);
  position: relative;
  z-index: 1;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.bio-title { margin-bottom: 1.2rem; }

.bio-col p { margin-bottom: 1rem; }
.bio-col p:last-child { margin-bottom: 0; }

/* ── ACTIONS ──────────────────────────────────────────────── */
.actions {
  background: var(--white);
  position: relative;
  z-index: 1;
}

.actions-title {
  text-align: center;
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-top: 32px;
  padding-bottom: 32px;
  padding-right: 60px;
  padding-left: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-title-svg {
  width: 100%;
  max-width: 1360px;
  height: auto;
  display: block;
  object-fit: contain;
}

.actions .container {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* ── Card ─────────────────────────────────────────────────── */
.card { display: flex; flex-direction: column; }

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 1.5rem;
  border-radius: 20px;
}


.card-body h3 { margin-bottom: 0.4rem; }
.card-date    { margin-bottom: 1rem; }
.card-title--spaced { margin-bottom: 16px !important; }
.card-link { text-decoration: underline; }


/* ── CTA card (ocupa 2 cel·les) ─────────────────────────── */
.card--cta {
  grid-column: span 2;
  background: var(--blue);
  color: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta-title {
  color: var(--white);
  font-size: 36px;
  line-height: 44px;
  width: 60%;
  font-weight: 700;

}

.cta-accounts {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cta-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.cta-account-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cta-account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.cta-account-url {
  text-decoration: underline;
  font-weight: 500;
}

.cta-account-handle {
  font-weight: 500;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: #000;
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer .container {
  max-width: none;
}

.footer-groups {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-group-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  word-spacing: normal;
  text-transform: uppercase;
}

/* Caixa d'alçada fixa: tots els logos queden alineats pel títol */
.footer-group-logos {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Els logos hereden height:100% de la regla global img — la sobreescrivim */
.footer-group-logos img {
  width: auto !important;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* ── Mides individuals de cada logo ─────────────────────────
   Ajusta height per escalar cada logo de forma independent   */
.logo-consell    { height: 30px !important; }
.logo-dansaneu   { height: 35px !important; }
.logo-morello    { height: 65px !important; }
.logo-centenari  { height: 55px !important; }
.logo-generalitat{ height: 30px !important; }
.logo-ilerdencs  { height: 45px !important; }
.logo-diputacio  { height: 35px !important; }
.logo-ministerio { height: 45px !important; }
.logo-mnac { height: 45px !important; }
.logo-idapa      { height: 45px !important; }
.logo-ajuntament { height: 40px !important; width: auto !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 1400px) {
  .footer-groups { justify-content: center; }
}

@media (max-width: 900px) {
  .bio-grid       { grid-template-columns: 1fr 1fr; }
  .bio-col--left  { grid-column: 1 / -1; }
  .actions-grid   { grid-template-columns: repeat(2, 1fr); }
  .card--cta      { grid-column: span 2; }
  .actions .container {
  padding-top: 3rem;
  padding-bottom: 1rem;
}
  .actions-title {
  padding-top: 24px;
  padding-bottom: 24px;
  padding-right: 16px;
  padding-left: 16px;
}

.card--cta {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

.cta-title {
  font-size: 30px;
  line-height: 38px;
  font-weight: 600px;
  width: 80%;
}

.cta-account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

}




@media (max-width: 600px) {
  .bio-grid     { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .card--cta    { grid-column: span 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-nav   { justify-content: flex-start; }
  .hover-element { width: 100px; top: 1.5rem; right: 1rem; }

  /* Permet que els logos del footer es trenquin en 2 línies */
  .footer-group-logos {
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .actions-title {
  padding-top: 24px;
  padding-bottom: 24px;
  padding-right: 16px;
  padding-left: 16px;
}

.cta-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600px;
  width: 100%;
}

.cta-accounts {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

}