:root{
    --delay-default: 250ms
}

main{
    margin-block: 60px;
}

#introducaoNFSe{
    margin-block: 60px;
    
    .conteudo-introducao{
        display: flex;
        justify-items: center;
        align-items: center;
        gap: 30px;

        .texto{
            max-width: 500px;
        }
        img{
            max-width: 100%;
        }
    }
}

#cronograma{
    margin-block: 60px;

    .conteudo-cronograma{
        
        padding: 30px;
        border: 1px solid #00000033;
        border-radius: 30px;
    }

    .lista-cronograma{
        display: flex;
        flex-direction: column;
        gap: 60px;

        list-style: none;
        padding: 0;
        margin: 0;

        .item-cronograma{
            display: flex;
            align-items: flex-start;
            column-gap: 30px;
            row-gap: 15px;

            data{
                padding: 15px;
                border: 1px solid #0000001c;
                border-radius: 15px;
            }
            .conteudo-item{

                h3{
                    font-size: 1.8rem;
                    margin: 0 0 10px 0;
                    color: #147a3d;
                }
                p{
                    margin: 0;
                }
                ul{
                    padding-left: 20px;
                    list-style: disc;
                }
            }
        }
    }
}

#instrucoes{
    padding-block: 30px;
    background-color: #f5f5f5;
    box-shadow: inset 0 0 6px 0 #0000001c;

    .titulo-container, .subtitulo{
        text-align: center;
    }

    .cartoes-instrucoes{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-items: center;
        gap: 15px;

        list-style: none;
        margin: 0;
        padding: 0;

        .cartao{
            background-color: white;

            padding: 30px;
            border-radius: 30px;
            box-shadow: 0px 0px 4px 0px #02020245;
            
            h3{
                font-size: 2rem;
                margin: 0 0 10px 0;
                color: #147a3d;
            }
            h4{
                font-size: 1.5rem;
                font-weight: 700;
                color: #147a3d;

                margin-top: 30px;
            }
            .links-auxilio{
                list-style: none;
                padding: 0;
                margin-bottom: 15px;

                li{
                    display: flex;
                }
                .link-instrucao{
                    display: flex;
                    gap: 10px;

                    color: black;
                    text-decoration: none;

                    width: 100%;
                    
                    padding: 10px 0px;
                    border-block: 1px solid #ffffff;
                    
                    background-color: white;
                    transition: var(--delay-default);

                    &:hover{
                        border-block: 1px solid #a7a7a7;
                    }
                    i{
                        font-size: 2rem;
                        color: #147a3d;

                        &.producao{
                            color: #0076bb;
                        }
                        &.homologacao{
                            color: #a000eb;
                        }
                    }
                }
            }
            .link-portal-nacional{
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 10px;
    
                text-transform: uppercase;
                text-decoration: none;
                color: #fff;
    
                width: 100%;
                height: 50px;
    
                border: none;
                border-radius: 16px 10px;
    
                background-color: #147a3d;

                
                i{
                    font-size: 1.5rem;
                    opacity: 0;
                    margin-left: 0px;

                    color: white;

                    transition: var(--delay-default);
                }
                &:hover{
                    i{
                        opacity: 1;
                        margin-left: 8px;
                    }
                }
            }
        }
    }
}

#legislacao{
    margin-block: 60px;

    .conteudo-legislacao{
        display: flex;
        flex-direction: column;
        gap: 15px;

        list-style: none;
        margin: 0;
        padding: 0;

        .item-lei{
            border: 1px solid #0000001c;
            border-radius: 15px;

            max-width: 500px;

            &[open]{

                .icone-expandir{
                    transform: rotate(45deg);
                }
            }
            summary{
                display: flex;
                justify-content: space-between;
                align-items: center;

                padding: 20px;
                cursor: pointer;

                .icone-expandir{
                    transform: rotate(0deg);
                    transition: var(--delay-default);
                }
            }
            .conteudo-lei{
                padding: 20px;

            }
        }
    }
}

#faq{
    margin-block: 60px;
    max-width: 500px;

    .container-faq{
        display: flex;
        flex-direction: column;
        gap: 30px;

        margin-top: 30px;

        .caixa-faq-oficial{

            .link-faq-oficial{
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 10px;
    
                text-transform: uppercase;
                text-decoration: none;
                color: #fff;
    
                width: 250px;
                height: 50px;
    
                border: none;
                border-radius: 16px 10px;
                margin-bottom: 30px;
    
                transform: skew(10deg);
                background-color: #147a3d;
                overflow: hidden;
    
                &::before {
                    content: '';
                    position: absolute;
                    z-index: -1;
    
                    width: 0px;
                    height: 0px;
                    
                    background-color: #147a3d;
                    clip-path: circle(50% at 50% 50%);
                    transition: calc(2 * var(--delay-default));
                }
                &:hover::before {
                    content: '';
                    position: absolute;
                    z-index: -1;
                    width: 350px;
                    height: 350px;
                    background-color: #106130;
                }
    
                .texto-link{
                    font-size: 1.5rem;
                    color: #fff;
                    text-indent: 0;
                    margin: 0;
                    transform: skew(-10deg);

                }
                .icone-link{
                    font-size: 1.5rem;
                    opacity: 0;
                    margin-left: 0px;

                    color: white;

                    transition: var(--delay-default);
                }
                &:hover{
                    .icone-link{
                        opacity: 1;
                        margin-left: 8px;
                    }
                }
            }
    
            p{
                margin-bottom: 30px;
            }
    
            .link-suporte-oficial{
                display: block;
    
                color: #147a3d;
    
                padding: 20px;
                border: 1px solid #0000001c;
                border-radius: 15px;
                
                width: max-content;
            }
        }
        .link-email{
            font-weight: 600;
            color: #484848;
            
            i{
                margin-left: 5px;
            }
        }
    }
}

.titulo-container{
    font-size: 2.5rem;
    font-weight: bold;
    color: #147a3d;
}
.subtitulo{
    display: block;
    margin-bottom: 30px;
}

::details-content {
    transition: height 0.5s ease, content-visibility 0.5s ease allow-discrete;
    height: 0;
    overflow: clip;
}

/* Browser supports interpolate-size */
@supports (interpolate-size: allow-keywords) {
    :root {
        interpolate-size: allow-keywords;
    }

    [open]::details-content {
        height: auto;
    }
}

/* Fallback for browsers with no interpolate-size support */
@supports not (interpolate-size: allow-keywords) {
    [open]::details-content {
        height: 80px;
    }
}

@media (max-width: 768px) {
    #introducaoNFSe {
        .conteudo-introducao {
            flex-direction: column;
            gap: 0px;
        }
    }
    .lista-cronograma{
        
        .item-cronograma{
            flex-wrap: wrap;
        }
    }

}
@media (max-width: 425px) {
    .titulo-container{
        text-align: center;
    }
    .subtitulo{
        text-align: center;
    }
    #faq {
        .container-faq {
            .caixa-faq-oficial {
                display: flex;
                flex-direction: column;
                align-items: center;
            }
        }
    }
}
@media (max-width: 375px) {
    #cronograma {
        .conteudo-cronograma {
            padding: 10px 10px 20px 10px;
            border: 1px solid #00000033;
            border-radius: 24px;
        }
    }
}