/* DIP Footer Styles - Adapted from programmazioneeconomica.gov.it */

.it-footer {
    width: 100%;
    clear: both;
}

.it-footer-main {
    padding: 2.0rem 0 1rem;
}

.bg-dark {
    background-color: #003366 !important;
    color: #fff;
}

.it-footer .container-fluid {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 2rem;
}

.it-brand-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.it-brand-wrapper a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.it-brand-wrapper .icon {
    width: 60px;
    height: 64px;
    margin-right: 1.5rem;
}

.footer-it-brand-title {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.it-brand-tagline {
    font-size: 1.375rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    color: #fff;
    font-weight: 400;
}

.it-footer section {
    margin-bottom: 0rem;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-bottom {
    border-bottom: 1px solid;
}

.py-4 {
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.pb-2 {
    padding-bottom: 1rem;
}

.pb-3 {
    padding-bottom: 1.5rem;
}

.fs-5 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.d-block {
    display: block;
}

.text-uppercase {
    text-transform: uppercase;
}

.fw-semibold {
    font-weight: 600;
}

.contactBoxTextFooter {
    color: #fff;
    font-size: 18px;
}

.contactBoxTextFooter p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contactBoxTextFooter a {
    color: #fff;
    text-decoration: underline;
}

.contactBoxTextFooter a:hover {
    color: #e6e6e6;
}

/* Ensure 4 columns on large screens */
@media (min-width: 992px) {
    .it-footer .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Social icons in footer */
.social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social .list-inline-item {
    display: inline-block;
    margin-right: 1rem;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}

.social a:hover {
    opacity: 0.8;
}

.social a i {
    width: 1.5rem;
    height: 1.5rem;
}

/* Footer small prints (links) */
.it-footer-small-prints {
    background-color: #003366;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.it-footer-small-prints .container-fluid {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 2rem;
}

.it-footer-small-prints-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
}

.it-footer-small-prints-list li {
    margin-right: 2.5rem;
    margin-bottom: 0.5rem;
}

.it-footer-small-prints-list a {
    color: #fff;
    text-decoration: underline;
    font-size: 1.25rem;
}

.it-footer-small-prints-list a:hover {
    color: #e6e6e6;
}

.it-footer-small-prints-list .text-white {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .it-footer .container-fluid {
        padding: 0 1.5rem;
    }

    .it-footer-small-prints .container-fluid {
        padding: 0 1.5rem;
    }

    .it-brand-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .it-brand-wrapper .icon {
        margin-bottom: 1rem;
    }

    .footer-it-brand-title {
        font-size: 1.4rem;
    }

    .it-brand-tagline {
        font-size: 1.1rem;
    }

    .it-footer-small-prints-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .it-footer-small-prints-list li {
        margin-right: 0;
    }
}

/* Cookie Consent - Use CSS Variables for theming */
#cc-main {
    --cc-bg: #00264d;
    --cc-primary-color: #fff;
    --cc-secondary-color: #e0e0e0;
    --cc-btn-primary-bg: #f0f0f0;
    --cc-btn-primary-color: #00264d;
    --cc-btn-secondary-bg: #f0f0f0;
    --cc-btn-secondary-color: #00264d;
    --cc-cookie-category-block-bg: #00508f;
    --cc-cookie-category-block-hover-bg: #0066b3;
    --cc-toggle-off-bg: #999;
    --cc-toggle-on-bg: #17a2b8;
    --cc-toggle-on-knob-bg: #fff;
    --cc-toggle-off-knob-bg: #e0e0e0;
}

/* Utility classes */
.u-color-white {
    color: #fff !important;
}

.u-text-r-xs {
    font-size: 0.875rem;
}

.u-lineHeight-m {
    line-height: 1.6;
}

.u-padding-r-bottom {
    padding-bottom: 1rem;
}

.notprint {
    /* Will be hidden when printing */
}

@media print {
    .notprint {
        display: none !important;
    }
}
