* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    height: 100%;
}

#page-1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    justify-content: center;
    gap: 10vw;
    justify-content: center;
    align-items: center;
    background: url(img/home.png) lightgray 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.deb_img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#page-1 img {
    width: 300px;
    height: 400px;
    object-fit: cover;
}

.retangulo {
  width: 300px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.8);
}

.retangulo h1 {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  color: #013201;
  font-size: clamp(40px, 5vw, 40px);
  margin: 0;
  text-align: center;
  font-weight: 600;
}
.retangulo p {
  color: #013201;
  font-size: clamp(16px, 2.5vw, 16px);
  margin: 0;
  text-align: center;
  font-weight: 500;
}

#links {
    width: 300px;
    padding: 32px;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#links a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(16px, 2.5vw, 16px);
    border: #013201;
    border-style: solid;
    padding: 8px;
    text-align: center;
    font-weight: 500;
    width: 200px;
    border-width: 1px;
    color: #013201;
}

#links a i.fa {
    font-size: 1em;
    vertical-align: middle;
}

#links .location {
    color: #013201;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 14px);
    text-align: center;
    margin-top: 15px;
}


#page-2 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    justify-content: center;
    gap: 10vw;
    justify-content: center;
    align-items: center;
    background: url(img/sobre.png) lightgray 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.ret {
  width: 50%;
  max-width: 900px;
  height: auto;
  /* max-height foi removido daqui para não limitar no desktop */
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #013201;
  line-height: 1.8;
  font-size: clamp(18px, 2vw, 18px);
  text-align: justify;
  overflow-y: auto; /* Scroll apenas se necessário no Desktop */
  scrollbar-width: thin; 
  scrollbar-color: rgba(1, 50, 1, 0.6) transparent;
  overflow-x: hidden;
}

.ret p {
    margin-bottom: 1em;
}

.ret p:last-child {
    margin-bottom: 0;
}

/* Estilo do Scroll para Chrome / Edge / Safari */
.ret::-webkit-scrollbar,
.ret2::-webkit-scrollbar {
    width: 8px;
}
.ret::-webkit-scrollbar-track,
.ret2::-webkit-scrollbar-track {
    background: transparent;
}
.ret::-webkit-scrollbar-thumb,
.ret2::-webkit-scrollbar-thumb {
    background: rgba(1, 50, 1, 0.6);
    border-radius: 10px;
}
.ret:hover::-webkit-scrollbar-thumb,
.ret2:hover::-webkit-scrollbar-thumb {
    background: rgba(1, 50, 1, 0.85);
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#page-3 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    justify-content: center;
    gap: 10vw;
    justify-content: center;
    align-items: center;
    background: url(img/areas.png) lightgray 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#page-3 .ret2 {
    width: 50%;
    max-width: 900px;
    min-width: 400px;
    height: auto;
    max-height: 500px; /* Mantém o limite de altura para desktop */
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #013201;
    line-height: 1.8;
    font-size: clamp(18px, 2vw, 18px);
    text-align: justify;
    overflow-y: auto; /* Scroll apenas se necessário no Desktop */
}

#page-3 .ret2 h3 {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 8px;
}

#page-3 .ret2 h3:first-child {
    margin-top: 0;
}

#page-3 .ret2 p {
    margin-bottom: 10px;
}

#page-3 .ret2 ul {
    list-style: disc;
    padding-left: 22px;
    margin: 10px 0 14px 0;
}

#page-3 .ret2 li {
    margin-bottom: 6px;
}


/* Responsividade para telas pequenas */
@media (max-width: 768px) {
    #page-1, #page-2, #page-3 {
        flex-direction: column;
        padding: 15px 0;
        gap: 4vh;
    }

    #page-2 {
        background: url(img/sobre2.png) center/cover fixed no-repeat;
    }

    #deb_img {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        max-width: 260px;
    }

    #page-1 img {
        width: 100%;
        max-width: 300px;
        height: auto;
        max-height: 280px;
        object-fit: contain;
    }

    .retangulo, 
    #links {
        width: 90%;
        max-width: 260px;
        padding: 16px;
    }

    .retangulo h1 {
        font-size: 28px;
    }

    .retangulo p {
        font-size: 14px;
    }

    #links a {
        width: 100%;
        font-size: 14px;
        padding: 6px;
    }

    .ret, #page-3 .ret2 {
        width: 90%;
        max-width: none;
        min-width: auto;
        font-size: 15px;
        line-height: 1.6;
        height: auto;
        padding: 20px;
        overflow-y: scroll; /* Scroll sempre visível no Celular */
    }

    .ret {
        max-height: 40vh; /* Limite de altura para mobile */
    }

    #page-3 .ret2 {
        max-height: 50vh; /* Limite de altura para mobile */
    }

    /* Scrollbar menor para mobile */
    .ret::-webkit-scrollbar,
    .ret2::-webkit-scrollbar {
        width: 4px;
    }
}