/* REFUGIART — Identidade visual */

:root {
  --fundo: #f4f1e9;
  --cartao: #ffffff;
  --verde: #243e35;
  --verde-claro: #dce8dc;
  --texto: #282b28;
  --texto-suave: #6c746d;
  --destaque: #d6a45d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
  background: var(--verde);
  color: white;
  padding: 28px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

header p {
  margin: 4px 0 0;
  color: var(--verde-claro);
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 14px;
  background: white;
  border-bottom: 1px solid #e4e1d8;
}

nav a {
  color: var(--verde);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

nav a:hover {
  color: #98703a;
}

main {
  width: min(100% - 32px, 760px);
  margin: 28px auto;
}

section {
  margin-bottom: 24px;
}

.boas-vindas {
  background: var(--verde);
  color: white;
  padding: 30px 24px;
  border-radius: 18px;
}

.boas-vindas h2 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin-top: 0;
}

.boas-vindas p {
  color: #e2e9e2;
}

button {
  background: var(--destaque);
  color: #28251f;
  border: none;
  border-radius: 8px;
  padding: 13px 17px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.95);
}

#comunidades article {
  background: var(--cartao);
  padding: 18px;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid #e6e2d9;
}

article h3 {
  color: var(--verde);
  margin: 0 0 5px;
}

article p {
  margin: 0;
  color: var(--texto-suave);
}

#artistas {
  background: var(--verde-claro);
  padding: 22px;
  border-radius: 14px;
}

footer {
  text-align: center;
  background: #e8e4da;
  color: var(--texto-suave);
  padding: 18px;
  font-size: 13px;
}

@media (min-width: 600px) {
  header h1 {
    font-size: 2.5rem;
  }

  .boas-vindas {
    padding: 42px;
  }
}



/* FEED ARTÍSTICO */

.publicacao {
  background: var(--cartao);
  border: 1px solid #e6e2d9;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
}

.autor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--verde-claro);
  color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.autor p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--texto-suave);
}

.publicacao h3 {
  color: var(--verde);
}

.acoes-publicacao {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.acoes-publicacao button {
  background: var(--verde-claro);
  color: var(--verde);
  font-size: 13px;
  padding: 9px 14px;
}

.acoes-publicacao button.curtido {
  background: var(--verde);
  color: white;
}


/* COMENTÁRIOS */

.area-comentarios {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6e2d9;
}

.form-comentario {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.texto-comentario {
  flex: 1;
  min-width: 0;
  padding: 11px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  font-size: 14px;
}

.form-comentario button {
  padding: 10px;
  font-size: 13px;
}

.comentario {
  background: var(--fundo);
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.comentario p {
  margin: 4px 0 0;
  font-size: 14px;
}



/* CRIAR PUBLICAÇÃO */

.criar-publicacao {
  background: white;
  padding: 18px;
  border: 1px solid #e6e2d9;
  border-radius: 14px;
  margin: 18px 0;
}

.criar-publicacao h3 {
  color: var(--verde);
  margin-top: 0;
}

#form-publicacao {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#form-publicacao input,
#form-publicacao textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  font: inherit;
}

#form-publicacao textarea {
  resize: vertical;
}

#form-publicacao button {
  align-self: flex-start;
}


.cabecalho {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex-shrink: 0;
}

.identidade {
  text-align: left;
}


/* PERFIS DOS ARTISTAS */

#area-perfil {
  margin-top: 28px;
}

#area-perfil > h3 {
  color: var(--verde);
  margin-bottom: 4px;
}

#btn-criar-perfil {
  margin-top: 12px;
  background: var(--verde);
  color: white;
}

#form-perfil {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 18px;
  background: var(--cartao);
  border: 1px solid #e6e2d9;
  border-radius: 12px;
}

#form-perfil[hidden],
#btn-criar-perfil[hidden] {
  display: none;
}

#form-perfil label {
  color: var(--verde);
  font-weight: bold;
  font-size: 14px;
}

#form-perfil input,
#form-perfil select,
#form-perfil textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  background: white;
  color: var(--texto);
  font: inherit;
}

#form-perfil textarea {
  resize: vertical;
}

#form-perfil button {
  align-self: flex-start;
  background: var(--verde);
  color: white;
}

/* CARTÃO DO ARTISTA */

.perfil-artista {
  margin-top: 18px;
  padding: 20px;
  background: var(--cartao);
  border: 1px solid #e0e5dc;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(36, 62, 53, 0.06);
  overflow-wrap: anywhere;
}

.perfil-artista .avatar {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  font-size: 22px;
  background: var(--verde);
  color: white;
}

.perfil-artista h3 {
  margin: 0 0 4px;
  color: var(--verde);
  font-size: 20px;
}

.perfil-artista p {
  margin: 5px 0 0;
  color: var(--texto-suave);
}

.perfil-artista p:first-of-type {
  display: inline-block;
  padding: 4px 10px;
  background: var(--verde-claro);
  border-radius: 20px;
  font-size: 12px;
  color: var(--verde);
}

/* GALERIA INSTITUCIONAL REFUGIART */

.cartoes-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.cartao-institucional {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dce8dc;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cartao-institucional:hover {
  transform: translateY(-4px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.cartao-institucional img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.cartao-conteudo {
  padding: 18px;
}

.cartao-institucional h3 {
  color: #243e35;
  margin-top: 0;
  margin-bottom: 10px;
}

.cartao-institucional p {
  color: #444444;
  line-height: 1.6;
}

.cartao-institucional a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  background: #243e35;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
}

.cartao-institucional a:hover {
  background: #365b4d;
}


/* ===== GALERIA INSTITUCIONAL COMPLEMENTO ===== */

.pagina-galeria {
  max-width: 1050px;
  margin: 0 auto;
  padding: 24px 20px;
}

.apresentacao-galeria {
  background: #ffffff;
  border: 1px solid #dce8dc;
  border-radius: 16px;
  padding: 32px 24px;
  margin: 12px 0 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.etiqueta-galeria {
  color: #557a63;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.apresentacao-galeria h2 {
  color: #243e35;
  font-size: 30px;
  margin: 14px 0;
}

.apresentacao-galeria p,
.mensagem-galeria p {
  color: #444444;
  line-height: 1.8;
}

.botao-menu {
  margin-left: auto;
  border: 0;
  border-radius: 9px;
  background: #243e35;
  color: #ffffff;
  font-size: 25px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  flex-shrink: 0;
}

.botao-explorar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  background: #243e35;
  color: #ffffff;
  border: 0;
  border-radius: 9px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.botao-menu:hover,
.botao-explorar:hover {
  background: #365b4d;
}

.mensagem-galeria {
  padding: 20px 4px;
}

.mensagem-galeria h2 {
  color: #243e35;
}

/* ===== FUNDO DO MENU ===== */

.fundo-menu {
  position: fixed;
  inset: 0;
  background: rgba(14, 25, 20, 0.55);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fundo-menu.fundo-visivel {
  opacity: 1;
  visibility: visible;
}

/* ===== PAINEL LATERAL DIREITO ===== */

.menu-lateral {
  position: fixed;
  top: 0;
  right: 0;
  width: min(390px, 88vw);
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  background: #f4f1e9;
  z-index: 1001;
  padding: 24px 20px;
  box-sizing: border-box;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.menu-lateral.menu-aberto {
  transform: translateX(0);
  visibility: visible;
}

.menu-bloqueio {
  overflow: hidden;
}

/* ===== CABEÇALHO DO PAINEL ===== */

.cabecalho-menu {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d7ddd2;
}

.cabecalho-menu h2 {
  margin: 0;
  color: #243e35;
  font-size: 25px;
}

.cabecalho-menu p {
  margin: 6px 0 0;
  color: #626b62;
  font-size: 14px;
}

.botao-fechar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #dce8dc;
  color: #243e35;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* ===== APRESENTAÇÃO DO MENU ===== */

.introducao-menu {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #243e35;
  color: #ffffff;
  padding: 17px 14px;
  margin: 22px 0;
  border-radius: 12px;
}

.introducao-menu > span {
  font-size: 28px;
  color: #e5c58d;
}

.introducao-menu h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.introducao-menu p {
  margin: 0;
  color: #e0e7df;
  font-size: 12px;
  line-height: 1.5;
}

/* ===== OPÇÕES DO MENU ===== */

.opcoes-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px;
  color: #243e35;
  background: #ffffff;
  border: 1px solid #e0e6dc;
  border-radius: 11px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.item-menu:hover {
  background: #dce8dc;
  transform: translateX(-3px);
}

.icone-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #e8efe5;
  color: #365b4d;
  font-size: 25px;
}

.texto-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.texto-menu strong {
  font-size: 14px;
}

.texto-menu small {
  color: #687168;
  font-size: 12px;
  line-height: 1.4;
}

.seta-menu {
  color: #557a63;
  font-size: 25px;
}

.rodape-menu {
  text-align: center;
  padding: 22px 0 6px;
  color: #687168;
  font-size: 12px;
}

@media (max-width: 480px) {
  .pagina-galeria {
    padding: 14px;
  }

  .apresentacao-galeria {
    padding: 25px 19px;
  }

  .apresentacao-galeria h2 {
    font-size: 26px;
  }

  .botao-explorar {
    width: 100%;
  }
}


/* ===== MERCADO REFUGIART ===== */

.pagina-mercado {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: #243e35;
}

.vitrine-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 48px 38px;
  background: #e5e9dc;
  border-radius: 18px;
  min-height: 310px;
}

.hero-conteudo {
  position: relative;
  z-index: 2;
}

.etiqueta-mercado {
  display: inline-block;
  color: #557a63;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1.6;
}

.hero-conteudo h2 {
  color: #243e35;
  font-family: Georgia, serif;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.12;
  margin: 16px 0;
}

.hero-conteudo p {
  max-width: 460px;
  color: #4d5d50;
  font-size: 15px;
  line-height: 1.8;
}

.selo-em-breve {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  padding: 8px 12px;
  background: #243e35;
  color: #ffffff;
  border-radius: 30px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.2px;
}

.botao-vitrine {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 13px 18px;
  border-radius: 8px;
  background: #243e35;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.botao-vitrine:hover {
  background: #365b4d;
}

/* Composição artística criada com CSS */

.arte-destaque {
  position: relative;
  width: 100%;
  max-width: 330px;
  height: 275px;
  margin: 0 auto;
  overflow: hidden;
  background: #c2a06a;
  border: 8px solid #ffffff;
  box-shadow: 0 12px 25px rgba(36, 62, 53, 0.15);
  transform: rotate(2deg);
}

.forma-arte {
  position: absolute;
}

.forma-um {
  width: 190px;
  height: 190px;
  left: -25px;
  top: -35px;
  border-radius: 50%;
  background: #243e35;
}

.forma-dois {
  width: 155px;
  height: 210px;
  right: -10px;
  bottom: -35px;
  border-radius: 90px 90px 0 0;
  background: #a64f36;
  transform: rotate(-25deg);
}

.forma-tres {
  width: 100px;
  height: 100px;
  right: 40px;
  top: 25px;
  border-radius: 50%;
  background: #e5c58d;
}

.forma-quatro {
  width: 130px;
  height: 10px;
  left: 35px;
  bottom: 50px;
  background: #f4f1e9;
  transform: rotate(-35deg);
}

.texto-arte {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 25px;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Seções */

.secao-mercado {
  margin-top: 42px;
}

.titulo-secao-mercado {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.titulo-secao-mercado h2 {
  margin: 8px 0;
  color: #243e35;
  font-family: Georgia, serif;
  font-size: 27px;
}

.titulo-secao-mercado p {
  margin: 5px 0 0;
  color: #657065;
  line-height: 1.6;
}

.categorias-mercado {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.categoria-mercado {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 105px;
  padding: 14px 6px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e0e6dc;
  border-radius: 12px;
  text-align: center;
}

.categoria-mercado span {
  color: #557a63;
  font-size: 27px;
}

.categoria-mercado strong {
  font-size: 12px;
}

/* Cartões das obras */

.grade-obras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cartao-obra {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e5dc;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.imagem-obra {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  overflow: hidden;
}

.marca-obra {
  position: absolute;
  top: 12px;
  left: 13px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-family: Georgia, serif;
  font-size: 13px;
}

.tipo-obra {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
  color: #243e35;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.obra-pintura {
  background: #d7b98a;
}

.quadro-pintura {
  position: relative;
  width: 65%;
  height: 76%;
  background: #f0d9ae;
  border: 8px solid #f4eee1;
  box-shadow: 0 10px 18px rgba(50, 40, 25, 0.2);
  transform: rotate(-4deg);
}

.quadro-pintura::before {
  content: "";
  position: absolute;
  width: 65%;
  height: 70%;
  top: 12%;
  left: 16%;
  border-radius: 60% 40% 55% 45%;
  background: #a64f36;
  transform: rotate(28deg);
}

.quadro-pintura::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 45%;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #243e35;
}

.obra-desenho {
  background: #d8d2c2;
}

.desenho-linhas {
  position: relative;
  width: 63%;
  height: 76%;
  background: #f7f3e9;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.13);
  transform: rotate(3deg);
}

.desenho-linhas::before {
  content: "";
  position: absolute;
  inset: 15% 20%;
  border: 3px solid #243e35;
  border-radius: 48% 52% 35% 65%;
  transform: rotate(25deg);
}

.desenho-linhas::after {
  content: "";
  position: absolute;
  inset: 24% 32%;
  border: 2px solid #a64f36;
  border-radius: 50% 35% 60% 40%;
  transform: rotate(-35deg);
}

.obra-amazonia {
  background: #8d9c79;
}

.folha-arte {
  position: absolute;
  width: 100px;
  height: 160px;
  border-radius: 100% 0 100% 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.folha-um {
  background: #243e35;
  transform: rotate(-35deg) translate(-25px, -8px);
}

.folha-dois {
  background: #d6a45d;
  transform: rotate(35deg) translate(25px, 10px);
}

.folha-tres {
  width: 55px;
  height: 125px;
  background: #a64f36;
  transform: rotate(5deg) translateY(10px);
}

.dados-obra {
  padding: 17px;
}

.categoria-obra {
  color: #66816b;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

.dados-obra h3 {
  margin: 10px 0 8px;
  color: #243e35;
  font-family: Georgia, serif;
  font-size: 18px;
}

.dados-obra p {
  min-height: 42px;
  margin: 0;
  color: #687168;
  font-size: 13px;
  line-height: 1.6;
}

.rodape-obra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid #edf0e9;
  color: #777e73;
  font-size: 11px;
}

.icone-obra {
  color: #557a63;
  font-size: 19px;
}

.selo-ilustrativo {
  padding: 7px 10px;
  border: 1px solid #d7ddd2;
  border-radius: 20px;
  color: #557a63;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.aviso-ilustrativo {
  margin-top: 15px;
  color: #777e73;
  font-size: 11px;
  line-height: 1.6;
}

/* Área dos leilões */

.painel-leiloes {
  position: relative;
  margin-top: 42px;
  padding: 30px;
  overflow: hidden;
  border-radius: 16px;
  background: #243e35;
  color: #ffffff;
}

.painel-leiloes .etiqueta-mercado {
  color: #d6c7a5;
}

.simbolo-leilao {
  margin-bottom: 16px;
  color: #e5c58d;
  font-size: 32px;
}

.conteudo-leilao {
  max-width: 620px;
}

.conteudo-leilao h2 {
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: 30px;
}

.conteudo-leilao p {
  color: #e1e7df;
  font-size: 14px;
  line-height: 1.8;
}

.selo-em-breve.secundario {
  position: static;
  display: inline-block;
  margin-top: 6px;
  background: #e5c58d;
  color: #243e35;
}

.detalhes-leilao {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.detalhes-leilao span {
  color: #e5c58d;
  font-family: Georgia, serif;
  font-size: 23px;
}

.detalhes-leilao p {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
}

/* Convite final */

.convite-artistas {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e1e5dc;
  border-radius: 15px;
}

.convite-simbolo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e5e9dc;
  color: #365b4d;
  font-size: 27px;
}

.convite-artistas h2 {
  margin: 8px 0;
  color: #243e35;
  font-family: Georgia, serif;
  font-size: 23px;
}

.convite-artistas p {
  max-width: 700px;
  margin-bottom: 0;
  color: #657065;
  font-size: 14px;
  line-height: 1.8;
}

.convite-artistas .selo-em-breve {
  position: static;
  flex-shrink: 0;
  margin-left: auto;
}

/* Responsividade */

@media (max-width: 760px) {
  .pagina-mercado {
    padding: 16px 14px 30px;
  }

  .vitrine-hero {
    grid-template-columns: 1fr;
    padding: 48px 22px 28px;
    gap: 28px;
  }

   .hero-conteudo h2 {
    font-size: 16px;
  }

  .arte-destaque {
    max-width: 290px;
    height: 230px;
  }

  .categorias-mercado {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grade-obras {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .imagem-obra {
    height: 260px;
  }

  .titulo-secao-mercado h2 {
    font-size: 24px;
  }

  .painel-leiloes {
    padding: 24px 20px;
  }

  .detalhes-leilao {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detalhes-leilao div {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .detalhes-leilao p {
    margin: 8px 0;
  }

  .convite-artistas {
    flex-wrap: wrap;
    padding: 22px 18px;
  }

  .convite-artistas .selo-em-breve {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .categorias-mercado {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .titulo-secao-mercado h2 {
    font-size: 22px;
  }
}


/* ===== PÁGINA DE LOGIN REFUGIART ===== */

.pagina-login {
  background: #f4f1e9;
  color: #26372f;
  min-height: 100vh;
}

.pagina-login .cabecalho {
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
}

.pagina-login .logo img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.pagina-login .identidade h1 {
  margin: 0;
  color: #243e35;
}

.pagina-login .identidade p {
  margin: 4px 0 0;
}

.pagina-login .navegacao-principal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.pagina-login .navegacao-principal a {
  color: #243e35;
  text-decoration: none;
  font-weight: 600;
}

.pagina-login .navegacao-principal a:hover {
  color: #b47b35;
}

.login-container {
  max-width: 1100px;
  margin: 55px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 55px;
}

.login-apresentacao {
  padding: 20px 0;
}

.login-etiqueta {
  display: inline-block;
  color: #476c54;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.login-apresentacao h2 {
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.15;
  color: #243e35;
  margin: 0 0 22px;
}

.login-apresentacao > p {
  max-width: 490px;
  color: #60675f;
  font-size: 17px;
  line-height: 1.8;
}

.login-destaque {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 38px;
  padding: 22px;
  background: #dce8dc;
  border-radius: 16px;
}

.login-destaque > span {
  color: #b47b35;
  font-size: 30px;
}

.login-destaque h3 {
  margin: 0 0 8px;
  color: #243e35;
}

.login-destaque p {
  margin: 0;
  line-height: 1.6;
  color: #4e5c50;
}

.login-cartao {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(36, 62, 53, 0.09);
}

.login-abas {
  display: flex;
  padding: 5px;
  background: #f1f2ed;
  border-radius: 10px;
  gap: 5px;
  margin-bottom: 28px;
}

.login-aba {
  flex: 1;
  border: none;
  padding: 12px;
  border-radius: 8px;
  background: transparent;
  color: #5d665e;
  font-weight: bold;
  cursor: pointer;
}

.login-aba.ativa {
  background: #243e35;
  color: #fff;
}

.login-formulario h2 {
  font-size: 26px;
  color: #243e35;
  margin: 0 0 8px;
}

.login-subtitulo {
  color: #777e76;
  font-size: 14px;
  margin: 0 0 25px;
  line-height: 1.5;
}

.login-formulario label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 17px 0 8px;
}

.login-formulario input,
.login-formulario select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  border: 1px solid #d9ded6;
  border-radius: 9px;
  background: #fff;
  color: #26372f;
  font-size: 14px;
}

.login-formulario input:focus,
.login-formulario select:focus {
  outline: 2px solid #9bb9a0;
  border-color: #476c54;
}

.login-esqueci {
  display: block;
  text-align: right;
  margin: 13px 0 20px;
  color: #476c54;
  font-size: 13px;
  text-decoration: none;
}

.login-botao {
  width: 100%;
  border: none;
  border-radius: 9px;
  padding: 15px;
  margin-top: 22px;
  background: #243e35;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.login-botao:hover {
  background: #365a49;
}

.login-aviso {
  background: #f6f0df;
  color: #765a27;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.login-troca {
  text-align: center;
  color: #737a72;
  font-size: 13px;
  margin: 23px 0 0;
}

.login-troca a {
  color: #476c54;
  font-weight: bold;
  text-decoration: none;
}

.login-rodape {
  text-align: center;
  color: #92978f;
  border-top: 1px solid #eceee8;
  margin-top: 25px;
  padding-top: 18px;
  font-size: 12px;
}

.rodape-login {
  text-align: center;
  padding: 22px;
  color: #72796f;
  font-size: 13px;
}

/* Esconde os formulários inativos */
.login-formulario[hidden],
.login-aviso[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 25px;
    margin: 30px auto;
  }

  .login-apresentacao {
    padding: 10px 0;
  }

  .login-apresentacao h2 {
    font-size: 35px;
  }

  .pagina-login .cabecalho {
    justify-content: center;
    text-align: center;
  }

  .pagina-login .navegacao-principal {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 0 15px;
  }

  .login-cartao {
    padding: 22px 18px;
  }

  .pagina-login .navegacao-principal {
    gap: 12px;
    font-size: 13px;
  }
}


/* ===== INDEX: MENU LATERAL E ORGANIZAÇÃO ===== */

.pagina-index .cabecalho {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.pagina-index .identidade {
  flex: 1;
}

.botao-menu-index {
  background: #243e35;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
}

.botao-menu-index:hover {
  background: #365a49;
}

.nav-index {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 15px 20px;
}

.nav-index a {
  color: #243e35;
  text-decoration: none;
  font-weight: 600;
}

.nav-index a:hover {
  color: #b47b35;
}

.etiqueta-index {
  display: inline-block;
  color: #52775a;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.fundo-menu-index {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 29, 23, 0.55);
}

.fundo-menu-index[hidden] {
  display: none;
}

.menu-lateral-index {
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: 25px;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
}

.menu-lateral-index.menu-index-aberto {
  transform: translateX(0);
  visibility: visible;
}

.topo-menu-index {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e9e2;
}

.topo-menu-index strong {
  font-size: 22px;
  color: #243e35;
}

.topo-menu-index p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #737b72;
}

.fechar-menu-index {
  border: none;
  background: #f1f2ed;
  color: #243e35;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 27px;
  cursor: pointer;
}

.titulo-menu-index {
  margin: 25px 0 10px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #8a9287;
}

.menu-lateral-index > a {
  display: block;
  padding: 13px 10px;
  margin: 3px 0;
  border-radius: 8px;
  color: #344b3d;
  text-decoration: none;
  font-weight: 500;
}

.menu-lateral-index > a:hover {
  background: #eaf0e8;
  color: #243e35;
}

.rodape-menu-index {
  border-top: 1px solid #e6e9e2;
  padding-top: 18px;
  margin-top: 30px;
  color: #7a8178;
  font-size: 12px;
}

.rodape-menu-index p {
  margin: 5px 0 0;
}

.menu-index-bloqueio {
  overflow: hidden;
}

.secao-comunidades-index,
.feed-index {
  max-width: 900px;
  margin: 45px auto;
  padding: 0 20px;
  scroll-margin-top: 25px;
}

.secao-comunidades-index > h2,
.feed-index h2 {
  color: #243e35;
}

.descricao-secao-index,
.cabecalho-feed-index p {
  color: #70776e;
  line-height: 1.6;
}

.cartoes-comunidades-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.cartoes-comunidades-index article {
  background: #fff;
  border: 1px solid #e6e9e2;
  border-radius: 13px;
  padding: 20px;
}

.cartoes-comunidades-index h3 {
  color: #304c3c;
  font-size: 17px;
}

.cartoes-comunidades-index p {
  color: #70776e;
  font-size: 14px;
  line-height: 1.6;
}

.criar-publicacao {
  background: #fff;
  border: 1px solid #e3e7df;
  border-radius: 14px;
  padding: 22px;
  margin: 25px 0;
}

.criar-publicacao h3 {
  margin-top: 0;
  color: #243e35;
}

.criar-publicacao > p {
  color: #70776e;
  font-size: 14px;
  line-height: 1.6;
}

.criar-publicacao textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #d9ded6;
  border-radius: 9px;
  font: inherit;
  resize: vertical;
}

.criar-publicacao textarea:focus {
  outline: 2px solid #9bb9a0;
}

.criar-publicacao button,
.form-comentario button {
  background: #243e35;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  cursor: pointer;
  font-weight: 600;
}

.publicacao {
  background: #fff;
  border: 1px solid #e3e7df;
  border-radius: 14px;
  padding: 22px;
  margin: 20px 0;
}

.publicacao > h3 {
  color: #243e35;
}

.publicacao > p {
  line-height: 1.7;
  color: #4f574f;
}

.area-comentarios[hidden] {
  display: none;
}

.area-comentarios {
  border-top: 1px solid #e6e9e2;
  padding-top: 15px;
  margin-top: 15px;
}

.form-comentario {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-comentario input {
  flex: 1;
  min-width: 0;
  padding: 11px;
  border: 1px solid #d9ded6;
  border-radius: 8px;
}

.form-comentario button {
  margin-top: 0;
}

.lista-comentarios p {
  background: #f4f1e9;
  padding: 10px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  .pagina-index .cabecalho {
    justify-content: center;
  }

  .pagina-index .identidade {
    flex: 1;
    min-width: 150px;
  }

  .botao-menu-index {
    width: 100%;
  }

  .nav-index {
    gap: 16px;
    font-size: 14px;
  }

  .cartoes-comunidades-index {
    grid-template-columns: 1fr;
  }

  .secao-comunidades-index,
  .feed-index {
    margin: 30px auto;
    padding: 0 15px;
  }

  .criar-publicacao,
  .publicacao {
    padding: 17px;
  }
}


/* INDEX: comunidades compactas em grade 3 x 2 */
#comunidades .grade-comunidades {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

#comunidades .grade-comunidades article {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border-radius: 10px;
}

#comunidades .grade-comunidades h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

#comunidades .grade-comunidades p {
  font-size: 12px;
  line-height: 1.45;
}

#comunidades .grade-comunidades a {
  display: inline-block;
  margin-top: 8px;
  color: #365b4d;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.3;
  text-decoration: none;
}

#comunidades .grade-comunidades a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  #comunidades .grade-comunidades {
    gap: 8px;
  }

  #comunidades .grade-comunidades article {
    padding: 9px;
  }

  #comunidades .grade-comunidades h3 {
    font-size: 13px;
  }

  #comunidades .grade-comunidades p {
    font-size: 10px;
    line-height: 1.35;
  }

  #comunidades .grade-comunidades a {
    font-size: 10px;
  }
}
