/* ============== LOGIN TABS STYLES ============== */

.login-container {
    padding: 6px;
}

/* Card styling */
.card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem !important;
}

/* ------------- NAV TABS CSS ------------- */
.nav-tabs-container {
    border-bottom: 1px solid #b2b2b2;
    margin-bottom: 32px;
}

.nav-tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.nav-tabs-left,
.nav-tabs-right {
    display: flex;
    gap: 2px;
}

.tab-btn {
    background: #e3e3e3;
    border: none;
    border-radius: 3px 3px 0 0;
    margin-bottom: 2px;
    font-size: 18px;
    font-family: "Titillium Web", sans-serif !important;
    font-weight: 600 !important;
    line-height: 2.5em !important;
    padding: 0 24px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #007a33;
    color: white;
    border-bottom: 3px solid #007a33;
    margin-bottom: 0;
}

.tab-btn:hover:not(.active) {
    background: #d0d0d0;
}

/* ------------- CONTENT AREAS ------------- */
.login-content {
    display: none;
}

.login-content.active {
    display: block;
}

.login-text {
    margin-top: 32px;
    margin-bottom: 32px;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .login-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        margin-left: 18px;
        margin-top: 1rem;
    }

    .info-links {
        flex: 1;
    }

    .login-button {
        flex-shrink: 0;
    }
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-links a {
    color: #007a33;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 3;
}

.info-links a:hover {
    color: #002e13;
    text-decoration: underline;
}

/* Impilamento tab in colonna singola da 824px in giù */
@media (max-width: 824px) {
    .nav-tabs-wrapper {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .nav-tabs-left,
    .nav-tabs-right {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .tab-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ------------- BLOCKQUOTE STYLES ------------- */
figure {
    margin: 0 0 1rem;
}

blockquote {
    margin: 0;
    position: relative;
    background: #f3f3f3;
    border-radius: 5px;
    border-left: none !important;
    padding-left: 0 !important;
    font-style: normal;
}

blockquote p {
    padding: 15px 35px;
    color: #19191A;
    font-family: "Titillium Web", sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

blockquote ul {
    margin: 10px 0;
    padding: 0 35px;
    color: #19191A !important;
    font-family: "Titillium Web", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

blockquote ul li {
    margin-bottom: 5px;
    color: #19191A !important;
}

blockquote ul ul {
    margin-top: 5px;
    padding-left: 20px;
}

blockquote ul ul li {
    color: #19191A !important;
}

blockquote::before {
    content: '\201C';
    font-size: 50px;
    position: absolute;
    top: 5px;
    left: 10px;
    color: #666;
    font-family: 'Times New Roman', serif;
    line-height: 1;
}

blockquote::after {
    content: '\201D';
    font-size: 50px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #666;
    font-family: 'Times New Roman', serif;
    line-height: 1;
}

figcaption.quote-caption {
    font-size: 14px;
    margin-left: 15px;
    margin-top: 10px;
    color: #666;
}

/* ------------- SPID BUTTON STYLES ------------- */
.italia-it-button {
    display: inline-block;
    position: relative;
    padding: 0;
    color: #FFF !important;
    font-family: "Titillium Web", HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
    font-weight: 600;
    line-height: 1em;
    text-decoration: none;
    border: 0;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.italia-it-button-icon,
.italia-it-button-text {
    display: block;
    float: left;
}

.italia-it-button-icon {
    margin: 0 -.4em 0 0;
    padding: 0.6em .8em .5em;
    border-right: rgba(255, 255, 255, 0.1) 0.1em solid;
}

.italia-it-button-text {
    padding: .95em 1em .85em 1em;
    font-size: 1.15em;
    text-align: center;
}

.italia-it-button-size-m {
    font-size: 15px;
    width: 220px;
}

.italia-it-button-size-m > span img {
    width: 29px;
    height: 29px;
    border: 0;
}

.button-spid {
    background-color: #06C;
    color: #FFF;
    border-radius: 4px;
}

.button-spid:hover {
    background-color: #036;
    color: #FFF;
}

.button-spid:active {
    background-color: #83BEED;
    color: #036;
}

/* ------------- CIE BUTTON STYLES ------------- */
.cie-button-img {
    height: 60px;
    width: auto;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.cie-button-img:hover {
    opacity: 0.8;
}

/* ------------- CRS/CNS BUTTON STYLES ------------- */
.btn-outline-primary {
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 0 0 1px #007a33;
    color: #007a33;
    border: none;
    border-radius: 4px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-primary:hover {
    background-color: #007a33;
    color: white !important;
    text-decoration: none;
}

.btn-outline-primary svg {
    width: 1.8em;
    height: 1.8em;
    fill: currentColor;
}

.svg-inline--fa {
    display: inline-block;
    font-size: inherit;
    height: 1em;
    overflow: visible;
    vertical-align: -.125em;
}

.svg-inline--fa.fa-w-18 {
    width: 1.125em;
}

/* ------------- LOGIN FORM STYLES (Accesso Esterni) ------------- */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #007a33;
    box-shadow: 0 0 0 2px rgba(0, 122, 51, 0.1);
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

.password-toggle:hover {
    color: #007a33;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.forgot-links {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forgot-link {
    color: #007a33;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    background: #007a33;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-login:hover:not(:disabled) {
    background: #005a26;
}

.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ------------- MESSAGE CONTAINER ------------- */
.message-container {
    margin-top: 20px;
    text-align: center;
    color: #dc3545;
    font-weight: 500;
}

/* ------------- RESPONSIVE DESIGN ------------- */
@media (max-width: 768px) {
    .nav-tabs-wrapper {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .nav-tabs-left,
    .nav-tabs-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 16px;
        padding: 0 16px;
        min-width: auto;
    }

    .login-actions {
        margin-left: 0;
    }

    .info-links {
        text-align: center;
    }

    .login-button {
        text-align: center;
    }

    .italia-it-button-size-m {
        width: auto;
        min-width: 200px;
    }
}

@media (max-width: 580px) {
    .italia-it-button-size-m > span img {
        width: 29px;
        height: 29px;
        border: 0;
        margin-top: unset !important;
    }
}

@media (max-width: 380px) {
    .italia-it-button-size-m {
        width: inherit;
    }
    
    .italia-it-button-size-m .italia-it-button-text {
        font-size: 1em;
    }
}

@media (max-width: 360px) {
    .italia-it-button-size-m > span img {
        width: 2em;
        margin-top: -0.8em;
        height: 2em;
        border: 0;
    }
}

/* ------------- PRINT STYLES ------------- */
@media print {
    .tab-btn,
    .login-button {
        display: none;
    }
    
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
}
