: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);
}

main {
    width: 100%;
}


:root {
  --primary: #017369;
  --primary-dark: #003840;
  --primary-soft: rgba(1, 115, 105, 0.15);
  --primary-rgba-92: rgba(1, 115, 105, 0.92);
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --text-dark: #1f1f1f;
  --text-muted: #4a4a4a;
  --white-soft: rgba(255, 255, 255, 0.6);
  --white-soft-hover: rgba(255, 255, 255, 0.82);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT BASE ===== */
.gestao-page {
  width: 100%;
  max-width: 100%;
  padding: 16px 24px 24px;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(90deg, var(--primary) 1%, var(--primary-soft) 100%);
  border-top-left-radius: 32px;
  border-bottom-right-radius: 80px;
  min-height: 160px;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.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;
}

.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; }

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: clamp(70px, 6vw, 100px);
  width: auto;
  object-fit: contain;
  display: block;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 16px;
  max-width: 900px;
  letter-spacing: -0.01em;
}

/* ===== 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;
}

/* ===== CARDS ===== */
.service-card {
  margin-top: 20px;
  border: 1.5px solid var(--primary);
  border-radius: 22px 22px 0 22px;
  background: var(--card-bg);
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 28px;
  padding: 18px;
  align-items: stretch;
  min-height: 300px;
}

.reverse {
  grid-template-columns: 1fr minmax(260px, 360px);
}

.reverse .service-image   { order: 2; }
.reverse .service-content { order: 1; }

/* IMAGEM PADRONIZADA — sem margin-top (corrige desalinhamento) */
.service-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.service-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--primary-dark), transparent);
  opacity: 0.4;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.service-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 18px 18px 0 18px;
  display: block;
}

/* CONTENT centralizado verticalmente */
.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px 8px 4px;
  min-width: 0;
}

.service-content h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.01em;
  word-wrap: break-word;
}

.service-content p {
  font-size: clamp(14px, 1vw, 16.5px);
  line-height: 1.55;
  margin-bottom: 22px;
  color: var(--text-muted);
}

.subtitle {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0;
  color: var(--primary);
  opacity: 0.85;
}

/* ===== BOTÃO ===== */
.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

/* ===== MENU 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;
}

.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;
    }
}