/* =========================================================
   TALLERS ESPECÍFICS — VIU AMB COR
   Full d'estils compartit per a les pàgines taller_bloc*.html
   Es carrega després de ../styles.css
========================================================= */

.menu a.active {
  color: var(--primary);
}

.menu a.active::after {
  width: 100%;
}

/* HERO */

.hero.hero-workshop {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  margin-top: -110px;
  padding: calc(78px + 5rem) 0 8.5rem;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(252, 251, 248, 0.95) 0%,
      rgba(252, 251, 248, 0.86) 36%,
      rgba(252, 251, 248, 0.46) 61%,
      rgba(252, 251, 248, 0.10) 100%
    ),
    url("../img/bloc1.png") center / cover no-repeat;
  filter: none;
}

.hero.hero-workshop::before,
.hero.hero-workshop::after {
  content: none;
}

.hero-workshop__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 56px;
}

.hero-workshop__content {
  max-width: 720px;
}

.hero-workshop h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--primary-strong);
  font-size: clamp(3.8rem, 6.5vw, 6.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-workshop__separator {
  display: block;
  width: 54px;
  height: 3px;
  margin: 0 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #759d3f 0%, #91b55b 100%);
}

.hero-workshop__quote {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--primary);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-style: italic;
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-workshop .lead {
  max-width: 650px;
  margin: 0;
  color: #405a54;
  font-size: 1.12rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-workshop__info {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 390px;
  justify-self: end;
  padding: 26px;
  border: 1px solid rgba(47, 93, 80, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-workshop__info-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.hero-workshop__info-item + .hero-workshop__info-item {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-workshop__info-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(47, 93, 80, 0.10);
  border-radius: 50%;
  background: rgba(223, 236, 230, 0.72);
  color: var(--primary);
  font-size: 1rem;
}

.hero-workshop__info-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-workshop__info-item span {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-workshop__info-item strong {
  color: var(--primary-strong);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero-workshop .hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.hero-workshop .hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-workshop .hero-wave path {
  fill: var(--bg);
}

.hero-workshop .hero-wave__icon {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 34px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(47, 93, 80, 0.12));
}

/* INTRODUCCIÓ */

.workshop-intro {
  padding-top: 62px;
  background: var(--bg);
}

.workshop-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 72px;
}

.workshop-intro__text {
  padding-top: 46px;
}

.workshop-intro__text p {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.82;
  text-wrap: pretty;
}

/* CINC PUNTS */

.workshop-path {
  background:
    linear-gradient(
      180deg,
      rgba(245, 248, 246, 0.72),
      rgba(252, 251, 248, 0.38)
    );
}

.workshop-path__head {
  max-width: 820px;
  margin-bottom: 42px;
}

.workshop-path__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.workshop-path__item {
  position: relative;
  display: flex;
  flex: 1 1 calc(33.333% - 24px);
  flex-direction: column;
  min-width: 260px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94),
      rgba(248, 246, 241, 0.82)
    );
  box-shadow: var(--shadow-sm);
}

.workshop-path__item--final {
  flex-basis: calc(50% - 24px);
}

.workshop-path__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f5d50, #c48a4a);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.workshop-path__item h3 {
  margin-bottom: 10px;
  color: var(--primary-strong);
  font-size: 1.12rem;
  line-height: 1.3;
}

.workshop-path__item p {
  margin-bottom: 0;
  font-size: 0.97rem;
  line-height: 1.72;
}

/* TRES JORNADES */

.workshop-days__head {
  max-width: 840px;
  margin-bottom: 38px;
}

.workshop-days__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.workshop-days__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  width: 0;
}

.workshop-days__number {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(47, 93, 80, 0.12);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workshop-days__card h3 {
  margin-bottom: 12px;
  color: var(--primary-strong);
  font-size: 1.16rem;
  line-height: 1.3;
}

.workshop-days__card p {
  margin-bottom: 0;
  line-height: 1.72;
}

/* FACILITADORS */

.workshop-facilitators {
  background:
    linear-gradient(
      180deg,
      rgba(248, 246, 241, 0.58),
      rgba(252, 251, 248, 0.28)
    );
}

.workshop-facilitators__head {
  max-width: 840px;
  margin-bottom: 36px;
}

.workshop-facilitators__grid {
  align-items: stretch;
}

.workshop-facilitators .facilitator-card {
  min-height: 100%;
}

.workshop-facilitators .person-photo {
  width: 100px;
  height: 100px;
}

/* INFORMACIÓ PRÀCTICA */

.workshop-practical__head {
  max-width: 840px;
  margin-bottom: 38px;
}

.workshop-practical__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.workshop-practical__item {
  display: flex;
  flex: 1 1 calc(33.333% - 20px);
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.workshop-practical__item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(223, 236, 230, 0.72);
  color: var(--primary);
  font-size: 1rem;
}

.workshop-practical__item span {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workshop-practical__item strong {
  color: var(--primary-strong);
  font-size: 1rem;
  line-height: 1.5;
}

/* INSCRIPCIÓ */

.workshop-registration {
  padding-top: 72px;
  padding-bottom: 72px;
}

.workshop-registration__box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 48px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), transparent 26%),
    linear-gradient(135deg, #2f5d50 0%, #315d67 48%, #254b41 100%);
  box-shadow: var(--shadow-lg);
}

.workshop-registration__content h2,
.workshop-registration__content p {
  color: #fff;
}

.workshop-registration__content p {
  max-width: 660px;
  opacity: 0.92;
}

.workshop-registration__content .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.workshop-registration__content .button.secondary {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.92);
}

.workshop-registration__note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.workshop-registration__note i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.15rem;
}

.workshop-registration__note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* FAQ */

.workshop-faq__list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-top: 36px;
}

.workshop-faq__item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.workshop-faq__item summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  color: var(--primary-strong);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.workshop-faq__item summary::-webkit-details-marker {
  display: none;
}

.workshop-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.workshop-faq__item[open] summary::after {
  content: "−";
}

.workshop-faq__item p {
  max-width: 74ch;
  margin: 0;
  padding: 0 22px 22px;
  line-height: 1.75;
}

/* TANCAMENT */

.workshop-closing {
  padding-top: 40px;
  padding-bottom: 96px;
}

.workshop-closing__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  text-align: center;
}

.workshop-closing__content h2 {
  margin-bottom: 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: pretty;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero.hero-workshop {
    min-height: 720px;
    padding: calc(78px + 4.5rem) 0 8rem;
  }

  .hero-workshop__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 38px;
  }

  .hero-workshop h1 {
    font-size: clamp(3.7rem, 6vw, 5.5rem);
  }

  .workshop-intro__grid {
    gap: 42px;
  }
}

@media (max-width: 900px) {
  .hero.hero-workshop {
    min-height: auto;
    padding: calc(72px + 6rem) 0 8rem;
  }

  .hero-workshop__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-workshop__info {
    max-width: 680px;
    justify-self: start;
  }

  .workshop-intro__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workshop-intro__text {
    padding-top: 0;
  }

  .workshop-registration__box {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .workshop-path__item,
  .workshop-path__item--final {
    flex-basis: calc(50% - 24px);
  }
}

@media (max-width: 760px) {
  .workshop-days__grid {
    flex-direction: column;
  }

  .workshop-days__card {
    width: 100%;
  }

  .workshop-practical__item {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .hero.hero-workshop {
    margin-top: -88px;
    padding: calc(72px + 4.5rem) 0 5.5rem;
    background:
      linear-gradient(
        180deg,
        rgba(252, 251, 248, 0.68) 0%,
        rgba(252, 251, 248, 0.86) 45%,
        rgba(252, 251, 248, 0.98) 100%
      ),
      url("../img/bloc1.png") center / cover no-repeat;
  }

  .hero-workshop h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .hero-workshop__quote {
    font-size: 1.35rem;
  }

  .hero-workshop .lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-workshop__info {
    padding: 22px;
  }

  .hero-workshop .hero-wave {
    height: 0;
  }

  .workshop-path__item,
  .workshop-path__item--final,
  .workshop-practical__item {
    flex-basis: 100%;
    min-width: 0;
  }

  .workshop-registration__box {
    padding: 28px 22px;
  }

  .workshop-registration__note {
    grid-template-columns: 1fr;
  }

  .workshop-faq__item summary {
    padding: 18px 50px 18px 18px;
  }

  .workshop-faq__item p {
    padding: 0 18px 18px;
  }

  .workshop-closing {
    padding-bottom: 72px;
  }
}

@media (max-width: 420px) {
  .hero-workshop__info-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-workshop__info-item i {
    width: 38px;
    height: 38px;
  }

  .workshop-path__item,
  .workshop-days__card,
  .workshop-practical__item {
    padding: 22px;
  }

  .workshop-registration__content .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workshop-registration__content .button {
    width: 100%;
  }
}
