/*
Theme Name: Moda do Bem
Theme URI: https://example.com/moda-do-bem
Author: Cursor
Description: Tema WordPress próprio inspirado no layout Moda do Bem.
Version: 1.0.0
Text Domain: moda-do-bem
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Montserrat:wght@700;800&display=swap');

:root {
  --header-offset: 5.5rem;
  --anchor-gap: 24px;
  --section-pad-top: 64px;
}

@media (max-width: 768px) {
  :root {
    --section-pad-top: 40px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + var(--anchor-gap));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Seções âncora com padding grande: reduz o topo e alinha o conteúdo sob o menu. */
#sobre,
#instituicoes,
#experiencia,
#marcas,
#galeria,
#video,
#proxima-edicao,
#faq,
#como-funciona {
  padding-top: var(--section-pad-top);
  scroll-margin-top: calc(var(--header-offset) + var(--anchor-gap) - var(--section-pad-top));
}

#expositores {
  scroll-margin-top: calc(var(--header-offset) + var(--anchor-gap) - 1rem);
}

.scroll-mt-28,
.admin-bar .scroll-mt-28 {
  scroll-margin-top: calc(var(--header-offset) + var(--anchor-gap) - var(--section-pad-top));
}

.admin-bar #expositores.scroll-mt-28 {
  scroll-margin-top: calc(var(--header-offset) + var(--anchor-gap) - 1rem);
}

body {
  margin: 0;
}

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hero-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "intro media"
      "description media"
      "hours media"
      "actions media";
    column-gap: 3rem;
    row-gap: 0;
    align-items: center;
  }

  .hero-intro {
    grid-area: intro;
  }

  .hero-media {
    grid-area: media;
  }

  .hero-description {
    grid-area: description;
  }

  .hero-hours {
    grid-area: hours;
  }

  .hero-actions {
    grid-area: actions;
  }
}

.hero-campaign {
  position: relative;
}

.hero-campaign-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hero-campaign > .floaty,
.hero-campaign > .floaty-slow {
  z-index: 20;
}

.hero-hours {
  margin-top: 1.25rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contacts p {
  margin: 0;
  display: block;
}

.proxima-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

.proxima-info-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proxima-info-item {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  gap: 1rem;
}

.hero-hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-hours-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-soft, #5c564e);
  background: none;
  border: none;
  padding: 0;
}

body,
p,
li,
label,
input,
textarea {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
button,
.site-header nav a,
.font-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Hero title: Montserrat ExtraBold no lugar de serif/cursiva */
.hero h1,
.hero-title,
.font-serif,
#topo h1.font-display,
#topo h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.5px;
}

.hero h1 em,
.hero h1 i,
.hero h1 span,
.hero-title em,
.hero-title i,
.hero-title span,
.font-serif em,
.font-serif i,
.font-serif span,
#topo h1 em,
#topo h1 i,
#topo h1 span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  /* ---- GERAL: seções âncora e títulos ---- */
  #sobre,
  #instituicoes,
  #experiencia,
  #marcas,
  #galeria,
  #video,
  #proxima-edicao,
  #faq {
    padding-top: var(--section-pad-top);
    padding-bottom: 3rem;
  }

  #expositores {
    padding-bottom: 3rem;
  }

  /* Seja Expositor: cantos arredondados iguais em cada caixa no mobile */
  #expositores .grid.overflow-hidden {
    overflow: visible !important;
    border-radius: 0 !important;
    gap: 0;
  }

  #expositores .grid > div:first-child {
    border-radius: 20px !important;
    margin-bottom: 16px !important;
  }

  #expositores .grid > div:last-child {
    border-radius: 20px !important;
  }

  /* Horários do card "Próxima edição": uma linha por dia no celular */
  #proxima-edicao .proxima-horario {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  #proxima-edicao .proxima-horario > span {
    white-space: nowrap;
  }

  #topo h1.font-display,
  #topo h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.1;
  }

  main section h2.font-display,
  main section .font-display.text-4xl {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  main section h3.font-display {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  /* ---- SOBRE: cartões de números (~150–170px) ---- */
  #sobre .grid.sm\:grid-cols-2 {
    gap: 12px;
  }

  #sobre .grid.sm\:grid-cols-2 > .reveal.h-full {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon value"
      "icon title"
      "text text";
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    padding: 16px 18px;
    min-height: 150px;
    max-height: 170px;
    height: auto;
    overflow: hidden;
  }

  #sobre .grid.sm\:grid-cols-2 > .reveal.h-full > .grid.h-12 {
    grid-area: icon;
    height: 40px;
    width: 40px;
    border-radius: 12px;
  }

  #sobre .grid.sm\:grid-cols-2 > .reveal.h-full > .grid.h-12 svg {
    height: 1.1rem;
    width: 1.1rem;
  }

  #sobre .grid.sm\:grid-cols-2 > .reveal.h-full > .font-display.text-5xl {
    grid-area: value;
    margin-top: 0;
    font-size: 28px;
    line-height: 1.1;
    align-self: end;
  }

  #sobre .grid.sm\:grid-cols-2 > .reveal.h-full > .mt-1.font-bold {
    grid-area: title;
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  #sobre .grid.sm\:grid-cols-2 > .reveal.h-full > .mt-3.text-sm {
    grid-area: text;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  /* ---- EXPERIÊNCIA: cartões compactos ---- */
  #experiencia .mt-14.grid {
    gap: 12px;
    margin-top: 1.5rem;
  }

  #experiencia .mt-14.grid > .reveal.h-full {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "text text";
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    padding: 16px 18px;
    height: auto;
  }

  #experiencia .mt-14.grid > .reveal.h-full > .grid.h-14 {
    grid-area: icon;
    height: 40px;
    width: 40px;
    border-radius: 12px;
  }

  #experiencia .mt-14.grid > .reveal.h-full > .grid.h-14 svg {
    height: 1.15rem;
    width: 1.15rem;
  }

  #experiencia .mt-14.grid > .reveal.h-full > h3.font-display {
    grid-area: title;
    margin-top: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    align-self: center;
  }

  #experiencia .mt-14.grid > .reveal.h-full > p.mt-3 {
    grid-area: text;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  /* ---- FAQ ---- */
  #faq .mt-12.space-y-3 {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #faq .mt-12.space-y-3 > * + * {
    margin-top: 0;
  }

  #faq .faq-trigger {
    padding: 14px 16px;
    gap: 10px;
  }

  #faq .faq-trigger > .font-display {
    font-size: 17px;
    line-height: 1.3;
  }

  #faq .faq-chevron {
    height: 36px;
    width: 36px;
  }

  #faq .faq-answer > div > div {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 14px;
  }

  /* ---- HERO (#topo) ---- */
  #topo .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #topo .hero-intro {
    order: 1;
  }

  #topo .hero-media {
    order: 2;
    margin-top: 16px;
    margin-bottom: 20px;
  }

  #topo .hero-description {
    order: 3;
  }

  #topo .hero-description p {
    margin-top: 0;
  }

  #topo .hero-hours {
    order: 4;
    margin-top: 1.25rem;
  }

  #topo .hero-hours-list {
    margin-top: 0;
  }

  #topo .hero-hours-list li {
    font-size: 0.88rem;
  }

  #topo .hero-actions {
    order: 5;
  }

  #topo .hero-campaign {
    max-width: min(100%, 320px);
  }

  /* Selos flutuantes só no desktop/tablet */
  #topo .hero-campaign > .floaty,
  #topo .hero-campaign > .floaty-slow {
    display: none;
  }

  #topo .hero-actions .mt-8 {
    margin-top: 1.25rem;
  }

  #topo .hero-actions a.rounded-full {
    min-height: 48px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.9rem;
  }

  /* ---- MARCAS (mantém ajustes anteriores) ---- */
  #marcas [data-marcas-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  #marcas [data-marca-card] {
    min-height: 0;
    padding: 0.85rem;
  }

  #marcas [data-marca-card] > .flex.items-start {
    gap: 0.4rem;
    align-items: flex-start;
  }

  #marcas .marca-segment {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.2;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #marcas [data-marca-card] a.grid.h-9 {
    height: 2rem;
    width: 2rem;
    flex-shrink: 0;
  }

  #marcas [data-marca-card] .font-display.text-2xl {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  #marcas [data-marcas-filters] {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  #marcas [data-marcas-filters]::-webkit-scrollbar {
    display: none;
  }

  #marcas [data-marcas-filters] > button {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
/* Botão flutuante do WhatsApp (só o FAB, não botões internos) */
.wa-float,
.whatsapp-float {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 56px !important;
  height: 56px !important;
  background-color: #c51118 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.25) !important;
  z-index: 9999 !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.wa-float:hover,
.whatsapp-float:hover {
  transform: scale(1.08) !important;
  background-color: #9e0b11 !important;
}

/* Botões de WhatsApp internos de seções (ex.: Seja Expositor) */
#expositores a[href*="wa.me"],
.wa-inline {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
  border-radius: 9999px !important;
}

/* ---- Galeria: trigger e lightbox ---- */
.mdb-gallery-trigger {
  cursor: zoom-in;
}

.mdb-lightbox[hidden] {
  display: none !important;
}

.mdb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mdb-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 10, 0.88);
}

.mdb-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 960px);
  max-height: calc(100vh - 2rem);
}

.mdb-lightbox__figure {
  margin: 0;
  width: 100%;
  text-align: center;
}

.mdb-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: contain;
  background: var(--surface);
}

.mdb-lightbox__caption {
  margin-top: 0.75rem;
  color: #faf7f2;
  font-size: 0.95rem;
  line-height: 1.4;
}

.mdb-lightbox__caption[hidden] {
  display: none !important;
}

.mdb-lightbox__close,
.mdb-lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9999px;
  background: rgba(250, 247, 242, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mdb-lightbox__close:hover,
.mdb-lightbox__nav:hover {
  transform: translateY(-1px);
  background: #fff;
}

.mdb-lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 2;
}

.mdb-lightbox__nav {
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
}

.mdb-lightbox__nav--prev {
  left: 0.5rem;
}

.mdb-lightbox__nav--next {
  right: 0.5rem;
}

.mdb-lightbox__chevron-flip {
  transform: scaleX(-1);
}

body.mdb-lightbox-open {
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .mdb-lightbox__backdrop {
    background: rgba(0, 0, 0, 0.9);
  }

  .mdb-lightbox__close,
  .mdb-lightbox__nav {
    background: rgba(35, 23, 23, 0.95);
    color: #f6eeeb;
  }

  .mdb-lightbox__close:hover,
  .mdb-lightbox__nav:hover {
    background: #2c1d1b;
  }
}

@media (max-width: 640px) {
  .mdb-lightbox {
    padding: 0.5rem;
  }

  .mdb-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .mdb-lightbox__nav--prev {
    left: 0.25rem;
  }

  .mdb-lightbox__nav--next {
    right: 0.25rem;
  }

  .mdb-lightbox__image {
    max-height: calc(100vh - 5rem);
    border-radius: 12px;
  }
}

/* ---- Vídeo (facade / click-to-play) ---- */
.mdb-video-wrap {
  max-width: 56rem;
}

.mdb-video {
  aspect-ratio: 16 / 9;
}

.mdb-video__fallback {
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(174, 15, 11, 0.45), transparent 55%),
    linear-gradient(150deg, var(--terra), var(--terra-deep));
}

.mdb-video__play {
  background: rgba(0, 0, 0, 0.35);
}

.mdb-video__play:hover,
.mdb-video__play:focus-visible {
  background: rgba(0, 0, 0, 0.45);
}

.mdb-video__play-icon {
  width: 4rem;
  height: 4rem;
  position: relative;
}

.mdb-video__play-icon::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.mdb-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 393px) {
  .mdb-video__play-icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .mdb-lightbox__caption {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
}

/* Trava o balanço lateral indesejado em telas menores */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
  }

  /* Garante que nenhum bloco ou imagem estoure a largura da tela */
  section,
  .hero,
  .container,
  img,
  div {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}