:root {
    --verde-ej:     #017369;
    --verde-escuro: #003840;
    --verde-claro:  #06A576;
    --roxo-1:       #3A0C57;
    --roxo-2:       #661B99;
    --roxo-3:       #9B20ED;
    --branco:       #FAFAFA;
    --preto:        #191818;
}

body {
    background-color: var(--branco);
    color: var(--preto);
}

html,
body {
  overflow-x: hidden;
}

main {
    width: 100%;
}

.container-materiais {
    width: 85%;
    margin: 0 auto;
    padding: 0 40px;
}

.secao-verde-hero {
    width: 100%;
    background-color: var(--verde-ej);
    padding: 60px 0 80px;
    border-bottom-right-radius: 80px;
}

.titulo-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.titulo-wrapper h1 {
    color: white;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.seta-baixar {
    font-size: 2.8rem;
    color: white;
    line-height: 1;
    align-self: flex-end;
    padding-bottom: 4px;
}

.secao-grid {
    width: 100%;
    padding: 70px 0 80px;
    background-color: var(--branco);
}

.grid-materiais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;
}

.card-material {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card-material:hover {
    transform: translateY(-4px);
}

.card-thumb-wrapper {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #c8e6e2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-info h3 {
    font-size: 1.1rem;
    color: var(--preto);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.card-info p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .grid-materiais {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
}

@media (max-width: 768px) {
    .container-materiais {
        width: 92%;
        padding: 0 24px;
    }

    .secao-verde-hero {
        padding: 40px 0 60px;
        border-bottom-right-radius: 48px;
    }

    .titulo-wrapper h1 {
        font-size: 2.4rem;
    }

    .seta-baixar {
        font-size: 2rem;
    }

    .secao-grid {
        padding: 48px 0 60px;
    }

    .grid-materiais {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }
}

@media (max-width: 480px) {
    .container-materiais {
        width: 95%;
        padding: 0 16px;
    }

    .secao-verde-hero {
        padding: 32px 0 48px;
        border-bottom-right-radius: 32px;
    }

    .titulo-wrapper h1 {
        font-size: 1.9rem;
    }

    .grid-materiais {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-thumb-wrapper {
        height: 180px;
    }
}

/* ============================================================
   HEADER GREEN — reutilizável
   Extraído do padrão visual de gestao-empresarial
   ============================================================ */

:root {
  --primary:          #017369;
  --primary-dark:     #003840;
  --primary-rgba-92:  rgba(1, 115, 105, 0.92);
  --white-soft:       rgba(255, 255, 255, 0.6);
  --white-soft-hover: rgba(255, 255, 255, 0.82);
}

/* ===== BARRA DE NAVEGAÇÃO ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  width: 100%;
  padding: 14px 28px;
}

/* ===== GRUPOS DE NAV ===== */
.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.nav-group.left  { justify-content: flex-start; }
.nav-group.right { justify-content: flex-end; }

.nav-item { position: relative; }

/* ===== PÍLULAS ===== */
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(130px, 10vw, 175px);
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--white-soft);
  color: var(--primary);
  text-decoration: none;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-pill:hover {
  background: var(--white-soft-hover);
  transform: translateY(-1px);
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: clamp(70px, 6vw, 100px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* ===== DROPDOWN DESKTOP ===== */
.has-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--primary);
  border-radius: 0 16px 16px 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.dropdown-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  opacity: 0.92;
}

.dropdown-right {
  left: auto;
  right: 0;
  border-radius: 16px 0 16px 16px;
}

/* ===== BOTÃO HAMBURGUER ===== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px)  rotate(45deg);  }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== MENU MOBILE ===== */
.mobile-menu {
  display: none;
  padding: 0 28px 16px;
  background: var(--primary-rgba-92);
  backdrop-filter: blur(6px);
}

.mobile-menu.active { display: block; }

.mobile-item,
.mobile-menu > a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-menu > a:last-child,
.mobile-item:last-child {
  border-bottom: none;
}

.mobile-link {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mobile-submenu {
  display: none;
  padding: 0 0 10px 14px;
}

.mobile-submenu a {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 0;
}

.mobile-item.active .mobile-submenu { display: block; }

.mobile-item.active .mobile-submenu-toggle span {
  transform: rotate(45deg);
}

.mobile-submenu-toggle span {
  display: inline-block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1200px) {
  .nav-pill {
    min-width: 130px;
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
  }

  .logo img { height: 70px; }
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 22px;
  }

  .desktop-nav { display: none !important; }

  .logo { justify-content: flex-start; }
  .logo img { height: 60px; }

  .menu-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
  .topbar { padding: 10px 14px; }

  .mobile-menu { padding: 0 14px 14px; }

  .logo img { height: 50px; }
}