@import "reset.css";


/* =====================================================
   RODAPÉ — MOBILE
===================================================== */

@media (max-width: 900px) {

    #rodape {
        width: 100%;
        overflow: hidden;
        background: var(--fundoCinza);
        color: var(--cor-texto);
    }


    /* =================================================
       ESTRUTURA PRINCIPAL
    ================================================= */

    .conteudoRodape {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 0;
        box-sizing: border-box;
    }


    /* =================================================
       PRIMEIRA COLUNA
       LOGO + DESCRIÇÃO
    ================================================= */

    .colunaRodape:first-child {
        display: contents;
    }


    /* =================================================
       LOGO
    ================================================= */

    .logoRodape,
    .colunaRodape:first-child > img {
        grid-column: 1 / -1;
        grid-row: 1;

        width: 110px;
        height: auto;

        margin: 0 auto;
        display: block;
    }


    /* =================================================
       DESCRIÇÃO DO LOGO
    ================================================= */

    .descricaoLogo {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;
        max-width: 500px;

        margin: 0 auto;

        text-align: center;

        color: var(--cor-texto);

        font-size: .7rem;
        line-height: 1.4;
        font-weight: 300;
    }


    /* =================================================
       LIGAÇÕES RÁPIDAS
    ================================================= */

    .colunaRodape:nth-child(2) {
        grid-column: 1;
        grid-row: 3;

        width: 100%;

        margin: 0;
        padding: 0 12px 0 0;

        box-sizing: border-box;

        border: none;
    }


    /* =================================================
       RECURSOS
    ================================================= */

    .colunaRodape:nth-child(3) {
        grid-column: 2;
        grid-row: 3;

        width: 100%;

        margin: 0;
        padding: 0 0 0 12px;

        box-sizing: border-box;

        border: none;
    }


    /* =================================================
       CONTACTOS
    ================================================= */

    .colunaRodape:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 4;

        width: 100%;

        margin: 0;
        padding: 0;

        box-sizing: border-box;

        border: none;
    }


    /* =================================================
       TÍTULOS
    ================================================= */

    .colunaRodape h3 {
        position: relative;

        width: 100%;

        margin: 0 0 10px;
        padding-bottom: 6px;

        color: var(--azulEscuro);

        font-size: .9rem;
        line-height: 1.2;
        font-weight: 500;
    }


    /* =================================================
       LINHA DO TÍTULO
    ================================================= */

    .colunaRodape h3::after {
        content: "";

        position: absolute;

        left: 0;
        bottom: 0;

        width: 100%;
        height: 1px;

        background: rgba(38, 61, 103, .25);
    }


    /* =================================================
       PEQUENA BARRA DO TÍTULO
    ================================================= */

    .colunaRodape h3::before {
        content: "";

        position: absolute;

        left: 0;
        bottom: -2px;

        width: 24px;
        height: 3px;

        background: var(--azulClaro);

        border-radius: 5px;

        z-index: 2;
    }


    /* =================================================
       LISTAS
    ================================================= */

    .colunaRodape ul {
        width: 100%;

        padding: 0;
        margin: 0;

        list-style: none;
    }


    .colunaRodape ul li {
        display: flex;

        align-items: center;

        gap: 6px;

        margin-bottom: 6px;

        font-size: .7rem;
        line-height: 1.3;
        font-weight: 300;
    }


    /* =================================================
       PONTO DAS LIGAÇÕES
    ================================================= */

    .colunaRodape ul li .ponto {
        width: 6px;
        height: 6px;

        flex-shrink: 0;

        background: var(--azulClaro);

        border-radius: 50%;

        transition: all .3s ease;
    }


    /* =================================================
       HOVER DO PONTO
    ================================================= */

    .colunaRodape ul li:hover .ponto {
        width: 0;
        height: 0;

        background: transparent;

        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-left: 5px solid var(--azulEscuro);

        border-radius: 0;

        transform: translateX(2px);
    }


    /* =================================================
       LINKS
    ================================================= */

    .colunaRodape ul li a,
    .colunaRodape a {
        color: var(--azulEscuro);

        text-decoration: none;

        font-size: .7rem;
        line-height: 1.3;
        font-weight: 300;

        transition: color .3s ease;
    }


    .colunaRodape ul li:hover a,
    .colunaRodape a:hover {
        color: var(--azulClaro);
    }


    /* =================================================
       CONTACTOS
    ================================================= */

    .listaContactos {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 7px;

        padding: 0;
        margin: 0;
    }


    .listaContactos li {
        display: flex;

        align-items: center;

        gap: 7px;

        margin: 0;

        color: var(--azulEscuro);

        font-size: .7rem;
        line-height: 1.3;
        font-weight: 300;
    }


    .listaContactos img {
        width: 15px;
        height: 15px;

        flex-shrink: 0;

        margin: 0;

        transition: filter .3s ease;
    }


    .listaContactos li:hover img {
        filter: brightness(0) saturate(100%)
                invert(20%)
                sepia(22%)
                saturate(1150%)
                hue-rotate(180deg)
                brightness(80%)
                contrast(100%);
    }


    /* =================================================
       REDES SOCIAIS
       DEPOIS DOS CONTACTOS
    ================================================= */

    .redesSociais {
        grid-column: 1 / -1;
        grid-row: 5;

        width: 100%;

        display: flex;

        justify-content: center;
        align-items: center;

        gap: 8px;

        margin: 0;
        padding: 0;
    }


    .redesSociais a {
        width: 32px;
        height: 32px;

        margin: 0;

        border-radius: 50%;

        display: flex;

        align-items: center;
        justify-content: center;

        background: var(--azulEscuro);

        transition:
            background .3s ease,
            transform .3s ease;
    }


    .redesSociais img {
        width: 17px;
        height: 17px;

        background: transparent;
    }


    .redesSociais a:hover {
        background: var(--laranjaForte);

        transform: translateY(-2px);
    }


    /* =================================================
       BARRA INFERIOR
    ================================================= */

    .barra-inferior {
        width: 100%;

        box-sizing: border-box;

        padding: 10px 15px;

        background: var(--azulEscuro);

        color: var(--corBranca);

        text-align: center;

        font-size: .7rem;
        line-height: 1.3;
        font-weight: 300;
    }


    .barra-inferior a {
        color: var(--corBranca);

        text-decoration: none;
    }


    .barra-inferior strong {
        font-weight: 500;
    }

}


/* =====================================================
   MOBILE PEQUENO
===================================================== */

@media (max-width: 600px) {

      .conteudoRodape {
        padding: 4px 30px 12px;
        gap: 18px 0;
    }


    /* =================================================
       LOGO — BAIXAR UM POUCO
    ================================================= */

    .logoRodape,
    .colunaRodape:first-child > img {
        width: 100px;
        margin-top: 8px;
    }


    
.colunaRodape:nth-child(4) {
    grid-column: 1 / -1;

    width: 50%;

    margin: 0 ;

    padding: 0;
}


    .listaContactos {
        width: 100%;
        gap: 6px;
    }



    /* =================================================
       DESCRIÇÃO
    ================================================= */

    .descricaoLogo {
        font-size: .7rem;
        line-height: 1.2;

        max-width: 380px;
          font-weight: 300;
    }


    /* =================================================
       COLUNAS
    ================================================= */

    .colunaRodape:nth-child(2) {
        padding-right: 10px;
    }


    .colunaRodape:nth-child(3) {
        padding-left: 10px;
    }


    /* =================================================
       TÍTULOS
    ================================================= */

    .colunaRodape h3 {
        font-size: .9rem;
        font-weight: 500;
    }


    /* =================================================
       LINKS
    ================================================= */

    .colunaRodape ul li,
    .colunaRodape ul li a,
    .colunaRodape a,
    .listaContactos li {
        font-size: .75rem;
        font-weight: 300;
    }


    /* =================================================
       CONTACTOS
    ================================================= */

    .listaContactos {
        gap: 6px;
    }


    /* =================================================
       REDES SOCIAIS
    ================================================= */

    .redesSociais {
        gap: 7px;
    }


    .redesSociais a {
        width: 30px;
        height: 30px;
    }


    .redesSociais img {
        width: 16px;
        height: 16px;
    }


    /* =================================================
       BARRA INFERIOR
    ================================================= */

    .barra-inferior {
        padding: 10px 12px;

        font-size: .7rem;
    }

}