body {
  font-family: 'Lexend Deca', Arial, sans-serif;
  background: #e0e0e0;
  margin: 0;
  color: #022b44;
}

header {
  background: #022b44;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.header-title {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #00a859;
  padding: 6px;
  margin-right: 10px;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.2rem;
  color: #bbf1e2;
  margin-top: 0;
  margin-bottom: 0;
}

.portfolio-section {
  max-width: 1050px;
  margin: 40px auto 0 auto;
  padding: 0 12px;
  text-align: center;
}

.portfolio-section h2 {
  font-size: 2rem;
  color: #006d3f;
  margin-bottom: 28px;
  font-weight: 700;
}

.carousel {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  gap: 32px;
  min-width: 950px;
  padding-bottom: 16px;
}

.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 20px 24px 20px;
  width: 250px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,128,96,0.15);
}

.card h3 {
  font-size: 1.3rem;
  color: #022b44;
  margin-bottom: 12px;
}

.card p {
  color: #174649;
  font-size: 1rem;
  min-height: 60px;
}

.card-btn {
  display: inline-block;
  margin-top: 16px;
  background: linear-gradient(90deg, #00a859, #022b44 80%);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,168,89,0.07);
  transition: background 0.3s, transform 0.2s;
}

.card-btn:hover {
  background: linear-gradient(90deg, #022b44 70%, #00a859 100%);
  transform: scale(1.05);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

footer {
  margin-top: 60px;
  background: #022b44;
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

footer .flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

footer .flags img {
  width: 40px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 32px 0 24px 0;
}

.header-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}
.header-logos-grid img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  padding: 3px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #00a859;
  padding: 6px;
}
.logo-container h1 {
  margin: 0 0 8px 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-container .subtitle {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0;
}
.header-img-pair {
  height: 44px;
  display: flex;
  gap: 0;
}
.header-img-pair .img-half {
  width: 200px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.menu-row {
  padding: 24px;
  background: #006d3f;
  gap: 0;
}
.menu-arrow-btn {
  display: flex;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,168,89,0.12);
  cursor: pointer;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.menu nav {
  display: flex;
  gap: 22px;
  width: 100%;
  justify-content: center;
}
.menu .card-btn {
  font-size: 1.15rem;
  padding: 12px 34px;
  font-weight: 700;
  color: #fff;
  background: #022b44 100%;
  border: none;
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(2, 43, 68, 0.07);
  transition: background 0.3s, transform 0.2s;
  margin: 0 0.5rem;
  display: inline-block;
}
.menu .card-btn:hover {
  background: linear-gradient(90deg, #022b44 60%, #00a859 100%);
  transform: translateY(-2px) scale(1.04);
}
.menu-btn {
  background: #00a859;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 168, 89, 0.12);
  cursor: pointer;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.menu-arrow-btn {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 44px;
  z-index: 110;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #fff;
  padding: 18px;
  border-radius: 20px;
  margin: 0 auto;
  max-width: 1100px;
  box-shadow: 0 3px 18px rgba(0, 168, 89, 0.09);
  opacity: 1;
  pointer-events: auto;
  transition: max-height 0.4s, opacity 0.3s;
}
.menu-closed {
  display: none;
}
.menu nav {
  display: flex;
  gap: 22px;
  width: 100%;
  justify-content: center;
}


.about-section {
  width: 98%;
  padding: 20px;
  background: #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #004d99;
}

.about-section h3 {
  font-size: 1.3rem;
  margin-top: 20px;
  color: #0066cc;
}

.about-section p {
  margin: 10px 0;
}

.about-section ul,
.about-section ol {
  margin: 10px 0 10px 20px;
}

.about-section li {
  margin: 5px 0;
}

/* --- MOBILE: menu fechado por padrão, abre com .active --- */
@media (max-width: 800px) {
  .menu {
    position: absolute;
    left: 0;
    top: 60px; /* ajuste conforme header */
    width: 100vw;
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 12px 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
  }
  .menu nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .menu .card-btn {
    width: 80vw;
    text-align: center;
    margin: 0 auto;
    padding: 13px 0;
    font-size: 1.07rem;
  }
}
@media (max-width: 800px) {
  .menu {
    position: absolute;
    left: 0;
    top: 60px; 
    width: 100vw;
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 12px 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
  }
  .menu nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .menu .card-btn {
    width: 80vw;
    text-align: center;
    margin: 0 auto;
    padding: 13px 0;
    font-size: 1.07rem;
  }
}
@media (max-width: 450px) {
  .menu .card-btn {
    font-size: 0.97rem;
    padding: 10px 0;
    width: 95vw;
  }
}
@media (max-width: 950px) {
  .header-row {
    flex-direction: column;
    gap: 16px;
    padding: 22px 0 14px 0;
  }
  .logo-container { justify-content: center; }
  .header-logos, .header-img-pair { justify-content: center; }
}

@media (max-width: 1200px) {
  .carousel-track { min-width: 700px; gap: 20px; }
  .card { width: 220px; min-width: 220px; }
}

@media (max-width: 850px) {
  .logo-container { flex-direction: column; gap: 14px; }
  .carousel-track { min-width: 540px; gap: 14px; }
  .card { width: 180px; min-width: 180px; padding: 24px 12px; }
}

@media (max-width: 650px) {
  .carousel-track { min-width: 300px; gap: 8px; }
  .card { width: 150px; min-width: 150px; font-size: 0.95rem; }
  .portfolio-section h2 { font-size: 1.3rem; }
  h1 { font-size: 2rem; }
}
