/* ==========================================================
   Soul Estúdio Criativo
   Cores tiradas da logo: azul marinho, magenta e laranja
   ========================================================== */
:root {
  --marinho: #221f50;
  --marinho-escuro: #16143a;
  --marinho-claro: #34306d;
  --magenta: #e3197f;
  --magenta-escuro: #c01069;
  --laranja: #f39234;
  --laranja-escuro: #d97a1c;
  --creme: #fbf6ee;
  --areia: #f3e8d9;
  --madeira: #b98463;
  --texto: #2a2750;
  --texto-suave: #5f5c7e;
  --branco: #ffffff;

  --fonte-titulo: "Montserrat", "Segoe UI", sans-serif;
  --fonte-texto: "Montserrat", "Segoe UI", sans-serif;
  --fonte-script: "Kaushan Script", cursive;

  --raio: 18px;
  --sombra: 0 18px 40px -18px rgba(22, 20, 58, .35);
  --topo-altura: 76px;
}

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

/* Base de 15px: todos os tamanhos em rem do site ficam um pouco menores */
html { font-size: 93.75%; scroll-behavior: smooth; scroll-padding-top: var(--topo-altura); }
/* Seção que recebe o foco ao clicar num link do menu (js/main.js): sem contorno */
[tabindex="-1"]:focus { outline: none; }

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-aberto,
body.gaveta-aberta { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--fonte-titulo); line-height: 1.15; margin: 0; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.script { font-family: var(--fonte-script); font-weight: 400; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; }

.btn--sm { padding: .75em 1.3em; font-size: .82rem; }
.btn--largo { width: 100%; margin-top: .5rem; }

.btn--magenta { background: var(--magenta); color: var(--branco); box-shadow: 0 10px 24px -10px rgba(227, 25, 127, .7); }
.btn--magenta:hover { background: var(--magenta-escuro); }

.btn--marinho { background: var(--marinho); color: var(--branco); }
.btn--marinho:hover { background: var(--marinho-claro); }

.btn--vazado { border-color: rgba(255, 255, 255, .7); color: var(--branco); }
.btn--vazado:hover { background: var(--branco); color: var(--marinho); }

.btn--linha { background: transparent; border-color: currentColor; color: var(--marinho); }
.btn--linha:hover { background: var(--marinho); border-color: var(--marinho); color: var(--branco); }

.btn--desativado { background: #e4e0ea; color: #8a86a3; cursor: default; }
.btn--desativado:hover { transform: none; }

/* ---------- Textos de seção ---------- */
.sobretitulo {
  font-family: var(--fonte-titulo);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--laranja);
}
.sobretitulo i { font-style: normal; color: var(--magenta); margin: 0 .35em; }
.sobretitulo--escuro { color: var(--magenta); }
.sobretitulo--claro { color: var(--laranja); }

.titulo {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: var(--marinho);
  margin-bottom: 1.4rem;
}
.titulo--claro { color: var(--branco); }
.titulo .script { font-size: 1.15em; letter-spacing: 0; }
.destaque { color: var(--magenta); }
.destaque-laranja { color: var(--laranja); }

.secao { position: relative; padding: clamp(80px, 11vw, 130px) 0; }

.cabecalho-secao { max-width: 640px; margin: 0 0 3.5rem; }
.cabecalho-secao p:last-child { color: rgba(255, 255, 255, .78); }

/* Manchas de tinta, como na logo */
.mancha {
  position: absolute;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  pointer-events: none;
  z-index: 0;
}
.mancha--magenta { background: var(--magenta); opacity: .1; }
.mancha--laranja { background: var(--laranja); opacity: .14; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topo-altura);
  display: flex;
  align-items: center;
  transition: box-shadow .35s ease;
}
/* O fundo com desfoque fica numa camada à parte: backdrop-filter no próprio .topo prenderia
   o menu do celular (position: fixed) dentro da altura do cabeçalho */
.topo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(22, 20, 58, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .35s ease;
}
.topo.is-solido { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .45); }
.topo.is-solido::before { opacity: 1; }

.topo__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.marca { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--branco); }
.marca img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--branco); }
.marca__texto { font-family: var(--fonte-script); font-size: 1.813rem; line-height: 1; }
.marca__texto small {
  display: block;
  margin-top: 4px;
  font-family: var(--fonte-titulo);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--laranja);
}

.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) {
  position: relative;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .88);
  padding: 6px 0;
  transition: color .2s ease;
}
.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--laranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.menu a:not(.btn):hover { color: var(--branco); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }

.menu { margin-left: auto; }

/* Carrinho no topo (fica fora do menu para continuar visível no celular) */
.topo-carrinho {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--branco);
  transition: background-color .2s ease, transform .2s ease;
}
.topo-carrinho:hover { background: rgba(255, 255, 255, .22); }
.topo-carrinho:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; }
.topo-carrinho .ico { width: 24px; height: 24px; }
.topo-carrinho__contagem {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--magenta);
  color: var(--branco);
  font-family: var(--fonte-titulo);
  font-size: .75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.topo-carrinho.is-pulando { animation: pulo-carrinho .5s ease; }
@keyframes pulo-carrinho { 40% { transform: scale(1.18); } }

.menu-btn {
  display: none;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.menu-btn span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--branco);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--branco);
  overflow: hidden;
  background: var(--marinho-escuro);
}

.hero__slides, .hero__slide, .hero__veu { position: absolute; inset: 0; }

.hero__slide {
  background-image: var(--foto);
  background-size: cover;
  background-position: center 38%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero__slide.is-ativo { opacity: 1; transform: scale(1); }

/* Escurecimento da foto */
.hero__veu {
  background:
    linear-gradient(100deg, rgba(22, 20, 58, .95) 0%, rgba(22, 20, 58, .86) 45%, rgba(22, 20, 58, .55) 100%),
    linear-gradient(0deg, rgba(22, 20, 58, .75) 0%, rgba(22, 20, 58, 0) 40%);
}

/* Telas largas: a foto ocupa a metade direita, com as cores reais, e se funde no fundo liso
   à esquerda, onde fica o texto. Vem depois do véu acima para valer sobre ele.
   Abaixo de 1200 px o texto encostaria na foto, então ela fica ao fundo, escurecida. */
@media (min-width: 1200px) {
  .hero__slide { background-image: none; }
  .hero__slide::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 54%;
    background: var(--foto) center 26% / cover no-repeat;
    /* Bordas esquerda e de baixo se fundem com o fundo */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 18%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 18%);
    mask-composite: intersect;
  }
  .hero__veu {
    /* A faixa de cima escurece um pouco para o menu continuar legível sobre a foto */
    background:
      linear-gradient(180deg, rgba(22, 20, 58, .7) 0%, rgba(22, 20, 58, 0) 16%),
      linear-gradient(90deg, rgba(22, 20, 58, .55) 0%, rgba(22, 20, 58, .25) 45%, rgba(22, 20, 58, 0) 62%);
  }
}

.hero__conteudo { position: relative; z-index: 1; padding-top: calc(var(--topo-altura) + 40px); padding-bottom: 110px; }

.hero__titulo { margin-bottom: 1.6rem; }
.hero__titulo .script {
  display: block;
  /* O "Soul" mantém o tamanho de antes da base de 15px (88px a 168px) */
  font-size: clamp(5.867rem, 15vw, 11.2rem);
  line-height: .9;
  /* A letra manuscrita começa com uma folga própria; puxa o "S" para a mesma linha do texto de cima e de baixo */
  margin-left: -.1em;
  color: var(--creme);
  text-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.hero__sub {
  display: block;
  margin-top: .9rem;
  font-size: clamp(.95rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--laranja);
}

.hero__texto { max-width: 540px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .88); margin-bottom: 2.2rem; }

.hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2rem; }

.hero__local {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--fonte-titulo);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

/* ---------- Sobre ---------- */
.sobre { background: var(--creme); overflow: hidden; }
.sobre .mancha--magenta { width: 340px; height: 300px; top: -90px; right: -110px; }
.sobre .mancha--laranja { width: 220px; height: 200px; bottom: 40px; left: -90px; }

.sobre__grade {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.sobre__texto > p { color: var(--texto-suave); }

.assinatura {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(34, 31, 80, .12);
}
.assinatura__foto {
  flex-shrink: 0;
  width: 120px; height: 160px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--raio);
  border: 4px solid var(--branco);
  box-shadow: var(--sombra);
}
.assinatura strong { display: block; font-family: var(--fonte-titulo); font-size: 1.2rem; color: var(--marinho); }
.assinatura span { font-size: .92rem; color: var(--texto-suave); }

.pilares { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pilar {
  --cor: var(--marinho);
  position: relative;
  padding: 26px 28px 24px 92px;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  border-left: 5px solid var(--cor);
}
.pilar--magenta { --cor: var(--magenta); }
.pilar--laranja { --cor: var(--laranja); }
.pilar__num {
  position: absolute;
  left: 26px; top: 24px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--cor);
}
.pilar h3 { font-size: 1.3rem; color: var(--marinho); margin-bottom: .35rem; }
.pilar p { margin: 0; font-size: .98rem; color: var(--texto-suave); }

/* ---------- Cursos ---------- */
.cursos {
  padding: clamp(110px, 13vw, 170px) 0;
  background: var(--branco);
  color: var(--texto);
}
.cursos .cabecalho-secao { margin-bottom: clamp(3.5rem, 6vw, 5rem); }
.cursos .cabecalho-secao p:last-child { color: var(--texto-suave); }

.cursos__lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 3.4vw, 44px);
}

.curso {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  color: var(--texto);
  border-radius: 24px;
  border: 1px solid rgba(34, 31, 80, .08);
  overflow: hidden;
  box-shadow: 0 24px 50px -34px rgba(34, 31, 80, .45);
  transition: transform .35s ease, box-shadow .35s ease;
}
.curso:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(34, 31, 80, .5); }

/* Espaço livre para a foto da oficina (campo "imagem" em js/cursos.js) */
.curso__capa {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #f7f1e8, var(--areia));
  overflow: hidden;
}
.curso__capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.curso__selo {
  position: absolute;
  left: 18px; top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--marinho);
  font-family: var(--fonte-titulo);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.curso__selo::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2bb673;
  vertical-align: 1px;
}
.curso__selo--breve::before { background: var(--laranja); }

.curso__corpo { display: flex; flex-direction: column; flex: 1; padding: 32px 32px 34px; }
.curso h3 { font-size: 1.4rem; color: var(--marinho); margin-bottom: .6rem; }
.curso__chamada { font-family: var(--fonte-titulo); font-size: 1.02rem; font-weight: 600; color: var(--magenta); line-height: 1.4; }
.curso--laranja .curso__chamada { color: var(--laranja-escuro); }
.curso__resumo { color: var(--texto-suave); font-size: .98rem; }

.curso__infos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: .4rem 0 1.2rem;
  padding: 14px 16px;
  background: var(--areia);
  border-radius: 12px;
}
.curso__infos dt { font-family: var(--fonte-titulo); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); }
.curso__infos dd { margin: 0; font-weight: 700; color: var(--marinho); }

/* Invólucros atualizados com vagas e preço do servidor; não interferem no layout */
.curso__vaga { display: contents; }

.curso__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: .6rem; }
.curso__acoes .btn { flex: 1 1 auto; padding: .9em 1.1em; font-size: .82rem; }

.cursos__nota { margin: clamp(3rem, 5vw, 4.5rem) 0 0; color: var(--texto-suave); }
.cursos__nota a { color: var(--magenta); font-weight: 700; }
.cursos__vazio { color: var(--texto-suave); }

/* ---------- Janela do curso ---------- */
.modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--creme);
  color: var(--texto);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
  overflow: auto;
}
.modal::backdrop { background: rgba(22, 20, 58, .75); backdrop-filter: blur(4px); }
.modal[open] { animation: modalEntra .35s ease; }
@keyframes modalEntra { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.modal__fechar {
  position: absolute;
  right: 14px; top: 14px;
  z-index: 2;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--marinho);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.modal__capa {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--areia);
  overflow: hidden;
}
.modal__capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__corpo { padding: 40px clamp(24px, 5vw, 44px) 36px; }
.modal__corpo h3 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); color: var(--marinho); margin-bottom: .6rem; }
.modal__corpo .sobretitulo { margin-bottom: .6rem; }
.modal__corpo > p:not(.sobretitulo):not(.curso__chamada) { color: var(--texto-suave); }
.modal--laranja .curso__chamada { color: var(--laranja-escuro); }

/* ---------- Estúdio / vídeo ---------- */
.estudio { background: var(--areia); overflow: hidden; }
.estudio__grade {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.estudio__video { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.moldura {
  position: relative;
  z-index: 1;
  padding: 12px;
  background: var(--marinho);
  border-radius: 32px;
  box-shadow: 0 40px 70px -30px rgba(22, 20, 58, .65);
  transform: rotate(-2deg);
}
.moldura video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 22px;
  background: var(--marinho-escuro);
}
.mancha--video { width: 260px; height: 240px; right: -90px; bottom: -60px; opacity: .5; }

.estudio__texto > p { color: var(--texto-suave); }

.lista-check { list-style: none; margin: 1.6rem 0 2.2rem; padding: 0; display: grid; gap: 12px; }
.lista-check li { position: relative; padding-left: 36px; font-weight: 600; color: var(--marinho); }
.lista-check li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.lista-check li:nth-child(2)::before { background-color: var(--laranja); }
.lista-check li:nth-child(3)::before { background-color: var(--marinho); }

/* ---------- Por dentro do estúdio (animação 3D, padrão Scroll Showcase) ----------
   Base em css/scroll-showcase.css; aqui ficam as cores da Soul e a moldura 3D. */
.vitrine {
  --sc-bg: #16143a;
  --sc-text: #fbf6ee;
  --sc-dim: rgba(251, 246, 238, .45);
  --sc-accent: #f39234;
  --sc-glow: #5c2466;
  --sc-rule: rgba(251, 246, 238, .24);
  --sc-radius: 8px;
}
.vitrine .sc__head { font-family: var(--fonte-titulo); letter-spacing: .14em; color: var(--laranja); }
/* sem as divisórias tracejadas entre as linhas */
.vitrine .sc__head,
.vitrine .sc__row { border-bottom: 0; }
.vitrine .sc__meta,
.vitrine .sc__who { font-family: var(--fonte-titulo); letter-spacing: .1em; }
.vitrine .sc__quote { font-family: var(--fonte-titulo); letter-spacing: -.01em; }
.vitrine .sc__media { justify-self: end; width: 100%; max-width: 380px; }
.vitrine .sc__media--alta { max-width: 250px; }
.vitrine .sc__media img { display: block; width: 100%; height: auto; }

/* Moldura de madeira com uma foto de cada lado */
.moldura3d {
  --mh: min(60vh, 600px);
  --mw: calc(var(--mh) * 9 / 16);
  --mt: 16px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--mw);
  height: var(--mh);
  margin-left: calc(var(--mw) / -2);
  margin-top: calc(var(--mh) / -2);
  perspective: 1500px;
}

.moldura3d__corpo {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-18deg);
  will-change: transform;
}

.moldura3d__face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
/* reflexo de vidro */
.moldura3d__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06) 100%);
  pointer-events: none;
}
.moldura3d__face img { display: block; width: 100%; }

.moldura3d__face--frente { transform: translateZ(calc(var(--mt) / 2)); background: #2a1c12; }
.moldura3d__face--frente img { height: 100%; }

.moldura3d__face--verso {
  transform: rotateY(180deg) translateZ(calc(var(--mt) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--creme);
  color: var(--marinho);
}
.moldura3d__face--verso img { aspect-ratio: 1; object-fit: contain; }
.moldura3d__marca {
  margin: auto 0;
  font-family: var(--fonte-script);
  font-size: calc(var(--mw) * .2);
  line-height: 1;
}
.moldura3d__lema {
  margin: auto 0;
  font-family: var(--fonte-titulo);
  font-size: calc(var(--mw) * .036);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* espessura da madeira */
.moldura3d__lado { position: absolute; background: #6e4428; }
.moldura3d__lado--esq,
.moldura3d__lado--dir {
  top: 0;
  left: calc(50% - var(--mt) / 2);
  width: var(--mt);
  height: 100%;
  background: linear-gradient(90deg, #4a2c19, #8a5a36 50%, #4a2c19);
}
.moldura3d__lado--esq { transform: rotateY(-90deg) translateZ(calc(var(--mw) / 2)); }
.moldura3d__lado--dir { transform: rotateY(90deg) translateZ(calc(var(--mw) / 2)); }
.moldura3d__lado--topo,
.moldura3d__lado--base {
  left: 0;
  top: calc(50% - var(--mt) / 2);
  width: 100%;
  height: var(--mt);
  background: linear-gradient(0deg, #4a2c19, #9a683f 50%, #4a2c19);
}
.moldura3d__lado--topo { transform: rotateX(90deg) translateZ(calc(var(--mh) / 2)); }
.moldura3d__lado--base { transform: rotateX(-90deg) translateZ(calc(var(--mh) / 2)); }

.moldura3d__sombra {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -9%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent);
  filter: blur(6px);
}

/* Painéis da galeria: foto inteira sobre um fundo desfocado da própria foto */
.painel-foto { background: #0f0d2b; }
.painel-foto__fundo {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(26px) brightness(.5) saturate(1.2);
}
.painel-foto__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.painel-foto figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(22, 20, 58, .78);
  font-family: var(--fonte-titulo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.painel-convite {
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 82% 14%, rgba(227, 25, 127, .5), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(243, 146, 52, .38), transparent 45%),
    var(--marinho);
}
.painel-convite__conteudo { padding: clamp(24px, 3vw, 40px); }
.painel-convite__conteudo > p:not(.sobretitulo) { color: rgba(251, 246, 238, .82); }
.painel-convite__titulo {
  font-family: var(--fonte-titulo);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--sc-text) !important;
}
.painel-convite__titulo .script { color: var(--laranja); font-size: 1.2em; }

@media (max-width: 760px) {
  .moldura3d { --mh: 30vh; top: 25%; }
  .vitrine .sc__media { max-width: 150px; }
  .vitrine .sc__media--alta { max-width: 110px; }
  .vitrine .sc__quote { font-size: 21px; }
}

/* ---------- Contato ---------- */
.contato {
  background:
    radial-gradient(circle at 90% 10%, rgba(243, 146, 52, .2), transparent 35%),
    radial-gradient(circle at 5% 100%, rgba(227, 25, 127, .25), transparent 40%),
    var(--marinho-escuro);
  color: var(--branco);
}
.contato__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contato__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 28px 24px;
  border-radius: var(--raio);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}
a.contato__card:hover { background: rgba(255, 255, 255, .11); border-color: var(--laranja); transform: translateY(-4px); }
.contato__card .ico { width: 34px; height: 34px; margin-bottom: 12px; color: var(--laranja); }
.contato__card:nth-child(2) .ico { color: var(--magenta); }
.contato__card:nth-child(4) .ico { color: var(--magenta); }
.contato__rotulo { font-family: var(--fonte-titulo); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contato__card strong { font-size: 1rem; overflow-wrap: break-word; }
.contato__extra { font-size: .88rem; line-height: 1.45; color: rgba(255, 255, 255, .7); }

.contato__mapa {
  position: relative;
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.contato__mapa iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(.85);
}
.contato__rota {
  position: absolute;
  right: 20px; top: 20px;
}

/* ---------- Rodapé ---------- */
.rodape { padding: 48px 0 110px; background: #0f0d2b; color: rgba(255, 255, 255, .65); }
.rodape__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rodape .marca img { width: 56px; height: 56px; }
.rodape__lema { margin: 0; font-family: var(--fonte-titulo); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--laranja); }
.rodape__lema i { font-style: normal; color: var(--magenta); margin: 0 .3em; }
.rodape__copy { margin: 0; font-size: .85rem; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--branco);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .25s ease;
}
.whats-flutuante svg { width: 32px; height: 32px; }
.whats-flutuante:hover { transform: scale(1.08); }
.whats-flutuante::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulso 2.4s ease-out infinite;
}
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação ao rolar ---------- */
.revelar { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--atraso, 0ms); }
.revelar.is-visivel { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .contato__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --topo-altura: 68px; }

  .menu-btn { display: block; order: 3; }
  .topo-carrinho { order: 2; margin-left: auto; }
  .topo__inner { gap: 12px; }
  .menu {
    margin-left: 0;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--marinho-escuro);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .menu.is-aberto { opacity: 1; visibility: visible; }
  .menu a:not(.btn) { font-size: 1.3rem; }
  .menu .btn { margin-top: 10px; font-size: .95rem; padding: 1em 2em; }

  .marca img { width: 42px; height: 42px; }
  .marca__texto { font-size: 1.6rem; }

  .sobre__grade, .estudio__grade { grid-template-columns: 1fr; }
  .estudio__video { max-width: 330px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  body { font-size: 1rem; }

  .hero__slide { background-position: 45% 40%; }
  .hero__veu { background: linear-gradient(180deg, rgba(22, 20, 58, .8) 0%, rgba(22, 20, 58, .86) 55%, rgba(22, 20, 58, .95) 100%); }
  .sobretitulo { font-size: .74rem; letter-spacing: .18em; }
  .sobretitulo i { margin: 0 .2em; }
  .hero__sub { letter-spacing: .22em; }
  .hero__acoes .btn { width: 100%; }

  .pilar { padding: 22px 20px 20px 76px; }
  .pilar__num { left: 20px; font-size: 1.7rem; }

  .cursos__lista,
  .loja .cursos__lista { grid-template-columns: 1fr; }
  .curso__corpo { padding: 24px 22px 26px; }

  .contato__cards { grid-template-columns: 1fr; }
  .contato__mapa iframe { height: 320px; }
  .contato__mapa { display: flex; flex-direction: column; }
  .contato__rota { position: static; border-radius: 0; padding: 1.1em; }
  .hero__local { align-items: flex-start; line-height: 1.6; }
  .hero__local .ico { margin-top: .2em; }
  .whats-flutuante { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* ---------- Gaveta do carrinho (abre pela direita) ---------- */
.gaveta-fundo {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 20, 58, .55);
  opacity: 0;
  transition: opacity .3s ease;
}
.gaveta-fundo.is-aberto { opacity: 1; }
.gaveta-fundo[hidden],
.gaveta[hidden] { display: none; }

.gaveta {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--creme);
  color: var(--texto);
  box-shadow: -24px 0 60px -20px rgba(22, 20, 58, .45);
  transform: translateX(100%);
  transition: transform .3s ease;
}
.gaveta.is-aberta { transform: translateX(0); }

.gaveta__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--marinho-escuro);
  color: var(--branco);
}
.gaveta__topo h2 { font-size: 1.35rem; }
.gaveta__fechar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--branco);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gaveta__fechar:hover { background: rgba(255, 255, 255, .24); }
.gaveta__fechar:focus-visible,
.gaveta__remover:focus-visible,
.gaveta__continuar:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }

.gaveta__corpo { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.gaveta__itens { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.gaveta__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--branco);
  box-shadow: 0 8px 22px -16px rgba(22, 20, 58, .45);
}
.gaveta__item--indisponivel { opacity: .75; }
.gaveta__foto { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--magenta); }
.gaveta__foto--laranja { background: var(--laranja); }
.gaveta__foto--marinho { background: var(--marinho-claro); }
.gaveta__foto img { width: 100%; height: 100%; object-fit: cover; }
.gaveta__texto { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.gaveta__texto strong { color: var(--marinho); line-height: 1.3; overflow-wrap: anywhere; }
.gaveta__texto small { color: var(--texto-suave); font-size: .85rem; }
.gaveta__texto .gaveta__aviso { color: #b0263c; font-weight: 700; }
.gaveta__remover {
  margin-top: 4px;
  padding: 2px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: #b0263c;
  cursor: pointer;
}
.gaveta__remover:hover { text-decoration: underline; }
.gaveta__preco { font-weight: 700; color: var(--marinho); white-space: nowrap; }

.gaveta__vazio { padding: 40px 12px; text-align: center; color: var(--texto-suave); }

.gaveta__rodape {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--areia);
  background: var(--branco);
}
.gaveta__rodape[hidden] { display: none; }
.gaveta__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 12px;
  font-family: var(--fonte-titulo);
  font-size: 1.05rem;
  color: var(--marinho);
}
.gaveta__total strong { font-size: 1.45rem; }
.gaveta__rodape .btn--largo { margin-top: 0; min-height: 52px; }
.gaveta__rodape .btn--desativado { pointer-events: none; }
.gaveta__nota { margin: 10px 0 4px; font-size: .82rem; line-height: 1.5; color: var(--texto-suave); text-align: center; }
.gaveta__continuar {
  display: block;
  margin: 4px auto 0;
  padding: 6px;
  border: 0;
  background: none;
  font-family: var(--fonte-titulo);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--marinho);
  cursor: pointer;
}

@media (max-width: 420px) {
  .gaveta__item { grid-template-columns: 52px 1fr; }
  .gaveta__foto { width: 52px; height: 52px; }
  .gaveta__preco { grid-column: 2; }
}

/* Quantidade de um produto no carrinho (− 2 +), na gaveta e na página do carrinho */
.qtd {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border: 2px solid var(--areia);
  border-radius: 999px;
  background: var(--branco);
}
.qtd button {
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--marinho);
  cursor: pointer;
}
.qtd button:hover:not(:disabled) { background: var(--areia); }
.qtd button:disabled { color: rgba(34, 31, 80, .3); cursor: default; }
.qtd button:focus-visible { outline: 3px solid var(--laranja); outline-offset: 1px; }
.qtd__valor { min-width: 2ch; text-align: center; font-weight: 700; color: var(--marinho); }

/* ---------- Loja ---------- */
.loja { background: var(--creme); }
.loja[hidden],
.menu a[hidden] { display: none; }
/* Cartões da largura de um terço da lista, como os das oficinas, mesmo quando são poucos */
.loja .cursos__lista {
  --vao: clamp(28px, 3.4vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), calc((100% - 2 * var(--vao)) / 3)));
  gap: var(--vao);
}

/* Aviso rápido "foi para o carrinho" */
.aviso-carrinho {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--marinho-escuro);
  color: var(--branco);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.aviso-carrinho.is-visivel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.aviso-carrinho a {
  flex-shrink: 0;
  color: var(--laranja);
  font-family: var(--fonte-titulo);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}
