/* =========================================================
   main.css — Estilos da página (100% baseado em variaveis.css)
   Ordem: carregue variaveis.css ANTES deste arquivo
   ========================================================= */

/* ===== Base e utilitários ===== */
html,
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text-primary);
  background: var(--bg-page);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

/* Botões (mantendo classes existentes) */
.btn-primary {
  background: var(--color-secondary);
  /*var(--color-primary);*/
  border-color: var(--color-secondary);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(.95);
  background: var(--color-primary);
  color: var(--bg-card);
  border-color: var(--color-secondary);
}

.btn-orange {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.btn-orange:hover {
  filter: brightness(.95);
  color: var(--color-accent);
  border-color: var(--color-secondary);
}

.btn-hero {
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.btn-hero i.chev {
  transition: transform .15s ease;
}

.btn-hero:hover i.chev {
  transform: translateX(4px);
}


.text-title-header {
  color: var(--color-primary);
}

/* Foco */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: var(--focus-ring);
  border-color: var(--color-primary);
}

/* Utilitários de texto (compat com HTML existente) */
.text-dc-blue {
  color: var(--color-primary) !important;
}

.text-dc-orange {
  color: var(--color-secondary) !important;
}

/* ===== HERO ===== */

.hero-box {
  
  background-image: url("/../voluntarios_assets/img/banner_site.svg");
  background-color: #040235;
  background-repeat: no-repeat;
  background-position: right -3px top;
  /*background-position: top right;*/
  background-size: cover;
  border-radius: 16px;
   overflow:hidden;
  /*
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  isolation: isolate;
*/
}

/* fundo */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: -1;
  pointer-events: none;
}

/* conteúdo */
.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(16px, 3.5vw, 56px);
}

.hero-badge {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .35rem .65rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  font-size: .85rem;
}

/* ✅ MOBILE: altura automática (cresce com o texto e botões) */
@media (max-width: 576px) {
  .hero-box {
    border-radius: 16px;
    min-height: unset;
    height: auto;
    /* <-- aqui */
    aspect-ratio: auto;
    /* <-- aqui */
  }

  .hero-bg {
    object-position: center;
    /* melhor recorte no mobile */
  }

  .hero-content {
    padding: 18px;
    /* padding enxuto no iPhone SE */
  }
}

/* ✅ TABLET/DESKTOP: controla proporção/altura */
@media (min-width: 577px) {
  .hero-box {
    aspect-ratio: 16 / 6;
    min-height: 440px;
    max-height: 550px;
    min-width: 256px;
    max-width: 100%;
  }

  .banner2 {
    width: 50%;
    margin: 0 auto;
    max-height: 50%;
    padding: 0 15px;
  }


}

@media (min-width: 992px) {
  .hero-box {
    aspect-ratio: 16 / 5;
  }
}

/* ===== Cards ===== */
.card-neo {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.card-ghost {
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

/* ===== Stepper ===== */
.stepper {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  /* permite quebrar */
  min-width: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.step .dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}

.step.active {
  color: var(--color-primary);
}

.step.active .dot {
  background: var(--color-primary);
  color: #fff;
}

.step .label {
  font-size: .95rem;
  white-space: nowrap;
}

.step-line {
  height: 2px;
  flex: 1;
  background: var(--bar-gradient);
}

/* telas médias */
@media (max-width: 991.98px) {
  .stepper {
    gap: 12px;
  }

  .step .dot {
    width: 30px;
    height: 30px;
  }

  .step .label {
    font-size: .9rem;
  }
}

/* telas pequenas */
@media (max-width: 575.98px) {
  .stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .step-line {
    display: none;
  }

  .step {
    justify-content: flex-start;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: .45rem .6rem;
  }

  .step .dot {
    width: 26px;
    height: 26px;
    font-size: .85rem;
  }

  .step .label {
    font-size: .9rem;
  }
}

/* container do stepper + link LGPD quando quebrar linha */
.mb-4.d-flex.align-items-center.justify-content-between.flex-wrap.gap-3 {
  row-gap: 12px;
}

@media (max-width: 575.98px) {
  .mb-4.d-flex.align-items-center.justify-content-between.flex-wrap.gap-3>a.small {
    order: 2;
    align-self: flex-start;
  }
}

/* ===== Chips (pílulas de seleção) ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #DDE6F2;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: .15s transform;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip input {
  display: none;
}

.chip.active {
  border-color: var(--color-accent);
  background: #FFF7EF;
}

.chip .fa-check {
  display: none;
}

.chip.active .fa-check {
  display: inline-block;
  color: var(--color-secondary);
}

/* ===== Galeria / Carousel ===== */
.gallery-section {
  background: linear-gradient(180deg, #FFFFFF, #F8FBFF);
}

.carousel-inner {
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.carousel-caption {
  background: rgba(0, 0, 0, .45);
  padding: .5rem .75rem;
  border-radius: .5rem;
}

.thumbs-row img {
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: .15s;
}

.thumbs-row img.active,
.thumbs-row img:hover {
  border-color: var(--color-secondary);
}

/* Galeria compacta */
.gallery-section .carousel-item img {
  width: 100%;
  height: 375px;
  /* mobile/tablet */
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

@media (min-width: 992px) {
  .gallery-section .carousel-item img {
    height: 460px;
  }

  /* desktop */
}

.thumbs-row img {
  height: 72px;
  width: 100%;
  object-fit: cover;
}

.thumbs-row img.active,
.thumbs-row img:hover {
  border-color: var(--color-secondary);
}

/* ===== Rodapé ===== */
footer {
  color: var(--text-secondary);
}

/* main.css */
.hero {
  position: relative;
  color: #fff;
  background-color: #040235;
  /*background-image:
    linear-gradient(rgba(0,74,141,.65), rgba(12,119,227,.85)), /* película */
  /*  url("/voluntarios/assets/img/defesa_civil_rs.svg");  */
  /* seu SVG */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .container {
  /**position:relative; z-index:1;*/
}

.hero::after {
  /* content:"";
  position:absolute; inset:0;
  background-color: #040235;
  background:
    radial-gradient(1200px 400px at 110% -10%, rgba(245,124,0,.25), transparent 60%),
    radial-gradient(700px 260px at -10% 110%, rgba(255,143,44,.35), transparent 60%);
  pointer-events:none;
  z-index:0;*/
}

/* Altura mais compacta dos “chips” do Select2 (combina com .form-select-sm) */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  padding: .15rem .5rem;
  margin-top: .15rem;
  border-radius: .5rem;
  font-size: .85rem;
}

.fonte-rodape {
  font-size: .7rem;
}

.fonte-aviso-timestamp {
  font-size: .6rem;
}