@import "principal.css";

/* ==============================
   SEÇÃO PROJETOS
   ============================== */
.projetos-secao{
  background: linear-gradient(var(--cor-azul), #262678);
  background-attachment: fixed;
  padding: 40px 10%;
}

.projetos-titulo{
  font-size: 5rem;
  color: #ffb300;
  font-family: var(--font-titulo);
  font-weight: 900;
  letter-spacing: 5px;
}

/* ==============================
   FILTROS
   ============================== */
.projetos-filtros{
  display: flex;
  gap: 16px;
  margin: 26px 0 32px;
  align-items: center;
  
}

.projetos-filtro{
  background: none;
  border: none;
  color: var(--cor-creme);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 10px 12px;
  border-radius: 10px;
}

.projetos-filtro.active{
  background: var(--cor-rosa);
  color: #fff;
}

/* ==============================
   GRID / CARDS
   ============================== */
.projetos-grid{
  display: grid;


  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

#o_que_fiz #texto_apresentacao{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 420px){
  .projetos-grid{ grid-template-columns: 1fr; }
}

.projetos-card{
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projetos-media{
  overflow: hidden;
}

.projetos-media img{
  width: 100%;
  display: block;
  transition: transform .4s ease;
  transform-origin: center;
}

.projetos-legenda{
  color: var(--cor-creme);
  font-family: var(--font-paragrafo);
  transition: transform .4s ease;
  transform-origin: top;
}

.projetos-card-titulo{
  font-size: 1.9rem;
  margin: 0;
  line-height: 1.15;
  font-weight: 900;
  color: var(--cor-rosa);

}

.projetos-card-resumo{
  margin: 8px 0 0;
  font-size: 1.15rem;
  opacity: .92;
  font-family: var(--font-paragrafo);
}

/* zoom conjunto (imagem + texto) */
/* Estado base do card */
.projetos-card{
  transition: 
    transform .35s cubic-bezier(.22,1,.36,1),
    box-shadow .35s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

/* Hover: elevação do card */
.projetos-card:hover{
  transform: translateY(-10px);
  box-shadow:
    0 12px 28px rgba(29, 9, 142, 0.472),
    0 4px 10px rgba(121, 126, 86, 0.25);
}

/* Zoom interno (mais sutil) */
.projetos-card:hover .projetos-media img{
  transform: scale(0.97);
}

/* Texto acompanha, mas menos */
.projetos-card:hover .projetos-legenda{
  transform: scale(0.95);
}




/* ==============================
   PAGINAÇÃO
   ============================== */
.projetos-paginacao{
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.projetos-paginacao button{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #fff;
  opacity: .35;
  cursor: pointer;
}

.projetos-paginacao button.active{
  opacity: 1;
}

/* ==============================
   MODAL – LARGURA REAL (corrige espremido)
   ============================== */

.projetos-modal .modal-dialog{
  max-width: min(1400px, 96vw);
  margin: 3vh auto;
}

@media (min-width: 1600px){
  .projetos-modal .modal-dialog{
    max-width: 1500px;
  }
}

@media (max-width: 900px){
  .projetos-modal .modal-dialog{
    max-width: 100vw;
    margin: 0;
  }
}

/* ==============================
   CARD DO MODAL
   ============================== */

.projetos-modal .modal-content{
  background: #fbf9f4; /* creme leve */
  color: #1f1f1f;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  border-radius: 0;
}

/* ==============================
   HEADER
   ============================== */

.projetos-modal .modal-header{
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 26px 32px;
  align-items: flex-start;
}

.projetos-modal .modal-title{
  font-family: var(--font-paragrafo);
  font-weight: 900;
  color: var(--cor-verde);
  letter-spacing: 2px;
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 0;
  line-height: 1.1;
}

.projetos-modal-resumo{
  margin-top: 12px;
  font-size: 1.15rem;
  color: rgba(0,0,0,.7);
}

.projetos-modal .btn-close{
  opacity: .5;
}

/* ==============================
   CORPO
   ============================== */

.projetos-modal .modal-body{
  padding: 40px 52px 56px;
}

@media (max-width: 900px){
  .projetos-modal .modal-body{
    padding: 22px;
  }
}

/* ==============================
   CONTEÚDO
   ============================== */

.projetos-modal-descricao{
  font-family: var(--font-paragrafo);
  font-size: 1.18rem;
  line-height: 1.95;
  color: #1f1f1f;
}

/* Espaçamento generoso */
.projetos-modal-descricao > *{
  margin: 0;
}

.projetos-modal-descricao > * + *{
  margin-top: 32px;
}

/* Títulos internos */
.projetos-modal-descricao h1,
.projetos-modal-descricao h2,
.projetos-modal-descricao h3{
  font-family: var(--font-titulo);
  color: var(--cor-verde);
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1.25;
  margin-top: 48px;
}

.projetos-modal-descricao h1{ font-size: 2.1rem; }
.projetos-modal-descricao h2{ font-size: 1.7rem; }
.projetos-modal-descricao h3{ font-size: 1.45rem; }

/* Destaques */
.projetos-modal-descricao strong{
  color: var(--cor-verde);
  font-weight: 800;
}

/* Links */
.projetos-modal-descricao a{
  color: var(--cor-verde);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==============================
   IMAGENS / VÍDEOS
   ============================== */

.projetos-modal-descricao img,
.projetos-modal-descricao video,
.projetos-modal-descricao iframe{
  display: block;
  width: 100%;
  height: auto;
  margin: 40px 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  background: #fff;
}

/* GIFs não explodirem */
.projetos-modal-descricao img[src$=".gif"]{
  max-height: 540px;
  object-fit: contain;
}

/* ==============================
   LISTAS / CITAÇÕES
   ============================== */

.projetos-modal-descricao ul,
.projetos-modal-descricao ol{
  padding-left: 1.4rem;
}

.projetos-modal-descricao li + li{
  margin-top: 10px;
}

.projetos-modal-descricao blockquote{
  margin: 40px 0;
  padding: 22px 26px;
  background: rgba(0,0,0,.04);
  border-left: 5px solid var(--cor-verde);
  color: rgba(0,0,0,.75);
}

/* ==============================
   BOTÃO JOGAR
   ============================== */

.projetos-modal-arquivo{
  display: flex;
  justify-content: flex-end; /* 👉 botão à direita */
  margin-top: 48px;          /* 👉 mais espaço do conteúdo */
}

.projetos-btn{
  min-width: 260px;          /* 👉 botão mais largo */
  padding: 16px 28px;
  background: var(--cor-verde);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  border: none;
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
}

.projetos-btn:hover{
  filter: brightness(.92);
}

.projetos-btn-disabled{
  min-width: 260px;
  padding: 16px 28px;
  background: rgba(0,0,0,.1);
  color: rgba(0,0,0,.45);
  border: 1px solid rgba(0,0,0,.12);
}

/* ==============================
   MOBILE
   ============================== */

@media (max-width: 900px){
  .projetos-modal-descricao{
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .projetos-modal-descricao > * + *{
    margin-top: 26px;
  }

  .projetos-modal-descricao img,
  .projetos-modal-descricao video,
  .projetos-modal-descricao iframe{
    margin: 30px 0;
    border-radius: 10px;
  }

  .projetos-modal-arquivo{
    justify-content: center;
    margin-top: 36px;
  }

  .projetos-btn{
    width: 100%;
    max-width: 420px;
  }

 .projetos-filtros{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    padding-bottom: 6px;
  }
  .projetos-filtros::-webkit-scrollbar{ display: none; }

  .projetos-filtro{
    flex: 0 0 auto;          /* ✅ não deixa esmagar */
    white-space: nowrap;     /* ✅ não quebra texto */
    font-size: 1.1rem;
    padding: 10px 12px;
  }

}



/* ==============================
   TÍTULOS DAS SEÇÕES DO PROJETO
   ============================== */

.projetos-modal-descricao h3{
  font-family: var(--font-titulo);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: var(--cor-verde);

  margin-top: 56px;   /* bastante respiro acima */
  margin-bottom: 12px;

  line-height: 1.2;
}

/* Primeiro título não precisa de tanto respiro */
.projetos-modal-descricao h3:first-child{
  margin-top: 0;
}

/* Linha sutil abaixo do título (opcional, elegante) */
.projetos-modal-descricao h3::after{
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: var(--cor-verde);
  opacity: .65;
}

/* Mobile */
@media (max-width: 900px){
  .projetos-modal-descricao h3{
    font-size: 1.25rem;
    margin-top: 42px;
  }
}

/* 1) container do filtro */
.filtro {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;          /* ✅ quebra linha no mobile */
  width: 100%;
  max-width: 1100px;
  padding: 12px 16px;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 2) cada “grupo” do filtro (ex.: busca, select, chips) */
.filtro .grupo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;             /* ✅ permite encolher */
  flex: 1 1 220px;          /* ✅ cresce e quebra */
}

/* 3) inputs/select ocupam o espaço */
.filtro input,
.filtro select,
.filtro button {
  max-width: 100%;
}

/* 4) busca fica fluida */
.filtro input[type="search"],
.filtro input[type="text"] {
  flex: 1;
  min-width: 180px;
  width: 100%;
}

/* 5) “chips/botões” não estouram */
.filtro .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;          /* ✅ quebra chips */
  min-width: 0;
}
.filtro .chips > * {
  flex: 0 0 auto;
}

/* Mobile: vira “stack” bonito */
@media (max-width: 900px) {
  .filtro {
    padding: 10px 12px;
    gap: 10px;
  }
  .filtro .grupo {
    flex: 1 1 100%;
  }
  .filtro button {
    width: 100%;            /* ✅ botão ocupa linha toda se quiser */
  }

  .projetos-secao{
    padding: 28px 15px;              /* o padding lateral vai ficar no #conteudo_blog */
    background-attachment: scroll; /* desliga o fixed no mobile */
  }
}

#conteudo_blog{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;          /* respiro lateral no mobile */
  box-sizing: border-box;
  min-width: 0;
}