/* === P1-3: font-face e token (globale, ogni pagina) === */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins-Bold';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
    font-display: swap;
}

:root {
    --firstcolor: #AF1917;
    --secondcolor: #3C3C3B;
    --thirdcolor: #56B69B;
    --bs-light-rgb: 245, 247, 249;
    --bs-bg-opacity: 1;
    --bs-body-color: #747579;
}

/* === P1-3: utilità, body, container, link (globale) === */

.limit-line-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 auto;
}

.limit-line-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines to show */
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.limit-line-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines to show */
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

html, body {
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
}

main li {
    line-height: 1.5;
    margin-bottom: 5px;
}

body.admin-bar .navbar {
    border-bottom: 1px solid #dee2e6;
    padding-top: 35px;
}

.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1170px;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding-right: 0;
    padding-left: 0;
}

a {
    color: var(--firstcolor);
    text-decoration: none;
    transition: all .2s ease;
}

.single.single-post article a {
    font-family: 'Poppins-Bold', 'Open Sans', sans-serif;
}

a:hover {
    color: var(--secondcolor);
    -webkit-transition: color .2s,opacity .2s;
    transition: color .2s,opacity .2s;
    text-decoration: none;
}

a.second-color {
    color: var(--secondcolor);
}

a.second-color:hover {
    color: var(--firstcolor);
}

.read-more {
    min-width: 160px;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: #FFF!important;
    color: var(--bs-body-color);
}

li {
    line-height: 1.8;
}

.gallery.gallery-columns-2,
.gallery.gallery-columns-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	padding: 25px 0;
}

.gallery.gallery-columns-2 .gallery-item {
    width: calc(50% - 10px);
}

.gallery.gallery-columns-3 .gallery-item {
    width: calc(33.333% - 14px);
}

.gallery.gallery-columns-2 .gallery-item,
.gallery.gallery-columns-3 .gallery-item {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gallery.gallery-columns-2 .gallery-item img,
.gallery.gallery-columns-3 .gallery-item img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

#main {
    display: block;
    overflow: hidden;
}

.page-template-page-formazione-continua h3 a, .page-template-page-servizi-al-lavoro h3 a {
    color: #333!important;
}

#wrapper {
    overflow: hidden;
}

/* === P1-3: navbar, menu RMP, sottotitoli :after (globale; due selettori FC/SAL mescolati sopra #wrapper) === */

.navbar-brand {
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-link {
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
}

.navbar-nav .nav-link.active {
    border-bottom: 1px solid var(--firstcolor);
    color: var(--firstcolor);
}

.dropdown-toggle::after {
    color: var(--secondcolor);
}

.subtitle-gray:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px 0 0;
    content: '\0020';
    background-color: var(--secondcolor);
    -webkit-font-smoothing: antialiased;
}

.subtitle-gray-center:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px auto;
    content: '\0020';
    background-color: var(--secondcolor);
    -webkit-font-smoothing: antialiased;
}

.subtitle-red:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px 0 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.subtitle-red-center:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px auto;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.subtitle-white:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px 0 0;
    content: '\0020';
    background-color: #FFF;
    -webkit-font-smoothing: antialiased;
}

.subtitle-white-center:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px auto;
    content: '\0020';
    background-color: #FFF;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    min-height: 1px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 6px 4px;
    border: 0;
    border-radius: 0;
}

.navbar a:hover {
    color: var(--firstcolor);
    -webkit-transition: color .2s,opacity .2s;
    transition: color .2s,opacity .2s;
    text-decoration: none;
}

main {
    margin-top: 70px;
}

.archive.category main, .page-template-page-formazione-continua main, .page-template-page-servizi-al-lavoro main {
    margin-top: 0!important;
}

.page-template-page-formazione-continua main, .page-template-page-servizi-al-lavoro main {
    margin-bottom: 0!important;
}

.single-sede main, .single-corso main  {
    margin-top: 0;
}

.page main {
    margin-bottom: 25px;
    margin-top: 35px;
}

.home main {
    margin-top: 70px;
}

#rmp_menu_trigger-107 {
    background: var(--firstcolor);
    height: 44px;
    top: 10px;
    width: 44px;
}

.admin-bar .rmp_menu_trigger {
    margin-top: 12px !important;
}

.admin-bar .rmp-container {
    margin-top: 0 !important;
}

.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: var(--firstcolor);
}

.dropdown-item.active:hover, .dropdown-item:active:hover {
    color: var(--bs-dropdown-link-active-color);
}

.rmp-menu-wrap {
    padding: 50px 30px 100px!important;
}

#rmp-container-107 {
    background: var(--firstcolor);
}

#rmp_menu_trigger-107.is-active {
    background: var(--secondcolor);
}

#rmp_menu_trigger-107:hover, #rmp_menu_trigger-107:focus {
    background: var(--firstcolor);
}

#rmp-menu-wrap-107 .rmp-menu-item-link, #rmp-menu-wrap-107 .rmp-submenu .rmp-menu-item-link {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 44px;
    text-transform: uppercase;
}

#rmp-menu-wrap-107 .rmp-submenu .rmp-menu-item-link {
    padding-left: 25px;
}

#rmp-menu-wrap-107 li.rmp-menu-item {
    border-bottom: 1px solid #dfdfdf;
    padding: 5px 0;
}

#rmp-menu-wrap-107 li.rmp-menu-item:last-of-type {
    border: none;
}

/* === P1-3: header hero condiviso (articolo, page, category) === */

article header, .page header, .category header.entry-header {
    display: table;
    position: relative;
    width: 100%;
}

article header .header-image-wrapper, .page header .header-image-wrapper, .category header.entry-header .header-image-wrapper {
    overflow: hidden;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

article header .header-image-wrapper picture,
.page header .header-image-wrapper picture,
.category .header-image-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

article header .header-image-wrapper img.header-image,
.page header .header-image-wrapper img.header-image,
.category .header-image-wrapper img.header-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page .header-image-wrapper {
    position: inherit;
    min-height: 300px;
}

.category header.entry-header {
    min-height: 220px;
}

.category header.entry-header .post-header {
    display: table-cell;
    margin-bottom: 30px;
    position: relative;
    padding-top: 90px;
    padding-bottom: 3em;
    vertical-align: bottom;
    z-index: 3;
}

article header .header-image-overlay, .page header .header-image-overlay, .category .header-image-overlay {
    background: rgba(0,0,0,.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

article .post-header {
    display: table-cell;
    margin-bottom: 30px;
    position: relative;
    padding-top: 90px;
    padding-bottom: 3em;
    vertical-align: bottom;
    z-index: 3;
}

.page .post-header {
    display: block;
    min-height: 300px;
    margin-bottom: 30px;
    padding-top: 90px;
    padding-bottom: 3em;
    vertical-align: bottom;
    z-index: 3;
}

article .post-header .sede-meta, article .post-header .news-meta {
    color: #FFF;
    display: -ms-inline-flexbox;
    display: inline-flex;
    font-size: 14px;
    line-height: 24px;
    margin: 10px 0 0 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    list-style: none;
}

article .post-header .sede-meta > li, article .post-header .news-meta > li {
    display: block;
    float: left;
    margin-right: 25px;
}

article .post-header .sede-meta a, article .post-header .news-meta a {
    color: #FFF;
    display: inline-block;
}

article .post-header .sede-meta a:hover, article .post-header .news-meta a:hover {
    text-decoration: underline;
}

article .post-header .sede-meta i, article .post-header .news-meta i {
    display: inline-block;
    color: var(--firstcolor);
    float: left;
    font-size: 12px;
    line-height: inherit;
    margin-right: 7px;
    vertical-align: top;
    -webkit-font-smoothing: antialiased;
}

article h1.entry-title {
    color: #FFF;
    font-weight: 600;
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
}

article h2, article h3, article h4, article h5, article h6, .page h2, .page h3, .page h4, .page h5, .page h6 {
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
    font-size: 1.8rem;
    padding: 10px 0;
}

.archive.category-progetti-europei h2, .archive.category-progetti-europei h3, .archive.category-progetti-europei h4, .archive.category-progetti-europei h5, .archive.category-progetti-europei h6 {
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
    font-size: 1.8rem;
    padding: 10px 0;
}

.archive.category-formazione-finanziata main h2, .archive.category-formazione-finanziata main h3, .archive.category-formazione-finanziata main h4, .archive.category-formazione-finanziata main h5, .archive.category-formazione-finanziata main h6 {
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
    font-size: 1.8rem;
    padding: 10px 0;
}

.single-progetto .entry-content h2, .single-progetto .entry-content h3, .single-progetto .entry-content h4, .single-progetto .entry-content h5, .single-progetto .entry-content h6 {
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
    font-size: 1.8rem;
    padding: 10px 0;
}

.archive .content-corsi h2, .archive .content-corsi h3, .archive .content-corsi h4, .archive .content-corsi h5, .archive .content-corsi h6 {
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
    font-size: 1.8rem;
    padding: 10px 0;
}

/* === P1-3: heading :after / no-after (globale + override home/footer/corsi/progetti; alta specificità) === */

article h2.corsi-title, article h3.corsi-title, article h4.corsi-title, article h5.corsi-title, article h6.corsi-title {
    padding-bottom: 0;
}

article h2.corso-item-title, article h3.corso-item-title, article h4.corso-item-title, article h5.corso-item-title, article h6.corso-item-title {
    padding: 10px 0;
}

article.article-sedi h2:after, article.article-sedi h3:after, article.article-sedi h4:after, article.article-sedi h5:after, article.article-sedi h6:after {
    display: block;
    width: 75px;
    height: 2px;
    margin: 17px 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

article.article-corsi h2:after, article.article-corsi h3:after, article.article-corsi h4:after, article.article-corsi h5:after, article.article-corsi h6:after {
    display: block;
    width: 75px;
    height: 2px;
    margin: 17px 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.page h2:after, .page h3:after, .page h4:after, .page h5:after, .page h6:after {
    display: block;
    width: 75px;
    height: 2px;
    margin: 17px 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.page h2.subtitle-red-center:after, .page h3.subtitle-red-center:after, .page h4.subtitle-red-center:after, .page h5.subtitle-red-center:after, .page h6.subtitle-red-center:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px auto;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.page h2.subtitle-white-center:after, .page h3.subtitle-white-center:after, .page h4.subtitle-white-center:after, .page h5.subtitle-white-center:after, .page h6.subtitle-white-center:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px auto;
    content: '\0020';
    background-color: #FFF;
    -webkit-font-smoothing: antialiased;
}

.page .background-red h2.subtitle-red-center:after, .page .background-red h3.subtitle-red-center:after, .page .background-red h4.subtitle-red-center:after, .page .background-red h5.subtitle-red-center:after, .page .background-red h6.subtitle-red-center:after {
    display: block;
    width: 40px;
    height: 2px;
    margin: 17px auto;
    content: '\0020';
    background-color: #FFF;
    -webkit-font-smoothing: antialiased;
}

.archive.category-progetti-europei h2:after, .archive.category-progetti-europei h3:after, .archive.category-progetti-europei h4:after, .archive.category-progetti-europei h5:after, .archive.category-progetti-europei h6:after {
    display: block;
    width: 75px;
    height: 2px;
    margin: 17px 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.archive.category-formazione-finanziata h2:after, .archive.category-formazione-finanziata h3:after, .archive.category-formazione-finanziata h4:after, .archive.category-formazione-finanziata h5:after, .archive.category-formazione-finanziata h6:after {
    display: block;
    width: 75px;
    height: 2px;
    margin: 17px 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.single-progetto .entry-content h2:after, .single-progetto .entry-content h3:after, .single-progetto .entry-content h4:after, .single-progetto .entry-content h5:after, .single-progetto .entry-content h6:after {
    display: block;
    width: 75px;
    height: 2px;
    margin: 17px 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.archive .content-corsi h2:after, .archive .content-corsi h3:after, .archive .content-corsi h4:after, .archive .content-corsi h5:after, .archive .content-corsi h6:after {
    display: block;
    width: 75px;
    height: 2px;
    margin: 17px 0;
    content: '\0020';
    background-color: var(--firstcolor);
    -webkit-font-smoothing: antialiased;
}

.home.page h2:after, .home.page h3:after, .home.page h4:after, .home.page h5:after, .home.page h6:after {
    margin: 17px auto;
}

.home.page footer h2:after, .home.page footer h3:after, .home.page footer h4:after, .home.page footer h5:after, .home.page footer h6:after {
    margin: 17px 0!important;
}

.home.page h3.sede-item-title:after, .home.page h4.sede-item-title:after {
    margin: 17px 0!important;
}

.page h2.no-after:after, .page h3.no-after:after, .page h4.no-after:after, .page h5.no-after:after, .page h6.no-after:after {
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    content: none;
    background-color: inherit;
    -webkit-font-smoothing: antialiased;
}

article h2.no-after:after, article h3.no-after:after, article h4.no-after:after, article h5.no-after:after, article h6.no-after:after {
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    content: none;
    background-color: inherit;
    -webkit-font-smoothing: antialiased;
}

.archive.category-progetti-europei h2.no-after:after, .archive.category-progetti-europei h3.no-after:after, .archive.category-progetti-europei h4.no-after:after, .archive.category-progetti-europei h5.no-after:after, .archive.category-progetti-europei h6.no-after:after {
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    content: none;
    background-color: inherit;
    -webkit-font-smoothing: antialiased;
}

.archive.category-formazione-finanziata h2.no-after:after, .archive.category-formazione-finanziata h3.no-after:after, .archive.category-formazione-finanziata h4.no-after:after, .archive.category-formazione-finanziata h5.no-after:after, .archive.category-formazione-finanziata h6.no-after:after {
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    content: none;
    background-color: inherit;
    -webkit-font-smoothing: antialiased;
}

.archive.category-progetti-europei h2.subtitle-progetti {
    margin-top: 25px;
}

.archive.category-progetti-europei h2.subtitle-progetti:after {
    margin: 17px auto!important;
}

/* === P1-3: contenuto articoli (corso, sede, news, progetto) === */

article .entry-content {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    padding: 40px 0;
}

article#category-servizi-al-lavoro .entry-content {
    padding: 100px 0;
}

article .entry-content strong {
    font-family: 'Poppins-Bold', sans-serif;
}

article h2.contatti-sede {
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
    padding: 40px 0 15px;
}

article .sede-item-container {
    border: 1px solid #e2e7ed;
    margin: 10px;
}

article h3.sede-item-title {
    font-family: 'Montserrat-SemiBold', 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 75px;
    padding: 0;
}

article .sede-item-text {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 0 25px 0;
}

.section-corsi-files-title {
    font-family: 'Montserrat-Bold', 'Open Sans', sans-serif;
    padding: 25px 0;
    text-transform: uppercase;
}

.page-header-title {
    background-color: var(--secondcolor);
    clear: both;
    color: #FFF;
    display: block;
    font-weight: 400;
    margin-top: 72px;
    padding: 25px 0;
    position: relative;
    width: 100%;
}

.page-header-title a {
    color: #FFF;
}

.page-header-title a:hover {
    color: var(--firstcolor);
}

.page-header-title h1, .page-header-title h2, .page-header-title h3 {
    font-size: 22px;
    margin: 0;
    padding: 0;
}

article.article-news .entry-header h2, article.article-news .entry-header h3 {
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    margin-bottom: 6px;
    text-align: left;
    padding: 15px 0 0 0;
}

.archive article.article-news .entry-header h2 a, .archive article.article-news .entry-header h3 a {
    color: var(--secondcolor);
}

.archive article.article-news .entry-header h2 a:hover, .archive article.article-news .entry-header h3 a:hover {
    color: var(--firstcolor);
}

.archive article.article-news .meta {
    margin-bottom: 25px;
}

.archive article.article-news .meta small, .archive article.article-news .meta time {
    color: #8c8c8c;
    font-size: 85%;
}

.archive .content-corsi {
    padding: 40px 40px 40px 40px;
}

.archive .descrizione-corsi, .archive .descrizione-progetti-europei {
    color: #FFF;
    background-color: var(--firstcolor);
    background-image: url(../img/onde.webp);
    background-position: 50% 50%;
    background-attachment: scroll;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 40px;
}

.container-formazione-continua {
    color: #FFF;
    background-color: var(--firstcolor);
    background-image: url(../img/onde.webp);
    background-position: 50% 50%;
    background-attachment: scroll;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 55px 40px 40px 40px;
    z-index: 1;
    position: relative;
}

.archive .sponsor-corsi {
    font-size: 12px;
    font-weight: bold;
    padding: 25px 40px 0 40px;
}

.archive .sponsor-corsi img {
    max-width: 960px;
    height: auto;
}

.archive .grid-corsi {
    padding-top: 15px;
}

article.article-news .entry-content {
    padding: 0;
}

article.article-news .entry-content .entry-thumbnail img {
    border-radius: 0.25rem!important;
}

article.article-news img + div.entry-excert, article.article-news .entry-thumbnail + div.entry-excert {
    margin: 25px 0;
}

article.article-corsi hr {
    border-top: 2px solid #FFF;
    padding: 12px 35px;
}

article.article-corsi .descrizione-corso {
    padding: 0 45px 0 0;
}

article.article-corsi .scheda-corso {
    background-color: var(--firstcolor);
    background-image: url('../img/onde.webp');
    background-position: 50% 50%;
    background-attachment: scroll;
    background-size: cover;
    background-repeat: no-repeat;
    color: #FFF;
    font-family: 'Montserrat', serif;
    padding: 55px 45px;
    margin-top: -80px;
    z-index: 1000;
}

article.article-corsi .sponsor-corso {
    margin-bottom: 35px;
}

article.article-corsi .sponsor-corso img,
article.article-corsi .sponsor-corso-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

article.article-corsi .costo-corso {
    color: #FFF;
    font-family: 'Montserrat-SemiBold', serif;
    font-size: 55px;
    text-align: center;
}

article.article-corsi .categoria-corso {
    color: #FFF;
    font-family: 'Montserrat-SemiBold', serif;
    font-size: 50px;
    line-height: 60px;
    text-align: center;
}

article.article-corsi .dati-corso {
    font-family: 'Montserrat', serif;
	font-size: 1.1rem;
    line-height: 28px;
}

article.article-corsi .dati-corso span {
    font-family: 'Montserrat-SemiBold', serif;
    text-transform: uppercase;
}

article.article-corsi .dati-corso a {
    color: #FFF;
    text-decoration: underline;
}

article.article-corsi .dati-corso a:hover {
    color: #CDCDCD;
}

article.article-corsi .contatto-corso a {
    border: 1px solid #FFF;
    color: #FFF;
    font-family: 'Poppins', serif;
    padding: 25px 45px;
    width: 100%;
}

article.article-corsi .contatto-corso a.btn-pre-iscrizione {
    background-color: #FFF;
    color: var(--secondcolor);
}

article.article-corsi .contatto-corso a:hover {
    background-color: #FFF;
    color: var(--secondcolor);
}

.wp-pagenavi {
    margin: 0 auto;
    padding: 25px 0 45px;
    text-align: center;
}

.wp-pagenavi span {
    text-decoration: none;
    padding: 3px 5px;
    margin: 2px;
}

.wp-pagenavi a {
    text-decoration: none;
    border: 1px solid #BFBFBF;
    padding: 3px 5px;
    margin: 2px;
}

/* === P1-3: footer e icone social (globale) === */

footer {
    background: var(--secondcolor);
    color: #FFF;
}

footer a, footer div, footer p {
    color: #D3D3D3;
	font-family: 'Montserrat', 'Open Sans', sans-serif;
}

footer a:hover {
    color: #FFF;
}

footer i {
    color: var(--firstcolor);
}

footer p {
    margin: 0;
    padding: 0;
}

footer .custom-html-widget {
    line-height: 26px;
}

footer ol, footer ul {
    line-height: 26px;
    list-style: none;
    padding-left: 0;
}

footer .pre-footer .container {
    font-size: 14px;
    border-bottom: 1px solid #D3D3D3;
}

footer .pre-footer .pre-footer-widget {
    padding: 35px 0;
}

footer .footer-widgets .container {
    font-size: 14px;
    border-bottom: 1px solid #D3D3D3;
}

footer .footer-copyia .container {
    border-bottom: 1px solid #D3D3D3;
	padding: 15px;
}

footer .footer-widgets .widget {
    vertical-align: top;
    display: inline-block;
    zoom: 1;
    float: none;
    margin-top: 45px;
    margin-bottom: 25px;
}

footer .footer-widgets .widget-title {
    color: #FFF;
    font-family: 'Montserrat-Bold', 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    margin: 10px 0;
    padding: 10px 0;
}

.home footer .footer-widgets .widget-title {
    margin: 0;
}

footer .footer-copyia {
    font-size: 11px;
}

footer .footer-copyright {
    font-size: 11px;
    padding: 25px;
}

.scrolltop.vis {
    opacity: 1;
    visibility: visible;
}

.scrolltop:hover {
    background-color: var(--firstcolor);
    color: #FFF;
    text-decoration: none;
}

.scrolltop {
    width: 60px;
    height: 60px;
    font-weight: normal;
    line-height: 60px;
    text-align: center;
    position: fixed;
    left: 40px;
    bottom: 40px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background-color: rgba(51,51,51,0.3);
    font-size: 30px;
    color: rgba(255, 255, 255, .8);
    transition: all .3s ease;
}

div.wpcf7 .selectric, div.wpcf7 input[type=email], div.wpcf7 input[type=number], div.wpcf7 input[type=password], div.wpcf7 input[type=search], div.wpcf7 input[type=tel], div.wpcf7 input[type=text], div.wpcf7 input[type=url], div.wpcf7 select, div.wpcf7 textarea {
    background-color: #fff;
    vertical-align: top;
    width: 100%;
}

input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    background-color: transparent;
    border: 1px solid var(--secondcolor);
    color: #222;
    font-size: 14px;
    line-height: 22px;
    padding: 10px 15px;
    max-width: 100%;
    -webkit-transition: all .4s;
    transition: all .4s;
}

input[type=textarea] {
    width: 100%;
}

div.wpcf7 input:focus-visible, div.wpcf7 textarea:focus-visible {
    outline: var(--firstcolor) auto 1px;
}

.wpcf7-submit {
    color: #fff;
    background-color: var(--firstcolor);
    border: none;
    font-weight: 500;
    min-width: 270px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 13px 30px;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: .08em;
    max-width: 100%;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,opacity .15s,-webkit-box-shadow .15s ease-in-out;
    text-transform: uppercase;
}

.wpcf7-submit:hover {
    background-color: var(--secondcolor);
}

.social-icons {
    text-align: center;
    padding: 35px 0 0 0;
}

.social-icons a.icon {
    display: inline-block;
    margin: 0 10px;
    color: #FFF!important;
    font-size: 24px;
    justify-content: center;
    align-items: center;
}

.social-icons a.icon:hover {
    color: var(--firstcolor) !important;
}

.social-icons a.icon i {
    color: #FFF!important;
}

.social-icons a.icon i:hover {
    color: var(--firstcolor) !important;
}

.single.single-post article img.aligncenter, .single.single-post article img.alignnone {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.single.single-post article .wp-video {
    padding: 15px 0;
    text-align: center;
    margin: 0 auto;
}

.post-type-archive-sede main, .search-results main {
    margin-top: 105px;
}

.search-results main {
    padding-bottom: 45px;
}

.post-type-archive-sede .corso-item-meta a {
    color: #212529;
}

.post-type-archive-sede .corso-item-meta a:hover {
    color: var(--firstcolor);
}

.search-results #nav-above a, .search-results #nav-below a {
    background-color: var(--firstcolor);
    border-color: transparent;
}

/* === P1-3: CookieYes (globale) === */

.cky-notice-btn-wrapper .cky-btn.cky-btn-customize {
    color: #FFF!important;
    border-color: #FFF!important;
    background-color: #AF1917!important;
}

.cky-prefrence-btn-wrapper .cky-btn.cky-btn-preferences {
    color: #FFF!important;
    border-color: #AF1917!important;
    background-color: #AF1917!important;
}

@media only screen and (max-width: 768px)
{
    /* P1-3 phone: form, pagine, news, footer */
    .page-header-title {
        padding: 18px 16px;
        text-align: center;
    }

    .page-header-title .page-title,
    .page-header-title h1,
    .page-header-title h2,
    .page-header-title .text-left,
    .page-header-title .text-right {
        text-align: center !important;
    }

    .single-corso article .post-header,
    .category header.corso-category-header .post-header {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 48px;
        padding-bottom: 2em;
    }

    .single-corso article h1.entry-title {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .wpcf7 {
        padding: 0 25px;
    }

    .page-id-11 .wpcf7 {
        padding: 0;
    }

    .wpcf7 .wpcf7-submit {
        width: 100%;
    }

    body.page main, .archive.category-news main {
        padding: 0 25px;
    }

    body.page.home main, body.page-template-page-formazione-continua main, body.page-template-page-servizi-al-lavoro main {
        padding: 0;
    }

    body.page-template-page-formazione-continua .read-more {
        margin-bottom: 35px;
    }

    article.article-news .entry-content .entry-thumbnail img {
        max-width: 100%;
        height: auto;
    }

    footer ol, footer ul {
        margin: 0 auto;
        text-align: center;
    }

    footer .footer-widgets .widget {
        margin-top: 25px;
        margin-bottom: 10px;
    }

    footer .footer-widgets .widget.footer-widget-4 {
        margin-bottom: 25px;
    }

    footer .footer-widgets .widget-title {
        text-align: center;
    }

    footer .footer-widgets .custom-html-widget {
        text-align: center;
    }

    footer .footer-widgets i {
        display: none;
    }

    footer .footer-copyright {
        font-size: 12px;
    }

    footer .footer-copyright p {
        margin-bottom: 10px;
    }

    footer h2:after, footer h3:after, footer h4:after, footer h5:after, footer h6:after {
        margin: 17px auto!important;
    }
}

@media (min-width: 768px) and (max-width: 1279px)
{
    .page-header-title {
        padding: 25px;
    }
}

@media (min-width: 768px)
{
    article header,
    .category header.entry-header {
        height: 420px;
        min-height: 420px;
    }
    main div.wpcf7 {
        padding: 35px 10% 35px 10%;
    }
}

@media (min-width: 1025px)
{
    .header-image-overlay {
        background: -webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.9)),color-stop(80%,rgba(0,0,0,0)));
        background: linear-gradient(to top,rgba(0,0,0,.9) 0,rgba(0,0,0,0) 80%);
    }
}
@media (max-width: 1024px)
{
    #rmp_menu_trigger-107 {
        right: 3%;
    }
    #rmp-menu-wrap-107 .rmp-menu-current-item .rmp-menu-item-link {
        border-color: inherit;
        background-color: inherit;
        text-decoration: underline;
    }
    article .entry-content {
        padding: 40px 25px 40px 25px;
    }
}


/* CF7 contatto generale: select sede coerente con i campi del modulo. */
div.wpcf7 .cnos-general-sede {
    display: block;
    width: 100%;
    margin-bottom: 24px;
}
div.wpcf7 .cnos-general-sede-label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: #222;
}
div.wpcf7 .cnos-general-sede-label span {
    font-weight: 400;
    color: #666;
}
div.wpcf7 .cnos-general-sede select {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 10px 42px 10px 15px;
    border: 1px solid var(--secondcolor);
    border-radius: 0;
    background-color: #fff;
    color: #222;
    font: inherit;
    line-height: 1.5;
    box-shadow: none;
    appearance: auto;
    -webkit-appearance: menulist;
}
div.wpcf7 .cnos-general-sede select:focus-visible {
    outline: 2px solid var(--firstcolor);
    outline-offset: 2px;
}
