/* ════════════════════════════════════════════
   CC EVENTS SECTION
   ════════════════════════════════════════════ */

.cc-events {
  position: relative;
  background: var(--cc-dark);
  padding: 108px 0 120px;
}

.cc-events::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
.cc-events__header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
  padding: 0 40px;
}

.cc-events__eyebrow {
  font-family: var(--cc-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cc-taupe);
  margin-bottom: 20px;
}

.cc-events__heading {
  font-family: var(--cc-font-heading);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--cc-cream);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.cc-events__rule {
  width: 36px;
  height: 1px;
  background: var(--cc-taupe);
  opacity: 0.5;
  margin: 0 auto;
}

/* ── List ── */
.cc-events__list {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Card ── */
.cc-events__card {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 360px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(168,149,122,0.12);
  transition: border-color 0.3s ease;
}

.cc-events__card:hover {
  border-color: rgba(168,149,122,0.3);
}

/* ── Image ── */
.cc-events__img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.cc-events__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cc-events__card:hover .cc-events__img {
  transform: scale(1.04);
}

.cc-events__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(26,20,16,0.5));
}

/* ── Body ── */
.cc-events__body {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Meta ── */
.cc-events__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cc-events__date {
  font-family: var(--cc-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cc-taupe);
  background: rgba(168,149,122,0.1);
  border: 1px solid rgba(168,149,122,0.25);
  padding: 6px 14px;
}

.cc-events__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(208,196,176,0.55);
}

/* ── Title ── */
.cc-events__title {
  font-family: var(--cc-font-heading);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 18px;
}

.cc-events__title a {
  color: var(--cc-cream);
  text-decoration: none;
  transition: color 0.25s ease;
}

.cc-events__title a:hover {
  color: var(--cc-taupe);
}

/* ── Excerpt ── */
.cc-events__excerpt {
  font-family: var(--cc-font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(208,196,176,0.65);
  margin-bottom: 0;
  flex: 1;
}

/* ── Divider ── */
.cc-events__divider {
  width: 100%;
  height: 1px;
  background: rgba(168,149,122,0.15);
  margin: 28px 0;
}

/* ── Footer ── */
.cc-events__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cc-events__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-events__price {
  font-family: var(--cc-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cc-cream);
  letter-spacing: 0.3px;
}

.cc-events__capacity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(168,149,122,0.7);
  letter-spacing: 0.5px;
}

.cc-events__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--cc-taupe);
  color: var(--cc-cream);
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.cc-events__cta:hover {
  background: var(--cc-cream);
  color: var(--cc-dark);
  gap: 14px;
}

/* ════════════════════════
   SCROLL ANIMÁCIÓ
   ════════════════════════ */

.cc-events__header,
.cc-events__card {
  opacity: 0;
  transform: translateY(20px);
}

.cc-events__header {
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.1s;
}

.cc-events__card--1 { transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: 0.25s; }
.cc-events__card--2 { transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: 0.4s; }
.cc-events__card--3 { transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: 0.55s; }

.cc-events.is-visible .cc-events__header,
.cc-events.is-visible .cc-events__card {
  opacity: 1;
  transform: none;
}

/* ════════════════════════
   RESPONSIVE
   ════════════════════════ */

@media (max-width: 1100px) {
  .cc-events__card { grid-template-columns: 380px 1fr; }
  .cc-events__body { padding: 36px 40px; }
}

@media (max-width: 860px) {
  .cc-events__card {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
  }
  .cc-events__body { padding: 32px; }
}

@media (max-width: 600px) {
  .cc-events { padding: 72px 0 88px; }
  .cc-events__header { margin-bottom: 48px; padding: 0 24px; }
  .cc-events__list { padding: 0 20px; }
  .cc-events__card { grid-template-rows: 220px auto; }
  .cc-events__body { padding: 24px; }
  .cc-events__footer { flex-direction: column; align-items: flex-start; }
}
