/* FONTES */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

* {
    scroll-behavior: smooth;
    /* max-width: 100% !important; */
    text-align: center;
}
body{
    text-align: center;
}

/* fim */
.banner-mobile{
    display: none;
}
#container {
    position: relative;
}

.b-vermelho {
    background-color: rgb(255, 113, 113);
}

#linha {
    margin-left: 20%;
    background-color: rgb(142, 142, 142);
    width: 60%;
    height: 1.7px;
}

#banner-Inicial-Section1 {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: flex;
    /* Para centralizar verticalmente */
    justify-content: center;
}

/* FIM SECTION 1 */

/* SECTION Menu */
#menuSticky {
    position: sticky; /* era fixed, agora sticky */
    top: 0;
    z-index: 3;
}

.menu-inicial {
    width: 100%;
    height: 9vw;
    padding-top: 0.7vw;
    padding-bottom: 0.7vw;
    justify-content: center;
    align-items: center;
    background-color: white;
    transition: all 0.5s ease;
    display: flex;
    gap: 2vw;
    margin: 0;
    box-shadow: none !important;
}

/* Sombra só quando sticky */
.menu-inicial.sticky-shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.menu-inicial img {
    width: 6vw;
    transition: all 0.5s ease;
    cursor: pointer;
    padding-top: 0;        /* reduz espaço acima do ícone */
    padding-bottom: 0;     /* reduz espaço abaixo do ícone */
}

/* diminui menu ao chegar no TOPO = 0 */
.m-pequeno {
    height: 7vw;
    transition: all 0.5s ease;
    box-shadow: -1px 10.5px 19px -4px #888888;
}

.m-pequeno img {
    width: 2.2vw;          /* antes: 3vw */
}

/* fim top 0 */
#icone {
    text-align: center;
    transition: all 0.5s ease-in-out;
}

#icone:hover {
    transform: scale(1.2);
}

#icone h1 {
    padding-top: 3%;
    margin-top: 0;
    text-align: center;
    font-family: 'Roboto Slab', serif;
    font-size: 1vw;
    color: gray;
}

#icone a {
    text-decoration: none;
}

/* FIM SECTION Menu */

/* SECTION 2 */
#servicos {
    margin-left: 20%;
    width: 60%;
    height: 15vw;
    align-content: center;
}

.servicos-d-flex {
    display: flex;
    gap: 1vw;
    justify-content: center;
}

#servicos h1 {
    margin-top: 0;
    padding-top: 3%;
    padding-bottom: 3%;
    font-size: 3vw;
    text-align: center;
    font-family: 'Roboto Slab', serif;
    color: white;
}

#servicos h2 {
    width: 10vw;
    height: 2.5vw;
    background-color: white;
    margin-top: 0;
    padding-top: 0.6vw;
    font-size: 1vw;
    text-align: center;
    font-family: 'Roboto Slab', serif;
    color: rgb(80, 80, 80);
    border-radius: 5px;
}

#sub_servicos {
    transition: all 0.2s linear;
}

#sub_servicos:hover {
    scale: 1.1;
}

/* FIM SECTION 2 */

/* SECTION 3 */
#section3 {
    background-color: white;
}

.noticias h1 {
    font-size: 3vw;
    text-align: center;
    color: #672c6d;
    font-family: 'Roboto Slab', serif;
}

.noticias img {
    width: 100%;
}

.btn_ver_noticias {
    transition: all 0.2s linear;
    background-color: #672c6d;
    width: 16vw;
    height: 3.5vw;
    display: flex;
    justify-content: center;
    margin-top: 5vw;
    margin-bottom: 5vw;
    text-align: center;
    border-radius: 5px;
    padding-top: 1vw;
}

.btn_ver_noticias:hover {
    text-decoration: none;
    scale: 1.1;
}

.btn_ver_noticias h2 {
    color: white;
    font-size: 1.3vw;
    font-family: 'Roboto Slab', serif;
    margin: 0 !important;
}

/* NOTICIAS */

#cardNoticia {
    display: flex;
    flex-wrap: wrap;
    margin-left: 9.5%;
    margin-top: 0%;
    margin-bottom: -3%;
}

.card-text {
    font-size: 14px;
    font-family: "Trebuchet MS", Verdana, Lucida Sans;
}

/* fim NOTICIAS */

/* FIM SECTION 3 */

/* SECTION 4 */
.programas_treinamentos {
    background-color: #672c6d;
    text-align: center;
    height: 28vw;
}

.programas_treinamentos-d-flex {
    margin-top: 5vw;
    display: flex;
    justify-content: center;
    height: 3vw;
}

.programas_treinamentos h1 {
    padding-top: 2vw;
    color: white;
    font-family: 'Roboto Slab', serif;
}

#sub_programas {
    transition: all 0.3s linear;
    margin-top: -1%;
    width: 21%;
}

#sub_programas img {
    width: 14vw;
}

#sub_programas:hover {
    scale: 1.1;
}

/* FIM SECTION 4 */


/* INICIO SECTION 5 */
.cartilha {
    justify-content: center;
}

.titulo-cartilha {
    text-align: center;
    color: #672c6d;
    font-family: 'Roboto Slab', serif;
    padding-bottom: 1.5%;
    font-size: 3vw;
}

.sub-imagem {
    transition: all 0.3s linear;
}

.sub-imagem:hover {
    scale: 1.1;
}

.cartilhas-imagem {
    display: flex;
    gap: 3.5%;
    justify-content: center;
    text-align: center;
}

.bloco-cartilha {
    text-align: center;
}

.bloco-cartilha p {
    margin: 1%;
    background-color: #672c6d;
    color: white;
    font-family: 'Roboto Slab', serif;
    font-size: large;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

/* FIM SECTION 5 */

/* INICIO SECTION 6 */
.videos {
    font-family: 'Roboto Slab', serif;
    color: white;
    background-color: rgb(255, 113, 113);
    text-align: center;
    padding-top: 1%;
    padding-bottom: 3%;
    padding-left: 2%;
    padding-right: 2%;
}

.videos h2 {
    font-size: 3vw;
    margin-bottom: 2%;
    margin-top: 2.5%;
    padding: 0;
}

.videos .play-video {
    position: relative;
    padding-bottom: 45%;
    overflow: hidden;
    max-width: 100%;
}

.videos .play-video iframe {
    position: absolute;
    top: 30px;
    left: 140px;
    width: 80%;
    height: 80%;
    border: none;
}
/* FIM SECTION 6*/

/* INICIO FOOTER */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Roboto Slab', serif;
}

.inicio-footer {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20%;
    align-items: center;
    margin-top: 1%;
}

.prefeitura {
    width: 35%;
    text-align: center;
    transition: all 0.3s linear;
}

.prefeitura:hover {
    scale: 1.1;
}

.veja-mais {
    display: flex;
    justify-content: center;
    border: 2px solid #672c6d;
    border-radius: 10px;
    padding: 0 10% 0 10%;
    
    height: 11%;
    max-width: 36%;
    width: 82%;
    text-align: center;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.veja-mais a {
    text-decoration: none;
    color: #888888;
}

.contatos-srh {
    width: 35%;
    transition: all 0.3s linear;
}

.contatos-srh:hover {
    scale: 1.1;
}

.hr-custom {
    background-color: #15b39b;
    height: 1em;
    width: 100%;
    margin-top: 10px;
}

.contatos {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* FIM FOOTER */

/* Estilos gerais para dispositivos mÃ³veis */
@media screen and (max-width: 780px) {
    /* Reduz o tamanho da fonte para tamanhos menores */
    body h1{
        font-size: 10vw;
    }
    body{
        overflow-x: hidden;
    }

    
    #banner-Inicial-Section1{
        display: none;
        
    }

    .banner-mobile{
        display: block;
        width: 100%;
    }
  
    /* Ajusta o tamanho do menu */
    .menu-inicial {
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
        gap: 12px;         /* novo espaçamento no mobile */
    }

    .menu-inicial img {
        width: 44px;       /* antes: 57px */
        margin: 2px;
    }

    #icone h1 {
        font-size: 7px;
    }

    /* Ajusta o tamanho da seÃ§Ã£o de serviÃ§os */
    #servicos {
        margin-left: 0;
        width: 100%;
        height: auto;
    }

    #servicos h1 {
        margin-top: 0;
        padding-top: 3%;
        padding-bottom: 3%;
        font-size: 10vw;
        text-align: center;
        font-family: 'Roboto Slab', serif;
        color: white;
    }

    #servicos h2 {
        width: 70%;
        height: auto;
        background-color: white;
        margin: 10px auto;
        padding: 2%;
        font-size: 3vw;
        text-align: center;
        font-family: 'Roboto Slab', serif;
        color: rgb(80, 80, 80);
        border-radius: 5px;
    }

    .servicos-d-flex {
        flex-direction: column;
        align-items: center;
    }

    #sub_servicos {
        width: 70%;
        margin: 10px auto;
    }

    #sub_servicos h2 {
        font-size: 3vw;
    }
    #cardNoticia {
        margin-left: 9.5%; 
    }
    .btn_ver_noticias {
        height: 100%;
        width: 50%;
        padding: 2%;
        margin: 20px auto;
        margin-top: 6vw;
    }

    .btn_ver_noticias h2 {
        font-size: 50%;
        font-size: 5vw;
    }

    /* MantÃ©m o menu no topo da pÃ¡gina */
    #menuSticky {
        position: sticky; /* era fixed, agora sticky */
        top: 0;
        z-index: 3;
    }

   

   

    /* Torna o vÃ­deo responsivo */
    .videos {
        padding-top: 5%;
        padding-bottom: 5%;
    }
    .noticias h1{
        font-size: 10vw;
    }
    .noticias img {
        width: 100%;
    }

    

    .programas {
        display: flex;
        flex-direction: column;
    }

    .programas_treinamentos-d-flex {
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
        height: 5%;
        gap: 2%;
        justify-content: center;
    }

    .programas_treinamentos {
        padding-bottom: 10%;
        margin-bottom: 2%;
    }

    .programas_treinamentos {
        height: auto;
    }

    .programas_treinamentos h1 {
        
        padding-top: 12px;
    }

    #sub_programas{
        width: 50%;
        padding: 3%;
    }
    #sub_programas img {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    /* Ajusta a seÃ§Ã£o de cartilhas */
    .titulo-cartilha{
        font-size: 50vw;
    }
    .cartilhas-imagem {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .sub-imagem {
        width: 45%;
        padding-bottom: 7.5%;
        padding-top: 4%;
    }

    .videos {
        padding: 5%;
    }

    .play-video {
        width: 100%;
        height: 100%;
    }

    .videos h2 {
        font-size: 5vw;
    }

    .videos .play-video iframe {
        position: absolute;
        top: 12px;
        left: 37px;
    }

    /* Ajusta o tamanho do rodapÃ© */
    .inicio-footer {
        flex-direction: column;
        gap: 10px;
    }

    .prefeitura,
    .contatos-srh {
        width: 80%;
    }

    .hr-custom {
        margin-top: 5px;
    }

    .veja-mais{
        max-width: 80%;
    }
}

@media screen and (max-width: 780px) {
    .menu-inicial {
        flex-wrap: wrap;
        gap: 0; /* ou ajuste o espaçamento entre os ícones */
        padding: 0;
    }
    #icone {
        flex: 0 0 20%;   /* 5 por linha */
        max-width: 20%;
        box-sizing: border-box;
        margin-bottom: 10px; /* espaço entre as linhas */
    }
}
