/* Cabecalho editorial da oficina aberta. O menu global permanece intacto. */
.oficina-detail-page {
  --oficina-green: #2f9250;
  --oficina-dark: #123b2d;
  --oficina-orange: #ef8735;
  --oficina-yellow: #f4d84a;
  --oficina-paper: #fffdf8;
  background: #f3f1ea;
}

.oficina-detail-page .course-header {
  position: relative;
  background-color: var(--oficina-dark) !important;
  background-position: center center !important;
}

.oficina-detail-page .course-header:not(.has-bg) {
  background:
    radial-gradient(circle at 82% 26%, rgba(244, 216, 74, .24) 0 12%, transparent 12.4%),
    linear-gradient(128deg, #123b2d 0%, #256643 100%) !important;
}

.oficina-detail-page .course-header::before {
  background: linear-gradient(90deg, rgba(5, 28, 20, .82) 0%, rgba(5, 28, 20, .54) 52%, rgba(5, 28, 20, .22) 100%) !important;
}

.oficina-detail-page .course-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 7px;
  background: linear-gradient(90deg, var(--oficina-green) 0 33.333%, var(--oficina-yellow) 33.333% 66.666%, var(--oficina-orange) 66.666% 100%);
}

.oficina-detail-page .course-header__content {
  justify-content: center !important;
}

.course-breadcrumb {
  width: auto;
  max-width: 100%;
  margin-bottom: clamp(24px, 4vw, 42px) !important;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(9, 38, 27, .36);
  backdrop-filter: blur(8px);
}

.course-breadcrumb a,
.course-breadcrumb span,
.course-breadcrumb .ic {
  font-size: .68rem !important;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.course-breadcrumb span {
  max-width: min(42vw, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-header__title {
  width: 100%;
  max-width: 940px;
  margin-right: auto;
  margin-left: 0;
  align-self: flex-start;
  text-align: left !important;
}

.course-header__title .site-detail-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 15px;
  color: var(--oficina-yellow);
}

.course-header__title h1 {
  text-wrap: balance;
}

.course-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 22px 0 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: var(--oficina-green);
  box-shadow: 0 8px 22px rgba(18, 59, 45, .24);
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.course-surface.site-page-surface {
  margin-bottom: clamp(56px, 8vw, 104px) !important;
}

.course-body {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  color: #445149;
  font-size: 1rem;
  line-height: 1.7;
}
.course-body a {
  color: var(--oficina-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.course-body img {
  max-width: 100%;
  height: auto !important;
  border-radius: var(--arte-radius-md, 16px);
}

/* Tema estruturado das oficinas: professor, apresentacao e turmas. */
.oficina-tema{display:grid;gap:30px}
.oficina-kicker{display:block;margin-bottom:7px;color:var(--oficina-green);font-size:.68rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.oficina-professor{display:flex;align-items:center;gap:24px;padding:24px;border:1px solid #e1e8e3;border-radius:var(--arte-radius-lg,24px);background:#f6faf7}
.oficina-professor__photo{display:flex;align-items:center;justify-content:center;width:116px;height:116px;flex:0 0 116px;overflow:hidden;border:5px solid #fff;border-radius:50%;background:#e8f1eb;box-shadow:0 12px 28px rgba(18,59,45,.12);color:var(--oficina-green);font-size:44px;font-weight:300}
.oficina-professor__photo img{width:100%;height:100%!important;object-fit:cover;object-position:center top;border-radius:50%}
.oficina-professor h2,.oficina-turmas__heading h2{margin:0;color:#202a24;font-size:clamp(1.35rem,2vw,1.7rem);letter-spacing:-.025em;line-height:1.15}
.oficina-sobre{padding:24px 26px;border-left:6px solid var(--oficina-orange);border-radius:var(--arte-radius-md,16px);background:#fff8ee;color:#4c5951;white-space:normal}
.oficina-sobre p{margin:0 0 .9em;padding:0;font-size:inherit;line-height:inherit;text-align:justify}.oficina-sobre p:last-child{margin-bottom:0}.oficina-detalhes p{text-align:justify}
.oficina-turmas{padding-top:4px}.oficina-turmas__heading{margin-bottom:17px}.oficina-turmas__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.oficina-turma{padding:20px 20px 18px;border:1px solid rgba(18,59,45,.09);border-top:6px solid var(--turma-cor,#2f9250);border-radius:var(--arte-radius-md,16px);background:var(--turma-fundo,#fff);box-shadow:0 10px 24px rgba(27,49,36,.07)}
.oficina-turma--azul{border-top-color:#188ec4;background:#f0f8fc}.oficina-turma--amarelo{border-top-color:#e0ae21;background:#fff9e7}.oficina-turma--verde{border-top-color:#2eaa61;background:#effaf3}.oficina-turma--coral{border-top-color:#e67562;background:#fff2ef}
.oficina-turma h3{margin:0 0 12px;color:#202a31;font-size:1.05rem}.oficina-turma p{margin:5px 0;color:#4c5961;font-size:.94rem;line-height:1.45}.oficina-turma__description{margin-top:12px!important;padding-top:10px;border-top:1px solid rgba(0,0,0,.1)}
.oficina-turma__origin{display:block;margin-bottom:5px;color:#6d7771;font-size:.66rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:640px){.oficina-professor{align-items:flex-start;gap:14px}.oficina-professor__photo{width:82px;height:82px;flex-basis:82px}.oficina-professor h2,.oficina-turmas__heading h2{font-size:1.2rem}.oficina-turmas__grid{grid-template-columns:1fr}}
/* Um ou mais professores no mesmo destaque. */
.oficina-professor__lista{flex:1;min-width:0}.oficina-professor__item{display:flex;align-items:center;gap:24px;min-width:0}
.oficina-professor.is-multiplo{display:block}.oficina-professor.is-multiplo .oficina-professor__lista{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px 28px;margin-top:10px}
.oficina-professor.is-multiplo .oficina-professor__item{gap:18px}.oficina-professor.is-multiplo .oficina-professor__photo{width:92px;height:92px;flex-basis:92px;font-size:34px}.oficina-professor.is-multiplo h2{font-size:clamp(1.1rem,1.6vw,1.35rem)}
@media(max-width:640px){.oficina-professor__item{gap:14px}.oficina-professor.is-multiplo .oficina-professor__photo{width:72px;height:72px;flex-basis:72px;font-size:28px}}
.accordion {
  border-top: 1px solid #e0e0e0;
  margin-top: 32px;
}
.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 1rem;
  color: #222;
  cursor: pointer;
  position: relative;
}
.accordion-trigger::after {
  content: "+"; 
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #888;
  transition: transform 0.2s;
}
.accordion-trigger.active::after {
  content: "-";
  color: #FF9800;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}
.accordion-trigger.active + .accordion-panel {
  max-height: 400px;
  padding: 12px 0 24px;
}
.accordion-panel p {
  margin: 0;
  padding-left: 4px;
  color: #555;
}

/* 4) Botao de inscricao */
.enroll-wrap {
  text-align: center;
  margin-top: 28px;
}
.btn-enroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 240px;
  border: 0;
  background: #f7941d;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.btn-enroll:hover,
.btn-enroll:focus {
  background: #dc7d12;
}

.has-enroll-modal {
  overflow: hidden;
}
.enroll-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .22s ease;
}
.enroll-modal.is-open,
.enroll-modal.is-closing {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 6vh 16px;
}
.enroll-modal.is-open {
  opacity: 1;
}
.enroll-modal.is-closing {
  pointer-events: none;
}
.enroll-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.62);
}
.enroll-modal__dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: min(88vh, 820px);
  margin: 0 auto;
  overflow: auto;
  background: #fff;
  border-radius: var(--arte-radius-lg, 24px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
  padding: clamp(24px, 4vw, 38px);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .22s ease, transform .22s ease;
}
.enroll-modal.is-open .enroll-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.enroll-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--arte-radius-pill, 999px);
  background: #f4f4f2;
  color: #222;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.enroll-modal__close:hover,
.enroll-modal__close:focus {
  background: #f7941d;
  color: #fff;
}
.enroll-modal__close:disabled,
.enroll-modal.is-submitting button[data-close-enroll] {
  cursor: wait;
  opacity: .55;
  pointer-events: none;
}
.enroll-modal.is-submitting .enroll-modal__overlay {
  pointer-events: none;
}
.enroll-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #39a852;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.enroll-modal__header h2 {
  margin: 0;
  padding-right: 34px;
  color: #202020;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.18;
}
.enroll-modal__header p {
  margin: 10px 0 24px;
  color: #606060;
}
.u-sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}
.enroll-form__required-note {
  margin: -12px 0 16px;
  color: #5b5b5b;
  font-size: .84rem;
  font-weight: 700;
}
.enroll-form__required-note > span,
.enroll-form__required {
  color: #b00020;
  font-weight: 900;
}
.enroll-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.enroll-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #333;
  font-weight: 700;
}
.enroll-form span {
  font-size: .92rem;
}
.enroll-form input,
.enroll-form select,
.enroll-form textarea {
  width: 100%;
  border: 1px solid #d9d9d3;
  border-radius: var(--arte-radius-sm, 10px);
  background: #fff;
  color: #222;
  font: inherit;
  font-weight: 500;
  padding: 12px 13px;
  outline: none;
}
.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
  border-color: var(--arte-focus, #1a6277);
  box-shadow: var(--arte-focus-ring, 0 0 0 3px rgba(26,98,119,.15));
}
.enroll-form input[aria-invalid="true"],
.enroll-form select[aria-invalid="true"] {
  border-color: #b00020;
  background: #fff8f8;
}
.enroll-form input[aria-invalid="true"]:focus,
.enroll-form select[aria-invalid="true"]:focus {
  border-color: #b00020;
  box-shadow: 0 0 0 3px rgba(176,0,32,.14);
}
.enroll-form__field-error {
  display: none;
  color: #9d001d;
  font-size: .8rem!important;
  font-weight: 700;
  line-height: 1.35;
}
.enroll-form__field-error:not(:empty) {
  display: block;
}
.enroll-form__field-error:not(:empty)::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  border-radius: 50%;
  background: #b00020;
  color: #fff;
  font-size: .7rem;
  line-height: 1;
}
.enroll-form__full {
  margin-top: 16px;
}
.enroll-form__error {
  min-height: 0;
  margin: 0;
  color: #b00020;
  font-weight: 700;
  outline: none;
}
.enroll-form__error:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #e4a5b0;
  border-radius: var(--arte-radius-sm, 10px);
  background: #fff2f4;
}
.enroll-form__error:not(:empty)::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: #b00020;
  color: #fff;
  font-size: .78rem;
}
.enroll-form__error.is-success {
  color: #26783d;
}
.enroll-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.btn-enroll-secondary,
.btn-enroll-submit {
  min-height: 46px;
  border: 0;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.btn-enroll-secondary {
  background: #efefeb;
  color: #333;
}
.btn-enroll-submit {
  background: #39a852;
  color: #fff;
}
.btn-enroll-secondary:hover,
.btn-enroll-secondary:focus {
  background: #e2e2dc;
}
.btn-enroll-submit:hover,
.btn-enroll-submit:focus {
  background: #2f9147;
}
.btn-enroll-submit:disabled {
  cursor: wait;
  opacity: .72;
}
.enroll-success {
  max-width: 540px;
  margin: 12px auto 4px;
  padding: clamp(24px, 5vw, 42px) 10px;
  text-align: center;
  outline: none;
}
.enroll-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border: 5px solid #39a852;
  border-radius: 50%;
  background: #effaf2;
  color: #26783d;
  font-size: 2.35rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(57,168,82,.18);
}
.enroll-success h2 {
  margin: 2px 0 12px;
  color: #202020;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.enroll-success p {
  margin: 0;
  color: #4f5a52;
  font-size: 1rem;
  line-height: 1.55;
}
.enroll-success .enroll-success__closing {
  margin-top: 18px;
  color: #697169;
  font-size: .84rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .enroll-modal,
  .enroll-modal__dialog {
    transition-duration: .01ms;
  }
}

/* 5) Ultimas oficinas */
/* CSS .o-box-conteudo, etc. ja existente */

/* 6) Responsividade */
@media (max-width: 768px) {
  .course-breadcrumb {
    gap: 6px !important;
    margin-bottom: 24px !important;
    padding: 8px 11px;
  }
  .course-breadcrumb a,
  .course-breadcrumb span,
  .course-breadcrumb .ic {
    font-size: .61rem !important;
  }
  .course-breadcrumb span {
    max-width: 34vw;
  }
  .course-category {
    margin-top: 17px;
    font-size: .65rem;
    line-height: 1.2;
  }
  .course-body {
    font-size: .98rem;
  }
  .btn-enroll {
    width: min(100%, 260px);
  }
  .enroll-modal__dialog {
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0;
    border-radius: var(--arte-radius-lg, 24px);
    padding: 22px 16px 18px;
  }
  .enroll-modal.is-open {
    align-items: flex-start;
    padding: 12px;
  }
  .enroll-modal.is-closing {
    align-items: flex-start;
    padding: 12px;
  }
  .enroll-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
  .enroll-modal__eyebrow {
    margin-bottom: 7px;
    font-size: .72rem;
  }
  .enroll-modal__header h2 {
    padding-right: 42px;
    font-size: 1.22rem;
    line-height: 1.18;
  }
  .enroll-modal__header p {
    margin: 8px 0 18px;
    font-size: .92rem;
    line-height: 1.42;
  }
  .enroll-form__required-note {
    margin: -8px 0 13px;
    font-size: .8rem;
  }
  .enroll-form__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .enroll-form label {
    gap: 5px;
  }
  .enroll-form span {
    font-size: .86rem;
  }
  .enroll-form input,
  .enroll-form select,
  .enroll-form textarea {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 16px;
  }
  .enroll-form textarea {
    min-height: 92px;
  }
  .enroll-form__full {
    margin-top: 12px;
  }
  .enroll-form__error {
    min-height: 18px;
    margin-top: 10px;
    font-size: .86rem;
    line-height: 1.35;
  }
  .enroll-form__actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 14px;
  }
  .btn-enroll-secondary,
  .btn-enroll-submit {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: .92rem;
  }
  .enroll-success {
    margin: 4px auto 0;
    padding: 30px 8px 24px;
  }
  .enroll-success__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    font-size: 2rem;
  }
}

/* 7) Detalhes da oficina */
.oficina-detalhes {
  max-width: 800px;
  margin: 0 auto 60px;
  color: #333;
}
.oficina-detalhes h2 {
  margin-top: 32px;
  font-size: 1.5rem;
  border-left: 4px solid #4caf50;
  padding-left: 12px;
}
.oficina-detalhes p {
  margin: 12px 0;
  line-height: 1.6;
}
.oficina-detalhes .turmas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.oficina-detalhes .turma h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #222;
}
.oficina-detalhes .turma small {
  font-size: 0.9rem;
  color: #666;
  margin-left: 4px;
}
.oficina-detalhes .turma ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.oficina-detalhes .turma li {
  margin: 4px 0;
  font-size: 0.95rem;
}

/* 8) Padrao arredondado (2026-11-03): botoes, fechar circular e microanimacoes com os tokens de identidade-arte.css */
html:root body .enroll-modal__close {
  border-radius: var(--arte-radius-pill, 999px) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-enroll,
  .btn-enroll-secondary,
  .btn-enroll-submit,
  .enroll-modal__close {
    transition: transform var(--arte-dur, .22s) var(--arte-ease, ease), box-shadow var(--arte-dur, .22s) var(--arte-ease, ease), background-color var(--arte-dur, .22s) var(--arte-ease, ease), color var(--arte-dur, .22s) var(--arte-ease, ease), border-color var(--arte-dur, .22s) var(--arte-ease, ease);
  }
  html:root body :is(.btn-enroll, .btn-enroll-secondary, .btn-enroll-submit):not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: var(--arte-shadow-sm, 0 2px 8px rgba(30,41,34,.08)) !important;
  }
  html:root body :is(.btn-enroll, .btn-enroll-secondary, .btn-enroll-submit):not(:disabled):active {
    transform: translateY(0) scale(.98);
    box-shadow: none !important;
  }
  .enroll-modal__close:not(:disabled):active {
    transform: scale(.94);
  }
  .enroll-form input,
  .enroll-form select,
  .enroll-form textarea {
    transition: border-color var(--arte-dur, .22s) var(--arte-ease, ease), box-shadow var(--arte-dur, .22s) var(--arte-ease, ease), background-color var(--arte-dur, .22s) var(--arte-ease, ease);
  }
  .course-body a:not([class]) {
    transition: text-decoration-color var(--arte-dur, .22s) var(--arte-ease, ease), text-underline-offset var(--arte-dur, .22s) var(--arte-ease, ease);
  }
}
.course-body a:not([class]) {
  text-decoration-color: rgba(47, 146, 80, .35);
}
.course-body a:not([class]):hover,
.course-body a:not([class]):focus-visible {
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}
