/* estilo geral */
body {
  background-color: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

section p {
  text-align: justify;
}

/* estilo header */
header {
  background-color: #8474A1;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 28px;
  color: #5a2a82;
}

header p {
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
  font-weight: 500;
  color: #3a3a3a;
}

/* Seções gerais */
section {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
}

/* foto de perfil */
img.profile {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 20px;
}

/* container geral - sub-seção */
.minha-historia {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

/* texto - sub-seção  */
.minha-historia .texto-historia {
  flex: 1 1 55%;
}

/* fotos com legenda - sub-seção */
.fotos-historia {
  flex: 1 1 40%;
  position: relative;
  min-height: 500px; /* aumentado para comportar o novo espaçamento entre as três fotos */
}

/* cada figure (foto + legenda) */
.fotos-historia figure {
  position: absolute;
  width: 180px;
  text-align: center;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

/* posicionamento das fotos (mais espaço entre elas) */
.fotos-historia figure:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 1;
}

.fotos-historia figure:nth-child(2) {
  top: 100px;      /* aumentado (antes 60px) */
  left: 150px;    /* aumentado (antes 100px) */
  z-index: 1;
}

.fotos-historia figure:nth-child(3) {
  top: 200px;     /* aumentado (antes 140px) */
  left: 10px;     /* aumentado (antes 40px) */
  z-index: 2;
}

/* foto dentro do figure */
.fotos-historia img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #055B5C;
}

/* legendas */
.fotos-historia figcaption {
  font-size: 13px;
  margin-top: 6px;
  color: #444;
}

/* efeito hover entre as figures */
.fotos-historia figure:hover {
  transform: scale(1.05);
  z-index: 3;
}

/* responsivo: fotos empilhadas no mobile (telas menores) */
@media (max-width: 768px) {
  .minha-historia {
    flex-direction: column;
  }

  .fotos-historia {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
  }

  .fotos-historia figure {
    position: static;
    width: 100%;
  }

  .fotos-historia img {
    height: auto;
  }
}

/* Container do vídeo responsivo */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Botões gerais */
.cta-button {
  background-color: #055B5C;
  color: white;
  padding: 15px 25px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: block;        /* vira bloco para permitir margin auto */
  width: max-content;    /* largura se ajusta ao conteúdo */
  margin: 10px auto 0;   /* centraliza horizontalmente */
}

.cta-button:hover {
  background-color: #034344;
}

/* Botão Whoop (cores do outro site) */
.whoop-button {
  background-color: #E4A834;
  color: white;
  padding: 15px 25px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: block;      
  width: max-content;  
  margin: 10px auto 0;   
}

.whoop-button:hover {
  background-color: #1F1F1F;
}

/* Carrossel de depoimentos */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 400ms ease;
  will-change: transform;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-track .slide {
  min-width: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  box-sizing: border-box;
}

.carousel-track .slide .card {
  display: inline-block;
  background: #fff;
  border: 2px solid #055B5C;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 8px;           /* espaço interno opcional */
  max-width: 95%;         /* evita fotos muito grandes */
}

.carousel-track .slide img {
  display: block;
  width: auto;             /* mantém proporção original */
  height: auto;            /* mantém proporção original */
  max-width: 100%;         /* nunca ultrapassa a largura disponível */
  max-height: 80vh;        /* nunca ultrapassa 80% da altura da tela */
  border-radius: 6px;
  background: #f3f7f3;
}

/* Botões do carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #055B5C;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  filter: brightness(1.05);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Dots */
.carousel-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #055B5C;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dots button[aria-selected="true"] {
  background: #055B5C;
}

/* Footer */
footer {
  background-color: #055B5C;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #fff;
}
