/* 
  =========================================
  AULA MOLINS — BASE CSS
  INDEX
  01. Variables i tipografia
  02. Reset i globals
  03. Header i navegació
  04. Sidebar
  05. Hero de benvinguda
  06. Programació/Activitats
  07. Curs actual
  08. Notícies (cards i llistats)
  09. Aules
  10. Footer
  =========================================
*/

/* ==============================================
   🎓 AULA MOLINS — ESTILS COMPLETS
   ============================================== */

/* VARIABLES */
:root {
  /* Paleta i tipografia base */
  --color-primari: #77136b;
  --color-secundari: #f1d5ee;
  --color-terciari: #be92b9;
  --color-text: #000000;
  --color-text-secundari: #ffffff;
  --color-sortida: #4CAF50;
  --font-base: 'Segoe UI', 'Open Sans', 'Source Sans Pro', sans-serif;

  /* ─── Escala tipogràfica ─── */
  --fs-xs: 0.875rem;    /* 14px */
  --fs-sm: 1rem;        /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */

  /* ─── Altures de línia ─── */
  --lh-tight: 1.4;
  --lh-normal: 1.6;
  --lh-loose: 1.8;
  
  /* ... altres variables ... */
  --container-max: 90rem; /* 1440px */
  --container-padding: 3.5%;
  --radius-base: 0.625rem; /* 10px */
}

/* ============ WRAPPERS HOME ============ */
.section-wrapper {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem; /* mateix espai entre seccions */
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  box-sizing: border-box;
}

/* ============ TÍTOLS HOME ============ */
.section-wrapper h1,
.section-wrapper h2 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-xl));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
  text-align: center;
}

/* ==============================================
   🎯 TÍTOLS SECCIONS GLOBALS
   ============================================== */

.titol-cursos,
.titol-properes-activitats,
.titol-noticies,
.titol-contacte,
.titol-pagina {
  margin-top: 3.5%;
  margin-bottom: 2rem;
}

h1.titol-seccio,
h2.titol-seccio,
h1.titol-pagina {
  margin-top: 3.5%;
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────
   🌐 Base tipogràfica global
   ───────────────────────────────────────────── */
html {
  font-size: 16px;           /* 1rem = 16px */
}
body {
  font-family: var(--font-base);
  font-size: var(--fs-sm);    /* 16px */
  line-height: var(--lh-normal);
  color: var(--color-text);
}

/* RESET I CONFIGURACIÓ BÀSICA */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image: url('../img/fons-general.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #f7f7f7;
}
body:not(.home)::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -1;
  pointer-events: none;
}

.site {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -1;
  pointer-events: none;
}

main {
  flex: 1 0 auto;
}
.main-footer {
  flex-shrink: 0;
  z-index: 2; 
}

/* CONTINGUT GENERAL */
body section,
.entry-content section,
section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.25rem 3.5%;
}

.site-main.entrada-pagina,
body .entrada-pagina {
  max-width: 1440px !important;
  width: 100%;
}


h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--color-primari);
}

a {
  color: var(--color-primari);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover,
a:focus-visible {
  color: var(--color-terciari);
}


/* Listes genèriques */
ul {
  list-style: none;
  padding-left: 0;
}

/* BOTONS */
.button,
.wp-block-button__link {
  display: inline-block;
  padding: 0.625rem 1.25rem;               /* 10px 20px */
  border-radius: var(--radius-base);
  background-color: var(--color-primari);
  color: var(--color-text-secundari);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  box-sizing: border-box;
}

.button:hover,
.wp-block-button__link:hover,
.button:focus-visible,
.wp-block-button__link:focus-visible {
  background-color: var(--color-terciari);
  color: var(--color-text-secundari);
  transform: translateY(-2px);
  outline: none;
}

.button:active,
.wp-block-button__link:active {
  transform: translateY(1px);
}

.button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--color-terciari);
  outline-offset: 2px;
}

/* ==============================================
   📌 HEADER I MENÚ DE NAVEGACIÓ — ESTIL PRO
   ============================================== */

.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container-header {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  padding: 0.25% 0.5%;
  min-height: clamp(3rem, 6vw, 6.25rem);
  background: transparent;
}

.logo-image {
  display: block;
  width: auto;
  height: clamp(3rem, 6vw, 6.25rem);
  transition: transform 0.3s ease;
  background: transparent;
}

.logo-image:hover {
  transform: scale(1.03);
}

/* 🔗 NAVEGACIÓ PRINCIPAL (DESKTOP) */
.main-nav {
  padding-right: 0.5%;
}

/* Llista principal del menú: horitzontal, espais i reset */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 1vw + 0.5rem, 2rem);
  margin: 0;
  padding: 0;
}

/* Cada element del menú */
.main-nav ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* Enllaços del menú: centrats, padding còmode */
.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 0.5rem;
  height: 100%;
  font-family: var(--font-base);
  color: var(--color-text);
  font-size: clamp(0.9rem, 0.7rem + 0.5vw, 1.1rem);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s;
  text-decoration: none;
  gap: 0.3em;
}

/* Hover del menú */
.main-nav a:hover {
  color: var(--color-terciari);
}

/* ========================
   🔗 ENLLAÇOS PRINCIPALS
   ======================== */
/* ✳️ Enllaç actiu (on ets actualment) */
.main-nav li.current-menu-item > a,
.main-nav a.current-menu-item {
  font-weight: bold;
  color: var(--color-primari);
}

/* ❌ Elimina decoració no desitjada de temes actius (línies) */
.main-nav li.current-menu-item > a::after {
  display: none !important;
}

/* 🔽 FLETXETA EN ELEMENTS AMB SUBMENÚ */
.main-nav li.menu-item-has-children > a::after {
  content: "▾"; /* també pots provar "▼", "⌄" */
  font-size: 0.9em;
  line-height: 1;
  margin-left: 0.3em;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(1px); /* Ajusta visualment l'alçada */
}

.main-nav li.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
}

/* ========================
   📂 SUBMENÚ DESPLEGABLE
   ======================== */
/* Submenú ocult per defecte */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%; /* Ja enganxat al pare */
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 0.5rem 0;
  border-radius: var(--radius-base);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 1001;
  min-width: 100%; /* coincideix amb el botó pare */
}

/* Triangle blanc decoratiu */
.main-nav li.menu-item-has-children > ul::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 21px;
  height: 21px;
  background: white;
  z-index: -1;
}

/* Apareix quan passem el ratolí o es fa focus (accessibilitat) */
.main-nav li.menu-item-has-children:hover > ul,
.main-nav li.menu-item-has-children:focus-within > ul {
  display: block;
}

/* 📑 ELEMENTS DEL SUBMENÚ */
.main-nav ul ul li,
.main-nav ul ul a {
  width: 100%;
  text-align: center;
  font-weight: normal;
  font-size: 0.95rem;
  transition: background-color 0.3s, color 0.3s;
}

.main-nav ul ul a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text);
}

.main-nav ul ul a:hover {
  background-color: var(--color-secundari);
  color: var(--color-primari);
}

/* ========================
   ♿ ACCESSIBILITAT: TECLAT
   ======================== */
.main-nav a:focus-visible {
  outline: 2px solid var(--color-primari);
  outline-offset: 2px;
  border-radius: var(--radius-base);
}

a:focus-visible {
  outline: 2px solid var(--color-terciari);
  outline-offset: 2px;
  border-radius: var(--radius-base);
}

/* ==============================================
   📱 MENÚ RESPONSIVE — ESTIL MILLORAT
   ============================================== */
/* 🍔 BOTÓ MENÚ HAMBURGUESA */
.menu-toggle {
  display: none;
  order: 1;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  z-index: 1001; /* per sobre del menú */
}

/* Icona de la hamburguesa: 3 línies */
.menu-toggle .hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: transform 0.3s ease;
}

.menu-toggle .hamburger::before {
  top: -10px;
  right: 0;
}

.menu-toggle .hamburger::after {
  top: 10px;
  right: 0;
}

/* ✖️ Estat "obert": la icona es converteix en creu */
.menu-toggle.open .hamburger {
  background-color: transparent;
}

.menu-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
  top: -7px;
}

.menu-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
  top: 7px;
}

/* ==============================================
   📱 MENÚ RESPONSIVE — VERSIÓ MÒBIL
   ============================================== */
@media (max-width: 768px) {

  .logo-container {
   justify-content: space-between;
   align-items: center;
   width: 100%;
  }

  .menu-toggle {
    padding-right: clamp(40vw, 42vw, 46vw);  /* min, preferit, màxim */
    display: block;
    z-index: 1001;
  }

  .main-nav,
  .main-nav ul,
  .main-nav li,
  .main-nav a {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
   box-shadow: none !important;
    z-index: 999;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .main-nav.open ul {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.4rem 0;
    font-size: 1.2rem;
    border-bottom: none;
  }

  .main-nav li.menu-item-has-children {
    display: block;
    text-align: center;
    width: 100%;
  }

  .main-nav li.menu-item-has-children > a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .main-nav ul ul {
    display: none;
    flex-direction: column;
    position: static !important;
    transform: none !important;
    background: transparent;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .main-nav ul ul li {
    width: 100%;
  }

  .main-nav li.submenu-open > ul {
    display: flex;
  }

  .main-nav ul ul a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    border: none;
    background-color: transparent;
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .main-nav ul ul a:hover {
    background-color: var(--color-secundari);
    color: var(--color-primari);
  }

  .main-nav li.menu-item-has-children > ul::before {
    display: none;
  }
}

/* ==============================================
   📌 SIDEBAR: Patrocinadors i Col·laboradors
   ============================================== */

/* ─── Contenidor general ─── */
.noticies-sidebar {
  /* Layout */
  position: relative;
  overflow: hidden;

  /* Box model */
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  margin-right: 3.5%;
  width: clamp(20rem, 25%, 25rem); /* 320px–400px */
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-base);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
}

/* ─── Animació de contorn ─── */
.noticies-sidebar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  box-sizing: border-box;
  border-top: 0.125rem solid var(--color-secundari);
  border-right: 0.125rem solid transparent;
  border-bottom: 0.125rem solid transparent;
  border-left: 0.125rem solid transparent;
  animation: border-trace 10s linear infinite;
  pointer-events: none;
}

@keyframes border-trace {
  0%    { width: 0;    height: 0;    }
  25%   { width:100%;  height: 0;    }
  25.1% { border-right-color: var(--color-secundari); }
  50%   { width:100%;  height:100%;  }
  50.1% { border-bottom-color: var(--color-secundari); border-top-color: transparent; }
  75%   { width: 0;    height:100%;  }
  75.1% { border-left-color: var(--color-secundari); border-right-color: transparent; }
  100%  { width: 0;    height: 0;    border-top-color: var(--color-secundari); border-left-color: transparent; }
}

/* ─── Cada bloc de soci ─── */
.sidebar-bloc {
  /* Box model */
  margin-bottom: 0;
}

/* ─── Títol de bloc ─── */
.sidebar-bloc h3 {
  /* Typografia */
  font-size: var(--fs-md);     /* 18px */
  line-height: var(--lh-tight);
  font-weight: 600;
  color: var(--color-primari);

  /* Box model */
  margin: 0 0 0.75rem;
  padding-bottom: 0.25rem;
  position: relative;
}

.sidebar-bloc h3::after {
  /* Decoració */
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 50%;
  height: 0.1875rem;           /* 3px */
  background: var(--color-secundari);
  border-radius: 0.125rem;     /* 2px */
}

/* ─── Llistat dins del bloc ─── */
.sidebar-bloc ul {
  /* Reset */
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-bloc ul li {
  /* Typografia & layout */
  font-size: var(--fs-sm);    /* 16px */
  line-height: var(--lh-normal);
  margin: 0.5rem 0;
}

.sidebar-bloc ul li a {
  /* Box model */
  display: inline-block;
  position: relative;
  
  /* Typografia */
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-bloc ul li a:hover {
  color: var(--color-primari);
}

.sidebar-bloc ul li a::after {
  /* Decoració hover */
  content: "";
  position: absolute;
  left: 0; bottom: -0.125rem;
  width: 0;
  height: 0.125rem;
  background: var(--color-secundari);
  transition: width 0.3s ease;
}

.sidebar-bloc ul li a:hover::after {
  width: 100%;
}

/* 🔄 Responsive */
@media (max-width: 64rem) { /* 1024px */
  .noticies-sidebar {
    margin: 1rem auto 1.5rem;
    width: clamp(18.75rem, 90%, 23.75rem); /* 300px–380px */
  }
}

/* ==============================================
   🎨 HERO DE BENVINGUDA
   ============================================== */

.section-wrapper {
  max-width: var(--container-max, 90rem);
  margin: 3.5rem auto;
  padding-left: var(--container-padding, 3.5%);
  padding-right: var(--container-padding, 3.5%);
  box-sizing: border-box;
}

.benvinguda {
  width: 100%;
  background-color: rgba(241, 213, 238, 0.92);
  border-radius: var(--radius-base, 0.625rem);
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 2rem 0;
  box-sizing: border-box;
}

/* Wrapper comú per imatge i títol */
.benvinguda-header {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.uab-afopa-logos {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  /* object-fit: contain; // només si vols controlar distorsió, normalment no cal */
}

.benvinguda h1 {
  width: 100%;
  font-size: clamp(1.3rem, 3vw, 1.8rem); /* Pots ajustar valors! */
  line-height: var(--lh-tight, 1.15);
  font-weight: 700;
  color: var(--color-primari, #77136b);
  margin: 0;
  text-align: center;
  /* No cal padding extra! */
}

/* Paràgraf */
.benvinguda p {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(var(--fs-sm, 1rem), 1vw + 0.5rem, var(--fs-md, 1.25rem));
  line-height: var(--lh-normal, 1.6);
  color: var(--color-text, #1a1a1a);
  text-align: left;
  padding-left: 1.5%;
  padding-right: 1.5%;
}


/* ========== CONTENIDOR UNIVERSAL DE SECCIÓ ========== */
.section-wrapper {
  max-width: var(--container-max, 90rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
  padding-left: var(--container-padding, 3.5%);
  padding-right: var(--container-padding, 3.5%);
  box-sizing: border-box;
}

/* ========== SECCIÓ DE FONS SUAU I BORDERS ========== */
.programacio,
.aules {
  width: 100%;
  background-color: rgba(241, 213, 238, 0.25);
  border-radius: var(--radius-base, 0.625rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  padding: 2rem 0;
}

/* ========== TÍTOLS ========== */
.programacio h2,
.aules h2 {
  position: relative;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-lg));
  line-height: var(--lh-tight);
  color: var(--color-primari);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s;
  display: block;
}
.programacio h2::after,
.aules h2::after {
  content: "";
  position: absolute;
  bottom: -0.375rem;
  left: 0;
  width: 0;
  height: 0.1875rem;
  background-color: var(--color-terciari);
  border-radius: 0.125rem;
  transition: width 0.3s ease;
}
.programacio h2:hover::after,
.aules h2:hover::after {
  width: 100%;
}
.programacio h2:hover,
.aules h2:hover {
  color: var(--color-terciari);
}

/* ========== LLISTES ========== */
.programacio ul,
.aules ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 48rem; /* fa la llista més lleugera i còmoda de llegir */
  text-align: left;
}
.programacio ul li,
.aules ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
}
.programacio ul li::before,
.aules ul li::before {
  content: "";
  color: var(--color-primari);
  line-height: var(--lh-normal);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 64rem) { /* 1024px */
  .programacio,
  .aules {
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
  }
  .programacio h2,
  .aules h2 {
    font-size: var(--fs-md);
  }
  .programacio ul li,
  .aules ul li {
    font-size: var(--fs-sm);
  }
}

/* ==============================================
   -----------CAROUSEL--------------------
   ============================================== */
.patrocinadors-carousel {
  margin: 4rem auto;
  text-align: center;
}

.patrocinadors-carousel h2 {
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-lg));
  line-height: var(--lh-tight);
  color: var(--color-primari);
  font-weight: 700;
}


/* 🎠 Estil per al carrusel Swiper */
.patrocinadors-swiper {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  overflow: hidden;
}

/* 📸 Slides individuals */
.patrocinadors-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  transition: transform 0.3s ease;
  
  padding: 0;        /* Afegeix aquesta línia */
  margin: 0;         /* Opcional, per si hi ha marges */
  box-sizing: border-box;
}

.swiper-slide {
    padding: 0 !important;
}

.patrocinadors-swiper .swiper-slide * {
  padding: 0;
  margin: 0;
}


.patrocinadors-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  padding: 0;
  transition: transform 0.3s ease;
  filter: grayscale(0.2);
  
  margin: 0; 
}

.patrocinadors-swiper .swiper-slide img:hover {
  transform: scale(1.05);
  filter: grayscale(0);
}

/* 🧱 Responsive per a diferents dispositius */
@media (max-width: 768px) {
  .patrocinadors-swiper .swiper-slide img {
    max-height: 120px;
  }
}

@media (max-width: 480px) {
  .patrocinadors-swiper .swiper-slide img {
    max-height: 100px;
  }
}

/* ==============================================
   📘 ESTILS PER A CURS ACTUAL
   ============================================== */

/* Títol de la secció */
.titol-cursos {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Box model */
  max-width: 90rem;             /* 1440px */
  margin-block: 3.5%;
  padding-inline: 5%;
  box-sizing: border-box;

  /* Tipografia */
  font-size: clamp(var(--fs-lg), 2vw + 0.5rem, var(--fs-xl));
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-primari);

  /* Text */
  text-align: center;
}

/* Wrapper de cursos */
.cursos-wrapper {
  /* Layout */
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;

  /* Box model */
  max-width: 87.5rem;           /* 1400px */
  margin: 0 auto;
  padding-block-end: 3.5%;
  box-sizing: border-box;
}

/* Columna principal de cursos */
.cursos-principal {
  /* Layout */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 3;
}

/* Card de curs */
.curs-horizontal {
  /* Layout */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;

  /* Box model */
  max-width: 100%;
  min-height: 15rem;            /* 240px */
  border: 0.1875rem solid var(--color-primari);
  border-radius: var(--radius-base);
  background-color: rgba(241, 213, 238, 0.25);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
  box-sizing: border-box;

  /* Transicions */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estil per a sortides */
.curs-horizontal.sortida {
  border-color: var(--color-sortida);
  background-color: rgba(76, 175, 80, 0.12); /* Verd translúcid */
}

.curs-horizontal.sortida .curs-titol,
.curs-horizontal.sortida .curs-essencial {
  color: var(--color-sortida);
}

.curs-horizontal.sortida .curs-titol a {
  color: var(--color-sortida);
}

.curs-horizontal.sortida .curs-titol a::after {
  background-color: var(--color-sortida);
}

/* Hover de la card */
.curs-horizontal:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Imatge del curs */
.curs-horizontal .curs-img {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Box model */
  flex-shrink: 0;
  max-width: 17.5rem;           /* 280px */
  
  padding: 1rem;
  border-radius: var(--radius-base);
  background-color: #fff;
  box-sizing: border-box;
}

.curs-horizontal .curs-img img {
  /* Layout */
  display: block;

  /* Box model */
  max-width: 100%;
  max-height: 15rem;
  box-sizing: border-box;

  /* Object fit */
  object-fit: contain;
  object-position: center;

  /* Background */
  background-color: #fff;
}

/* Contingut del curs */
.curs-horizontal .curs-contingut {
  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;

  /* Box model */
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Data del curs */
.curs-data {
  font-size: var(--fs-xs);      /* 14px */
  line-height: var(--lh-normal);
  color: var(--color-text);
  opacity: 0.7;
  display: none;
  margin-inline-end: 0.5rem;
}

/* Títol del curs */
.curs-titol {
  /* Typografia */
  font-size: clamp(var(--fs-sm), 1.5vw + 0.5rem, var(--fs-lg));
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primari);

  /* Box model */
  margin: 0;
  box-sizing: border-box;

  /* Text */
  text-align: left;
  position: relative;
}

/* Enllaç del títol */
.curs-titol a {
  /* Layout */
  display: inline-block;

  /* Colors i decoració */
  color: var(--color-primari);
  text-decoration: none;

  /* Positioning */
  position: relative;
}

/* Línia sota el títol */
.curs-titol a::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;             /* -4px */
  left: 0;
  width: 0;
  height: 0.1875rem;            /* 3px */
  background-color: var(--color-terciari);
  border-radius: 0.125rem;      /* 2px */
  transition: width 0.3s ease;
}

/* Hover línia */
.curs-titol a:hover::after {
  width: 100%;
}

.curs-essencial {
  font-weight: 700;
  color: var(--color-primari);
  font-size: clamp(var(--fs-xs), 1vw + 0.5rem, var(--fs-md));
  margin: 0 0 0.2rem 0;
}
.curs-descripcio-short {
  color: var(--color-text);
  font-size: clamp(var(--fs-xs), 0.7vw + 0.7rem, var(--fs-sm));
  line-height: var(--lh-normal);
  margin: 0;
}

/* Extracte del curs */
.curs-extracte {
  margin: 0 0 0.2rem 0;
  font-size: clamp(var(--fs-xs), 0.7vw + 0.7rem, var(--fs-sm));
  line-height: var(--lh-normal);
  color: var(--color-text);
  font-style: italic;
}

.cursos-wrapper em:empty,
.cursos-wrapper p:empty {
  display: none !important;
}

/* ==============================================
   🔄 Responsive
   ============================================== */
@media (max-width: 64rem) { /* 1024px */
  .cursos-wrapper {
    flex-direction: column;
  }
  .curs-horizontal {
    flex-direction: row;
  }
}

@media (max-width: 48rem) { /* 768px */
  .curs-horizontal {
    flex-direction: column;
    align-items: center;
  }
  .curs-horizontal .curs-img {
    /* Box model */
    width: 100%;
    max-width: 15rem;           /* 240px */
    margin: 1.5rem auto 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-base);
    box-sizing: border-box;
  }
  .curs-horizontal .curs-img img {
    /* Layout */
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;

    /* Box model */
    margin: 0;
    padding: 0.5rem;
  }
  .curs-horizontal .curs-contingut {
    padding: 1rem 1.5rem;
    text-align: left;
    box-sizing: border-box;
  }
}

/* ==============================================
   📰 ESTILS PER A RESUM NOTÍCIES A INICI
   ============================================== */

/* .section-wrapper ja controla el layout general */

.section-wrapper h2 {
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-lg));
  line-height: var(--lh-tight);
  color: var(--color-primari);
  font-weight: 700;
}

.noticia-titol {
  margin: 0 0 2rem 0;
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-lg));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
  text-align: left;
  display: block;
}

/* Grid de cards */
.cards-noticies-inici {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); /* 280px min */
  gap: 2rem;
  margin: 0;
  padding: 0;
}

/* Card individual */
.card-noticia {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  max-width: 43.75rem;               /* 700px (limita la mida de cada card) */
  width: 100%;
  max-height: 20rem;                 /* 320px */
  border-radius: var(--radius-base);
  background-color: rgba(241, 213, 238, 0.25);
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.card-noticia:hover {
  transform: translateY(-0.25rem);
}

/* Imatge de la card */
.card-noticia-img {
  flex-shrink: 0;
  width: 45%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  max-height: 20rem;
}

.card-noticia-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
}

/* Contingut de la card */
.card-noticia-contingut {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  max-height: 20rem;
  box-sizing: border-box;
}

/* Meta dades */
.card-noticia-contingut .noticia-data,
.card-noticia-contingut .noticia-categoria {
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  color: var(--color-text);
  opacity: 0.7;
}

/* Títol de la notícia */
.card-noticia-contingut .noticia-titol {
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
  margin: 0;
}
.card-noticia-contingut .noticia-titol a {
  color: inherit;
  text-decoration: none;
}

/* Extracte (ocult a home) */
.card-noticia-contingut .noticia-extracte {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
  max-height: 6.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

/* Botó “Llegir més” */
.boto-llegir-mes {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-base);
  background-color: var(--color-terciari);
  color: var(--color-text-secundari);
  text-decoration: none;
  text-align: center;
  max-width: fit-content;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}
.boto-llegir-mes:hover {
  background-color: var(--color-primari);
  color: var(--color-text-secundari);
}
.boto-llegir-mes::before {
  content: "⇨ ";
  font-size: 1.2em;
}

/* ─── Responsive cards ─── */
@media (max-width: 64rem) { /* ≤1024px */
  .card-noticia {
    max-height: 17.5rem;
  }
  .card-noticia-img {
    max-height: 17.5rem;
  }
  .card-noticia-contingut {
    max-height: 17.5rem;
  }
}

@media (max-width: 48rem) { /* ≤768px */
  .card-noticia {
    flex-direction: column;
    max-height: none;
  }
  .card-noticia-img {
    width: 100%;
    max-height: 15rem;
  }
  .card-noticia-contingut {
    max-height: none;
  }
  .card-noticia-contingut .noticia-extracte {
    display: none;
  }
}

/* ==============================================
   🎉 Estils per a la pàgina “Aules”
   ============================================== */

/* Contenidor principal */
.aules-page {
  /* Layout */
  width: 100%;
  max-width: 75rem;               /* 1200px */
  margin: 2rem auto;
  padding: 2rem 3.5%;
  
  /* Box model */
  box-sizing: border-box;
  
  /* Visual */
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-base);
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
}

/* ─── Introducció ─── */
.aules-page .aules-intro {
  /* Box model */
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
  
  /* Visual */
  background: rgba(241, 213, 238, 0.6);
  border-left: 0.375rem solid var(--color-primari); /* 6px */
  border-radius: var(--radius-base);
}

.aules-page .aules-intro h2 {
  /* Typography */
  margin: 0 0 1rem;
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
}

.aules-page .aules-intro p {
  /* Typography */
  margin-bottom: 1rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
}

/* ─── Bloc “Espais habituals” ─── */
.aules-page .espais-habituals {
  /* Box model */
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
  
  /* Visual */
  background: rgba(241, 213, 238, 0.25);
  border-left: 0.25rem dashed var(--color-primari); /* 4px */
  border-radius: var(--radius-base);
}

.aules-page .espais-habituals h3 {
  /* Typography */
  margin: 0 0 1rem;
  font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg));
  line-height: var(--lh-tight);
  color: var(--color-primari);
}

/* ─── Titulars generals ─── */
.aules-page h2 {
  /* Typography */
  margin: 2.5rem 0 1rem;
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-xl));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
  
  /* Visual */
  border-bottom: 0.1875rem solid var(--color-terciari); /* 3px */
  padding-bottom: 0.5rem;
}

.aules-page h3 {
  /* Typography */
  margin: 1.8rem 0 0.8rem;
  font-size: clamp(var(--fs-sm), 1.8vw, var(--fs-md));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
}

/* ─── Paràgrafs i llistes ─── */
.aules-page p {
  /* Typography */
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
}

/* ─── Imatges ─── */
.aules-page img {
  /* Box model */
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
 border-radius: var(--radius-base);
  box-sizing: border-box;
}

/* ─── Bloc d’aula individual ─── */
.aules-page .aula-item {
  /* Box model */
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
  
  /* Visual */
  background: rgba(241, 213, 238, 0.15);
  border-left: 0.25rem solid var(--color-primari); /* 4px */
  border-radius: var(--radius-base);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.aules-page .aula-item:hover {
  transform: translateY(-0.125rem); /* -2px */
  background-color: rgba(241, 213, 238, 0.25);
}

/* ─── CTA ─── */
.aules-page .aules-cta {
  /* Layout */
  text-align: center;
  margin: 3rem 0;
}

.aules-page .aules-cta a {
  /* Box model */
  display: inline-block;
  margin-left: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-base);
  box-sizing: border-box;

  /* Visual */
  background: var(--color-terciari);
  color: var(--color-text-secundari);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;

  /* Typography */
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: var(--lh-normal);
}

.aules-page .aules-cta a:hover {
  transform: translateY(-0.125rem);
  background: var(--color-primari);
}

/* ==============================================
   📌 PROPERES ACTIVITATS
   ============================================== */

.site-main.entrada-pagina {
  box-sizing: border-box;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0;
}

.titol-pagina {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  max-width: 90rem;
  
  margin-block: 3.5%;
  padding-inline: 5%;

  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-xl));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
  text-align: center;
}


/* CONTENIDOR GRID */
.properes-activitats .activitats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 3.5rem;
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
  border-radius: var(--radius-base);
  background: rgba(241, 213, 238, 0.25);
}

@media (max-width: 768px) {
  .properes-activitats .activitats-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD INDIVIDUAL */
.activitat-item {
  
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
}

.activitat-item img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .activitat-item img {
    height: auto;
    max-height: 500px;
  }
}

.activitat-item:hover {
  transform: scale(1.02);
}




/* ==============================================
   📰 ESTILS PER A NOTÍCIES A single.php
   ============================================== */

/* Wrapper de notícia completa */
.noticia-completa {
  /* Box model */
  max-width: 50rem;               /* 800px */
  margin: 3.5rem auto;
  padding: 2rem;
  box-sizing: border-box;

  /* Visual */
  background-color: rgba(241, 213, 238, 0.15);
  border-radius: var(--radius-base);
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.05);
}

/* Header de notícia */
.noticia-header {
  margin-bottom: 1rem;
  text-align: center;
}

.noticia-titol {
  margin: 0 0 0.5rem;
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-xl));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
}

.noticia-meta {
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  color: var(--color-text);
  opacity: 0.7;
}

/* Imatge de notícia */
.noticia-img-completa {
  /* Box model */
  width: 100%;
  max-width: 26.25rem;            /* 420px */
  max-height: 16.25rem;           /* 260px */
  margin: 1.5rem auto;
  overflow: hidden;
  box-sizing: border-box;

  /* Visual */
  border-radius: var(--radius-base);
  box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.07);
}

.noticia-img-completa img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16.25rem;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
}

/* Contingut de la notícia */
.noticia-contingut {
  /* Typography */
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--color-text);
}

/* Botó de retorn */
.boto-retorn {
  /* Box model */
  display: inline-block;
  padding: 0.6rem 1.5rem;
  margin-top: 1rem;
  border-radius: var(--radius-base);
  box-sizing: border-box;

  /* Visual */
  background-color: var(--color-terciari);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;

  /* Typography */
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: var(--lh-normal);
}

.boto-retorn:hover {
  background-color: var(--color-primari);
  color: var(--color-text-secundari);
}

.boto-retorn::before {
  content: "⇦ ";
  font-size: 1.2em;
}

/* ==============================================
   📰 ESTILS PER A PAGINA NOTÍCIES
   ==============================================------------------------------------------------------------------------------------------- */

/* Wrapper general */
.site-main.entrada-pagina {
  /* Box model */
  box-sizing: border-box;
  max-width: 90rem;                  /* 1440px */
  margin: 0 auto;
  padding: 0;
}

/* Títol de la secció */
.titol-pagina {
  /* Layout */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Box model */
  box-sizing: border-box;
  max-width: 90rem;                  /* 1440px */
  margin-block: 3.5%;
  padding-inline: 5%;

  /* Tipografia */
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-xl));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);

  /* Text */
  text-align: center;
}

/* Contenidor de notícies */
.noticies-wrapper {
  /* Layout */
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;

  /* Box model */
  box-sizing: border-box;
  max-width: 87.5rem;                /* 1400px */
  margin: 0 auto;
  padding-block-end: 3.5%;
}

/* Columna principal */
.noticies-principal {
  /* Layout */
  display: flex;
  flex-direction: column;
  gap: 2rem;

  /* Flex */
  flex: 3;
}

/* Card de notícia horitzontal */
.noticia-horizontal {
  /* Layout */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;

  /* Box model */
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 15rem;                 /* 240px */
  border-radius: var(--radius-base);
  background-color: rgba(241, 213, 238, 0.25);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);

  /* Transicions */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.noticia-horizontal:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Imatge de la notícia */
.noticia-horizontal .noticia-img {
  /* Layout */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  /* Box model */
  box-sizing: border-box;
  flex-shrink: 0;
  width: 45%;
  max-width: 25rem;                  /* 400px */
  max-height: 20rem;                 /* 320px */
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.noticia-horizontal .noticia-img img {
  /* Layout + Box model */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;

  /* Object fit */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Contingut de la notícia */
.noticia-horizontal .noticia-contingut {
  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;

  /* Box model */
  box-sizing: border-box;
  flex: 1;
  padding: 1.5rem;
}

/* Meta dades */
.noticia-data,
.noticia-categories {
  /* Typography */
  font-size: var(--fs-xs);           /* 14px */
  line-height: var(--lh-normal);
  color: var(--color-text);

  /* Visual */
  opacity: 0.7;

  /* Box model */
  display: inline-block;
  margin-inline-end: 0.5rem;
}

/* Títol de la notícia */
.noticia-titol {
  /* Layout */
  position: relative;

  /* Box model */
  box-sizing: border-box;
  margin: 0;

  /* Typography */
  font-size: clamp(var(--fs-sm), 1.5vw + 0.5rem, var(--fs-md));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
  text-align: left;
}
.noticia-titol a {
  /* Layout */
  display: block;

  /* Colors */
  color: inherit;
  text-decoration: none;

  /* Position */
  position: relative;
}
.noticia-titol a::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;                  /* -4px */
  left: 0;
  width: 0;
  height: 0.1875rem;                 /* 3px */
  box-sizing: border-box;
  background-color: var(--color-terciari);
  border-radius: 0.125rem;
  transition: width 0.3s ease;
}
.noticia-titol a:hover::after {
  width: 100%;
}

/* Extracte (opcional) */
.noticia-extracte {
  /* Typography */
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 64rem) {           /* ≤1024px */
  .noticies-wrapper {
    flex-direction: column;
  }
  .noticia-horizontal {
    flex-direction: row;
  }
}

@media (max-width: 48rem) {           /* ≤768px */
  .noticia-horizontal {
    flex-direction: column;
  }
  .noticia-horizontal .noticia-img {
    /* Box model */
    width: 100%;
    max-height: 15rem;               /* 240px */
  }
  .noticia-horizontal .noticia-contingut {
    padding: 1rem 1.2rem;
  }
}

/* ==============================================
   📞 CONTACTE
   ============================================== */

.contacte-page {
  max-width: var(--container-max, 90rem);
  margin: 0 auto 4rem auto;
  padding-left: var(--container-padding, 3.5%);
  padding-right: var(--container-padding, 3.5%);
  box-sizing: border-box;
}

.contacte-page .titol-pagina {
  font-size: clamp(var(--fs-md), 2vw + 0.5rem, var(--fs-xl));
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--color-primari);
  text-align: center;
  margin-bottom: 2rem;
}

.contacte-info p {
  margin: 1rem 0;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.contacte-info a {
  color: var(--color-primari);
  text-decoration: none;
  font-weight: 600;
}

.contacte-info a:hover {
  text-decoration: underline;
}

.contacte-mapa iframe {
  border-radius: var(--radius-base);
  margin-top: 2rem;
}


/* ==============================================
   🗂️ CATEGORY.PHP – DISSENY D’ARXIU DE CATEGORIES
   ============================================== */

/* Wrapper de llistat de categories */
.arxiu-categoria {
  /* Box model */
  box-sizing: border-box;
  max-width: 90rem;                  /* 1440px */
  margin: 0 auto;
  padding: 0;
}

/* ==============================================
   📌 PEU DE PÀGINA (FOOTER)
   ============================================== */

/* Contenidor principal del footer */
.main-footer {
  /* Box model */
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding-block: 1.5625rem;         /* 25px */
  padding-inline: 3.5%;

  /* Visual */
  background-color: var(--color-primari);
}

/* Contenidor de columnes */
.footer-container {
  /* Layout */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;                      /* 20px */

  /* Box model */
  box-sizing: border-box;
  max-width: 90rem;                  /* 1440px */
  margin: 0 auto;
  padding-block: 1.5625rem;          /* 25px */
  padding-inline: 3.5%;
}

/* Columnes individuals */
.footer-column {
  /* Layout */
  flex: 1 1 15.625rem;               /* 250px */
}

/* Títol de columna */
.footer-title {
  /* Box model */
  box-sizing: border-box;
  margin-bottom: 0.3125rem;          /* 5px */
  padding-bottom: 0;

  /* Typography */
  font-size: var(--fs-lg);           /* 20px */
  line-height: 3;
  font-weight: 700;
  color: var(--color-secundari);

  /* Layout */
  display: inline-block;
  position: relative;
}

/* Indicador sota títol */
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;                    /* 8px */
  left: 25px;
  transform: translateX(-50%);
  width: 3.125rem;                   /* 50px */
  height: 0.25rem;                   /* 4px */
  background-color: var(--color-secundari);
  box-sizing: border-box;
}

/* Informació de contacte */
.footer-phone,
.footer-mail,
.footer-facebook {
  /* Layout */
  display: flex;
  align-items: center;
  gap: 1.25rem;                      /* 20px */

  /* Box model */
  margin-block-end: 0.6rem;          /* 0.6rem ~ 9.6px */
}

/* Icones de contacte */
.footer-phone img,
.footer-mail img {
  /* Box model */
  width: 1rem;                    /* 20px */
  height: 1rem;
  object-fit: contain;
  box-sizing: border-box;
}

.footer-facebook img {
  /* Box model */
  width: 1rem;                    /* 20px */
  height: 1rem;
  object-fit: contain;
  box-sizing: border-box;
  
}

/* Text i enllaços de columna */
.footer-column p,
.footer-column a {
  /* Typography */
  line-height: var(--lh-normal);
  font-size: var(--fs-sm);           /* 16px */
  font-weight: 400;
  color: #ffffff;

  /* Box model */
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  /* Visual */
  text-decoration: none;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Estat hover d’enllaç */
.footer-column a:hover {
  font-weight: 700;
  color: var(--color-terciari);
}

/* Barra superior del footer bottom */
.footer-bottom {
  /* Box model */
  box-sizing: border-box;
  max-width: 90rem;                  /* 1440px */
  margin: 2rem auto 0;
  padding-block: 1rem;
  padding-inline: 5%;

  /* Layout */
  border-top: 0.125rem solid #ffffff; /* 2px */
  text-align: center;
}

/* Text del footer bottom */
.footer-bottom,
.footer-credit {
  /* Typography */
  font-size: var(--fs-xs);           /* 14px */
  line-height: var(--lh-normal);
  font-weight: 600;
  color: #ffffff;
}

/* Enllaç de crèdit */
.footer-credit {
  /* Layout */
  display: inline-block;

  /* Box model */
  padding: 0;
  margin: 0;
  box-sizing: border-box;

  /* Visual */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit:hover {
  color: var(--color-terciari);
}

/* Enllaços legals */
.footer-legal {
  /* Box model */
  margin-top: 0.5rem;
  box-sizing: border-box;
}

.footer-legal a {
  /* Typography */
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  color: #ffffff;

  /* Box model */
  margin-inline: 0.5rem;
  padding: 0;
  box-sizing: border-box;

  /* Visual */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--color-terciari);
}

/* Divisors blancs */
.divider {
  /* Visual */
  color: #ffffff;
}

