/* Personalização de blocos */

#home {
    position: relative;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bloco .col-1 {
    flex: 1;
    flex-direction: column;
}

.bloco .row-1 {
    display: flex;
    flex-direction: row;
    gap: var(--v-gap);
}

.bloco .row-2 {
    display: grid;
    gap: var(--v-gap);
    grid-template-columns: repeat(2, 1fr);
}

.bloco .row-3 {
    display: grid;
    gap: var(--v-gap);
    grid-template-columns: repeat(3, 1fr);
}

.bloco .row-4 {
    display: grid;
    gap: var(--v-gap);
    grid-template-columns: repeat(4, 1fr);
}

.bloco .row-6 {
    display: grid;
    gap: var(--v-gap);
    grid-template-columns: repeat(6, 1fr);
}

.bloco-fullwidth .bloco{
    flex-direction: column;
    gap: var(--medium-v-gap);
}

.bloco-fullwidth .bloco ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.bloco-fullwidth .bloco ul li {
    list-style: none;
    text-align: center;
    padding: 15px 10px;
    border-radius: var(--border-radius);
}

.bloco-fullwidth .bloco-header{
    align-self: center;
}

.bloco p{
    margin: 0 auto;
    max-width: 920px;
}

#big-banner {
    padding-top: var(--v-gap);
}

#big-banner ul{
    line-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.banner-fullwidth ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

#acesso-rapido {
    background-color: var(--color-green);
    color: white;
    padding-top: var(--v-gap);
    padding-bottom: 20px;
}

#acesso-rapido .bloco ul {
    max-width: 1200px;
    row-gap: 10px;
}

#acesso-rapido ul li {
    max-width: 150px;
    min-width: 150px;
    transition: background-color 0.2s ease-out;
}

#acesso-rapido ul li h4{
    font-size: 0.9rem;
    line-height: 120%;
    font-weight: bold;
}

#acesso-rapido ul li a{
    color: white;
}

#acesso-rapido ul li:hover{
    background-color: var(--color-light-green);
}

#acesso-rapido ul li img{
    width: 100%;
    min-width: 80px;
    max-width: 80px;
    min-height: 70px;
    max-height: 70px;
    margin-bottom: 6px;
}

#apps {
    background-color: var(--color-light-gray);
    padding: var(--medium-h-gap) 0;
}

#apps ul {
    gap: 20px;
}

#apps .bloco-header {
    color: inherit;
}

#apps ul li {
    max-width: 130px;
}

#apps ul li a {
    display: inline-block;
    transition: transform 0.3s ease;
}

#apps ul li a:hover{
    transform: scale(1.1);
}

#apps ul li h4{
    font-size: 0.9rem;
    line-height: 120%;
    font-weight: bold;
    align-self: flex-end;
    margin-top: 4px;
}

#apps ul li img{
    border-radius: 30px;
}

#ima-mais {
    justify-content: center;
    align-items: center;
    background:  url("../img/folhas/10.svg") #00a558 no-repeat 580px 10%;
    background-size: cover;
    text-align: center;
    padding: 3rem;
    color: white;
}

#ima-mais h3 img{
    max-width: 210px;
}

#ima-mais p {
    margin: var(--medium-v-gap) auto;
}

#noticias-row-1 {
    padding-top: var(--big-v-gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

#noticias-row-1 h3.bloco-header {
    color: inherit;
    text-align: center;
}

#noticias-row-1 .row-2 {
    gap: var(--h-gap);
    grid-template-columns: minmax(0, 720px) 1fr; /* Define um máximo de 400px para a primeira coluna */
}

#noticias-row-1 .sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#noticias-row-2 {
    padding-bottom: var(--v-gap);    
}


#acesso-informacao {
    flex-direction: column;
    flex-wrap: wrap;
    background-color: #f6931e;
    gap: 20px;
    padding-top: var(--v-gap);
    padding-bottom: var(--big-v-gap);
}

#acesso-informacao #lgpd {
    color: white;
    display: inline-block;
    position: absolute;
    top: 140px;
    right: 50%;
    margin-right: -700px;
}

#acesso-informacao .bloco-header{
    padding: 30px;
}

#acesso-informacao .bloco{    
    margin: 0;
    gap: var(--v-gap);
}

#acesso-informacao a{
    flex: 1;
}

#acesso-informacao a img{
    border-radius: var(--border-radius);
}

#projetos .bloco-header{
    color: inherit;
}

#projetos {
    padding-top: var(--big-v-gap);
}

#projetos ul {
    column-gap: 20px;
}

#projetos ul li {
    max-width: 160px;
    min-width: 160px;
    align-content: center;
    transition: background-color 0.2s ease-out;
}

#projetos ul li h4{
    font-size: 0.9rem;
    line-height: 120%;
    font-weight: bold;
    align-self: flex-end;
    opacity: .6;
}

#projetos ul li:hover{
    background-color: var(--color-light-green);
}

#projetos ul li img{
    width: 100%;
    min-width: 80px;
    max-width: 160px;
    max-height: 90px;
    min-height: 90px;
    margin-bottom: 6px;
    opacity: .6;
}

#projetos ul li a:hover img,
#projetos ul li a:hover h4{
    opacity: 1;
}


#parceiros h3 {
    color: inherit;
}

#parceiros ul {
    justify-content: space-between;
    align-items: center;    
}

#parceiros ul li a img {
    max-width: 140px;
    max-height: 120px;
    opacity: .5;
    padding: 10px;
    transition: opacity 0.3s ease-out;
}

#parceiros ul li a:hover img{
    opacity: 1;  
}

#numeros {
    background: url("../img/folhas/14.svg") var(--color-light-green) no-repeat 350px 50%;
    background-size: cover;
    color: white;
    padding: var(--v-gap) 0;
    text-align: center;
}

#numeros ul {
    column-gap: 30px;
    row-gap: 0;
}

#numeros ul li {
    max-width: 240px;
    min-width: 240px;
    padding: 15px 10px;
    border-radius: var(--border-radius);
    line-height: 1;
    text-wrap: balance;
}

#numeros ul li h4{
    font-size: 3.6rem;
    font-weight: 900;
}

#numeros ul li a{
    font-size: 1rem;
    font-weight: bold;
    color: white;
    padding: 5px;
}

#big-foto {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    margin: 0;
    overflow: hidden;
}

#big-foto article {
    width: 100%;
    height: 100%;
    position: relative;
}

#big-foto picture {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    height: 100%;
}

#big-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease; /* Add a hover effect for demonstration */
}

#big-foto img:hover {
    transform: scale(1.05); /* Example hover effect */
}

#big-foto .shadow {
    --gradient: linear-gradient(360deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    padding: 40px;
    align-items: flex-end;
    justify-content: flex-end;
    background: var(--gradient);
    pointer-events: none; /* Allow hover events to pass through */
}

#big-foto .shadow h2,
#big-foto a {
    color: white;
    pointer-events: auto; /* Re-enable pointer events for links and text */
}

#big-foto .shadow h2 {
    font-size: 28px;
    line-height: 30px;
    font-weight: bold;
}

@media (width <= 768px) {
    
    #home {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        display: block;
    }
    
    .banner-fullwidth .bloco > ul {
        flex-direction: column;
    }
    
    .bloco h3, .bloco-header {
        font-size: 24px;
    }
    
    .bloco p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 20px;
    }
    
    #big-banner {
        padding-top: 0;
    }
    
    #big-banner .bloco {
        margin: 0;
    }
    
    #apps .bloco {
        margin-bottom: 20px;
    }

    #apps ul {
        gap: 0;
    }

    #apps ul li {
        max-width: 95px;
    }
    
    #apps ul li img{
         width: 100%;
         max-width: 80px;
         border-radius: 15px;   
    }
    
    #apps ul li h4 {
        font-size: 0.75rem;
        margin-top: 5px;
    }
    
    #acesso-rapido {
        padding: 0;
    }
    
    #acesso-rapido ul li h4{
        font-size: 0.75rem;
        margin-top: 15px;
    }
    
    #acesso-rapido .bloco,
    #projetos .bloco{
        overflow: hidden;
        padding: 0;
    }
    
    #acesso-rapido ul,
    #projetos ul{
        overflow-x: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
        white-space: nowrap;
        display: block;
        vertical-align: top;
        padding: 0 20px;
        width: 100%;
    }

    #acesso-rapido .bloco ul li,
    #projetos .bloco ul li{
        padding: 10px 0;
        text-wrap: balance;
        max-width: 110px;
        min-width: 110px;
        white-space: wrap;
        display: inline-block;
        vertical-align: top;
    }
    
    #projetos .bloco ul li{
        vertical-align: middle;
        padding: 10px;
        max-width: 140px;
        min-width: auto;
    }
    
    #acesso-rapido ul li img,
    #projetos ul li img{
        min-width: 100%;
        min-height: auto;
        max-width: 55px;
        max-height: 55px;
        margin: 0;
        display: block;
    }
    
    #projetos ul li img {
        min-width: auto;
        max-width: 120px;
        max-height: 80px;
    }
    
    #projetos {
        padding: var(--medium-v-gap) 0;
    }
    
    #projetos ul li h4 {
        display: none;
    }
    
    #ima-mais {
        padding: 20px 0;
    }
    
    #noticias-row-1,
    #noticias-row-2 {
        padding-top: var(--v-gap);
        margin: 10px 20px;
    }
    
    #noticias-row-1 .sidebar {
        flex: auto;
        min-width: 100%;
        gap: 40px;
    }
    
    #noticias-row-1 .sidebar .noticia {
        width: 100%;
        flex-direction: column;
    }
    
    #noticias-row-2 {
        margin-top: 10px;
    }
    
    .sidebar .noticia picture {
        min-width: 100%;
    }
    
    #big-foto .shadow {
        padding: 0;
        background: none;
        position: relative;
        height: auto;
        padding-top: 15px;
    }
    
    #big-foto .shadow h2 {
        font-size: 1.4rem;
        line-height: 26px;
    }
    
    #big-foto .shadow h2 a{
        color: var(--color-body);

    }
    
    #numeros .bloco,
    #ima-mais .bloco{
        gap: 0;
    }
    
    #numeros ul li {
        max-width: 100%;
    }
    
    #numeros ul li h4 {
        font-size: 3rem;
    }

    #parceiros .bloco {
        margin-top: 0;
    }
    
    #parceiros ul {
        gap: 0;
        justify-content: center;
    }
    
    #parceiros ul li{
        padding: 0;   
    }
    
    #parceiros ul li a img {
        max-width: 120px;
        max-height: 100px;
        padding: 0 15px;
    }
    
    #acesso-informacao {
        padding-bottom: var(--v-gap);
    }
    
    #acesso-informacao #lgpd {
         position: relative;
         top: auto;
         right: auto;
         margin: 0;
    }
    
    #acesso-informacao .bloco {
        display: block;
        column-count: 3;
        padding: 0 20px;
        gap: 5px;
    }
    
    #acesso-informacao .bloco-header {
        padding: 0;
    }
    
    #acesso-informacao #lgpd img{
        max-width: 30px;
        vertical-align: middle;
        margin-right: 10px;
        width: 30px;
    }
    
    .bloco .col-1 {
        flex-wrap: wrap;
    }

    .bloco .row-1 {
        flex-wrap: wrap;
    }

    .bloco .row-2,
    .bloco .row-3,
    .bloco .row-4{
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .banner-fullwidth {
        padding-top: 0;
        padding-bottom: 0;
    }
}
