@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* 🎨 Paleta de Cores – Tema Liturgia & Luz */
:root {
  /* Cores base */
  --cor-escura: #181252; /* azul petróleo profundo (header e footer) */
  --cor-clara: #fff5db; /* bege-claro suave (fundo principal) */
  --cor-intermediaria: #f0e9d6; /* tom creme intermediário */

  /* Destaques e detalhes */
  --azul-profundo: #3d4a85; /* azul acinzentado elegante (detalhes e botões) */
  --btn-hover: #d6a22c; /* dourado principal dos botões */
  --dourado: #b88516; /* dourado intenso para hover */
  --dourado-metal: #c5a54f; /* dourado metálico suave para bordas e ícones */

  /* Texto */
  --texto-principal: #1b1f2e; /* texto padrão sobre fundo claro */
  --texto-claro: #f8f8f8; /* texto sobre fundo escuro */

  /* Sombras e efeitos */
  --sombra-suave: 0 4px 15px rgba(0, 0, 0, 0.15);
  --sombra-forte: 0 6px 18px rgba(0, 0, 0, 0.4);

  /* Gradientes */
  --gradiente-primario: linear-gradient(
    135deg,
    #181252 0%,
    #3d4a85 50%,
    #d6a22c 100%
  );
  --gradiente-botao: linear-gradient(90deg, #3d4a85, #d6a22c);
  --gradiente-hover: linear-gradient(90deg, #d6a22c, #b88516);

  /* Estrutura */
  --header-height: 90px;
}

/* 🌄 Fundo base do site */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(
    180deg,
    var(--cor-clara) 0%,
    var(--cor-intermediaria) 100%
  );
  color: var(--texto-principal);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}


/* Header */
.grid {
  height: 800px;
  width: 800px;
  background-image: linear-gradient(
      to right,
      var(--cor-escura) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--cor-escura) 1px, transparent 1px);
  background-size: 1rem 1rem;
  background-position: center center;
  position: absolute;
  z-index: -1;
  filter: blur(1px);
}

.white,
.border {
  max-height: 70px;
  max-width: 314px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 12px;
  filter: blur(3px);
}

.input {
  background: var(--cor-escura);
  border: none;
  width: 301px;
  height: 56px;
  border-radius: 10px;
  color: var(--cor-clara);
  padding-inline: 59px;
  font-size: 18px;
}

#poda {
  display: flex;
  align-items: center;
  justify-content: center;
}

.input::placeholder {
  color: var(--cor-intermediaria);
}

.input:focus {
  outline: none;
}

#main:focus-within > #input-mask {
  display: none;
}

#input-mask {
  pointer-events: none;
  width: 100px;
  height: 20px;
  position: absolute;

  top: 18px;
  left: 70px;
}

.white {
  max-height: 63px;
  max-width: 307px;
  border-radius: 10px;
  filter: blur(2px);
}

.white::before {
  content: "";
  z-index: -2;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(1.4);
  background-image: conic-gradient(
    rgba(0, 0, 0, 0) 0%,
    var(--cor-intermediaria),
    rgba(0, 0, 0, 0) 8%,
    rgba(0, 0, 0, 0) 50%,
    var(--cor-clara),
    rgba(0, 0, 0, 0) 58%
  );
  transition: all 2s;
}

.border {
  max-height: 59px;
  max-width: 303px;
  border-radius: 11px;
  filter: blur(0.5px);
}

#poda:hover > .white::before {
  transform: translate(-50%, -50%) rotate(-97deg);
}
#poda:hover > .border::before {
  transform: translate(-50%, -50%) rotate(-110deg);
}
#poda:focus-within > .white::before {
  transform: translate(-50%, -50%) rotate(443deg);
  transition: all 4s;
}
#poda:focus-within > .border::before {
  transform: translate(-50%, -50%) rotate(430deg);
  transition: all 4s;
}

@keyframes rotate {
  100% {
    transform: translate(-50%, -50%) rotate(450deg);
  }
}

@keyframes leftright {
  0% {
    transform: translate(0px, 0px);
    opacity: 1;
  }
  49% {
    transform: translate(250px, 0px);
    opacity: 0;
  }
  80% {
    transform: translate(-40px, 0px);
    opacity: 0;
  }
  100% {
    transform: translate(0px, 0px);
    opacity: 1;
  }
}

#filter-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-height: 40px;
  max-width: 38px;
  height: 100%;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    var(--cor-clara),
    var(--cor-clara),
    var(--cor-intermediaria)
  );
  border: 1px solid transparent;
}

.filterBorder {
  height: 42px;
  width: 40px;
  position: absolute;
  overflow: hidden;
  top: 7px;
  right: 7px;
  border-radius: 10px;
}

.filterBorder::before {
  content: "";
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(1.35);
  background-image: conic-gradient(
    rgba(0, 0, 0, 0),
    var(--azul-profundo),
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0) 50%,
    var(--azul-profundo),
    rgba(0, 0, 0, 0) 100%
  );
  animation: rotate 4s linear infinite;
}

#main {
  position: relative;
}
#search-icon {
  position: absolute;
  left: 20px;
  top: 15px;
}

header {
    background: linear-gradient(
    90deg,
    var(--cor-escura) 0%,
    #15104a 60%,
    var(--azul-profundo) 100%
  );
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: fixed;
  width: 100%;
  z-index: 999;
  top: 0;
  height: var(--header-height);
    color: var(--texto-claro);
  box-shadow: var(--sombra-forte);
}
.color_header {
     background: linear-gradient(
    90deg,
    var(--cor-escura) 0%,
    #15104a 60%,
    var(--azul-profundo) 100%
  );
  color: var(--texto-claro);
  box-shadow: var(--sombra-forte);
}
header nav a {
  text-decoration: none;
  margin-right: 20px;
  font-weight: 500;
  transition: 0.3s;
}
header nav a:hover {
  color: var(--verde);
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px; /* ajusta o tamanho da logo */
  height: 50px;
  object-fit: cover;
  border-radius: 50%; /* se quiser redondinha */
  filter: brightness(0.7); /* valores menores que 1 deixam mais escura */
}

.logo-wrapper h1 {
  font-size: 1.25rem; /* menor que o padrÃ£o */
  margin-left: 10px; /* espaÃ§o entre logo e texto */
  margin-bottom: 0; /* remove espaÃ§o extra */
  color: var(--cor-clara);
}

.outline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rect {
  stroke-dashoffset: 5;
  stroke-dasharray: 0 0 10 40 10 40;
  transition: 0.5s;
  stroke: var(--cor-clara);
}

.nav {
  position: relative;
  width: 400px;
  height: 60px;
  border-radius: 40px;
}

.container_nav:hover .outline .rect {
  transition: 999999s;
  /* Must specify these values here as something *different* just so that the transition works properly */
  stroke-dashoffset: 1;
  stroke-dasharray: 0;
}

.container_nav {
  position: absolute;
  inset: 0;
  background: var(--cor-escura);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 0.5em;
}

/* --- NAV CUSTOM COM <a> DENTRO DE .btn_nav --- */

/* Zera os estilos genÃ©ricos sÃ³ dentro do nav custom */
header .container_nav .btn_nav a {
  display: block; /* link ocupa toda a â€œpÃ­lulaâ€ */
  padding: 0.5em 1.5em; /* move o padding do .btn_nav para o link */
  margin: 0; /* evita empurrar pra fora */
  text-decoration: none;
  color: inherit; /* herdado do .btn_nav */
  line-height: 1;
  border-radius: 10px; /* mantÃ©m cantos arredondados no foco */
}

/* Como o padding foi para o <a>, limpa no contÃªiner */
header .container_nav .btn_nav {
  padding: 0;
  color: #fff; /* cor base dos textos */
  border-radius: 10px;
  cursor: pointer;
  /* nada de margin/padding aqui pra nÃ£o quebrar o espaÃ§amento do flex */
}

/* Hover/Active: aplica no contÃªiner e afeta o <a> por heranÃ§a */
header .container_nav .btn_nav:hover,
header .container_nav .btn_nav.active {
  background: var(--cor-clara);
  color: #0d0e0e;
}

/* Foco acessÃ­vel no link */
header .container_nav .btn_nav a:focus-visible {
  outline: 2px solid var(--btn-hover);
  outline-offset: 2px;
  border-radius: 10px;
}

/* MantÃ©m seu SVG â€œoutlineâ€ funcionando com hover nos botÃµes */
header .container_nav .btn_nav:nth-child(1):hover ~ svg .rect {
  stroke-dashoffset: 0;
  stroke-dasharray: 0 2 8 73.3 8 10.7;
}
header .container_nav .btn_nav:nth-child(2):hover ~ svg .rect {
  stroke-dashoffset: 0;
  stroke-dasharray: 0 12.6 9.5 49.3 9.5 31.6;
}
header .container_nav .btn_nav:nth-child(3):hover ~ svg .rect {
  stroke-dashoffset: 0;
  stroke-dasharray: 0 24.5 8.5 27.5 8.5 55.5;
}
header .container_nav .btn_nav:nth-child(4):hover ~ svg .rect {
  stroke-dashoffset: 0;
  stroke-dasharray: 0 34.7 6.9 10.2 6.9 76;
}

/* Opcional: escopo mais seguro para nÃ£o conflitar com outros links do header */
header nav a:not(.container_nav .btn_nav a) {
  /* mantÃ©m seu estilo antigo apenas para links fora do nav custom */
  color: var(--cor-clara);
  text-decoration: none;
  margin-right: 20px;
  font-weight: 500;
  transition: 0.3s;
}
header nav a:not(.container_nav .btn_nav a):hover {
  color: var(--verde);
}

.btn_nav:hover ~ .outline .rect {
  stroke-dashoffset: 0;
  stroke-dasharray: 0 0 10 40 10 40;
  transition: 0.5s !important;
}

/* Hero */

/* Carrossel Hero menor */
.hero-slide {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 500px;
  margin: 100px auto 40px auto;
  border-radius: 12px;
  overflow: hidden;
   background-color: #17212D;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔹 Fundo com a imagem desfocada */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg); /* definida inline no HTML */
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(0.8) saturate(1.1);
  transform: scale(1.2);
  z-index: 0;

  /* 🔹 Overlay dourado translúcido leve para combinar com o login */
  background-blend-mode: overlay;
  background-color: rgba(197, 165, 79, 0.1);
} 

/* 🔹 Imagem principal (nítida e completa) */
.hero-slide__image {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-content {
  position: absolute;
  width: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  background: rgba(23, 33, 45, 0.75);
  border: 1px solid rgba(197, 165, 79, 0.25);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #f9edcc; /* dourado claro */
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #f8f8f8;
}

/* BotÃ£o destaque */
.btn {
  background: linear-gradient(90deg, var(--azul-profundo), var(--btn-hover));
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
    box-shadow: var(--sombra-suave);

}

.btn:hover {
 background: linear-gradient(90deg, var(--btn-hover), var(--dourado));
  transform: translateY(-2px);
    box-shadow: var(--sombra-forte);
}

.carousel-control-prev,
.carousel-control-next {
  width: 11%; /* Ã¡rea clicÃ¡vel maior (padrÃ£o Ã© 5%) */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 50% 50%; /* deixa os Ã­cones menores */
  filter: invert(1); /* deixa branco, se precisar */
  opacity: 0.9;
}

/* Animations */
.fade-in-up {
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.categorias {
  background: var(--cor-intermediaria);
  padding: 40px 20px;
  text-align: center;
}

.categorias__titulo {
  color: var(--azul-profundo);
  margin-bottom: 1rem;
  font-weight: bold;
}

.categorias__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  justify-items: center;
}

.categoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.categoria__icone {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cor-intermediaria);
  box-shadow: 0 0 8px var(--azul-profundo, #181252);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s ease;
}

.categoria__icone img {
  width: 60px;
  height: 60px;
  object-fit: cover; /* imagem preenche bem */
  transition: transform 0.6s ease;
}

/* animaÃ§Ã£o ao passar o mouse */
.categoria:hover .categoria__icone img {
  transform: rotate(360deg);
}

.categoria__nome {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--cor-escura);
  margin-top: 10px; /* espaÃ§o do cÃ­rculo para o texto */
  text-transform: uppercase;
}

.linha-subtitulo {
  display: block;
  width: 80px; /* largura da linha */
  height: 3px; /* espessura */
  background: var(--azul-profundo); /* cor padrÃ£o */
  margin: 8px auto 24px; /* centraliza e dÃ¡ espaÃ§amento */
  border-radius: 4px; /* bordas levemente arredondadas */
}

/* BotÃµes */
.btn-primary {
  background-color: var(--azul-profundo);
  border: none;
  transition: 0.3s;
}
.btn-primary:hover {
  background-color: var(--btn-hover);
}

.row {
  margin-top: 50px;
}

/* Pr?ximos eventos */
.proximos-eventos {
  padding: 100px 0 50px 0;
  position: relative;
}
.proximos-eventos h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--azul-profundo);
}
.event-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}
.event-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  will-change: transform;
}
.event-carousel-card {
  flex: 0 0 clamp(260px, 22vw, 320px);
}
.event-carousel-card .card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
}


section:nth-child(odd) {
  background: linear-gradient(to bottom, var(--cor-clara), #ffffff);
}

section:nth-child(even) {
  background: linear-gradient(to bottom, #ffffff, var(--cor-clara));
}

/* Eventos anteriores - carrossel */
.eventos-anteriores .row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  will-change: transform;
}
.eventos-anteriores .row > [class*='col-'] {
  flex: 0 0 clamp(260px, 22vw, 320px);
  max-width: clamp(260px, 22vw, 320px);
  padding: 0;
}
@media (max-width: 992px) {
  .event-carousel-container {
    overflow-x: auto;
  }
  .event-carousel-track {
    flex-wrap: nowrap;
    padding-bottom: 1rem;
  }
  .eventos-anteriores .row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .eventos-anteriores .row > [class*='col-'] {
    flex: 1 1 45%;
    max-width: none;
    padding: 0 0.75rem;
  }
}
@media (max-width: 576px) {
  .event-carousel-card,
  .eventos-anteriores .row > [class*='col-'] {
    flex: 0 0 85%;
    max-width: 85%;
  }
}

.eventos-anteriores {
  background: #ffffff;
}

.eventos-anteriores .card-evento-anterior {
  border: none;
  border-radius: 20px;
  height: 100%;
  box-shadow: var(--sombra-suave);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eventos-anteriores .card-evento-anterior:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 36px -20px rgba(24, 18, 82, 0.4);
}

.eventos-anteriores .card-evento-anterior .card__image {
  height: 220px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.eventos-anteriores .card-evento-anterior .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.eventos-anteriores .card-evento-anterior:hover .card__image img {
  transform: scale(1.05);
}

.eventos-anteriores .card-evento-anterior .card-body {
  padding: 1.5rem;
}

.card {
  --card-bg: #ffffff;
  --card-accent: #7c3aed;
  --card-text: #1e293b;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

  width: 300px;
  height: 434px;
  background: var(--card-bg);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card__glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(61, 74, 133, 0.25) 0%,
    /* tom hover do botÃ£o */ rgba(24, 18, 82, 0) 70%
      /* azul profundo some nas bordas */
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card__content {
  padding: 1.25em;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  position: relative;
  z-index: 2;
}

.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10b981;
  color: white;
  padding: 0.25em 0.5em;
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 600;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.card__image {
  width: 100%;
  height: 160px;
  background: var(--azul-profundo);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.15) 0%,
      /* brilho branco suave */ transparent 30%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(61, 74, 133, 0.15) 0px,
      /* tom hover do botÃ£o */ rgba(61, 74, 133, 0.15) 2px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.5;
}

.card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 🔧 Corrige bloqueio de clique nas imagens da galeria */
.card__image::after {
  pointer-events: none; /* deixa o clique passar para a imagem */
}

.card__image {
  pointer-events: none; /* evita bloqueio pelo container */
}

.card__image img {
  pointer-events: auto; /* devolve o clique à imagem */
  cursor: zoom-in;
}


.card__text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.card__title {
  color: var(--card-text);
  font-size: 1.1em;
  margin: 0;
  font-weight: 700;
  transition: all 0.3s ease;
}

.card__description {
  color: var(--card-text);
  font-size: 0.75em;
  margin: 0;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card__price {
  color: var(--card-text);
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
}

.card__button {
  width: 100px;
  height: 40px;
  background: var(--azul-profundo);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(0.9);
}

/* Hover Effects */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(24, 18, 82, 0.2),
    /* sombra azulada */ 0 10px 10px -5px rgba(24, 18, 82, 0.1);
  border-color: rgba(61, 74, 133, 0.3); /* borda azul suave */
}

.card:hover .card__shine {
  opacity: 1;
  animation: shine 3s infinite;
}

.card:hover .card__glow {
  opacity: 1;
}

.card:hover .card__badge {
  transform: scale(1);
  opacity: 1;
  z-index: 1;
}

.card:hover .card__image {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card:hover .card__title {
  color: var(--vinho);
  transform: translateX(2px);
}

.card:hover .card__description {
  opacity: 1;
  transform: translateX(2px);
}

.card:hover .card__price {
  color: var(--vinho);
  transform: translateX(2px);
}

.card:hover .card__button {
  transform: scale(1);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.card:hover .card__button svg {
  animation: pulse 1.5s infinite;
}

/* Active State */
.card:active {
  transform: translateY(-5px) scale(0.98);
}

/* Animations */
@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}






/* SessÃ£o de contato */
.sessao-contato {
  background: var(--cor-clara);
  padding: 80px 20px;
  text-align: center;
}

.sessao-contato h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--azul-profundo);
}

.sessao-contato .subtitulo {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
}

.form-contato {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-grupo {
  margin-bottom: 20px;
}

.form-grupo label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--azul-profundo);
}

.form-grupo input,
.form-grupo textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--cor-intermediaria);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-grupo input:focus,
.form-grupo textarea:focus {
  border-color: var(--azul-profundo);
  box-shadow: 0 0 8px var(--btn-hover);
}

.btn-contato {
  background: var(--azul-profundo);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-contato:hover {
  background: var(--btn-hover);
}

.footer {
  background-color: var(--cor-escura);
  color: var(--cor-clara);
  padding: 50px 0 20px;
}

.footer h5 {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--cor-clara);
}

.footer-col {
  margin-bottom: 30px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--cor-clara);
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--verde);
}

.footer-social a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--cor-clara);
  transition: 0.3s;
}

.footer-social a:hover {
  color: var(--verde);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.hero1 {
  margin-top: var(
    --header-height
  ); /* garante que nÃ£o fique atrÃ¡s do header */
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.hero1::after {
  content: "";
  display: block;
  width: 100%; /* comprimento da linha */
  height: 2px; /* espessura */
  background-color: var(--cor-intermediaria); /* cor da linha */
  margin: 20px auto 0; /* centraliza abaixo do texto */
  border-radius: 2px;
}

.fw-bold {
  color: var(--azul-profundo);
}

.wrapper {
  --input-focus: #2d8cf0;
  --font-color: #323232;
  --font-color-sub: #666;
  --bg-color: #fff;
  --bg-color-alt: #666;
  --main-color: #323232;
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: center; */
}
/* switch card */
.switch {
  transform: translateY(-200px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 50px;
  height: 20px;
}

.card-side::before {
  position: absolute;
  content: "Log in";
  left: -70px;
  top: 0;
  width: 100px;
  text-decoration: underline;
  color: var(--font-color);
  font-weight: 600;
}

.card-side::after {
  position: absolute;
  content: "Sign up";
  left: 70px;
  top: 0;
  width: 100px;
  text-decoration: none;
  color: var(--font-color);
  font-weight: 600;
}

.toggle {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  box-sizing: border-box;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-colorcolor);
  transition: 0.3s;
}

.slider:before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  border: 2px solid var(--main-color);
  border-radius: 5px;
  left: -2px;
  bottom: 2px;
  background-color: var(--bg-color);
  box-shadow: 0 3px 0 var(--main-color);
  transition: 0.3s;
}

.toggle:checked + .slider {
  background-color: var(--input-focus);
}

.toggle:checked + .slider:before {
  transform: translateX(30px);
}

.toggle:checked ~ .card-side:before {
  text-decoration: none;
}

.toggle:checked ~ .card-side:after {
  text-decoration: underline;
}

/* card */

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--cor-clara),
    var(--cor-intermediaria)
  );
  font-family: "Poppins", sans-serif;
  padding-top: var(
    --header-height
  ); /* garante que nÃ£o fique escondido atrÃ¡s do header fixo */
}

.flip-card__inner {
  width: 340px;
  padding: 2rem;
  border-radius: 15px;

  position: relative;
  background-color: transparent;
  perspective: 1000px;
  /* width: 100%;
    height: 100%; */
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.toggle:checked ~ .flip-card__inner {
  transform: rotateY(180deg);
}

.toggle:checked ~ .flip-card__front {
  box-shadow: none;
}

.flip-card__front,
.flip-card__back {
  padding: 20px;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: lightgrey;
  gap: 20px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
}

.flip-card__back {
  width: 100%;
  transform: rotateY(180deg);
}

.flip-card__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.title {
  margin: 20px 0 20px 0;
  font-size: 25px;
  font-weight: 900;
  text-align: center;
  color: var(--main-color);
}

.flip-card__input {
  width: 250px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 4px 4px var(--main-color);
  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);
  padding: 5px 10px;
  outline: none;
}

.flip-card__input::placeholder {
  color: var(--font-color-sub);
  opacity: 0.8;
}

.flip-card__input:focus {
  border: 2px solid var(--btn-hover);
}

.flip-card__btn:active,
.button-confirm:active {
  box-shadow: 0px 0px var(--main-color);
  transform: translate(3px, 3px);
}

.flip-card__btn {
  margin: 20px 0 20px 0;
  width: 120px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 4px 4px var(--main-color);
  font-size: 17px;
  font-weight: 600;
  color: var(--font-color);
  cursor: pointer;
}

.painel_adm {
  margin-top: var(
    --header-height
  ); /* garante que nÃ£o fique atrÃ¡s do header */
  padding: 60px 0;
  text-align: center;
  position: relative;
}

/* Linha decorativa abaixo do tÃ­tulo */
.painel_adm::after {
  content: "";
  display: block;
  width: 100px; /* comprimento da linha menor */
  height: 2px; /* espessura */
  background-color: var(--cor-intermediaria); /* cor da linha */
  margin: 20px auto 0; /* centraliza abaixo do texto */
  border-radius: 2px;
}

/* Cards do painel administrativo */
.painel_adm .card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.painel_adm .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ajusta o tamanho dos tÃ­tulos e nÃºmeros */
.painel_adm .card-title {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.painel_adm .card-text {
  font-size: 1.6rem;
  font-weight: bold;
}

/* Garante que a row fique centralizada e com espaÃ§amento */
.painel_adm .row {
  justify-content: center;
  gap: 20px;
}

.background{
    width: 100%;
    height: 100vh;
    background-image: url('../img/imagem1.png');
    background-position: center;
    background-size: cover;
}



.home{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    height: 75%;
    transform: translate(-50% , -50%);
    background-image: url(../img/imagem1.png) !important;
    background-position: center !important;
    background-size: cover !important;
    display: flex;
    margin-top: 10px;
    border: 1px solid black;
    border-radius: 10px;
    border: none;
}

.content{
    display: flex;
    flex-direction: column;
    width: 700px;
    padding: 100px 0;
}

.content img {
  position: relative;
  top: -40px;
  left: 80px;
  width: 130px; /* ou um valor fixo como 400px */
  border-radius: 10px; /* opcional */
  object-fit: cover; /* mantém proporção */
}

.content h2{
    font-size: 3.5em;
    text-align: center;
    color: #3d4a85; 
}

.content h3{
    font-size: 2em;
    text-align: center;
    color: #f0e9d6; 
}

.content p{
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    color: #f0e9d6; 
}

    .content .icon{
        margin-top: 20px !important;
        font-size: 1.5em !important;
        display: flex !important;
        justify-content: center !important;
    }

    .content .icon i{
        margin-left: 20px !important;
        color: #3d4a85 !important;
        cursor: pointer;
    }

.login{
    width: 450px;
    position: relative;
    padding: 100px 30px;
    backdrop-filter: blur(20px);
    background: rgba(255, 245, 219, 0.25); /* mistura o bege com transparência */
     border-radius: 12px;
     box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.login h2{
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: #f0e9d6; 
}

.login .input2 {
  position: relative;
  width: 100%;
  height: 40px;
  margin-bottom: 40px;
}

.login .input1 {
  font-size: 16px;
  background: transparent !important;
  border: none;
  outline: none;
  border-bottom: 2px solid  #f0e9d6; ;
 color: #3d4a85; 
  width: 100%;
  height: 100%;
  padding: 5px 35px 5px 10px; /* espaço pro ícone */
}

.login .input1::placeholder {
  color: #3d4a85; 
  font-size: 18px;
}

.login .input2 i {
  position: absolute;
  right: 10px;
  top: 8px;
  color: #3d4a85; 
  font-size: 20px;
}
.check{
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    color: #f0e9d6; 
}

.check a{
    text-decoration: none;
    color: #f0e9d6;     
}

.check a:hover{
    text-decoration: underline;
}

.login .button1{
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
}

.button1 .btn1{
    width: 100%;
    height: 40px;
      background: linear-gradient(90deg, #181252, #3d4a85);
    border: none;
    outline: none;
    font-size: 20px;
    font-weight: 700;
    border-radius: 7px;
    color: #f0e9d6; 
    transition: all 0.3s ease;
    cursor: pointer;
}

.button1 .btn1:hover {
  background: linear-gradient(90deg, #3d4a85, #181252);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(61, 74, 133, 0.5);
}
.button1 .btn1:active{
    font-size: 25px;
}

.login .sign-up{
    display: flex;
    justify-content: center;
    gap: 8px;
}

.login .sign-up a{
    text-decoration: none;
    color: #f0e9d6; 
    font-weight: 700;
}

.login .sign-up p{
    color: #f0e9d6; 
}

.sign-up a:hover{
    text-decoration: underline;
}



.flip-container {
  perspective: 1000px;
  position: relative;
  width: 450px;
  height: 500px;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flip-container.flipped .flipper {
  transform: rotateY(180deg);
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  border-radius: 12px;
  overflow: hidden;
}

.back {
  transform: rotateY(180deg);
}

/* mantém o mesmo estilo da .login para a .cadastro */
.cadastro {
  backdrop-filter: blur(20px);
  background: rgba(255, 245, 219, 0.25);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  padding: 100px 30px;
  color: #f0e9d6;
}


.cadastro {
    width: 450px;
    position: relative;
    padding: 100px 30px;
    backdrop-filter: blur(20px);
    background: rgba(255, 245, 219, 0.25); /* mistura o bege com transparência */
     border-radius: 12px;
     box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.cadastro h2{
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: #f0e9d6; 
}

.cadastro .input2 {
  position: relative;
  width: 100%;
  height: 40px;
  margin-bottom: 40px;
}

.cadastro .input1 {
  font-size: 16px;
  background: transparent !important;
  border: none;
  outline: none;
  border-bottom: 2px solid  #f0e9d6; ;
 color: #f0e9d6; 
  width: 100%;
  height: 100%;
  padding: 5px 35px 5px 10px; /* espaço pro ícone */
}

.cadastro .input1::placeholder {
  color: #f0e9d6; 
  font-size: 18px;
}

.cadastro .input2 i {
  position: absolute;
  right: 10px;
  top: 8px;
  color: #f0e9d6; 
  font-size: 20px;
}

.cadastro .button1{
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
}


.cadastro .sign-up{
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cadastro .sign-up a{
    text-decoration: none;
    color: #f0e9d6; 
    font-weight: 700;
}

.cadastro .sign-up p{
    color: #f0e9d6; 
}

.cadastro a:hover{
    text-decoration: underline;
}


/* 🔧 Corrige o empurrão do alerta */
.cadastro .alert {
  position: absolute;          /* sai do fluxo do layout */
  top: 30px;                   /* ajusta conforme seu espaçamento */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;                  /* mantém margens laterais */
  z-index: 20;
  padding: 10px 10px;
  text-align: center;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Evita sobreposição com inputs */
.cadastro form {
  margin-top: 30px; /* adiciona espaço fixo pro alerta */
  position: relative;
}


/* Responsivo: reduz tamanho em telas pequenas */
@media (max-width: 768px) {
  .painel_adm .card-text {
    font-size: 1.2rem;
  }

  .painel_adm .card-title {
    font-size: 0.9rem;
  }


  .content {
    width: 100%;
    padding: 20px 0;
  }

  .content h2 {
    font-size: 2rem;
  }
  .content h3 {
    font-size: 1.3rem;
  }

  .flip-container {
    width: 95%;
    height: auto;
  }

  .login, .cadastro {
    padding: 40px 20px;
  }
}


/* ======================================================
   PÁGINA: MINHAS INSCRIÇÕES – ESTILO RPGC SYSTEMS
   ====================================================== */

#registrations-section {
  padding: 2rem;
  margin-top: var(--header-height);
  width: 100%;
}

/* Cabeçalho da seção */
#registrations-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--cor-intermediaria), #fff);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: var(--sombra-suave);
  margin-bottom: 2rem;
}

#registrations-section .section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin: 0;
}

#registrations-section .section-header p {
  color: var(--btn-hover);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

#registrations-section .section-header .btn {
  background: var(--gradiente-botao);
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  color: var(--cor-clara);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--sombra-suave);
  transition: all 0.25s ease;
}

#registrations-section .section-header .btn:hover {
  background: var(--gradiente-hover);
  transform: translateY(-2px);
  box-shadow: var(--sombra-forte);
}

/* ======== CARDS DE MÉTRICAS ======== */
#registrations-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

#registrations-section .stat-card {
  background: var(--cor-intermediaria);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--sombra-suave);
  transition: 0.25s;
}

#registrations-section .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-forte);
}

#registrations-section .stat-card.glow {
  background: linear-gradient(145deg, var(--cor-intermediaria), #fff);
  position: relative;
  overflow: hidden;
}

#registrations-section .stat-card.glow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(214, 162, 44, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

#registrations-section .stat-card.glow:hover::before {
  opacity: 1;
}

#registrations-section .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background: var(--gradiente-botao);
  font-size: 1.6rem;
}

#registrations-section .stat-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 0.25rem;
}

#registrations-section .stat-info p {
  color: var(--btn-hover);
  font-size: 0.9rem;
}

/* ======== TABELA DE INSCRIÇÕES ======== */
#registrations-section .table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  overflow: hidden;
}

#registrations-section .data-table {
  width: 100%;
  border-collapse: collapse;
}

#registrations-section thead {
  background: linear-gradient(90deg, var(--azul-profundo), var(--btn-hover));
}

#registrations-section th {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  text-align: center;
}

#registrations-section td {
  padding: 1.2rem 1rem;
  color: var(--texto-principal);
  border-bottom: 1px solid var(--cor-intermediaria);
  background-color: #fffdf8;
  vertical-align: middle;
  text-align: center;
  transition: background-color 0.25s ease;
}

#registrations-section td:first-child {
  text-align: left;
}

#registrations-section tr:hover td {
  background-color: #fff8e6;
}

/* ======== STATUS BADGES ======== */
.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.confirmada {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge.pendente {
  background-color: #fef9c3;
  color: #92400e;
}

.status-badge.cancelada {
  background-color: #fee2e2;
  color: #991b1b;
}

/* ======== BOTÕES DE AÇÃO ======== */
.btn-sm {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.25s ease;
}

.btn-sm i {
  font-size: 0.9rem;
}

.btn-sm.btn-secondary {
  background: var(--azul-profundo);
  color: #fff;
}

.btn-sm.btn-secondary:hover {
  background: var(--btn-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ======== MODAL DE VISUALIZAÇÃO ======== */
#viewRegistrationModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

#viewRegistrationModal.show {
  display: flex;
}

#viewRegistrationModal .modal-content {
  background: linear-gradient(135deg, var(--cor-clara), var(--cor-intermediaria));
  width: 95%;
  max-width: 650px;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.35s ease-out;
  position: relative;
}

#viewRegistrationModal .close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.6rem;
  color: var(--azul-profundo);
  cursor: pointer;
  transition: 0.25s;
}

#viewRegistrationModal .close:hover {
  color: var(--btn-hover);
  transform: scale(1.1);
}

#viewRegistrationModal .modal-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 1.5rem;
}

#viewRegistrationModal form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
}

#viewRegistrationModal label {
  font-weight: 600;
  color: var(--azul-profundo);
  margin-bottom: 0.3rem;
}

#viewRegistrationModal input,
#viewRegistrationModal select {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--btn-hover);
  background-color: #f9fafb;
  color: var(--texto-principal);
  transition: 0.25s;
}

#viewRegistrationModal input:focus,
#viewRegistrationModal select:focus {
  outline: none;
  border-color: var(--azul-profundo);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(61, 74, 133, 0.2);
}

#viewRegistrationModal button {
  margin-top: 1rem;
  align-self: flex-end;
  background: var(--gradiente-botao);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  transition: 0.25s;
  cursor: pointer;
}

#viewRegistrationModal button:hover {
  background: var(--gradiente-hover);
  transform: translateY(-2px);
  box-shadow: var(--sombra-forte);
}

/* ======== ANIMAÇÃO ======== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======== RESPONSIVIDADE ======== */
@media (max-width: 768px) {
  #registrations-section {
    padding: 1rem;
  }

  #registrations-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  #registrations-section .stats-grid {
    grid-template-columns: 1fr;
  }

  #registrations-section th,
  #registrations-section td {
    font-size: 0.85rem;
    padding: 0.8rem;
  }
}


/* ======== MODAL DE PERFIL DO USUÁRIO ======== */
#userProfileModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

#userProfileModal.show {
  display: flex;
}

#userProfileModal .modal-content {
  background: linear-gradient(135deg, var(--cor-clara), var(--cor-intermediaria));
  width: 95%;
  max-width: 650px;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.35s ease-out;
  position: relative;
  padding: 2rem;
}

#userProfileModal .close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.6rem;
  color: var(--azul-profundo);
  cursor: pointer;
  transition: 0.25s;
}

#userProfileModal .close:hover {
  color: var(--btn-hover);
  transform: scale(1.1);
}

#userProfileModal .modal-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 1.5rem;
}

/* ======== CONTEÚDO DO PERFIL ======== */
#userProfileContent {
  color: var(--azul-profundo);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

#userProfileContent strong {
  color: var(--azul-profundo);
}

#userProfileContent p {
  margin: 0;
  line-height: 1.4;
}

/* Avatar / Foto do usuário */
#userProfileContent img {
  border-radius: 50%;
  object-fit: cover;
  width: 90px;
  height: 90px;
  margin-right: 15px;
  border: 2px solid var(--azul-profundo);
}

#userProfileContent .profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}

#userProfileContent .profile-header h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul-profundo);
}

#userProfileContent .profile-header p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Divisores */
#userProfileContent hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

/* ======== ANIMAÇÃO ======== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======== RESPONSIVIDADE ======== */
@media (max-width: 768px) {
  #userProfileModal .modal-content {
    width: 90%;
    padding: 1.5rem;
  }

  #userProfileContent .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #userProfileContent img {
    margin: 0 auto 10px;
  }
}



/* ====== 🔹 CORRIGE INVASÃO DO FOOTER NO MOBILE ====== */
@media (max-width: 920px) {
  .home {
    position: relative !important; /* sai do modo absoluto */
    top: 50px !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-height: 100vh !important; /* ocupa altura total da tela */
    height: auto !important; /* deixa crescer conforme conteúdo */
    margin: 0 auto;
    padding: 40px 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .background {
display: none;
  }

  footer, .footer {
    position: relative;
    z-index: 1;
  }
}



/* -------------------------- Ajustes adicionais de carrossel -------------------------- */
.event-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 3.5rem;
}

.event-carousel-wrapper .event-carousel-container {
  flex: 1;
  overflow: hidden;
}

.event-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(24, 18, 82, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.event-carousel-arrow:hover {
  background: rgba(214, 162, 44, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.event-carousel-arrow.prev { left: 0.25rem; }
.event-carousel-arrow.next { right: 0.25rem; }

@media (max-width: 992px) {
  .event-carousel-wrapper { padding: 0; }
  .event-carousel-arrow { display: none; }
  .event-carousel-container { overflow-x: auto; scroll-snap-type: x mandatory; }
  .event-carousel-track { gap: 1rem; }
  .event-carousel-card { flex: 0 0 85%; scroll-snap-align: center; }
}

/* -------------------------- Sess o de eventos anteriores -------------------------- */
.eventos-anteriores__header h2 {
  font-weight: 600;
  color: var(--azul-profundo);
}

.eventos-anteriores .card-evento-anterior {
  border: none;
  border-radius: 20px;
  height: 100%;
  box-shadow: var(--sombra-suave);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eventos-anteriores .card-evento-anterior:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 36px -20px rgba(24, 18, 82, 0.4);
}

.eventos-anteriores .card-evento-anterior .card__image {
  height: 220px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.eventos-anteriores .card-evento-anterior .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.eventos-anteriores .card-evento-anterior:hover .card__image img {
  transform: scale(1.05);
}

.eventos-anteriores .card-evento-anterior .card-body {
  padding: 1.5rem;
}

/* -------------------------- P gina de inscri  o -------------------------- */
.inscricao-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(214, 162, 44, 0.25), rgba(24, 18, 82, 0.85));
  isolation: isolate;
}

.inscricao-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image, rgba(0, 0, 0, 0.25)) center / cover no-repeat;
  opacity: 0.25;
  z-index: -2;
}

.inscricao-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(24, 18, 82, 0.85), rgba(61, 74, 133, 0.6));
  z-index: -1;
}

.inscricao-hero__content { max-width: 680px; }

.inscricao-hero__eyebrow {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(214, 162, 44, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.inscricao-hero__content h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.inscricao-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
}

.inscricao-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Garante que o contador fique visível sobre a imagem */
.inscricao-hero__countdown {
  position: relative;
  z-index: 2; /* acima dos ::before e ::after */
  width: fit-content;
  background: rgba(24, 18, 82, 0.6);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
   display: inline-block;
  margin-top: 1.5rem;
  text-align: center;
  align-self: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.inscricao-main {
  background: linear-gradient(180deg, var(--cor-clara) 0%, var(--cor-intermediaria) 100%);
}

.inscricao-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: var(--sombra-suave);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(214, 162, 44, 0.18);
  backdrop-filter: blur(6px);
}

.inscricao-card.info-card { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.inscricao-card.form-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - var(--header-height) - -70px);
  overflow: hidden;
}

.inscricao-card.form-card > * {
  flex-shrink: 0;
}

.inscricao-card.form-card .inscricao-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 0.75rem;
  padding-bottom: 1rem;
  margin-right: -0.25rem;
  scrollbar-gutter: stable both-edges;
}

.inscricao-card.form-card .inscricao-form::-webkit-scrollbar {
  width: 8px;
}

.inscricao-card.form-card .inscricao-form::-webkit-scrollbar-track {
  background: rgba(24, 18, 82, 0.08);
  border-radius: 999px;
}

.inscricao-card.form-card .inscricao-form::-webkit-scrollbar-thumb {
  background: rgba(61, 74, 133, 0.45);
  border-radius: 999px;
}

.inscricao-card.form-card .inscricao-form::-webkit-scrollbar-thumb:hover {
  background: rgba(24, 18, 82, 0.65);
}

.inscricao-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.inscricao-highlight {
  background: rgba(24, 18, 82, 0.06);
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.inscricao-highlight strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--azul-profundo);
}

.inscricao-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.inscricao-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.inscricao-steps li .step-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: rgba(24, 18, 82, 0.12);
  color: var(--azul-profundo);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.inscricao-steps li span {
  font-size: 0.95rem;
  color: rgba(27, 31, 46, 0.85);
}

.inscricao-form .form-label {
  font-weight: 600;
  color: var(--azul-profundo);
}

.inscricao-form input[type='file'] {
  padding: 0.65rem;
  cursor: pointer;
}

.inscricao-upload-note {
  font-size: 0.85rem;
  color: rgba(27, 31, 46, 0.65);
  margin-top: 0.35rem;
}

.inscricao-status-card {
  background: rgba(24, 18, 82, 0.05);
  border: 1px solid rgba(24, 18, 82, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
}

.inscricao-status-card.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #0f8e66;
}

.inscricao-status-card.danger {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #941f1f;
}

@media (max-width: 992px) {
  .inscricao-card.info-card { position: static; }
}

@media (max-width: 768px) {
  .inscricao-hero { padding: 3rem 0; }
  .inscricao-card { border-radius: 20px; padding: 1.75rem; }
  .inscricao-highlights { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* -------------------------- Minhas inscri  es -------------------------- */
.registrations-page .metric-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(24, 18, 82, 0.08);
  color: var(--azul-profundo);
  display: grid;
  place-items: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .registrations-page .table-card table,
  .registrations-page .table-card thead,
  .registrations-page .table-card tbody,
  .registrations-page .table-card th,
  .registrations-page .table-card td,
  .registrations-page .table-card tr {
    display: block;
  }

  .registrations-page .table-card thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
  }

  .registrations-page .table-card tbody tr {
    border: 1px solid rgba(24, 18, 82, 0.08);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .registrations-page .table-card td {
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: none;
  }

  .registrations-page .table-card td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--azul-profundo);
  }
}

.background-proximos-eventos {
  background: linear-gradient(180deg, rgba(255, 245, 219, 0.35) 0%, rgba(240, 233, 214, 0.55) 100%);
}

@media (max-width: 991px) {
  header .nav {
    display: none;
    position: static;
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  header .container > nav {
    order: 2;
    width: 100%;
  }

  header .container > div.logo-wrapper {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  header .container > div.logo-wrapper .menu-toggle {
    display: inline-flex;
  }

  header .container > #poda {
    order: 3;
    width: 100%;
    display: none;
    justify-content: center;
  }

  header .container > #poda.active {
    display: flex;
  }

  header .container .nav.is-open {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
  }

  header .container .nav.is-open .container_nav {
    display: flex;
  }

  header .container_nav {
    position: static;
    inset: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(24, 18, 82, 0.95), rgba(61, 74, 133, 0.95));
    border-radius: 16px;
    box-shadow: var(--sombra-suave);
  }

  header .container_nav .outline {
    display: none;
  }

  header .container_nav .btn_nav {
    flex: 1;
    text-align: center;
  }

  header .container_nav .btn_nav a {
    width: 100%;
    padding: 0.75em 1rem;
  }

  #main {
    width: 100%;
  }

  .input {
    width: 100%;
    padding-inline: 3rem;
    font-size: 1rem;
  }

  .white,
  .border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .filterBorder,
  #filter-icon {
    top: 10px;
    right: 12px;
  }

  #search-icon {
    left: 16px;
    top: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 233, 233, 0.12);
    border: none;
    border-radius: 20px;
    color: var(--texto-claro);
    font-size: 2rem;
    padding: 0.30rem 0.7rem;
    line-height: 1;

    
    /* 🔹 novo: posicionamento fixo mais acima */
    position: relative;
    top: -55px; /* sobe o botão (ajuste fino: -5px, -15px, etc.) */
  }

  .menu-toggle.active {
    background: var(--cor-clara);
    color: var(--cor-escura);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  }

  .inscricao-card.form-card {
    max-height: none;
  }

  .inscricao-card.form-card .inscricao-form {
    overflow: visible;
    padding-right: 0;
    margin-right: 0;
    scrollbar-gutter: auto;
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  header .container {
    padding: 0 0.5rem;
  }

  .hero-slide {
    flex-direction: column;
    height: auto;
    min-height: 420px;
    margin: calc(var(--header-height) + 1.5rem) 1rem 2.5rem;
    padding: 2rem 1.25rem 2.5rem;
  }

  .hero-slide__image {
    width: 100%;
    height: 220px;
    max-width: none;
    object-fit: cover;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.85rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .btn {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .categorias {
    padding: 40px 15px;
  }

  .categorias__grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
  }

  .event-carousel-wrapper {
    padding: 0 1rem;
  }

  .event-carousel-card .card {
    height: auto;
  }

  .event-carousel-card .card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sessao-contato {
    padding: 60px 15px;
  }

  .form-contato {
    max-width: none;
  }

  .content,
  .login,
  .cadastro {
    width: 100%;
    padding: 40px 20px;
  }

  .content img {
    position: static;
    display: block;
    margin: 0 auto 1.5rem;
  }

  .footer .row {
    text-align: center;
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
  }

  .footer-col {
    max-width: 100%;
  }
}


/* Modal da galeria com navega??es e controles */
#galeriaModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.3s ease;
  gap: 1rem;
}

#galeriaModal .galeria-content {
  position: relative;
  max-width: min(960px, 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#galeriaModal img {
  width: 100%;
  max-width: 100%;
  max-height: 75vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255,255,255,0.35);
  animation: zoomIn 0.25s ease;
  object-fit: contain;
}

.galeria-video-wrapper {
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255,255,255,0.35);
}

.galeria-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.galeria-descricao {
  font-size: 0.95rem;
  color: #f7f7f7;
  max-width: 90%;
  margin: 0;
}

#galeriaModal .fechar {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  z-index: 9999999;
}

#galeriaModal .fechar:hover {
  color: #d6a22c;
}

#galeriaModal .galeria-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  z-index: 9999998;
}

#galeriaModal .galeria-arrow:hover {
  background: rgba(214, 162, 44, 0.85);
  color: #000;
}

#galeriaModal .galeria-prev {
  left: 20px;
}

#galeriaModal .galeria-next {
  right: 20px;
}

#galeriaModal .galeria-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

.memoria-video-wrapper {
  position: relative;
}

.memoria-video-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.memoria-video-trigger:hover {
  background: #d6a22c;
  color: #000;
  transform: scale(1.05);
}

.memoria-video-trigger i {
  pointer-events: none;
}

.forgot-password-section{min-height:calc(100vh - 120px);padding:60px 15px;background:#f4f6fb;display:flex;align-items:center;justify-content:center;}
.forgot-password-card{width:100%;max-width:460px;padding:40px;border-radius:16px;background:#fff;box-shadow:0 25px 60px rgba(13,28,76,.15);}
.forgot-password-header{text-align:center;margin-bottom:30px;}
.forgot-password-header h2{font-weight:700;margin-bottom:10px;color:#1c1c1c;}
.forgot-password-header p{color:#6c7383;margin:0;}
.forgot-password-form .form-label{
  display: block;
  margin-bottom: 8px; /* espaçamento entre label e input */
  font-weight: 600;
  color: #212529;
}

.forgot-password-form .form-control{
  padding: 12px 14px;
  border-radius: 10px;
  border: none;              /* remove a borda */
  background: #f4f6fb;       /* fundo suave */
  box-shadow: none;
  transition: box-shadow .2s;
}

.forgot-password-form .form-control:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(45, 21, 130, 0.25);
}

.forgot-password-form .btn{padding:12px 16px;border-radius:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;}
