:root {
    --anci-color-primary: #003366;
    --anci-color-accent: #003366;
    --anci-color-text: #c7a96b;
    font-size: 14px;
}

*:focus,
*:focus-visible,
*:focus:not([data-focus-mouse=true]) {
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

header {
    display: none !important;
}

.tooltip {
    display: inline-block !important;
    position: relative !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    left: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    max-width: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    background-image: none !important;
}

.tooltip .tooltip-arrow,
.tooltip::before,
.tooltip::after {
    display: none !important;
}


.it-footer-small-prints {
    background-color: var(--anci-color-primary);
}

.it-footer a {
    color: var(--anci-color-text);
}

.text-footer {
    color: var(--anci-color-text);
}

.bgimage {
    background-image: none;
}

.wallpaper {
    background-image: url("../images/wallpaper.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: start start;
}

.wallpaper-box {
    max-width: min(560px, 42vw);
    padding: clamp(1rem, 2.2vw, 1.75rem);
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 4px;
}

.wallpaper-box .logo {
    display: block;
    width: clamp(200px, 15vw, 400px);
    height: auto;
    margin: 0 0 clamp(0.75rem, 1.2vw, 1rem) 0;
}

.wallpaper-box .title {
    margin: 0 0 clamp(0.5rem, 1.2vw, 0.9rem) 0;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.02;
    text-wrap: balance;
}

.wallpaper-box .description {
    margin: 0;
    max-width: 56ch;
    line-height: 1.45;
}

.login-form-section {
    width: 30vw;
    min-width: 480px;
    background: white;
}

.login-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 520px;
}

div#content {
    height: 100%;
    box-shadow: none;
}

#main-content {
    margin: 0;
    padding: 0 !important;
    max-width: none;
    height: 100%;
    overflow: hidden;
}

.bgimage {
    background-image: none !important;
    padding: 0 !important;
}


.card {
    background: transparent;
    border: none;
    box-shadow: none;
}

#logo {
    max-height: 150px;
    width: auto;
}

.anci-icon {
    width: auto;
    height: 3rem;
}

.providers {
    min-width: 450px;
    flex-basis: 30%;
}

.spid-idp-button {
    max-height: 400px !important; /* Puoi aumentare o diminuire questo valore (es. 350px o 50vh) */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.spid-idp-button::-webkit-scrollbar {
    width: 6px;
}

.spid-idp-button::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.spid-idp-button::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.spid-idp-button::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

html {
    min-height: 100%;
}

body.login {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body.login #main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body.login div#content {
    flex: 1 0 auto;
    height: auto;
    min-height: 0;
}

body.login .it-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.login-providers {
    max-width: 100%;
    height: 250px;
    border-radius: 4px;
    border: 2px solid var(--anci-color-primary) !important;
}

.cie.tab-pane {
    margin-top: 30px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .login-form-section {
        width: 480px;
        padding: 2rem !important;
    }

    .wallpaper {
        background-position: center;
    }

    .wallpaper-box {
        max-width: min(100%, 420px);
    }
}

@media (max-width: 991.98px) {
    :root {
        --login-mobile-hero-height: clamp(16rem, 52dvh, 24rem);
    }

    html,
    body.login {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
    }

    body.login {
        background-image: url("../images/wallpaper.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    body.login #main-content,
    body.login div#content {
        height: 100%;
        min-height: 100%;
        overflow: hidden;
    }

    body.login div#content {
        position: relative;
        width: 100%;
    }

    body.login .it-footer {
        display: none !important;
    }

    .login-form-section {
        min-width: 0;
    }

    .wallpaper {
        position: fixed;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1.5rem 1.25rem !important;
        justify-content: flex-start !important;
        align-items: center !important;
        background-position: center;
        pointer-events: none;
    }

    .wallpaper-box {
        max-width: min(100%, 420px);
        padding: 1rem;
    }

    #logo {
        max-width: min(260px, 72vw);
        max-height: 120px;
        width: auto;
        height: auto;
    }

    .login-form-section {
        position: relative;
        z-index: 1;
        width: 100%;
        height: calc(100% - var(--login-mobile-hero-height));
        min-height: 0;
        margin-top: var(--login-mobile-hero-height);
        padding: 1.25rem !important;
        overflow: hidden;
        background: white;
        align-items: center !important;
    }

    .login-stack {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .providers {
        min-width: 0;
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 769.98px) {
    :root {
        --login-mobile-hero-height: clamp(12rem, 42dvh, 17rem);
    }

    body.login #main-content {
        min-height: 100%;
    }

    body.login div#content {
        width: 100%;
    }

    .wallpaper {
        padding: 1.5rem 1rem !important;
        justify-content: flex-start !important;
        align-items: center !important;
        background-position: center;
    }

    .wallpaper-box {
        max-width: min(100%, 360px);
        padding: 1rem;
    }

    #logo {
        max-width: min(260px, 75vw);
        max-height: 120px;
        width: auto;
        height: auto;
    }

    .login-form-section {
        width: 100%;
        height: calc(100% - var(--login-mobile-hero-height));
        flex: 1 1 auto;
        margin-top: var(--login-mobile-hero-height);
        padding: 1rem !important;
    }

    .login-stack {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .providers {
        min-width: 0;
        width: 100%;
        flex-basis: auto;
    }

    .it-footer-small-prints .d-flex {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        flex-wrap: wrap;
    }

    .it-footer-small-prints-list {
        white-space: normal;
    }
}
