@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --text-color: #212529;
    --height: 70px;
    --min-height: 34px;
    /* --min-height:calc((var(--height) / 7)*4); */
    --gray: #dedede;
    --padding: 8px;
    --border-color: #adb5bd;
    --red: rgb(184, 18, 21);
    --blu: #053c7c;
    /* --bs-primary-rgb: rgb(from var(--blu) r g b); */
    --bs-primary-rgb: 5, 60, 124;
}

body {
    color: var(--text-color);
    font-family: Rubik, Arial, Helvetica, sans-serif;

    a {
        color: var(--blu);

        &:hover {
            color: hsl(from var(--blu) h s calc(l+10));
        }
    }

    .PWEB-full-screen {
        display: none;
        background-color: rgba(90, 90, 90, 0.5);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

#portale_page_header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: var(--gray);
    padding: 0 var(--padding);
    box-shadow: 0px 3px 10px var(--border-color);
    font-weight: 400;

    img {
        height: 70px;
    }

}

#portale_page_main {
    margin-top: calc(var(--height)*1.15);
    margin-bottom: var(--min-height);

    h2 {
        font-size: 32px;
        color: var(--red);
        font-weight: 400;
        line-height: 24px;
    }

    h3 {
        font-weight: 200;
        font-size: 22px;
        margin-top: 10px;
        margin-bottom: 10px;
        line-height: 24px;
    }

    button {
        border: 1px solid var(--blu);
        color: var(--blu);

        &:hover {
            color: #fff;
            background-color: var(--blu);
        }
    }

    &>.row {
        margin: 0 -5px;
        padding: var(--padding) 0;
        border: 1px solid var(--gray);
    }    
    .PWEB-intestazione {
        border-bottom: 0;
        padding-top: 1rem;
        border-radius: 5px 5px 0 0;
        #btn-assistenza{
            cursor:pointer;
        }
    }

    .PWEB-blocchi {
        border-radius: 0 0 5px 5px;

        .PWEB-application {
            background-color: var(--gray);
            padding: var(--padding);
            margin-bottom: 1rem;

            .PWEB-app-title {
                line-height: 35px;
                font-size: 25px;
                display: flex;
                gap: 50px;

                position: relative;
                padding-left: 10px;

                .PWEB-simple-button {
                    width: 22px;
                    height: 22px;
                    background: #fff;
                    align-self: center;
                    margin: 0 -22px;

                    img {
                        width: 22px;
                        height: 22px;
                    }
                }

                &[aria-expanded] {
                    cursor: pointer;
                }

            }

            .PWEB-module-button {
                display: inline-block;
                border-style: solid;
                height: 140px;
                width: 140px;                
                &:not(:hover) {
                    border-color: var(--gray) !important;
                }
                
            }
            .PWEB-application-img-active{
                background-color: #fff;
                &:hover {
                    cursor: pointer;
                }

            }
            .PWEB-application-img-noactive {
                background-color:hsl(from var(--gray) h s calc(l - 10));
            }

            .PWEB-app-pictures {
                position: relative;
                z-index: 11;
            }
        }
    }
}

#portale_page_footer {
    position: fixed;
    z-index: 100;
    font-size: 14px;
    bottom: 0;
    left: 0;
    height: var(--min-height);
    width: 100%;
    background-color: var(--gray);
    padding: 0 var(--padding);
    border-top: 1px solid var(--border-color);

    #footer_start {
        align-self: center;
    }

    #footer_center {
        margin-top: 1px;
        text-align: center;
    }

    #footer_end {
        line-height: 12px;
        align-self: center;
        text-align: right;
    }

    img {
        height: 32px;
        margin:0 10px;
    }


}

/*Dispositivo piccolo: smarphone bootstrap-sm*/
@media (max-width: 767px) {
    #portale_page_header {
        &.loggedin{
            height: 120px;
        }
    }
    #portale_page_main{
        &.loggedin{
            margin-top: 125px;
        }
        .PWEB-assistenza-button{
            width:100%;
        }
    }
    #portale_page_footer {
        position:static;
        height:auto;
        margin: 0 calc(-100vw / 2 + 100% / 2);
        width:100vw;
        .row{
            .col-12{
                text-align:center !important;
                margin:5px 0;
                
            }
        }
    }

}