/* =========================
   PORTFOLIO.HTML — AGÊNCIA PORTFÓLIO (CSS)
   Classes exclusivas: .portpg-*
========================= */

.portpg{
  position: relative;
}

/* container herda padrão .section > .container */

/* ===== título ===== */
.portpg__heading{
  text-align: center;
  margin: 0 0 34px;
}

.portpg__heading-text{
  font-size: 18px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
}

/* ===== slider ===== */
.portpg__slider{
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* área clicável */
.portpg__stage{
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
  background: #050505;
}

/* figura */
.portpg__figure{
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* imagem */
.portpg__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .6s ease;
}

/* zoom suave */
.portpg__stage:hover .portpg__img{
  transform: scale(1.05);
}

/* ===== overlay ===== */
.portpg__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55),
    rgba(0,0,0,.25)
  );
  opacity: 0;
  transition: opacity .35s ease;
}

.portpg__stage:hover .portpg__overlay{
  opacity: 1;
}

/* botão overlay */
.portpg__overlay-btn{
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: all .25s ease;
}

.portpg__stage:hover .portpg__overlay-btn{
  background: rgba(40,199,0,.18);
  border-color: rgba(40,199,0,.6);
  color: #28c700;
  box-shadow: 0 0 18px rgba(40,199,0,.35);
}

/* ===== setas ===== */
.portpg__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 3;
}

.portpg__nav:hover{
  border-color: rgba(40,199,0,.7);
  color: #28c700;
  box-shadow: 0 0 12px rgba(40,199,0,.35);
}

.portpg__nav--prev{
  left: 14px;
}

.portpg__nav--next{
  right: 14px;
}

/* ===== meta abaixo ===== */
.portpg__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

/* título projeto */
.portpg__title{
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .02em;
}

/* bloco ver online */
.portpg__see{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
}

.portpg__see-link{
  color: #28c700;
  text-decoration: none;
  border-bottom: 1px solid rgba(40,199,0,.35);
  transition: opacity .2s ease;
}

.portpg__see-link:hover{
  opacity: .8;
}









/* =========================
   RESPONSIVO — PORTFOLIO (portpg)
   - sem alterar desktop
   - sem scroll horizontal
   - mais respiro lateral no mobile/tablet
   - botões/setas touch-friendly
   - meta quebra sem “cortar” na direita
========================= */


/* =========================
   MOBILE (<= 575.98px)
========================= */
@media (max-width: 575.98px){

  /* ✅ segurança contra estouro lateral (sombras/offsets) */
  .portpg{
    overflow-x: hidden;
  }

  /* ✅ heading menor e com respiro */
  .portpg__heading{
    margin: 0 0 22px;
    padding: 0 14px; /* nada colado nas bordas */
  }

  .portpg__heading-text{
    font-size: 14px;
    letter-spacing: .16em;
  }

  /* ✅ setas mais fáceis de tocar e menos “pra fora” */
  .portpg__nav{
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .portpg__nav--prev{ left: 10px; }
  .portpg__nav--next{ right: 10px; }

  /* ✅ overlay sempre disponível no touch (hover não existe bem no mobile)
     mantém identidade: só garante leitura/CTA sem depender de hover */
  .portpg__overlay{
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0,0,0,.60),
      rgba(0,0,0,.18)
    );
  }

  .portpg__overlay-btn{
    padding: 14px 18px;
    font-size: 13px;
    min-height: 44px; /* alvo de toque */
  }

  /* ✅ meta vira coluna e evita corte na direita */
  .portpg__meta{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 14px; /* respiro lateral */
  }

  .portpg__title{
    font-size: 18px;
  }

  .portpg__see{
    flex-wrap: wrap;
    row-gap: 6px;
  }
}


/* =========================
   TABLET MINI (576px – 991.98px)
========================= */
@media (min-width: 576px) and (max-width: 991.98px){

  /* ✅ evita qualquer overflow lateral */
  .portpg{
    overflow-x: hidden;
  }

  /* ✅ heading com respiro */
  .portpg__heading{
    margin: 0 0 28px;
    padding: 0 18px;
  }

  .portpg__heading-text{
    font-size: 16px;
  }

  /* ✅ setas levemente maiores (tablet = toque) */
  .portpg__nav{
    width: 46px;
    height: 46px;
    font-size: 26px;
  }
  .portpg__nav--prev{ left: 12px; }
  .portpg__nav--next{ right: 12px; }

  /* ✅ overlay visível no tablet (touch) */
  .portpg__overlay{
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0,0,0,.58),
      rgba(0,0,0,.20)
    );
  }

  .portpg__overlay-btn{
    min-height: 44px;
  }

  /* ✅ meta pode quebrar sem “empurrar” a tela */
  .portpg__meta{
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 0 18px;
  }

  .portpg__title{
    font-size: 20px;
  }
}




/* =========================
   PORTFOLIO — BOTÃO OVERLAY (MOBILE FIX)
========================= */
@media (max-width: 575.98px){

  /* garante posicionamento preciso */
  .portpg__overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
  }

  /* botão realmente menor e proporcional */
  .portpg__overlay-btn{
    padding: 7px 14px;      /* menor */
    font-size: 11px;
    line-height: 1;         /* remove “altura invisível” */
    border-radius: 999px;

    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,.45);
  }
}


/* TABLET MINI */
@media (min-width: 576px) and (max-width: 991.98px){

  .portpg__overlay{
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 14px;
  }

  .portpg__overlay-btn{
    padding: 10px 18px;
    font-size: 12px;
  }
}

/* =========================
   PORTFOLIO — FIX MOBILE (<=575.98px)
   - botão no canto inferior direito
   - menor e mais discreto
   - texto centralizado dentro do botão
   - força override do desktop (ordem/especificidade)
========================= */
@media (max-width: 575.98px){

  /* overlay: para de centralizar (grid) e joga pro canto */
  .portpg__stage .portpg__overlay{
    display: flex !important;
    place-items: unset !important;   /* mata o center do grid */
    align-items: flex-end !important;
    justify-content: flex-end !important;

    padding: 10px !important;
    opacity: 1; /* mantém visível no touch */
  }

  /* botão: menor + alinhamento perfeito do texto */
  .portpg__stage .portpg__overlay-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 7px 12px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    text-align: center !important;

    min-height: 0 !important;  /* garante que não tenha “altura padrão” */
    height: auto !important;
    width: auto !important;
  }
}

/* =========================
   PORTFOLIO — FIX TABLET (576px–991.98px)
   botão no canto inferior direito
   tamanho mais discreto
========================= */
@media (min-width: 576px) and (max-width: 991.98px){

  /* overlay alinhado ao canto */
  .portpg__stage .portpg__overlay{
    display: flex !important;
    place-items: unset !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;

    padding: 14px !important;
    opacity: 1;
  }

  /* botão menor e proporcional ao tablet */
  .portpg__stage .portpg__overlay-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 9px 16px !important;
    font-size: 12px !important;
    line-height: 1 !important;

    height: auto !important;
    min-height: 0 !important;
  }
}