/*
Theme Name: Design Italia
Theme URI: https://github.com/italia/design-wordpress-theme/
Author: Marco Gargano
Author URI: http://marcogargano.com/
Description: Design Italia è un tema di WordPress utilizzabile per i siti internet della Pubblica Amministrazione italiana. Design Italia rispetta le nuove linee guida di design dell’Agenzia per l’Italia digitale rilasciare dal Team per la Trasformazione Digitale e le caratteristiche per i servizi web della Pubblica Amministrazione contenute nel Piano triennale per l’informatica nella Pubblica Amministrazione 2017/2019. Nel tema vengono integrate le componenti di Bootstrap Italia.
Version: 0.35
License: AGPL-3.0
License URI: LICENSE
Tags: one-column, two-columns, right-sidebar, custom-header, custom-colors, custom-logo, custom-menu, footer-widgets, editor-style, featured-images, post-formats, theme-options
Text Domain: wppa

Design Italia WordPress Theme © 2017 Marco Gargano
Design Italia is distributed under the terms of the AGPL-3.0

Copyright (c) the respective contributors, as shown by the AUTHORS file.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
*/

@import url("lib/bootstrap-italia/css/fonts.css");
@import url("lib/block/block.css");

/* WordPress WYSIWYG Editor Styles */
.entry-content {
    margin-top: 45px;
    /*margin-bottom: 60px;*/
}

.entry-content [href$=".pdf"]:after,
.entry-content [href$=".doc"]:after,
.entry-content [href$=".docs"]:after,
.entry-content [href$=".xls"]:after,
.entry-content [href$=".xlsx"]:after,
.entry-content [href$=".zip"]:after {
    content: '📎';
    margin-left: 5px;
}

/*root-verde
:root {
    --primary: #6FA32F;
    --secondary: #8cbf43;
    --tertiary: #3F6318;
    --text-color: #000;
}*/

/*root arancione
:root {
    --primary: #d97f12;
    --secondary: #f39724;
    --tertiary: #a85f0a;
    --text-color: #000;
}*/

/*root azzurra */

:root {
    --primary: #3eb8bc;
    --secondary: #34A4A7;
    --tertiary: #25777a;
    --text-color: #fff;
}

/* root rossa

:root {
    --primary: #9D3120;
    --secondary: #d54634;
    --tertiary: #8f2a1d;
    --text-color: #fff;
}*/

/* =WordPress Core
-------------------------------------------------------------- */
.text-color{
    color: var(--text-color)!important;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: #fff !important;
}

.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
.bypostauthor,
.gallery-caption {}

.post-edit-link {
    margin: 0;
    padding: 5px 15px;
    border-radius: 50px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .666em;
    line-height: 3em;
    font-weight: 600;
    background-color: #c00;
    transition: all .3s ease-in-out;
}
.post-edit-link:before {
    content: '\270E';
    font-size: 18px;
    margin-right: 7px;
}

.post-edit-link:hover {
    color: #ffffff;
    text-decoration: none;
    background-color: #f00;
    box-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}

.menu-main .submenu {
    right: auto! important;
}

.menu-main .submenu-sub-levels {
    display: none;
}

.menu-main .submenu li.menu-item-has-children.active .submenu-sub-levels{
    display: block!important;
}

@media print {
    html {
        background: transparent;
    }
    #footer,
    .nav,
    .condividi,
    .it-right-zone,
    .post-edit-link {
        display: none !important;
    }
}

/* CUSTOM STYLE */
.color-088CBC-imp {
    color: var(--tertiary)! important;
}

.white-space-normal {
    white-space: normal;
}

.border-008EBF-imp {
    border-color: var(--primary)! important;
}

.pt-4rem {
    padding-top: 4rem;
}

.pb-4p5rem {
    padding-bottom: 4.5rem;
}

.py-4rem-imp-pre-footer {
    padding-top: 4rem! important;
    padding-bottom: 4rem! important;
}

.py-4rem-imp {
    padding-top: 4rem! important;
    padding-bottom: 4rem! important;
}

.py-1p2rem-imp {
    padding-top: 1.2rem! important;
    padding-bottom: 1.2rem! important;
}

#show-menu-main[type="checkbox"]:checked ~ .nav li {
    color: #06c! important;
}

html {
    background: var(--secondary) !important;
}
header {
    position: relative;
    /*z-index: 10;*/
}

/* UI Form */
input,
button,
input[type="submit"],
input[type="text"],
input[type="email"],
textarea,
select {
    padding: 10px;
    background-color: #f6f6f6;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
    display: block;
    max-width: 100%;
}
select {
    height: 45px;
}
input[type="radio"],
input[type="checkbox"] {
    display: inline;
    box-shadow: none;
    zoom: 150%;
}
button,
input[type="submit"] {
    background-color: #65dde0;
    box-shadow: none;
    color: #004a4d;
    font-weight: 600;
    padding: .6em 1.2em;
    text-transform: uppercase;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    vertical-align: middle;
    white-space: nowrap;
}
button:hover,
input[type="submit"]:hover {
    cursor: pointer;
//background-color: #3cd5d7;
//border-color: #29cbd1;
}
label {
    color: inherit;
    display: inline-block;
    font-size: inherit;
    font-weight: 700;
    margin: 0;
}

ul,
ul li {
    padding-left: 0;
    list-style: none;
    list-style-position: outside;
}
ul li li {
    /* list-style: disc; */
    list-style-position: inside;
}
/* Custom */
[class^="branding"],
[class^="branding"] a,
[class^="branding"] [class^="menu"] a {
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
}
[class^="branding"] a:hover,
[class^="branding"] [class^="menu"] a:hover {
    color: #fff;
}
#header {
    background-color: #06c;
    color: #fff;
}
.branding-up {
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: rgba(0, 0, 0, 0.15);
}
.branding {
    background-color: transparent;
}
.branding h1 {
    margin-top: 10px;
}
.custom-logo {
    width: 70px;
    height: auto;
    max-width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
}
.menu-main {
    position: relative;
    background-color: transparent;
}
.nav li {
    display: block;
    padding: 15px 10px;
}
.nav li a {
    color: #fff;
    font-weight: 600;
    font-size: .75em;
}
.nav li a [class^="la"] {
    zoom: 140%;
    bottom: -2px;
    position: relative;
}
.nav li a:hover [class^="la"] {
    text-decoration: none;
}

.branding-up .nav li {
    padding: 0 10px;
}

/* NAV CHILD WITH DROPDOWN */
.nav .disable > a {
    pointer-events: none;
}
.nav .light > a {
    font-weight: 300;
}
.menu-main .nav ul {
    min-width: 150px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    top: -999em;
    left: -999em;
}
.menu-main .nav li ul {
    padding: 10px 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}
.menu-main .nav li ul:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.menu-main .nav li ul ul:before {
    display: none;
}
.menu-main .nav li ul a,
.menu-main .nav li ul a:hover,
.menu-main .nav li ul a:active,
.menu-main .nav li:hover ul a,
.menu-main .nav li:active ul a {
    font-size: .889em;
    color: #1173d4;
}
.menu-main .nav li ul a:hover,
.menu-main .nav li ul a:active {
    text-decoration: underline;
}
.menu-main .nav li {
    display: inline-block;
    position: relative;
    text-align: left;
    z-index: 99999;
}

@media screen and (min-width: 767px) {
    .menu-main .nav li.focus > ul,
    .menu-main .nav li:focus-within > ul,
    .menu-main .nav li:hover > ul,
    .menu-main .nav li:active > ul {
        top: auto;
        left: auto;
    }
    .menu-main .nav li li.focus > ul,
    .menu-main .nav li li.focus-within > ul,
    .menu-main .nav li li:hover > ul,
    .menu-main .nav li li:active > ul {
        left: 100%;
        top: 0;
    }
}


.menu-main .nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    padding: 0 15px;
}
.menu-main .nav a:hover,
.menu-main .nav a:active,
.menu-main .nav li:hover > a,
.menu-main .nav li:active > a,
.menu-main .nav .focus > a,
.menu-main .nav .current-menu-item > a,
.menu-main .nav .current-menu-ancestor > a {
    color: #fff;
}
/* .menu-main .nav .menu-item-has-children {
	padding-right: 20px;
} */
.menu-main .nav .menu-item-has-children > a:after {
    content: '\e818';
    font-family: italia-icon-font;
    font-size: 11px;
    position: relative;
    margin: 0 -10px 0 10px;
}
.menu-main .nav ul {
    background-color: #1173d4;
    padding: 0;
    margin: 15px -10px 0 0;
}
.color-dark{
    color: #0B3753!important;
}
.menu-main .nav li li {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: solid 1px rgba(255, 255, 255, .4);
}
.menu-main .nav .menu-item-has-children .menu-item-has-children > a:after {
    position: absolute;
    top: 15px;
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
}
.menu-main .nav .sub-menu ul {
    margin: 0;
    left: 0;
}

/* MEGA MENU */
.menu-main .mega-menu li {
    position: static;
}
.menu-main .mega-menu li a {
    position: relative;
    font-weight: 400;
}
.menu-main .mega-menu .menu-item-has-children:hover > a:before,
.menu-main .mega-menu .menu-item-has-children:focus > a:before {
    content: '';
    position: absolute;
    top: auto;
    left: calc(50% - 9px);
    bottom: -25px;
    right: auto;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.menu-main .mega-menu li ul:before {
    display: none;
}
.menu-main .mega-menu .menu-item-has-children .menu-item-has-children > a:after {
    content: none;
}
.menu-main .mega-menu > li.focus > ul,
.menu-main .mega-menu > li:focus-within > ul,
.menu-main .mega-menu > li:hover > ul,
.menu-main .mega-menu > li:active > ul {
    left: 0;
    right: 0;
    position: absolute;
    padding-top: 25px;
    z-index: 9999 !important;
}
.menu-main .mega-menu .sub-menu > li {
    width: 100%;
    vertical-align: top;
}
.menu-main .mega-menu .sub-menu > li li {
    display: inline-block;
    min-width: 100%;
}
.menu-main .mega-menu .sub-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.menu-main .mega-menu ul > li {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
    vertical-align: top;
}

.menu-main .mega-menu li li ul,
.menu-main .mega-menu li li.focus ul,
.menu-main .mega-menu li li:hover ul,
.menu-main .mega-menu li li:active ul {
    left: 0;
    top: 0;
    position: relative;
    box-shadow: none;
}
.menu-main .mega-menu li li ul li {
    padding-left: 0;
}

.menu-main .nav.mega-menu .heading > a {
    pointer-events: none;
    color: #19191a;
    font-weight: 600;
}
.menu-main .nav.mega-menu .more a {
    margin-top: 10px;
    font-weight: 600;
}
.menu-main .nav.mega-menu .more a [class^="it"],
.menu-main .nav.mega-menu .more a [class^="la"]{
    zoom: .8;
    margin-left: 10px;
    text-decoration: none;
}
.menu-main .nav.mega-menu > li.menu-item-has-children > a {
    pointer-events: none;
}

/* NAV BAR WITH RESPONSIVE */
.show-menu-lingua,
.show-menu-main {
    position: relative;
    text-decoration: none;
    color: #fff;
    background: transparent;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    display: none;
}
.show-menu-main:after {
    content: "\2630";
    position: absolute;
    left: calc(50% - 45px);
    top: 28%;
}
.show-menu-lingua {
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    font-size: 150%;
    line-height: 115%;
}
#show-menu-main[type="checkbox"],
#show-menu-lingua[type="checkbox"] {
    display: none;
}



@media screen and (max-width: 767px) {
    .branding {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .branding img {
        max-width: 100%;
        padding-top: 25%;
    }
    /*
    .header-slim-right-zone .nav .menu-item-has-children:hover ul,
    .header-slim-right-zone .nav .menu-item-has-children:active ul,
  .menu-main .nav .menu-item-has-children:hover ul,
  .menu-main .nav .menu-item-has-children:active ul {
        position: relative;
        display: block;
        top: 0;
        left: -5px;
  }
  .menu-main .nav .menu-item-has-children:hover ul ul {
      left: 0;

  }
  */
    .menu-main .nav .menu-item-has-children.active > a:after {
        content: '\e810';
    }
    .menu-main .nav .menu-item-has-children.active ul {
        position: relative;
        display: block;
        top: 0;
        left: -5px;
    }
    .menu-main .nav .menu-item-has-children.active ul ul {
        left: 0;
    }

    .header-slim-right-zone .nav {
        text-align: right;
        margin-top: 30px;
    }
    .header-slim-right-zone .nav,
    .menu-main .nav {
        position: static;
        width: 100%;
        height: 0;
        opacity: 0;
        overflow: hidden;
    }
    .header-slim-right-zone .nav li,
    .menu-main .nav li {
        margin-bottom: 1px;
    }
    .header-slim-right-zone .nav li, .header-slim-right-zone .nav li a,
    .menu-main .nav li, .menu-main .nav li a {
        width: 100%;
    }
    .show-menu-lingua,
    .show-menu-main {
        display:block;
    }
    .header-slim-right-zone .nav .menu-item-has-children > a:before,
    .menu-main .nav .menu-item-has-children > a:before {
        right: 25px;
    }
    .menu-main .nav .menu-item-has-children .menu-item-has-children > a:after {
        top: 13px;
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    .it-header-center-wrapper {
        padding-left: 50px;
        margin: 10px 0;
    }
    .it-header-wrapper.is-sticky .it-header-center-wrapper {
        margin: 0;
    }


    .it-header-wrapper .searchform input[type="text"] {
        display: none;
    }
    .it-header-wrapper .searchform:after {
        padding-left: 7px;
    }
    .show-menu-main {
        position: absolute;
        top: -74px;
        left: -15px;
        bottom: auto;
        right: auto;
        width: 50px;
        height: 50px;
        padding: 0;
        font-size: 0;
        z-index: 1000001;
    }
    .show-menu-main:after {
        left: 0;
        top: 0;
        width: 100%;
        font-size: 1.75rem;
    }
    .it-header-wrapper.is-sticky .show-menu-main {
        top: -62px;
    }

    #show-menu-main[type="checkbox"]:checked ~ .nav,
    #show-menu-lingua[type="checkbox"]:checked ~ .nav {
        height: auto;
        opacity: 1;
        overflow: scroll;
        -webkit-transition: all .4s ease-in-out;
        -moz-transition: all .4s ease-in-out;
        -o-transition: all .4s ease-in-out;
        transition: all .4s ease-in-out;
    }
    #show-menu-main[type="checkbox"]:checked ~ .show-menu-main:after {
        content: "\2715";
        position: fixed;
        top: 20px;
        left: 0;
        width: 60px;
    }

    #show-menu-main[type="checkbox"]:checked ~ .nav {
        background-color: #fff;
        display: inline-block;
        position: fixed;
        top: 0;
        bottom: auto;
        left: auto;
        right: 0;
        width: calc(100% - 60px);
        height: 100%;
        min-height: 100%;
        padding: 15px 0;
        z-index: 1000000;
        overflow-y: scroll;
        box-shadow: -100px 0px 0px 0px rgba(0, 0, 0, .6);
    }
    #show-menu-main[type="checkbox"]:checked ~ .nav li .text-light {
        color: var(--secondary)! important;
    }
    #show-menu-main[type="checkbox"]:checked ~ .nav li:last-child,
    #show-menu-main[type="checkbox"]:checked ~ .nav li ul {
        box-shadow: none;
        border-radius: 0;
    }
    #show-menu-main[type="checkbox"]:checked ~ .nav a {
        color: initial;
    }
    #show-menu-main[type="checkbox"]:checked ~ .nav li ul:before {
        content: none;
    }
}




.menu-social {
    min-height: 57px;
}

.entry-nav-below {
    border-top: solid 1px #e5e5e5;
    margin-top: 5px;
}
.entry-nav-below a span {
    font-size: .666em;
    vertical-align: 2px;
}
.nav-previous span {
    margin-right: 5px;
}
.nav-next span {
    margin-left: 5px;
}

.breadcrumb {
    padding-left: 0;
    padding-right: 0;
    margin-top: 30px;
}

select.form-control {
    background-color: #f6f6f6;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-size: 90%;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    margin-right: .5rem;
}

.breadcrumb-item a {
    font-weight: 600;
}

.accordion-header .accordion-button{
    background-color: transparent!important;
}

.accordion-item{
    background-color: transparent!important;
}

ul.page-numbers {
    width: 100%;
    margin: 30px 0;
    text-align: center;
}

.page-numbers li {
    display: inline-block;
}

.page-numbers li a,
.page-numbers li span {
    display: block;
    padding: .5rem .9rem;
    border: solid 1px transparent;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 600;
}
.page-numbers li .current {
    border-color: #ccc;
    cursor: default;
}
.page-numbers li .dots {
    padding: .5rem .1rem;
}
.page-numbers li a:hover {
    text-decoration: none;
    background-color: #eee;
}
.page-numbers li:first-child a,
.page-numbers li:last-child a {
    font-size: .7rem;
    line-height: 2.2;
}
.page-numbers li:first-child a:hover,
.page-numbers li:last-child a:hover {
    /* border-color: transparent;
    background-color: transparent; */
}

#comments {
    padding-top: 60px;
    padding-bottom: 15px;
}

#site-description {
    margin-bottom: 30px;
}

.searchform {
    position: relative;
    display: inline-block;
    width: 100%;
}
.searchform:after {
    /*content: '🔍';*/
    content: '\e831';
    font-family: "italia-icon-font";
    font-smoothing: antialiased;
    color: #333;
    pointer-events: none;
    width: 50px;
    height: 50px;
    position: absolute;
    right: -10px;
    top: 10px;
}

.searchform input[type="text"],
.searchform [type="submit"] {
    width: calc(100% - 60px);
    height: 45px;
    float: left;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #fff;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.searchform [type="submit"] {
    width: 60px;
    /*background-color: #f6f6f6;*/
    text-indent: -99999px;
}

.searchform label {
    display: none;
}

.entry-content {
    position: relative;
}
.entry-content img,
.wp-post-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}
.entry-content ul {
    padding-left: initial;
}
.entry-content li {
    list-style: initial;
}

.panel-grid > div {
    padding: 2rem 0;
}

.widget_last_post {
    margin-top: 1.5rem;
}
.widget-area .widget_last_post .widget_last_post_wrap {
    min-width: 100%;
}
.widget_last_post .widget_last_post_wrap {
    min-width: 15rem;
}
.widget_last_post .widget_last_post_inner {
    border-top: solid 1px #ddd;
    padding: 1rem 2rem 1rem 0rem;
}
.widget_last_post .widget_last_post_inner h5 a:first-child {
    padding-left: 15px;
}
.widget_last_post .widget_last_post_inner h5 a:first-child:before {
    content: '● ';
    position: absolute;
    left: 6px;
}
.widget_last_post .widget_last_post_inner .wp-post-image {
    max-width: 70px;
}
.widget_last_post .widget_last_post_inner h5 {
    font-size: .9rem;
    margin-bottom: 5px;
}
.widget_last_post .widget_last_post_inner h4 {
    font-size: 1.2rem;
    line-height: 1.4rem;
    margin: 1rem 0;
}

.widget_category_mansory {
    margin-bottom: 1.5rem;
}
.widget_category_mansory .widget-title {
    margin-bottom: 1.5rem;
}
.widget_category_mansory .card img {
    margin: 0;
}
.widget_category_mansory .card.card-bg {
    overflow: hidden;
    padding: 0;
    margin-bottom: 15px;
    border-radius: 4px;
    -webkit-box-shadow: 4px 4px 8px 0 rgba(0,0,0,0.1);
    -moz-box-shadow: 4px 4px 8px 0 rgba(0,0,0,0.1);
    box-shadow: 4px 4px 8px 0 rgba(0,0,0,0.1);
    /*border: 1px solid #eceff1;*/
}
@media screen and (max-width: 767px) {
    .widget_category_mansory .card.card-bg {
        margin-left: 0;
    }
}
.widget_category_mansory .card .flag-icon {
    margin: 0 25px;
    float: left;
}
.widget_category_mansory .card .card-img-top + .flag-icon {
    position: absolute;
    top: 0;
    border: solid 3px white;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.widget_widget_single_post .novita-testo,
.widget_widget_single_post .novita-foto {
    margin-top: 1em;
    margin-bottom: 1em;
}
.widget_widget_single_post .novita-testo {
    margin-top: 3em;
}

.-area .widget-container {
    margin-bottom: 30px;
}

#footer {
    background-color: #004080;
    color: #fff;
}
#footer .disable a {
    color: inherit;
}
#footer a {
    font-weight: inherit;;
    color: #65dcdf;
}
#footer .widget-area li {
    border: none;
}
#footer hr {
    border-color: rgba(255, 255, 255, .8);
}
#footer .widget-title {
    font-size: 16px;
    text-transform: uppercase;
}
#footer .nav li {
    padding: 15px 30px 15px 0px;
}
.copyright {
    padding-top: 15px;
    padding-bottom: 15px;
    color: #fff;
}


#content {
    background-color: #fff;
    /*padding-top: 30px;
    padding-bottom: 60px;*/
}
body.page-template-home .header {
    display: none;
}
body.page-template-home #content,
body.page-template-home .entry-content {
    margin-top: 0;
    padding-top: 0;
}
body.archive article,
body.search article {
    border-bottom: solid 1px #ddd;
    padding: 2rem 0;
}

.home-widget {
    padding-top: 30px;
    background-color: #eee;
}
.home-content > .container > .post {
    display: inline-block;
    clear: both;
}
.home-content > .container > .post:nth-child(n+2) {
    border-top: solid 1px #ddd;
    padding-top: 60px;
}

.widget-area {
    padding: 30px 0;
}
.widget-area ul,
.widget ul {
    margin-top: 1rem;
}
.widget-area li,
.widget li {
    list-style: none;
    border-bottom: solid 1px #ddd;
    padding: 10px 0;
}
.widget-area li ul,
.widget li ul {
    margin-top: 0;
    padding: 5px 0px 0px 0px;
    text-indent: 15px;
}
.widget-area li li,
.widget li li {
    border: none;
}
.widget-area a {
    font-weight: 600;
}

/*
.widget-area span {
	display: block;
	font-size: 80%;
}
.widget-area .wp-post-image {
	width: 100px;
	width: 90%;
	height: auto;
	float: left;
	margin: 10px 10px 5px 0;
}
*/

.widget-area.primary-widget-area .widget-container,
.widget-area.page-widget-area .widget-container {
    margin-bottom: 30px;
}

#cookie-notice {
    background-color: #00264d !important;
    color: #fff !important;
    padding: 15px 30px;
    font-size: 100%;
}
.cookie-notice-container {
    text-align: left;
    max-width: 1150px;
    margin: 0 auto;
    line-height: 2em;
}
#cn-accept-cookie {
    font-weight: bold;
    background: #65dde0;
    border-color: #50d8dc !important;
    color: #004a4d !important;
    border-radius: 0;
    padding: 10px 20px;
}
#cookie-notice a {
    color: #65dde0;
}

nav-tabs:after {
    content: "";
    position: absolute;
    z-index: -1;
    -webkit-box-shadow: 0 0 2rem rgba(0, 0, 0, .15);
    box-shadow: 0 0 2rem rgba(0, 0, 0, .15);
    bottom: 0;
    left: 10%;
    right: 10%;
    width: 80%;
    height: 50%;
    border-radius: 100%
}

/* SO - Accordion e tebs */

#container .sow-tabs-tab-container,
#container .sow-tabs-panel-container {
    background-color: transparent;
    position: relative;
    z-index: 1;
}
.sow-tabs-panel-container {
    box-shadow: 0px -2px 0px 0px rgba(0,0,0,.15);
    /* box-shadow: 0px 30px 20px -30px inset rgba(0,0,0,.2); */
    z-index: 0;
}
#container .sow-tabs-panel-container .sow-tabs-panel {
    padding: 15px 30px 30px;
}
#container .sow-tabs-tab-container .sow-tabs-tab {
    font-weight: 600;
    color: #5c6f82;
    border-bottom: 2px solid transparent
}
#container .sow-tabs-tab-container .sow-tabs-tab:hover {
    background-color: transparent;
    border-bottom: 2px solid #b1b1b3
}
#container .sow-tabs-tab-container .sow-tabs-tab-selected {
    border-bottom: 2px solid #06c;
    color: #06c;
    background-color: transparent;
}


#container .sow-accordion .sow-accordion-panel {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: -1px;
}
#container .sow-accordion .sow-accordion-panel-header {
    background-color: transparent;
    color: #06c;
    font-weight: 600;
    -webkit-transition: background-color .2s ease-in-out;
    -moz-transition: background-color .2s ease-in-out;
    -o-transition: background-color .2s ease-in-out;
    transition: background-color .2s ease-in-out;
}
#container .sow-accordion .sow-accordion-panel-header:hover {
    background-color: #e6ecf2;
}
#container .sow-accordion .sow-accordion-panel-content .sow-accordion-panel-border {
    background-color: transparent;
}
#container .sow-icon-ionicons[data-sow-icon]:before {
    content: '\e818';
    font-family: italia-icon-font;
}
#container .sow-accordion-panel-open .sow-accordion-title,
#container .sow-accordion-panel-open .sow-icon-ionicons[data-sow-icon]:before {
    color: #5c6f82;
}
#container .sow-accordion-panel-open .sow-icon-ionicons[data-sow-icon]:before {
    content: '\e810';
}
#container .sow-accordion .sow-accordion-panel-open .sow-accordion-title:before {
    height: 2px;
    width: 56px;
    border-radius: 2px;
    background-color: #0073e6;
    position: absolute;
    top: 0;
    display: block;
    content: "";
    left: 25px;
}

#container .ow-button-base a.ow-button-hover:hover {
    text-decoration: none;
}
.ow-button-base a {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* SO - Slider post */

.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item h3 {
    text-align: left !important;
}
.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item h3 a {
    text-align: left;
    font-weight: 700;
    font-size: 1em;
}

/* Widget Calendar */

#wp-calendar {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    background-color: transparent
}

#wp-calendar td,
#wp-calendar th {
    padding-top: .8em;
    padding-bottom: .8em;
    vertical-align: middle;
    border-top: 1px solid #d6dce3
}

#wp-calendar thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #d6dce3
}

#wp-calendar tbody+tbody {
    border-top: 2px solid #d6dce3
}

#wp-calendar .table {
    background-color: #fff
}

/* Welcome Bootstrap 1 */
* a {
    text-decoration: none;
}
.it-header-slim-wrapper {
    background: var(--secondary);
    //background: #125063;
    min-height: 43px;
}
.it-footer-small-prints {
    background: transparent;
    padding-top: 10px;
    padding-bottom: 10px;
}
.it-footer-small-prints li a,
.it-footer-small-prints li a:hover:not(.disabled) {
    font-size: 15px;
}

.header-slim-right-zone ul li a {
    font-size: .889em;
    line-height: 2.3em;
}
@media screen and (max-width: 767px) {
    .header-slim-img {
        position: absolute;
        top: 0;
    }
    .header-slim-right-zone {
        width: 100%;
    }
}

.it-footer .searchform:after,
.it-header-wrapper .searchform:after {
    width: 20px;
    height: 20px;
    right: 18px;
    top: 12px;
}

.it-footer .searchform input[type="text"],
.it-footer .searchform [type="submit"],
.it-header-wrapper .searchform input[type="text"],
.it-header-wrapper .searchform [type="submit"] {
    width: calc(100% - 60px);
    height: 48px;
    float: left;
    padding-left: 0;
    padding-right: 0;
    color: #fff;
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.it-header-wrapper .searchform [type="submit"] {
    border: 1px solid #000;
}

.it-footer .searchform input[type="text"],
.it-header-wrapper .searchform input[type="text"] {
    color: #000;
    box-shadow: inset 0 -1px 0px #000;
    background: transparent;
}

.it-footer .searchform [type="submit"],
.it-header-wrapper .searchform [type="submit"] {
    background-color: #fff;
    border-radius: 100px;
    height: 48px;
    width: 48px;
    margin-left: 5px;
}

.it-header-wrapper .it-nav-wrapper .it-brand-wrapper {
    padding-left: 0;
}
.it-header-wrapper .it-nav-wrapper .it-header-navbar-wrapper {
    position: relative;
    left: auto;
    top: auto;
    margin-top: auto;
}

.it-header-slim-wrapper .header-slim-img {
    max-width: 200px;
    max-height: 30px;
}

.it-header-wrapper.is-sticky {
    height: 200px;
}

/* sfondi */

.it-header-wrapper {
//background-color:  #31a8d4!important;
    background-color: var(--primary)!important;
}

.it-header-center-wrapper{
    background-color: transparent!important;
}
#footer{
//background-color: #196291!important;
    background-color: var(--secondary)!important;
}
.it-footer-main{
//background-color:  #31a8d4!important;
    color: #0b3753;
    background-color: var(--primary)!important;
}

#footer a {
    color: #fff;
}

.titolo-sezione h2 {
    font-size: 2.222em;
    margin: 0;
    letter-spacing: 0;
}
.titolo-sezione .icona-sezione {
    /* display: inline-block; */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eaf2ec;
    margin: 0px 24px 8px 0px;
    text-align: center;
    vertical-align: middle;
    font-size: 32px;
    line-height: 48px;
}

[id$="dettaglio-testo"] p {
    font-family: 'Lora',serif;
}
[id$="dettaglio-testo"] .thumbnail {
    margin-bottom: 0;
    border-bottom: solid 1px #e5e5e5;
}
[id$="dettaglio-testo"] .thumbnail img {
    margin-bottom: 1rem;
}
[id$="dettaglio-testo"] .thumbnail .dida {
    text-align: center;
    color: #19191a;
    font-family: "Titillium Web", Geneva, Tahoma, sans-serif;
    font-size: .778em;
}
[id$="dettaglio-testo"] #sidebar {
    position: relative;
}
[id$="dettaglio-testo"] #sidebar:after {
    content: ' ';
    position: absolute;
    top: -30px;
    bottom: -30px;
    right: -15px;
    left: auto;
    border-right: solid 1px #e5e5e5;
}
[id$="dettaglio-testo"] #sidebar .widget-title {
    position: relative;
    font-size: .8888rem;
    font-weight: 600;
    padding-bottom: 15px;
    margin: 30px 0;
}
[id$="dettaglio-testo"] #sidebar .widget-title:after,
[id$="dettaglio-testo"] #sidebar .widget-title:before {
    content: ' ';
    position: absolute;
    z-index: 1;
    bottom: -4px;
    top: auto;
    left: -15px;
    right: auto;
    height: 4px;
    width: 15%;
    background-color: #666;
    border-radius: 100px;
}
[id$="dettaglio-testo"] #sidebar .widget-title:after {
    z-index: 0;
    left: 15px;
    right: 0;
    width: 100%;
    background-color: #ddd;
    border-radius: 0;
}
@media screen and (max-width: 1199px) {
    [id$="dettaglio-testo"] .contenuto:before {
        content: none;
    }
}
@media screen and (max-width: 767px) {
    [id$="dettaglio-testo"] #sidebar:after {
        content: none;
    }
    [id$="dettaglio-testo"] #sidebar .widget-title:after {
        width: calc(100% - 15px);
    }
}
[id$="dettaglio-testo"] .widget-area {
    padding-top: 0;
}
[id$="dettaglio-testo"] .widget-area .widget-container {
    padding-left: 15px;
}
[id$="dettaglio-testo"] .widget-area li {
    padding: 5px 0;
    border: none;
}
[id$="dettaglio-testo"] .widget-area li a {
    font-size: .8888rem;
}
[id$="dettaglio-meta"],
[id$="dettaglio-pagination"] {
    background-color: #eee;
}
[id$="dettaglio-meta"] {
    position: relative;
    overflow: hidden;
    min-height: 96px;
}
[id$="dettaglio-meta"]:before {
    content: ' ';
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: -45px;
    bottom: auto;
    width: 50%;
    max-width: 1000px;
    height: 0px;
    left: 25%;
    box-shadow: 0px 0px 50px 10px #000;
}

#container {
    position: relative;
}
.thumbnail-page {
    position: absolute;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    z-index: 0;
    border: none;
    margin: 0;
    overflow-x: hidden;
}
.wrap-argomento {
    background-color: #eee;
    padding-top: 96px;
}
.box-argomento {
    -webkit-box-shadow: 4px 4px 8px 0 rgba(90,103,114,0.1);
    -moz-box-shadow: 4px 4px 8px 0 rgba(90,103,114,0.1);
    box-shadow: 4px 4px 8px 0 rgba(90,103,114,0.1);
    background-color: #fff;
    border-radius: 4px;
    position: relative;
    padding: 0 64px;
    /* margin-bottom: 96px; */
}

.argomenti a {
    display: inline-block;
    border: 2px solid;
    margin: 0 8px 12px 0;
    font-size: .889em;
    font-weight: 600;
    padding: 0 .6em;
    border-radius: 10rem;
}
.argomenti a:hover {
    text-decoration: none;
    box-shadow: inset 0 0 1000px rgba(0, 0, 0, .1);
}

.menu-moreaction {
    padding-left: 15px;
    font-size: 90%;
}
.show-menu-moreaction {
    cursor: pointer;
}
#show-menu-moreaction[type="checkbox"] {
    display: none;
}
#show-menu-moreaction[type="checkbox"] ~ .menu-moreaction {
    height: 0;
    opacity: 0;
    overflow: hidden;
}
#show-menu-moreaction[type="checkbox"]:checked ~ .menu-moreaction {
    height: auto;
    opacity: 1;
    overflow: scroll;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

/* custom 4 psicologi */

.home .post.category-notizie {
//border-left: 4px solid #17728d !important;
    padding: 20px 20px 0 20px;
    margin-bottom: 2rem;
//width: calc(50% - 1rem);
    margin-top: 2rem;
}

.home .post.category-notizie:nth-of-type(2n) {
    padding-right: 1rem;
}

.home .post.category-notizie:nth-of-type(2n+1) {
    padding-left: 1rem;
}

.post-content .entry-title{
    font-size: 1.125rem;
    line-height: 1.44444rem;
    font-weight: 700;
    margin-bottom: 16px;
    -webkit-transition: .3s;
    transition: .3s;
}
.ratio-16x9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px; /* opzionale */
}

.carousel-control-prev{
    left: -15%;
}
.carousel-control-next{
    right: -15%;
}

#carouselStickyPosts .carousel-item .row {
    display: flex;
    flex-wrap: wrap;
}

#carouselStickyPosts .carousel-item .col-md-4 {
    display: flex;
}

#carouselStickyPosts .carousel-item article {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container-news .card-news {
    border-left: 4px solid var(--tertiary) !important;
    padding: 20px 20px 0 20px;
    margin-bottom: 2rem;
    margin-top: 0;
}

.card-news.post-content{
    width: calc(50% - 0.5rem);
}

body{
    overflow-x: hidden;
}

a, a:hover{
    color: var(--tertiary);
}

.btn.btn-link{
    color: var(--tertiary);
}

.btn-invia-newsletter {
    background-color: var(--primary) !important;
}

.btn.btn-primary{
    background-color: var(--primary) !important;
    color: var(--text-color) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:focus-visible, .btn-primary:target .btn-primary:visited {
    background-color: var(--secondary);
}

.toggles label input[type="checkbox"]:focus + a.text-light.lever, a.text-light:focus, a.text-light:hover {
    color: inherit !important;
}

.btn-area-ris{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.btn-area-ris:hover{
    text-decoration: none!important;
    background-color: var(--primary) !important;
    transition: .3s;
}
.btn-area-ris.active{
    text-decoration: none!important;
    background-color: var(--primary) !important;
    transition: .3s;
}

.menu-main .nav ul{
    min-width: 270px!important;
}

#menu-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

hr.sfumato {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, grey, transparent);
    margin: 20px 0;
}

.it-header-navbar-wrapper{
//background-color: #31a8d4!important;
    background-color: var(--primary)!important;
}

.card-albo-min-h{
    min-height: 220px;
}
h5.card-title{
    color: var(--tertiary);
}

.card.shadow-sm {
    box-shadow: 0rem 0rem .125rem .125rem rgba(0,0,0,.075) !important;
}
.shadow-sm {
    box-shadow: 0rem 0rem .125rem .125rem rgba(0,0,0,.075) !important;
}

.card::after {
    content: "";
    display: block;
    margin-top: 0px!important;
    margin-left: 0px!important;
}

.accordion-header .accordion-button.collapsed {
    color: hsl(210,17%,44%)!important;
}

.accordion-header .accordion-button.collapsed:hover {
    color: #31a8d4 !important;
}

.accordion-header .accordion-button:not(.collapsed) {
    color: #31a8d4 !important;
}
#custom-bg img{
    max-width: 100%!important;
}

.card-image-wrapper {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 4px 4px 0 0;
}
.staff-member{
    font-weight: 600!important;
    width:25%;
    float:left;
    padding-top:-30px;
}
/* CARD PRINCIPALE */
.designita-card {
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-height: 100%;
}

.designita-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* IMMAGINE */
.designita-card-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* TESTI */
.designita-card-title {
    font-weight: 600;
    color: #1c1c1c;
    font-size: 1.1rem;
}

.designita-card-subtitle {
    color: #5f6f7f;
    font-size: 0.95rem;
}

/* BOTTONI */
.designita-btn,
.designita-btn-outline {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.designita-btn {
    background-color: #0066cc;
    color: #fff;
    border: 1px solid #0066cc;
}

.designita-btn:hover {
    background-color: #004f99;
    border-color: #004f99;
}

.designita-btn-outline {
    background-color: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.designita-btn-outline:hover {
    background-color: #0066cc;
    color: #fff;
}

/* PER ALTEZZE UGUALI */
.row > [class*="col-"] {
    display: flex;
}
#comments{
    display: none;
}
.staff-member span{
    font-weight: 300;
    font-size: .9rem;
}
.staff-member p{
    text-align: center;
}

.pagination li{
    list-style: none;
    border: 3px solid #fff;

}
@media (min-width: 576px) {
    .pagination .page-item .page-link {
        height: 2rem;
        min-width: 2rem;
    }
}
.pagination li:hover{
    border: 3px solid #0066cc;
    border-radius: 4px;
}
.news-wrapper:nth-child(3n+2) {
    padding-left: .5rem;
    padding-right: .5rem;
}
.news-wrapper:nth-child(3n+1) {
    padding-left: 0.5rem;
}
.news-wrapper:nth-child(3n+3) {
    padding-right: 0.5rem;
}
.news-wrapper {
    display: flex;
    flex-direction: column;
}

.card.news {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.widget-area li{
    padding: 0!important;
}
.layer-white-opacity {
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.7;
    z-index: 1;
}

/*card carosello*/

.card-di {
//min-height: 700px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-di:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-di .post-thumbnail {
    background-size: cover;
    background-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-di .post-content a {
    color: #fff;
}

.card-di .post-content a:hover {
    text-decoration: underline;
}

.psicopuglia-section {
    color: #212529;
}

.psicopuglia-section h2 {
    font-weight: 600;
}

.psicopuglia-section .card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.psicopuglia-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.psicopuglia-section .btn-outline-primary {
    border-radius: 0.25rem;
    font-weight: 500;
}

a.text-white:hover {
    color: #fff!important;
}
.card-image-wrapper.eventi {
    aspect-ratio: 4/3!important;
    height: inherit!important;
}
.opacity-layer-005{
    opacity: .05;
}
.news-wrapper .category-psicopuglia{
    padding: 0!important;
}

.agid-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.agid-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.agid-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #5A6772; /* Grigio AGID */
    transition: .4s;
    border-radius: 34px;
}

.agid-toggle .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Toggle ON */
.agid-toggle input:checked + .slider {
    background-color: #0066CC;
}

.agid-toggle input:checked + .slider:before {
    transform: translateX(24px);
}
.form-group {
    margin-bottom: 0!important;
    width: 100%;
}
.form-group label{
//padding: 0!important;
    position: relative;
    color: #000;
}
.row.form-row{
    margin: 0!important;
}

.accordion-header .accordion-button.collapsed{
    color: #0B3753!important;
}

.accordion-header .accordion-button::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 24 24' %3E%3Cg%3E%3Cpath fill='hsl(210, 100%, 40%)' d='M12,10.3l4.8,4.8c0.3,0.3,0.8,0.3,1.1,0c0.3-0.3,0.3-0.8,0-1c0,0,0,0,0,0l-4.8-4.8c-0.6-0.6-1.5-0.6-2.1,0L6.2,14c-0.3,0.3-0.3,0.8,0,1c0,0,0,0,0,0c0.3,0.3,0.8,0.3,1.1,0L12,10.3z'/%3E%3C/g%3E%3C/svg%3E");
    float: right;
    min-width: 1.5rem;
    height: auto;
    line-height: .1rem;
    color: #000000!important;
    transition: transform .3s;
    background-image: none;
    transform: scaleY(-1);
    margin-right: 1rem;
}
.accordion-header .accordion-button::after {
    display: none;
}
@media (min-width: 992px) {
    .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a .icon {
        width: 100px!important;
        height: 70px!important;
        margin-right: 16px;
    }

    .rounded-top-lg-0 {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
}
:focus:not([data-focus-mouse="true"]),
.toggles label input[type="checkbox"]:focus + .lever,
.form-check [type="checkbox"]:focus + label,
.form-check [type="radio"]:focus + label,
.form-check .toggles label:has(input[type="checkbox"]:focus:not([data-focus-mouse="true"])),
.it-carousel-wrapper .splide__pagination button:focus:not([data-focus-mouse="true"]),
.upload:focus:not([data-focus-mouse="true"]) + label,
.upload-dragdrop-input[type="file"]:focus:not([data-focus-mouse="true"]) + label,
.avatar-upload:focus-within:not([data-focus-mouse="true"]),
.rating input:focus:not([data-focus-mouse="true"]) + label svg
{
    outline: none !important;
    box-shadow: none !important;
}
.card{
    border-radius: 20px!important;
}
.logo-margin{
    margin-left: 100px;
}
.mega-menu.logo-margin{
    margin-left: 116px;
}
.color-primary{
    color: var(--primary)!important;
}
.color-dark{
    color: #0B3753!important;
}
.btn-primary{
    background-color: var(--primary);
    border-radius: 50px;
    font-weight: bold;
}
.btn-second{
    background-color: #0B3753;
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
}
.fs-155{
    font-size: 1.425rem;
    line-height: 1.7rem;
    font-weight: 600;
}
h2.fw-bold.text-uppercase{
    color: var(--primary)!important;
    font-size: 1.725rem;
    line-height: 1.44444rem;
    font-weight: 700;
}
time{
    font-weight: bold!important;
    color: #998675!important;
}
.small-cat{
    font-size: .850rem;
    font-weight: 600;
}
p.text-secondary{
    line-height: 1.2rem!important;
}
.row{
    margin: 0!important;
}
.p-2rem{
    padding: 2rem!important;
}
.icon-footer{
    fill: #fff;
    width: 100%;
    margin-right: 8px;
    flex-shrink: 0;
}
.wp-block-accordion-heading__toggle-title{
    font-size: 1.2rem;
    font-weight: 500;
}

.newsletter-input {
    padding: 0;
    min-height: 0!important;
    height: 30px!important;
    line-height: 0.8rem!important;
    box-sizing: border-box!important;
    font-size: 0.8rem!important;
}
.newsletter-input::placeholder {
    color: var(--primary)! important;
}
#privacy-check{
    zoom: 0!important;
    max-width: 17px!important;
    max-height: 17px!important;
}
.color-light{
    color: var(--primary) !important
}

.it-nav-wrapper{
    background-color: var(--primary)!important;
}

.ms-135px{
    margin-left: 135px;
}

.box-ricercati span{
    font-size: .8rem!important;
}
@media screen and (max-width: 767px) {
    .ms-135px {
        margin-left: 10%;
    }
    .logo-margin {
        margin-left: 0;
    }
}
@media (min-width: 768px) {
    .w-md-50-imp {
        width: 50%! important;
    }

    .py-4rem-imp {
        padding-top: 1rem! important;
        padding-bottom: 1rem! important;
    }

    .border-md-right {
        border-right: 1px solid #b1b1b3; /* colore default Bootstrap */
    }

    .border-md-right-imp {
        border-right: 1px solid #b1b1b3! important; /* colore default Bootstrap */
    }

    .border-md-left {
        border-left: 1px solid #b1b1b3; /* colore default Bootstrap */
    }

    .border-md-left-imp {
        border-left: 1px solid #b1b1b3! important; /* colore default Bootstrap */
    }

    .border-md-none {
        border: none!important;
    }

    .border-md-bottom-none-imp {
        border-bottom: none! important;
    }

    .rounded-md-12px {
        border-radius: 12px;
    }
    .card-image-wrapper.eventi {
        aspect-ratio: 3/4!important;
        height: inherit!important;
    }
    .menu-main .nav > li:hover,
    .menu-main .nav > li:active,
    .menu-main .nav > li:focus,
    .menu-main .nav > li:focus-within {
        background-color: rgba(0, 0, 0, 0.1);
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }
}
.border-bottom {
    border-bottom: 1px solid #b1b1b3;
}
@media (max-width: 767px) {
    body .menu-main .submenu li.menu-item-has-children.active .submenu-sub-levels.ps-3.py-0{
        display: block!important;
    }

    .menu-main .submenu li.menu-item-has-children .submenu-sub-levels.ps-3.py-0 {
        display: none! important;
    }

    .menu-main .mega-menu > li.focus > ul, .menu-main .mega-menu > li:focus-within > ul, .menu-main .mega-menu > li:hover > ul, .menu-main .mega-menu > li:active{
        padding: 0!important;
    }

    .text-dark.text-decoration-none.d-block.pb-1:after{
        display: none;
    }

    .col-12.col-lg-3.pt-4.ms-0.ms-lg-5.rounded-top-4.rounded-top-lg-0 {
        display: none;
    }

    .widget-area {
        padding: 0 0;
    }
    .icon-footer {
        fill: #fff;
        width: 100%;
        flex-shrink: 0;
    }
    .it-footer-main .it-brand-wrapper {
        padding: 0 0;
    }
    #carosuelHilighted .carousel-item .carousel-card {
        display: none !important;
    }

    #carosuelHilighted .carousel-item .carousel-card:first-child {
        display: flex !important;
    }
    .staff-member{
        width:100%;
    }
    .container-commissioni .col-12{
        padding: 0!important;
    }

    .submenu {
        position: static !important;
        display: none;
        background: transparent;
        box-shadow: none;
        padding-left: 15px;
    }

    .menu-item.open > .submenu {
        display: block;
    }

    .menu-link {
        width: 100%;
    }

    .submenu-arrow {
        margin-left: auto;
        transition: transform .3s ease;
    }

    .menu-item.open > .menu-link .submenu-arrow {
        transform: rotate(180deg);
    }
    .nav li {
        padding: 15px 0;
    }
    .menu-main .nav li ul {
        padding: 0;
    }
    .menu-main .mega-menu > li:hover > ul {
        left: 0;
        right: 0;
        position: absolute;
        padding-top: 0!important;
        z-index: 9999 !important;
    }
    .target-menu {
        display: none;
    }

    .target-menu.open {
        display: block;
    }

    .btn-target-toggle {
        width: 100%;
        background: transparent;
        border: none;
        font-weight: 700;
        padding: 10px 0;
    }
    .box-ricercati img, .wp-post-image{
        min-width: 38px !important;
    }
    .box-ricercati span{
        font-size: .61rem!important;
    }

    #footer small{
        text-align: start!important;
        width: 100%;
        border-bottom: 1px solid #fff;
    }

    .col-12.col-lg-3.pt-4.ms-0.ms-lg-5.rounded-top-4.rounded-top-lg-0 {
        display: none;
    }

    .prof-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: calc(1.3em * 2);
    }

}

.prof-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}

.accordion.ps-4 {
    border: none;
}

.accordion.ps-4.ps-lg-5{
    border: none;
}

.breadcrumb a{
    color: var(--secondary)!important;
}

.logo-nero {
    filter: grayscale(100%) brightness(0%);
}

.breadcrumb span{
    color: #0B3753!important;
}

.d-flex.flex-column.flex-lg-row.mb-5{
    align-items: flex-start;
}
.it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a .icon{
    width: auto!important;
}

.intro-cards .custom-card{
    border-radius: 12px!important;
    background-color: #e6e3e3!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.06);
    //border: 1px solid #e6e3e3;
}

.it-footer-main .it-brand-wrapper a .icon{
    width: 100px!important;
    height: 100px!important;
}

/* DATE PICKER STILE AGID */

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    height: var(--agid-height);
    //padding-right: 40px;
    background-color: #f6f6f6;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}

select{
    background-color: #f6f6f6;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}

/* Rimuove stile interno Chrome */
input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Icona calendario custom */
input[type="date"]::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%230066cc' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm12 6H5v12h14V8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
}

/* FINE INPUT */

.list-group-item,
.list-group-item:hover,
.list-group-item:focus,
.list-group-item:active,
.list-group-item:visited,
.list-group-item:checked {
    background-color: transparent !important;
    border: none;
    border-bottom: solid 1px #ddd;
}

.list-group-item-action:hover, .list-group-item-action:focus{
    color: inherit!important;
}

.list-group-item-action a:hover{
    text-decoration: underline!important;
}

.accordion-button{
    background-color: transparent;
    white-space: normal;
}

ul li {
    list-style-type: none!important;
}

.card .card-body .category-top a.category{
    color: var(--tertiary)!important;
}

.read-more{
    background-color: var(--tertiary)!important;
    color: #fff!important;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
}

.card .card-body{
    margin-bottom: 24px;
}

i.fa-solid.display-5{
    font-weight: 900!important;
}

.intro-cards{
    margin: 0 -12px!important;
}

.card a.read-more{
    margin-left: 24px;
}

.it-footer-main .it-brand-wrapper a .icon{
    margin-right: 30px;
}

.card-title{
    margin-top: 1rem;
    font-weight: bold;
}

.overlay-black {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.2;
    pointer-events: none;
}

.calendar-header {
    background: var(--secondary);
    font-weight: 600;
    font-size: 20px;
    border-radius: 4px;
}

.calendar-card {
    background: #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.date-number {
    font-size: 32px;
    font-weight: 700;
    color: #1d2b3a;
}

.weekday {
    font-size: 14px;
    color: #1d2b3a;
    text-transform: lowercase;
}

.event-item a {
    text-decoration: none;
    color: #000;
}

.event-item a:hover {
    text-decoration: underline;
}

.calendar-container .col-12:nth-child(1) .calendar-card {
    background-color: rgba(62, 184, 188, .5)!important;
}

.calendar-container .col-12:nth-child(2) .calendar-card {
    background-color: rgba(140, 191, 67, .5)!important;
}

.calendar-container .col-12:nth-child(3) .calendar-card {
    background-color: rgba(243, 151, 36, .5)!important;
}

.calendar-container .col-12:nth-child(4) .calendar-card {
    background-color: rgba(213, 70, 52, .5)!important;
}

#toggle-box-container{
    display:none;
}

#dovelobutto:active, #dovelobutto:focus{
    background-color: #f6f6f6;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}