/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* ===== VARIÁVEIS ===== */
:root {
    --purple-dark: #3a0ca3;
    --purple: #7209b7;
    --yellow: #f9c80e;
    --yellow-light: #ffe066;
    --text: #f5f5f5;
    --light-text: #ddd;
    --background: #1a082d;
    --card-bg: #2a0f4a;
    --border-radius: 14px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ===== BASE ===== */
html{
    scroll-behavior:smooth;
}

body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 30%, rgba(114, 9, 183, 0.4), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(249, 200, 14, 0.25), transparent 40%),
                linear-gradient(180deg, #1a082d, #2a0f4a);
    min-height: 100vh;
    line-height: 1.7;
}

/* ===== LAYOUT ===== */
section {
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  text-align: center;
  padding: 40px 20px;
  border-bottom: 3px solid var(--yellow);
}

header h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* ===== HEADER CONTENT ===== */
.header-content {
  display: flex;
  flex-direction: column; /* empilha o título e o menu */
  align-items: center;
}

/* ===== NAVBAR ===== */
nav {
  margin-top: 10px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 18px;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--yellow);
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* ===== MENU RESPONSIVO ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: 0.3s;
}

/* Estado ativo (animação do X) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .header-content {
    align-items: flex-start;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-top: 2px solid var(--yellow);
    margin-top: 15px;
    padding: 20px 0;
  }

  nav a {
    display: block;
    margin: 12px 0;
    font-size: 18px;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    align-self: flex-end;
  }
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.hero h2 {
    font-size: 56px;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(249, 200, 14, 0.3);
}

.hero p {
    max-width: 1000px;
    margin: auto;
    font-size: 20px;
    color: var(--light-text);
    opacity: 0.9;
}

/* ===== BOTÕES ===== */
.button {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
    color: #2a0f4a;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(249, 200, 14, 0.3);
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(249, 200, 14, 0.45);
}

/* ===== TÍTULOS ===== */
.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 60px;
    color: var(--yellow);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--yellow);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--yellow);
    box-shadow: 0 20px 50px rgba(249, 200, 14, 0.25);
}

.card h3 {
    color: var(--yellow);
    margin-bottom: 12px;
    font-size: 22px;
}

/* ===== SOBRE ===== */

.sobre-card {
  display: block;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--light-text);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: 0.3s;
  text-decoration: none;
}

.sobre-card:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: 0 20px 40px rgba(249, 200, 14, 0.25);
}

.sobre-card p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.button-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
  color: #2a0f4a;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 50px;
  transition: 0.3s;
}

.sobre-card:hover .button-link {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 200, 14, 0.3);
}

/* ===== EQUIPE ===== */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-items: stretch;
}

.member {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: left;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-left: 5px solid var(--yellow);
    color: var(--text);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.member::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
    opacity: 0;
    transition: 0.3s;
    z-index: 0;
}

.member:hover::after {
    opacity: 0.15;
}

.member h4, .member p {
    position: relative;
    z-index: 1;
}

.member:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(249, 200, 14, 0.25);
}

/* ===== SETORES ===== */
.setor {
    padding: 120px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 2px solid rgba(249, 200, 14, 0.2);
}

.setor:nth-child(even) {
    background: rgba(114, 9, 183, 0.05);
}

.setor-title {
    text-align: center;
    font-size: 36px;
    color: var(--yellow);
    margin-bottom: 20px;
}

.setor-desc {
    max-width: 1000px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--light-text);
    font-size: 18px;
    line-height: 1.7;
}

/* ===== DIRETORES ===== */
.diretores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.pessoa {
    position: relative;
    text-align: center;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    width: 220px;
}

.pessoa:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(249, 200, 14, 0.25);
}

.pessoa img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--yellow);
}

.pessoa h4 {
    color: var(--text);
    font-size: 18px;
    margin-top: 5px;
}

/* ===== BADGE ===== */

.pessoa .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--yellow);
    color: #2a0f4a;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.vice {
    top: 16px;
    right: 45px;
}

/* ===== AJUSTES PARA INTEGRANTES ===== */

.carousel-container {
  overflow-x: auto;
  overflow-y: visible; /* garante que nada seja cortado verticalmente */
  white-space: nowrap;
  scroll-behavior: smooth;
  padding: 30px 20px 30px; /* mais espaço embaixo */
  margin: 0;
}

.setor {
  overflow: visible; /* evita que o carrossel seja cortado dentro da seção */
}

.carousel-container::-webkit-scrollbar {
  height: 8px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 4px;
}

.carousel-item {
  display: inline-block;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  text-align: center;
  padding: 20px;
  margin: 0 12px; /* espaço entre os cards */
  box-shadow: var(--shadow);
  transition: 0.3s;
  width: 200px;
  vertical-align: top;
}

.carousel-item:first-child {
  margin-left: 10px; /* respiro no início */
}

.carousel-item:last-child {
  margin-right: 10px; /* respiro no fim */
}

.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px rgba(249, 200, 14, 0.25);
}

.carousel-item img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--yellow);
}

.carousel-item p {
  color: var(--light-text);
  font-size: 15px;
  white-space: normal;
}

/* ===== AJUSTES PARA INTEGRANTES ===== */
.integrantes-carousel {
    position: relative;
    overflow: visible; /* evita cortar sombras e brilhos */
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.integrante {
    flex: 0 0 180px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    text-align: center;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.integrante:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(249, 200, 14, 0.25);
}

.integrante img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--yellow);
}

.integrante p {
    color: var(--light-text);
    font-size: 14px;
    font-weight:600;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .diretores {
        flex-direction: column;
        align-items: center;
    }

    .pessoa {
        width: 80%;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}

/* ===== CTA ===== */
.cta {
    text-align: center;
    color: var(--text);
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    padding: 100px 20px;
    margin-top: 50px;
    border-top: 3px solid var(--yellow);
}

.cta p {
    color: var(--light-text);
    font-size: 18px;
}

/* ===== FOOTER ===== */
footer {
    background: #12051f;
    color: var(--light-text);
    text-align: center;
    padding: 40px;
    border-top: 2px solid var(--yellow);
}

footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero h2 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .card {
    padding: 24px;
  }

  .button {
    padding: 14px 28px;
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .member {
    padding: 30px 20px;
  }

  .carousel-container {
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
  }

  .carousel-item {
    width: 150px;
    margin: 0 8px;
    scroll-snap-align: start;
  }

  .carousel-item img {
    width: 80px;
    height: 80px;
  }

  section {
    padding: 60px 16px;
  }

  p {
    font-size: 16px;
  }
}

/* ===== HEADER RESPONSIVO ===== */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: 0.3s;
}

/* Estado ativo (animação do X) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== NAVBAR ===== */
@media (max-width: 768px) {
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-top: 2px solid var(--yellow);
    margin-top: 15px;
    padding: 20px 0;
  }

  nav a {
    display: block;
    margin: 12px 0;
    font-size: 18px;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}