

body {
      font-family: Arial, sans-serif;
      background: #f4f4f4;
    
    }

    .linhas-container {
      text-align: center;
    }

    .cards-linhas {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .card-linha {
      width: 100%;
      height: 300px;
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .card-linha .imagem {
      background-size: cover;
      background-position: center;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .card-linha .imagem::before {
      content: "";
      position: absolute;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1;
    }

    .card-linha .texto {
      color: #fff;
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 20px;
    }

    .card-linha h3 {
      font-size: 30px;
      margin-bottom: 10px;
    }

    .card-linha p {
      font-size: 18px;
    }
   

   /* ===== HEADER ===== */
.header {
  background: #003366;
  width: 100%;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
}

/* MENU DESKTOP */
.menu-desktop {
  display: flex;
  gap: 30px;
}

.menu-desktop a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* MENU MOBILE */
.menu-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #003366;
  padding: 30px 20px;
  transform: translateX(100%); /* FECHADO */
  transition: transform 0.3s ease;
  z-index: 1001;
}

.menu-mobile .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1002; /* 👈 ESSENCIAL */
}


.menu-mobile.open {
  transform: translateX(0);
}

.menu-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 60px;
}

.menu-mobile nav a {
  color: #fff;
  font-size: 22px;
  text-decoration: none;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
    display: none;

}

.overlay.show {
  display: block !important; 
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .menu-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }
#sobre-nos {
    flex-direction: column;      /* 👈 empilha */
    text-align: left;
    padding: 32px 20px;
    margin: 24px 16px;     /* cria respiro lateral */
    border-radius: 20px;  /* reforça formato de card */
    width: 100%;          /* evita colar nas bordas */
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  }

  #sobre-nos .texto-sobre,
  #sobre-nos .imagem-sobre {
    width: 100%;
  }

  #sobre-nos h2 {
  font-size: 22px;
  text-align: left;  }

  #sobre-nos p {
    font-size: 16px;
  }

  #sobre-nos img {
    max-height: 180px;
    margin-top: 20px;
  }
   .imagem-sobre {
  display: block;      /* mostra */
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

   .sobre-texto {
    max-width: 100%;
  }
  .header-content {
  justify-content: space-between 
  }
  .logo img {
    height: 80px;           /* aumenta a logo */
  }
}

/* ===== CONTAINER ===== */
.sobre-wrapper {
  padding: 40px 20px;
}

/* ===== CARD ===== */
#sobre-nos {
  background-color: #003366;
  color: white;

  max-width: 1100px;
  margin: 0 auto;

  padding: 0 30px 5px;
  border-radius: 20px;

  display: flex;
  align-items: center;
  gap: 40px;
}

/* TEXTO */

.sobre-texto p {
  font-size: 26px;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

/* IMAGEM */
.sobre-imagem {
  display: flex;
  flex-direction: column; /* 👈 força empilhar */
  align-items: flex-start;    /* centraliza */
  min-width: 300px;   
}

.sobre-imagem img {
  max-width: 100%;
}

@media (min-width: 769px) {
  #sobre-nos {
    flex-direction: row;
    align-items: center;
  }

  .sobre-imagem {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sobre-imagem img {
    max-height: 1000px;
  }
}
@media (min-width: 769px) {

  /* HEADER */
  .header-content {
    gap: 280px;              /* aproxima logo e menu */
  }

  /* LOGO */
  .logo img {
    height: 100px;           /* aumenta a logo */
  }

  .menu-desktop a {
    font-size: 20px;        /* aumenta o texto */
    padding: 6px 0;         /* melhora a área de clique */
  }
   .menu-desktop {
    gap: 50px;              /* aproxima os links entre si */
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .cards-linhas {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }

  .card-linha {
    height: 260px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .cards-linhas {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px;
  }

  .card-linha {
    height: 220px;
    border-radius: 6px;
  }
}
