/* =========================================================
   PUBLIC — Estils específics de la zona pública
   Depèn de base.css (variables --ac-*).
   ========================================================= */

/* ----- Cos: padding lateral (específic zona pública) ----- */
body {
  padding: 0 1rem;
}

/* ----- Contenidor centrat (capçalera, main, peu) ----- */
header, main, footer {
  max-width: var(--ac-amplada-max);
  margin: 0 auto;
}

/* ----- Capçalera ----- */
header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--ac-color-vora);
}

header p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* ----- Contingut principal ----- */
main {
  padding: 2rem 0;
}

/* ----- Peu de pàgina ----- */
footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--ac-color-vora);
  font-size: 0.8rem;
  color: var(--ac-color-text-suau);
  text-align: center;
}

/* ----- Estat buit (sense esdeveniments) ----- */
.buit {
  color: #777;
  font-style: italic;
}

/* ----- Llistat d'esdeveniments ----- */
.llista-esdeveniments {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ----- Tarja d'esdeveniment ----- */
.esdeveniment {
  padding: 1.2rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.esdeveniment:last-child {
  border-bottom: none;
}

.esdeveniment__data {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.esdeveniment__titol {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--ac-color-text);
}

.esdeveniment__meta {
  font-size: 0.9rem;
  color: #666;
}

.esdeveniment__categoria {
  text-transform: capitalize;
}

/* ----- Pàgina 404 ----- */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.error-404__numero {
  font-size: 6rem;
  font-weight: 700;
  color: var(--ac-color-text-suau);
  line-height: 1;
}

.error-404__missatge {
  margin: 0;
}

.error-404__tornar {
  margin: 0;
}

/* ----- Agrupació temporal (aquesta setmana / propera / pròximament) ----- */
.seccio-temporal {
  margin-top: 2.5rem;
}

.seccio-temporal:first-of-type {
  margin-top: 0;
}

.seccio-temporal__titol {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ac-color-text-suau);
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e0e0;
}

/* ----- Detall d'esdeveniment ----- */
.detall-esdeveniment {
  margin-top: 1.5rem;
}

.detall-esdeveniment__tornar {
  margin: 0 0 2rem;
  font-size: 0.9rem;
}

.detall-esdeveniment__tornar a {
  color: var(--ac-color-text-suau);
  text-decoration: none;
}

.detall-esdeveniment__tornar a:hover {
  text-decoration: underline;
}

.detall-esdeveniment__capcalera {
  margin-bottom: 2rem;
}

.detall-esdeveniment__categoria {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--ac-color-text-suau);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detall-esdeveniment__titol {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
}

.detall-esdeveniment__data {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ac-color-text);
}

.detall-esdeveniment__cartell {
  margin-bottom: 2rem;
}

.detall-esdeveniment__cartell img {
  width: 100%;
  height: auto;
  display: block;
}

.detall-esdeveniment__meta {
  margin-bottom: 2rem;
}

.detall-esdeveniment__meta p {
  margin: 0 0 0.5rem;
}

.detall-esdeveniment__descripcio {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.detall-esdeveniment__descripcio p {
  margin: 0 0 1rem;
}

.detall-esdeveniment__descripcio h2,
.detall-esdeveniment__descripcio h3 {
  margin: 1.5rem 0 0.75rem;
}

.detall-esdeveniment__descripcio ul,
.detall-esdeveniment__descripcio ol {
  margin: 0 0 1rem 1.5rem;
}

.detall-esdeveniment__descripcio li {
  margin-bottom: 0.25rem;
}

.detall-esdeveniment__detalls {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ac-color-vora);
}

.detall-esdeveniment__detalls p {
  margin: 0 0 0.5rem;
}
