/* ------------------Intro------------------ */
.intro {
    text-align: center;
    margin-top: 200px;
}

.intro p{
    color: white;
    font-size: 20px;
    margin-left: 15%;
    margin-right: 15%;
}

.button{
    background-color: #ff6633;
    color: white;
    border: 2px solid black;
    padding: 20px 20px;
    border-radius: 15px;

}

.button:hover{
    background-color: rgb(211, 112, 6);
    color: white;
    border: 2px solid #000;
}

/* ------------------Section wrapper------------------ */

.section_wrapper {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.container{
    max-width: 1220px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.box-wrap {
    padding: 10px 10px;
    margin: 80px 40px;
}

.box-wrap i{
    border-radius: 50%;
    padding: 20px;
    font-size: 55px;
    background-color: #ff6633;
    color: white;
    width: 100px;
    height: 100px;
}

/* ------------------Receitas------------------ */

body.overlay-active {
    overflow: hidden;
}

.hidden-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

/* Fullscreen overlay */
.overlay {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
    text-align: center;
    z-index: 1000; /* Ensure it stays on top */
}

.overlay-active .overlay {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}


.overlay-content {
    max-width: 500px;
    padding: 20px;
    /* background: rgba(255, 255, 255, 0.1); */
    background: rgba(0, 0, 0, 0.7); /* Better contrast */
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}


/* ------------------Inicio texto e imagens------------------ */

.seccao-intro{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1220px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.seccao-img-intro{
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    margin-right: 20px;
    margin-bottom: 50px;
}

.seccao-text-intro{
text-align: center;
}
.seccao-text-intro h2{
    font-size: 50px;
    padding-bottom: 50px;
}

.seccao-text-intro p{
    color: white;
    font-size: 20px;
    margin-left: 5%;
    margin-right: 5%;
    padding-top: 40px;
}

.texto-intermédio{
    font-size: 50px;
    color: white;
    margin-top: 90px;
    text-align: center;
}

.seccao-intro-2{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1220px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.seccao-beneficios-1,
.seccao-beneficios-2 {
  display: flex;
  align-items: center; /* vertical center */
  justify-content: space-between;
  margin-top: 100px;
  background-color: white;
  gap: 2%; /* optional spacing between image and text */
}

.img-wrapper {
  flex: 0 0 33%;
}

.img-wrapper img {
  width: 100%;
  height: auto; /* maintain aspect ratio */
  display: block;
}

.seccao-beneficios-text {
  flex: 1; /* remaining 67% */
  text-align: left;
}

.seccao-beneficios-text p {
  font-size: 20px;
  margin: 0 5%;
  color: #000;
}

.seccao-beneficios-text h2 {
  margin-left: 5%;
}

/* ------------------Media Queries------------------ */

@media (max-width: 768px) {
    /* INTRO SECTION */
  .intro {
    margin-top: 100px;
    padding: 0 20px;
  }

  .intro h1 {
    font-size: 28px;
    line-height: 1.4;
  }

  .intro p {
    font-size: 16px;
    margin: 0 5%;
  }

  .seccao-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 30px;
    margin-top: 50px;
  }

  .seccao-img-intro img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
  }

  .seccao-text-intro {
    text-align: center;
  }

  .seccao-text-intro h2 {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .seccao-text-intro p {
    font-size: 16px;
    line-height: 1.6;
  }

  .button {
    padding: 15px 20px;
    font-size: 16px;
    display: inline-block;
    margin-top: 20px;
  }

  .section_wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .box-wrap {
    margin: 20px 0;
    text-align: center;
  }

  .box-wrap i {
    font-size: 40px;
    width: 80px;
    height: 80px;
    padding: 15px;
  }

  /* INTERMEDIATE TITLE */
  .texto-intermédio {
    font-size: 30px;
    margin: 60px 20px 20px 20px;
  }

  /* BENEFITS SECTION */
  .seccao-intro-2 {
    flex-direction: column;
    padding: 0 20px;
  }

  .seccao-beneficios-1,
  .seccao-beneficios-2 {
    flex-direction: column;
    text-align: center;
    margin-top: 50px;
  }

  .img-wrapper {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
  }

  .img-wrapper img {
    width: 100%;
  }

  .seccao-beneficios-text {
    flex: none;
    width: 100%;
  }

  .seccao-beneficios-text p {
    font-size: 16px;
    margin: 0;
    padding: 0 10px;
  }

  .seccao-beneficios-text h2 {
    font-size: 24px;
    margin: 20px 0 10px 0;
  }

}

  .button:focus,
.close-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

  


