* {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevenir scroll horizontal em mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevenir zoom indesejado em iOS */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

a {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
}

/* Garantir que imagens e elementos não ultrapassem a largura da tela */
img, 
video {
  max-width: 100%;
  height: auto;
}

/* Melhorar performance de scroll em mobile */
@media (max-width: 768px) {
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevenir problemas de layout em mobile */
  .container-fluid {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

/*======================================================
                        Navbar
  ======================================================*/
#navbar {
  background: #1c604a;
  color: rgb(13, 26, 38);
  position: fixed;
  top: 0;
  height: 60px;
  line-height: 60px;
  width: 100vw;
  z-index: 10;
}

.nav-wrapper {
  margin: auto;
  text-align: center;
  width: 70%;
  max-width: 1400px;
}

.logo {
  float: left;
  font-size: 1.5em;
  height: 60px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-svg {
  width: 50px;
  height: auto;
  vertical-align: middle;
}

#navbar ul {
  display: block;
  float: right;
  font-size: 15px;
  list-style: none;
  margin-top: -2px;
  text-align: right;
  transition: transform 0.5s ease-out;
  -webkit-transition: transform 0.5s ease-out;
}

#navbar li {
  display: inline-block;
}

#navbar li a {
  color: white;
  display: block;
  font-size: 0.7em;
  height: 50px;
  letter-spacing: 1px;
  margin: 0 20px;
  padding: 0 4px;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

#navbar li a:hover {
  color: rgb(28, 121, 184);
  transition: all 1s ease;
  -webkit-transition: all 1s ease;
}

/* Animated Bottom Line */
#navbar li a:before,
#navbar li a:after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -1px;
  background: rgb(13, 26, 38);
}

#navbar li a:before {
  left: 0;
  transition: 0.5s;
}

#navbar li a:after {
  background: rgb(13, 26, 38);
  right: 0;
}

#navbar li a:hover:before {
  background: rgb(13, 26, 38);
  width: 100%;
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#navbar li a:hover:after {
  background: transparent;
  width: 100%;
}

/*======================================================
                  Mobile Menu Icon
  ======================================================*/
.menuIcon {
  cursor: pointer;
  display: none;
  position: fixed;
  right: 15px;
  top: 20px;
  height: 23px;
  width: 27px;
  z-index: 12;
  padding: 15px;
  margin: -15px;
  /* Melhorar área de toque para mobile */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Icon Bars */
.icon-bars {
  background: rgb(13, 26, 38);
  position: absolute;
  left: 1px;
  top: 45%;
  height: 2px;
  width: 20px;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.icon-bars::before {
  background: rgb(13, 26, 38);
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  height: 2px;
  width: 20px;
  -webkit-transition: 0.3s width 0.4s;
  transition: 0.3s width 0.4s;
}

.icon-bars::after {
  margin-top: 0px;
  background: rgb(13, 26, 38);
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 20px;
  -webkit-transition: 0.3s width 0.4s;
  transition: 0.3s width 0.4s;
}

/* Bars Shadows */
.icon-bars.overlay {
  background: rgb(183, 199, 211);
  width: 20px;
  animation: middleBar 3s infinite 0.5s;
  -webkit-animation: middleBar 3s infinite 0.5s;
}

@keyframes middleBar {
  0% { width: 0px; }
  50% { width: 20px; }
  100% { width: 0px; }
}

@-webkit-keyframes middleBar {
  0% { width: 0px; }
  50% { width: 20px; }
  100% { width: 0px; }
}

.icon-bars.overlay::before {
  background: rgb(183, 199, 211);
  width: 10px;
  animation: topBar 3s infinite 0.2s;
  -webkit-animation: topBar 3s infinite 0s;
}

@keyframes topBar {
  0% { width: 0px; }
  50% { width: 10px; }
  100% { width: 0px; }
}

@-webkit-keyframes topBar {
  0% { width: 0px; }
  50% { width: 10px; }
  100% { width: 0px; }
}

.icon-bars.overlay::after {
  background: rgb(183, 199, 211);
  width: 15px;
  animation: bottomBar 3s infinite 1s;
  -webkit-animation: bottomBar 3s infinite 1s;
}

@keyframes bottomBar {
  0% { width: 0px; }
  50% { width: 15px; }
  100% { width: 0px; }
}

@-webkit-keyframes bottomBar {
  0% { width: 0px; }
  50% { width: 15px; }
  100% { width: 0px; }
}

/* Toggle Menu Icon */
.menuIcon.toggle .icon-bars {
  top: 5px;
  transform: translate3d(0, 5px, 0) rotate(135deg);
  transition-delay: 0.1s;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menuIcon.toggle .icon-bars::before {
  top: 0;
  transition-delay: 0.1s;
  opacity: 0;
}

.menuIcon.toggle .icon-bars::after {
  top: 10px;
  transform: translate3d(0, -10px, 0) rotate(-270deg);
  transition-delay: 0.1s;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menuIcon.toggle .icon-bars.overlay {
  width: 20px;
  opacity: 0;
  -webkit-transition: all 0s ease 0s;
  transition: all 0s ease 0s;
}

/*======================================================
                 Responsive Mobile Menu 
  ======================================================*/
.overlay-menu {
  background: lightblue;
  color: rgb(13, 26, 38);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  padding-right: 15px;
  transform: translateX(-100%);
  width: 100vw;
  height: 100vh;
  -webkit-transition: transform 0.2s ease-out;
  transition: transform 0.2s ease-out;
  z-index: 9;
}

.overlay-menu ul,
.overlay-menu li {
  display: block;
  position: relative;
}

.overlay-menu li a {
  display: block;
  font-size: 1.8em;
  letter-spacing: 4px;
  padding: 15px 20px;
  text-align: right;
  text-transform: uppercase;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
  /* Melhorar área de toque */
  -webkit-tap-highlight-color: rgba(28, 121, 184, 0.2);
  touch-action: manipulation;
}

.overlay-menu li a:hover,
.overlay-menu li a:active {
  color: rgb(28, 121, 184);
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

/*======================================================
                    Banner Principal
  ======================================================*/
.banner-principal {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}

.banner-principal img {
  width: 100%;
  height: auto;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

.cima-banner {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  text-align: center;
  z-index: 2;
}

.cima-banner p {
  font-weight: 800;
  font-size: clamp(20px, 5vw, 38px);
  color: #fff;
  font-style: italic;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/*======================================================
                    Caixas de Informação
  ======================================================*/
.caixa-info {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 3;
}

.caixa {
  background-color: #fff;
  min-height: 200px;
  padding: 20px;
  box-shadow: 1px 10px 18px -7px rgba(0, 0, 0, 0.45);
  -webkit-box-shadow: 1px 10px 18px -7px rgba(0, 0, 0, 0.45);
  -moz-box-shadow: 1px 10px 18px -7px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
  border-radius: 5px;
  height: 100%;
}

.caixa2 {
  background-color: #1c604a !important;
}

.caixa2 p {
  color: #fff !important;
}

.caixa2 h3 {
  color: #fff !important;
}

.conteudo {
  padding: 10px;
}

.conteudo h3 {
  font-weight: bold;
  font-size: clamp(18px, 3vw, 23px);
  color: #252b42;
  margin-bottom: 15px;
}

.conteudo p {
  font-size: clamp(13px, 2vw, 14px);
  line-height: 1.8;
  color: #737373;
}

.conteudo a,
.caixa a {
  color: #1c604a;
  text-decoration: underline;
  display: inline-block;
  padding: 8px 5px;
  margin-top: 5px;
  font-weight: 600;
  transition: color 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(28, 96, 74, 0.2);
}

.conteudo a:hover,
.caixa a:hover {
  color: #ff9d00;
  text-decoration: none;
}

.faleconnosco {
  background-color: #ff9d00;
  color: #ffffff;
  font-size: 18px;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
  min-height: 44px;
  line-height: 1.5;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.faleconnosco:hover {
  background-color: #e88d00;
  text-decoration: none;
}

/*======================================================
                    Secções
  ======================================================*/
.seccoes {
  margin-top: 150px;
}

.seccoes h2 {
  font-weight: 700;
  color: #1c604a;
  font-size: clamp(24px, 4vw, 34px);
  text-align: left;
  padding-top: 60px;
  margin-bottom: 20px;
}

.seccoes p {
  text-align: justify;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.8;
  color: #333;
}

.seccoes ol {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.8;
  color: #333;
}

#servicos {
  padding: 40px 0;
}

#section2 {
  min-height: 600px;
  background-color: yellow;
}

.img-sobre {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  padding-top: 75px;
  display: block;
}

.img-porque {
  width: 89%;
  height: auto;
  border-radius: 8px;
  padding-top: 75px;
  display: block;
}

.footer-text {
  margin-bottom: 0;
  line-height: 1.5;
}

.titulo {
  padding-top: 60px !important;
}

.titulo-porque {
  padding-top: 60px !important;
}

.text-quem {
  padding-right: 65px;
  text-align: justify;
}

.porque-lista {
  padding-left: 20px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.porque-lista li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.alinharcentro {
  margin: 0 auto;
  text-align: center;
}

.alinharcentro:hover {
  text-decoration: none;
  background-color: #fff;
  color: #383838;
}

/*======================================================
                    Portfolio / Parceiros
  ======================================================*/
.azul {
  background-color: #9adcc7;
  padding: 20px 0;
  min-height: 120px;
}

#portfolio {
  padding: 60px 0 40px;
  margin-top: 40px;
}

.logo-parceiros {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.parceirosmobile {
  display: none;
  width: 100%;
  height: auto;
}

/*======================================================
                    Grid Container
  ======================================================*/
.container2 {
  width: 80vw;
  max-width: 1400px;
  margin: 3em auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 50px;
  grid-auto-flow: dense;
  grid-gap: 5px;
}

.container2 img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.large,
.medium,
.small {
  display: flex;
  height: 100%;
  width: 100%;
  grid-column: auto / span 1;
}

.large {
  grid-row: span 4;
}

.medium {
  grid-row: span 3;
}

.small {
  grid-row: span 2;
}

/*======================================================
                    Tabs
  ======================================================*/
.tile {
  width: 80%;
  margin: 0px auto;
}

#tile-1 .nav-tabs {
  position: relative;
  border: none !important;
  border-radius: 6px;
}

#tile-1 .nav-tabs li {
  margin: 0px !important;
}

#tile-1 .nav-tabs li a {
  position: relative;
  margin-right: 0px !important;
  padding: 8px 0px !important;
  font-size: 19px;
  font-weight: 700;
  border: none !important;
  color: #333;
}

#tile-1 .nav-tabs a:hover {
  color: #ff9d00 !important;
  border: none;
}

#tile-1 .slider {
  display: inline-block;
  width: 30px;
  height: 4px;
  border-radius: 3px;
  background-color: #ff9d00;
  position: absolute;
  z-index: 1200;
  bottom: 0;
  transition: all 0.4s linear;
}

#tile-1 .nav-tabs .active {
  background-color: transparent !important;
  border: none !important;
  color: #ff9d00 !important;
}

/*======================================================
                    Missão e Visão
  ======================================================*/
.missao {
  font-weight: 700;
  font-size: 16px;
  color: #1c604a;
  margin-top: 20px;
  margin-bottom: 10px;
}

#quem-somos .container-fluid {
  background: #f7f7f7;
  padding: 60px 0;
  min-height: 400px;
}

#quem-somos h2 {
  text-align: center;
  font-weight: 700;
  color: #1c604a;
  margin-bottom: 40px;
}

/*======================================================
                    Modais
  ======================================================*/
.modal-content {
  border-radius: 8px;
}

.modal-header {
  border-bottom: 1px solid #e0e0e0;
}

.modal-body {
  font-size: 15px;
  line-height: 2;
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-footer .btn {
  min-height: 44px;
  min-width: 80px;
  font-size: 16px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/*======================================================
                    Footer / Contactos
  ======================================================*/
.contactos {
  padding: 60px 0;
  min-height: 300px;
}

.contactos h2 {
  font-weight: 700;
  font-size: 24px;
  color: #1c604a;
  margin-bottom: 20px;
}

.contactos {
  font-size: 16px;
  line-height: 1.8;
}

/*======================================================
                    Media Queries
  ======================================================*/

/* Telas muito grandes (1440px+) */
@media (min-width: 1440px) {
  .nav-wrapper {
    width: 65%;
  }

  .cima-banner {
    max-width: 1400px;
  }

  .caixa-info {
    max-width: 1400px;
  }

  .banner-principal img {
    max-height: 700px;
  }
}

/* Tablets em paisagem e desktops pequenos (1024px) */
@media (max-width: 1024px) {
  .nav-wrapper {
    width: 85%;
  }

  #navbar li a {
    margin: 0 15px;
    font-size: 0.65em;
  }

  .caixa-info {
    bottom: -80px;
  }

  .text-quem {
    padding-right: 30px;
  }

  .img-sobre {
    padding-top: 50px;
  }

  .img-porque {
    padding-top: 50px;
  }

  .seccoes {
    margin-top: 120px;
  }

  .logo-parceiros {
    max-width: 120px;
  }
}

/* Tablets em retrato (768px) */
@media (max-width: 768px) {
  .nav-wrapper {
    width: 90%;
  }

  #navbar ul {
    display: none;
  }

  .menuIcon {
    display: block;
  }

  .logo-svg {
    width: 45px;
  }

  .banner-principal {
    min-height: 400px;
  }

  .banner-principal img {
    min-height: 400px;
  }

  .cima-banner {
    top: 35%;
  }

  .cima-banner p {
    font-size: clamp(18px, 4vw, 28px);
  }

  .caixa-info {
    position: static;
    transform: none;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .caixa {
    margin-bottom: 20px;
  }

  .conteudo {
    padding: 15px;
  }

  .seccoes {
    margin-top: 40px;
  }

  .seccoes h2 {
    padding-top: 40px;
  }

  .text-quem {
    padding-right: 15px !important;
    padding-left: 15px;
  }

  .img-sobre {
    padding-top: 30px;
    width: 100%;
  }

  .img-porque {
    padding-top: 30px;
    width: 100%;
  }

  .porque-lista {
    padding-left: 25px;
    padding-right: 15px;
  }

  #portfolio {
    padding: 40px 0 20px;
    margin-top: 20px;
  }

  .azul {
    padding: 15px 0;
  }

  .logo-parceiros {
    max-width: 100px;
  }

  #quem-somos .container-fluid {
    padding: 40px 0;
    min-height: auto;
  }

  .contactos {
    padding: 40px 0;
    min-height: auto;
  }
}

/* Mobile e tablets pequenos (640px) */
@media (max-width: 640px) {
  .nav-wrapper {
    width: 100%;
  }

  .overlay-menu li a {
    font-size: 1.5em;
    letter-spacing: 2px;
    padding: 12px 20px;
  }

  .banner-principal {
    min-height: 350px;
  }

  .banner-principal img {
    min-height: 350px;
  }

  .logo-parceiros {
    max-width: 90px;
  }

  .caixa {
    padding: 12px;
  }
}

/* Mobile (600px) */
@media (max-width: 600px) {
  .img-sobre {
    width: 100%;
    padding-top: 30px;
    margin-bottom: 20px;
  }

  .img-porque {
    display: none;
  }

  .footer-text {
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .banner-principal {
    min-height: 350px;
  }

  .banner-principal img {
    min-height: 350px;
  }

  .cima-banner {
    top: 30%;
  }

  .cima-banner p {
    font-size: clamp(16px, 6vw, 22px);
    padding: 0 10px;
  }

  .caixa-info {
    position: static;
    transform: none;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 10px;
    width: 100%;
  }

  .caixa {
    margin-bottom: 15px;
    min-height: auto;
    padding: 15px;
    width: 100%;
  }

  .caixa-info .row {
    margin-left: 0;
    margin-right: 0;
  }

  .caixa-info .col-md-4 {
    padding-left: 5px;
    padding-right: 5px;
  }

  .text-quem {
    padding-right: 0 !important;
  }

  .titulo {
    padding-top: 40px !important;
    text-align: center;
  }

  .img-porque {
    display: none !important;
  }

  .titulo-porque {
    padding-top: 40px !important;
    text-align: center;
  }

  .porque-lista {
    padding-left: 30px;
    padding-right: 15px;
  }

  .porque-lista li {
    margin-bottom: 12px;
  }

  .logo-parceiros {
    max-width: 80px;
  }

  .parceirosmobile {
    display: none;
  }

  .azul {
    min-height: auto;
    padding: 15px 0;
  }

  #servicos {
    padding: 30px 0;
  }

  .seccoes h2 {
    padding-top: 30px;
    text-align: center;
  }

  .seccoes p {
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .seccoes ol {
    padding-left: 28px;
    padding-right: 10px;
  }

  .seccoes a {
    display: inline-block;
    margin: 10px;
    padding: 12px 18px !important;
    text-align: center;
    min-width: 120px;
  }

  #portfolio {
    padding: 30px 0 20px;
  }

  .contactos {
    padding: 30px 15px;
    text-align: center;
  }

  .contactos h2 {
    margin-bottom: 25px;
  }

  footer .row > div {
    text-align: center !important;
  }

  footer .row > div p {
    float: none !important;
    padding-top: 15px !important;
    font-size: 14px;
  }

  footer .row {
    min-height: auto !important;
    height: auto !important;
    padding: 15px 0 !important;
  }

  footer .container-fluid .row {
    padding: 0 15px;
  }
}

/* Mobile pequeno (480px) */
@media (max-width: 480px) {
  .logo-svg {
    width: 40px;
  }

  .cima-banner {
    top: 35%;
  }

  .cima-banner p {
    font-size: 18px;
    line-height: 1.4;
    padding: 0 8px;
  }

  /* Modais em mobile */
  .modal-dialog {
    margin: 10px;
  }

  .modal-body {
    font-size: 14px;
    line-height: 2;
    padding: 15px;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-header .modal-title {
    font-size: 16px;
  }

  .modal-header .close {
    padding: 15px;
    margin: -15px;
    font-size: 28px;
    min-width: 44px;
    min-height: 44px;
  }

  .modal-footer {
    padding: 10px 15px;
  }

  .modal-footer .btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 15px;
  }

  .conteudo h3 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .conteudo p {
    font-size: 13px;
    line-height: 1.7;
  }

  .overlay-menu li a {
    font-size: 1.3em;
    padding: 10px 0;
    letter-spacing: 2px;
  }

  .banner-principal {
    min-height: 320px;
  }

  .banner-principal img {
    min-height: 320px;
  }

  .caixa {
    padding: 14px;
    margin-bottom: 18px;
  }

  .conteudo {
    padding: 10px;
  }

  .logo-parceiros {
    max-width: 75px;
    margin: 5px auto;
  }

  .azul .row {
    justify-content: center;
  }

  .azul .col-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
  }

  .seccoes h2 {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .seccoes p {
    font-size: 14px;
    line-height: 1.8;
  }

  .seccoes ol {
    font-size: 14px;
    line-height: 1.8;
  }

  .contactos h2 {
    font-size: 20px;
  }

  .contactos {
    font-size: 14px;
    line-height: 2.2;
  }

  .faleconnosco {
    font-size: 16px;
    padding: 10px 18px;
    margin-top: 10px;
    display: inline-block;
  }

  .missao {
    font-size: 16px;
  }

  #quem-somos .container-fluid {
    padding: 35px 0;
  }

  footer .row > div {
    padding: 10px 0;
  }

  .azul {
    padding: 18px 0;
  }
}

/* Mobile comum (375px - iPhone) */
@media (max-width: 375px) {
  .cima-banner p {
    font-size: 16px;
  }

  .banner-principal {
    min-height: 300px;
  }

  .banner-principal img {
    min-height: 300px;
  }

  .caixa {
    padding: 12px;
  }

  .conteudo h3 {
    font-size: 16px;
  }

  .logo-parceiros {
    max-width: 68px;
  }

  .overlay-menu li a {
    font-size: 1.2em;
  }

  .footer-text {
    font-size: 13px !important;
    padding-top: 12px !important;
  }
}

/* Mobile muito pequeno (360px) */
@media (max-width: 360px) {
  .logo-svg {
    width: 35px;
  }

  .cima-banner p {
    font-size: 15px;
    line-height: 1.3;
    padding: 0 5px;
  }

  .banner-principal {
    min-height: 280px;
  }

  .banner-principal img {
    min-height: 280px;
  }

  .logo-parceiros {
    max-width: 65px;
  }

  .conteudo h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .conteudo p {
    font-size: 12px;
    line-height: 1.6;
  }

  .caixa {
    padding: 12px;
    min-height: 180px;
  }

  .seccoes h2 {
    font-size: 20px;
    padding-top: 20px;
    margin-bottom: 15px;
  }

  .seccoes p {
    font-size: 13px;
    line-height: 1.7;
  }

  .seccoes ol {
    font-size: 13px;
    padding-left: 20px;
  }

  .contactos h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .contactos {
    font-size: 13px;
    line-height: 2;
    padding: 20px 0;
  }

  .azul {
    padding: 20px 0;
  }

  .overlay-menu li a {
    font-size: 1.1em;
    padding: 8px 0;
  }

  .faleconnosco {
    font-size: 15px;
    padding: 8px 15px;
  }

  .missao {
    font-size: 15px;
    margin-top: 15px;
  }

  #quem-somos .container-fluid {
    padding: 30px 0;
  }

  #quem-somos p {
    font-size: 13px;
  }
}

/* Mobile ultra pequeno (320px) */
@media (max-width: 320px) {
  #navbar {
    height: 50px;
    line-height: 50px;
  }

  .logo {
    height: 50px;
  }

  .logo-svg {
    width: 32px;
  }

  .menuIcon {
    top: 14px;
  }

  .cima-banner p {
    font-size: 14px;
    line-height: 1.3;
    padding: 0 3px;
  }

  .banner-principal {
    min-height: 260px;
    margin-top: 50px;
  }

  .banner-principal img {
    min-height: 260px;
  }

  .caixa {
    padding: 10px;
    min-height: 160px;
  }

  .conteudo {
    padding: 8px;
  }

  .conteudo h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .conteudo p {
    font-size: 11px;
    line-height: 1.6;
  }

  .conteudo a {
    font-size: 11px;
    padding: 6px 4px;
  }

  .logo-parceiros {
    max-width: 55px;
  }

  .seccoes h2 {
    font-size: 18px;
  }

  .seccoes p {
    font-size: 12px;
  }

  .seccoes ol {
    font-size: 12px;
    padding-left: 18px;
  }

  .contactos {
    font-size: 12px;
  }

  .contactos h2 {
    font-size: 16px;
  }

  .overlay-menu li a {
    font-size: 1em;
    padding: 6px 0;
  }

  .faleconnosco {
    font-size: 14px;
    padding: 7px 12px;
  }

  .missao {
    font-size: 14px;
  }

  #quem-somos p {
    font-size: 12px;
  }

  footer .row > div p {
    font-size: 12px;
    padding-top: 10px !important;
    margin-bottom: 0;
  }

  footer .container-fluid .row {
    padding: 10px 15px;
  }

  /* Garantir que textos não quebrem layout */
  .contactos br {
    display: block;
    content: "";
    margin-top: 8px;
  }

  .footer-text {
    font-size: 11px !important;
    padding: 8px 5px !important;
  }
}

/* Ajustes adicionais para garantir responsividade */
@media (max-width: 600px) {
  /* Garantir que containers não causem scroll horizontal */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Garantir que o botão Saiba Mais seja responsivo */
  a[href*="porque-makhowo"] {
    display: inline-block;
    padding: 10px 15px;
    margin: 15px 0;
    text-align: center;
    word-wrap: break-word;
  }

  /* Ajustar espaçamento de parágrafos em mobile */
  #porque p,
  #servicos p {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Suporte para orientação landscape em mobile */
@media (max-width: 926px) and (orientation: landscape) {
  .banner-principal {
    min-height: 400px;
  }

  .banner-principal img {
    min-height: 400px;
    object-fit: cover;
  }

  .cima-banner {
    top: 50%;
  }

  .caixa-info {
    position: static;
    transform: none;
    margin-top: 30px;
  }

  /* Menu mobile em landscape */
  .overlay-menu li a {
    font-size: 1.3em;
    padding: 8px 20px;
  }
}

/* Fix para Safari iOS */
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }

  .banner-principal {
    min-height: -webkit-fill-available;
  }

  /* Corrigir problema de altura de viewport em iOS */
  @media (max-width: 768px) {
    .banner-principal {
      min-height: calc(100vh - 60px);
    }
  }
}

/* Otimizações específicas para Android */
@media screen and (max-width: 768px) {
  /* Melhorar renderização em Android */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Prevenir bounce em scroll */
  html {
    overscroll-behavior-y: none;
  }

  body {
    overscroll-behavior-y: none;
  }

  /* Melhorar performance de animações */
  .animate__animated {
    will-change: transform, opacity;
  }

  /* Touch feedback para botões e links */
  button,
  a,
  .btn,
  .caixa,
  .faleconnosco {
    -webkit-tap-highlight-color: rgba(28, 96, 74, 0.15);
  }

  /* Garantir que imagens não causem overflow */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Melhorar espaçamento em mobile */
  .main {
    padding: 20px 0;
  }

  /* Ajustar row do Bootstrap em mobile */
  .row {
    margin-left: 0;
    margin-right: 0;
  }

  /* Melhorar clicabilidade de links em mobile */
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Exceções para links dentro de texto */
  p a,
  .conteudo a {
    min-height: auto;
    display: inline;
  }
}
