:root {
    --navbar-heigth: 100px;
    --navbar-heigth--small: 60px;
}

/* NavBar ----------------------------------------- */


.navbar-inverse{
    height: fit-content;
}

.navbar {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-bottom: 0;

    .navbar-body {
        .navbar-left-cont {
            gap: 2rem;

            .navbar-header {
                width: fit-content;
            }

            .login-wrapper {
                width: fit-content;
            }
        }

        .sponsor-wrapper {
            height: var(--navbar-heigth);
            gap: 1rem;

            .sponsor {
                height: 50%;
                width: auto;
                display: flex;
                align-items: center;
                justify-content: center;
                img {
                    height: 100%;
                }
            }
        }
    }
}


@media only screen and (max-width: 991px) {
    .navbar {
        padding: 0;

        .navbar-body {
            flex-direction: column;

            .navbar-left-cont {
                width: 100%;
                flex-direction: column;
                justify-content: center;
                gap: 1rem;

                .login-wrapper {
                    width: 100%;
                    padding: 0;

                    .login-form {
                        margin: 0 !important;
                        padding: 1rem;

                        .form-inline {
                            width: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            flex-direction: column;
                            gap: 1rem;

                            .form-group {
                                display: inline-block;
                                margin-bottom: 0;
                                vertical-align: middle;
                            }
                        }
                    }
                }
            }

            .sponsor-wrapper {
                height: var(--navbar-heigth--small);
                width: 100%;
                display: flex;
                justify-content: flex-end;
                background-color: #05426c !important;
                padding-left: 2rem;
                padding-right: 2rem;

                .sponsor {
                    display: inline-block;
                }
            }
        }
    }

    .main.pull-right {
        padding-top: 140px !important;
    }
}

/* Layout */
.sidebar {
    .block {
        padding: 12.5px 15px;
        min-height: fit-content;

        h4 {
            margin: 0;
            margin-bottom: 7.5px;
        }
    }
}

.block {
    h3 {
        margin-top: 0px;
    }
}

.table-responsive {
    border: none;

    thead {
        th {
            padding: 0.2rem;
        }
    }

    tbody{
        tr td{
            padding: 0.2rem;
        }
    }
}

body .container:first-of-type {
    position: relative;
    top: 2rem;
}

@media only screen and (max-width: 991px) {
    .main.main.pull-right {
        padding-top: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .brand-img {
        width: 160px;
    }
}

.text-white-glyphicons {
    &::before {
        color: #ffffff !important;
    }
}

a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
    border: 1px solid #dddddd !important;
}

.thumbnail.pulsante-quad {
    transition: all 0.4s;
}

hr {
    margin-top: 13px;
    margin-bottom: 7px;
}

/* Layout utility ----------------------------------------- */
.dis-flex {
    display: flex;
}

.al-center {
    align-items: center;
}

.sp-bet {
    justify-content: space-between;
}

.just-cont-center {
    justify-content: center;
}

.flex-start {
    justify-content: flex-start;
}

.flex-end {
    justify-content: flex-end;
}

.v-align-middle {
    vertical-align: middle !important;
}

.block.my-thin-block {
    padding: 5px;
}

.max-height {
    height: 100%;
}

.gap--4 {
    gap: 2rem;
}

.marg-l--1 {
    margin-left: 0.5rem !important;
}

.marg-t--1 {
    margin-top: 0.5rem !important;
}

.no-marg {
    margin: 0 !important;
}

.no-marg--t {
    margin-top: 0 !important;
}

.no-pad {
    padding: 0 !important;
}

/* Quadratoni home PCS ----------------------------------------- */
.my-cont-quadratoni {
    overflow-x: auto;
    display: flex;
    width: 100%;
    padding-bottom: 0.6rem;
    margin-bottom: 1.4rem;
    gap: 1rem;

    .my-quadratone {
        min-width: 17rem;
        width: 17rem;
        height: 17rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        background-color: #002f4d;
        box-shadow: 0 5px 5px -5px rgba(0,0,0,.1);

        &:hover {
            background-color: #274b80;
        }

        .my-quadratone-cont-icon {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            flex-direction: row;
            gap: 0.6rem;
            position: relative;
            pointer-events: none;

            i {
                position: relative;
                &::before {
                    color: #ffffff;
                    margin: 0;
                }

                &:nth-child(1) {
                    &::before {
                        font-size: 44px;
                    }
                }

                &:nth-child(2) {
                    top: 0.6rem;

                    &::before {
                        font-size: 26px;
                    }
                }
            }
        }

        .my-quadratone-cont-text {
            color: #ffffff;
            text-align: center;
            pointer-events: none;

            .my-quadratone-text {
                line-height: 1.1;
                margin: 0;
            }
        }
    }

    .my-quadratone-type-varie {
        background-color: #109dd9;

        &:hover {
            background-color: #00b3ff;
        }
    }

    .my-quadratone-type-terra {
        background-color: #39a727;

        &:hover {
            background-color: #32cd32;
        }
    }

    .my-quadratone-type-treni {
        background-color: #c1c1c1;

        &:hover {
            background-color: #d7d7d7;
        }

        .my-quadratone-cont-text {
            color: #000000;
        }
    }

    .my-quadratone-type-interoperabilita {
        background-color: #006B99;

        &:hover {
            background-color: #2483AC;
        }
    }

    .my-quadratone-type-CLASSE-TIPO-SCONOSCIUTA {
        background-color: #7e1f86;

        &:hover {
            background-color: #7e1f86;
        }
    }
}

/* --------------- VARIE --------------- */
body {
    width: 100%;
    overflow-x: hidden;
}

span.traffic_light_label {
    top: 0px !important;
}

.strong {
    font-weight: 600;
}