/* General */
html, body {
    color: black !important;
}

body {
    overflow-x: hidden;
}

.d-none {
    display: none;
}

.bg-light {
    background-color: #def !important;
}

a {
    text-decoration: none;
}

.inactive_link {
    pointer-events: none;
    cursor: default;
}

.c-black {
    color: black;
}

.white-title {
    background-color: #0066cc;
    color: #fff;
}

.blue-border {
    border-bottom: 1px solid #0066cc
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border: 1px solid black !important;
}

.table-sm thead {
    background-color: #0066cc;
    color: white;
}

.table-sm th {
    font-size: 14px;
    text-transform: uppercase;
}
.table-sm td {
    font-size: 16px;
}

.table-sm td a {
    font-weight: 700;
}

.badge.banner {
    left: 0;
    z-index: 1;
    color: #fff;
    width: 70px;
    height: 70px;
    line-height: 60px;
    position: absolute;
    text-align: center;
    border-radius: 100%;
    text-transform: capitalize;
    box-shadow: 0 10px 20px 0 rgba(0,0,0,0.5);
    top: 10px;
}

#body-error,
#email-error,
#name-error,
#subject-error,
#privacy-error,
#hiddenRecaptcha-error {
    padding-bottom: 5px;
    color: red;
    font-weight: bold;
}

#privacy-error,
#hiddenRecaptcha-error {
    padding-left: 10px;
}

/* remove outline on active/focus */
a:active,
a:focus,
button:active,
button:focus {
    outline: 0 !important;
    border: none !important;
    -moz-outline-style: none !important;
}

.text-black a {
    color: black !important;
}

.form-group {
    margin-bottom: 1rem;
}

/* ProcessWire CKEditor CSS */

.align_left {
    float:left;
    margin: 5px;
}
.align_right {
    float:right;
    margin: 5px;
}
.align_center {
    margin: 0 auto;
    display:block;
}

/* Home Bootstrap Carousel */

.home .carousel-control-next {
    right: -50px;
}

.home .carousel-control-prev {
    left: -50px;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230066CC' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230066CC' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}


/* Markup Pager Nav */

.MarkupPagerNav {
    clear: both;
    margin: 1em 0;
    font-family: Arial, sans-serif;
}
table + .MarkupPagerNav {
    border-top: 1em solid #fff;
}

.MarkupPagerNav {
    margin-top: 0;
}

.MarkupPagerNav li {
    display: inline;
}

.MarkupPagerNav li a,
.MarkupPagerNav li.MarkupPagerNavSeparator {
    display: block;
    float: left;
    padding: 9px 11px;
    background: #0053A6;
    margin-right: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}
.MarkupPagerNav li.MarkupPagerNavOn a,
.MarkupPagerNav li a:hover {
    background: #5b9de7;
    text-decoration: none;
}

.MarkupPagerNav li.MarkupPagerNavSeparator {
    color: #0053A6;
    background: none;
    padding-left: 3px;
    padding-right: 3px;
}

/* Scroll Top Button */

#buttontop {
    display: inline-block;
    background-color: #0b80f5;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s,
    opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}
#buttontop::after {
    content: "\f077";
    font-family: FontAwesome, serif;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: #fff;
}
#buttontop:hover {
    cursor: pointer;
    background-color: #4a85e9;
}
#buttontop:active {
    background-color: #4a85e9;
}
#buttontop.show {
    opacity: 1;
    visibility: visible;
}

/* 404 Page Not Found */

#notfound {
    position: relative;
    height: 80vh;
}

#notfound .notfound {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.notfound {
    max-width: 520px;
    width: 100%;
    line-height: 1.4;
    text-align: center;
}

.notfound .notfound-404 {
    position: relative;
    height: 200px;
    margin: 0px auto 20px;
    z-index: -1;
}

.notfound .notfound-404 h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 236px;
    font-weight: 200;
    margin: 0px;
    color: #211b19;
    text-transform: uppercase;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.notfound .notfound-404 h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    color: #211b19;
    background: #fff;
    padding: 10px 5px;
    margin: auto;
    display: inline-block;
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
}

.notfound a {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    padding: 13px 23px;
    background: #0B00D9;
    font-size: 18px;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.notfound a:hover {
    color: #fff;
    background: #105ae5;
}

.white-title {
    padding-left: 10px;
}

.navbar .dropdown-menu .link-list-wrapper ul li a.list-item.active span {
    color: rgb(227, 6, 19) !important;
}


@media (max-width: 480px) {
    .it-brand-wrapper .top img {
        margin-left: 15px !important;
    }
}

@media (max-width: 480px) {
    .it-brand-wrapper img {
        max-width: 235px !important;
        max-height: 65px !important;
    }
}

/*
========================================
--- Stile Footer OPI ---
========================================
*/

.footer-opi-schema {
    /* Colori principali: sfondo verde scuro, testo chiaro */
    background-color: #00665e;
    color: #f0f0f0;

    padding-top: 45px;
    padding-bottom: 0;
    margin-top: 30px;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Stile per le singole colonne */
.footer-opi-schema .footer-col {
    margin-bottom: 30px;
}

/* --- CLASSE NUOVA PER IL LOGO --- */
.footer-opi-schema .footer-logo-img {
    max-width: 90%;
    height: auto;
    margin-bottom: 15px;
    max-height: 75px;
}
/* --- --- */

/* Titolo principale (Colonna 1) */
.footer-opi-schema h3.footer-titolo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Titoli delle altre colonne (2, 3, 4) */
.footer-opi-schema h4.footer-titolo-colonna {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff; /* Testo bianco */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-opi-schema p {
    color: #f0f0f0; /* Testo grigio molto chiaro */
}

/* Stile per i blocchi di testo (Indirizzo e Orari) */
.footer-opi-schema .footer-blocco-testo {
    line-height: 2em;
}

/* Stile per le liste (Contatti e Dati Amm.) */
.footer-opi-schema .footer-lista-contatti {
    list-style: none;
    padding-left: 0;
}

.footer-opi-schema .footer-lista-contatti li {
    margin-bottom: 10px;
}

.footer-opi-schema .footer-lista-contatti strong {
    color: #ffffff; /* Testo bianco */
}

.footer-opi-schema .footer-lista-contatti a {
    color: #ffffff; /* Link bianchi */
    text-decoration: none;
}

.footer-opi-schema .footer-lista-contatti a:hover {
    text-decoration: underline;
}

/* --- Stile per il fondo del footer --- */

.footer-opi-schema .footer-bottom {
    background-color: #004C46;
    padding: 25px 0;
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-opi-schema .footer-bottom p {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-opi-schema .footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-opi-schema .footer-bottom .legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.footer-opi-schema .footer-bottom .legal-links a:hover,
.footer-opi-schema .footer-bottom .cookie-settings-link a:hover {
    text-decoration: underline;
}

.footer-opi-schema .footer-bottom .cookie-settings-link {
    margin-top: 5px;
}

.footer-opi-schema .footer-bottom .cookie-settings-link a {
    color: #ffffff;
    font-size: 0.8rem;
    text-decoration: underline;
}