/*
Theme Name: gesta Child
Template: kadence
Author: Inera
Version: 1.0
*/

:root {
    --primary-color: #9b0014;
    --secondary-color: #4f000a;
    --tertiary-color: #d98c81;
}

body {
    font-family: "Inter", sans-serif;
    color: #333;
    background: #f9f9f9;
}

/*overwrite bootstrap*/
body .site-main a,
body .site-main .secure-download-link{
    font-size: 1rem;
  line-height: 1.5rem;
}

@media (min-width: 576px) {
    body .site-main a,
    body .site-main .secure-download-link {
      font-size: 1.125rem;
      line-height: 1.75rem;
    }
  }

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

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

.bg-primary {
    background-color: var(--primary-color) !important;

}

.colore-white {
    color: white !important;
}


h1,
.red-text,
a.category-links {
    color: var(--primary-color) !important;
}

button:hover {
    background: white !important;
}


/*header custom*/

.custom-header .it-header-center-wrapper .it-header-center-content-wrapper .it-right-zone .dropdown .dropdown-toggle {
    display: flex;
}


.custom-header .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text {
    padding-left: 24px;
    margin-right: 1.5%;
    text-align: center;
    /*width: 42%;*/
    width: 100%;
    font-size: 1rem;
    color: black !important;
}

.custom-header .it-header-slim-wrapper-content .it-brand-wrapper .it-brand-text {
    font-size: 0.8rem;
    color: black !important;
}

@media (max-width: 768px) {
    .custom-header .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text {
        /*display: none !important;*/
    }
}

@media (min-width: 768px) and (max-width: 992px) {

    .custom-header .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text,
    .custom-header .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text .it-brand-tagline {
        font-size: 80% !important;
        margin-top: 0px !important;
        padding: 0px;
        margin-right: 3%;
    }

}

@media (min-width: 500px) {
    .custom-header .container-xxl,
    .custom-header .container-xxl .row,
    .custom-header .container-xxl .row .col-12,
    .custom-header .container-xxl .row .col-12 .it-header-center-content-wrapper,
    .custom-header .container-xxl .row .col-12 .it-header-center-content-wrapper .it-brand-wrapper,
    .custom-header .container-xxl .row .col-12 .it-header-center-content-wrapper .it-brand-wrapper .flex-column-no{
        height: 100%;
    }
    .custom-header .container-xxl .row .col-12 .it-header-center-content-wrapper .it-brand-wrapper .flex-column-no .it-logo-custom{
        width: auto!important;
        height: 100%!important;
    }
}

@media (min-width: 1005px) {
    .custom-header .container-xxl .row .col-12 .it-header-center-content-wrapper .it-brand-wrapper .flex-column-no .it-logo-custom{
        /*width: 45%!important;*/
        max-width: 100%!important;
        object-fit: cover;
    }
}
.custom-header .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper .it-brand-text .it-brand-tagline {
    font-size: 1.2rem;
    color: black !important;
}

.custom-header .it-header-slim-right-zone .rounded-icon {
    background-color: var(--primary-color);
    fill: white !important;
    border-radius: 24px;
    width: 24px;
    height: 24px;
}

.custom-header .it-header-slim-right-zone .rounded-icon .icon {
    fill: white !important;
}

@media (min-width: 992px) {

    .custom-header .it-header-navbar-wrapper.theme-light-desk .navbar .dropdown-menu::before,
    .custom-header .it-header-navbar-wrapper.theme-light-desk .navbar .dropdown-menu,
    .custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-search-wrapper a {
        background: var(--primary-color);
        color: white;
    }

    .custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-search-wrapper a.rounded-icon:hover {
        background: var(--secondary-color);
    }

    .custom-header .dropdown-item {
        color: white;
    }


    .custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-search-wrapper a.rounded-icon svg {
        fill: white !important;
    }

    .custom-header .it-header-navbar-wrapper.theme-light-desk .navbar .navbar-collapsable .navbar-nav li a.nav-link.active {
        border-bottom-color: var(--primary-color);
    }
}

.custom-header,
.custom-header .it-header-navbar-wrapper .navbar .navbar-collapsable .navbar-nav li a.nav-link,
.custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-right-zone,
.custom-header .it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content a {
    color: var(--primary-color);
}

.custom-header .it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .it-header-slim-right-zone .btn,
.it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .header-slim-right-zone .btn,
.custom-header .it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .it-header-slim-right-zone .dropdown-menu,
.it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .header-slim-right-zone .dropdown-menu,
.custom-header .it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .it-header-slim-right-zone .dropdown-menu::before,
.it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .header-slim-right-zone .dropdown-menu::before,
.custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-right-zone .dropdown-menu::before,
.custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-right-zone .dropdown-menu {
    background: var(--primary-color);
}

.custom-header .it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .it-header-slim-right-zone .btn,
.custom-header .it-header-slim-wrapper.theme-light .it-header-slim-wrapper-content .header-slim-right-zone a.btn,
.custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-right-zone .dropdown-menu span {
    color: white;
}


.custom-header .it-header-center-wrapper.theme-light+.it-header-navbar-wrapper .custom-navbar-toggler .icon,
.custom-header .it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-search-wrapper a.rounded-icon svg {
    fill: var(--primary-color);
}

.custom-header .it-header-slim-wrapper.theme-light {
    border-bottom: 1px solid var(--tertiary-color);
}

/*footer*/
.it-footer-main {
    background-color: var(--primary-color) !important;
}

.kadence-thumbnail-position-behind .post-thumbnail-inner .post-top-featured.wp-post-image {
    margin: 0 auto !important;

}

.entry-title {
    color: var(--primary-color) !important;
}

.category-links a{
    color: black!important;
}
/*footer kadence modifica*/
.site-footer {
    box-shadow: 0 -15px 30px 2px rgba(0, 0, 0, .05) !important;
}

.site-footer h2 {
    font-size: 1rem;
    line-height: 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.site-footer .widget p {
    font-size: 1rem;
}

/*custom-carosel*/
.custom-carosel .splide__track {
    padding-top: 0px !important;
}

.custom-carosel .splide__slide {
    height: 600px;
}

.custom-carosel .small-text {
    max-width: 1200px;
}

.custom-carosel .padded {
    padding: 20px 10px 60px 10px;
}

@media (min-width: 500px) {
    .custom-carosel .padded {
        padding: 20px 70px 60px 70px;
    }
}

.custom-carosel .it-hero-text-wrapper {
    background-color: white !important;
    color: black !important;
    padding: 35px 30px 35px 30px;
    box-shadow: 0px 1px 10px 0px RGBA(0, 0, 0, 0.22);
}

.custom-carosel .it-hero-text-wrapper.header-carosel-title{
    padding: 35px 30px 35px 0px!important;
}

.custom-carosel .it-hero-text-wrapper h2 {
    color: black !important;
}


.custom-carosel .it-hero-text-wrapper.header-carosel-title{
    background-color: transparent !important;
    color: white !important;
    padding: none!important;
    box-shadow: none!important;
}

.custom-carosel .it-hero-text-wrapper.header-carosel-title h2 {
    color: #ffffff !important;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.72;  
    padding: 4px 15px;
    background-color: rgba(0, 0, 0, 0.35); 
    display: inline;         
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    border-radius:10px; 
}


.custom-carosel .maxed-lg {
    max-width: 450px;
}

.custom-carosel .slide-expect p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: inherit;
    color: #8c8c8c !important;
}

.custom-carosel .slide-date,
.custom-carosel .slide-date .icon {
    color: #8c8c8c !important;
    fill: #8c8c8c !important;
}


.custom-carosel .it-single-slide-wrapper {
    height: 100%;
}


.custom-carosel .splide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translate(0, -50%);
    z-index: 1;
    justify-content: space-between;
    padding: 0 1rem;
    display: none;
}

.custom-carosel .splide__arrows .splide__arrow {
    background-color: white;
    /*padding: .75rem;*/
    border-radius: 50%;
    border: none;
    padding: 12px 12px 12px 12px !important;
    display: flex;
}

.splide__arrows .splide__arrow.splide__arrow--prev {
    transform: scale(-1, 1);
}

.custom-carosel .splide__arrows .splide__arrow svg {
    width: 26px;
    height: 26px;
    margin-top: auto;
    margin-bottom: auto;
}

@media (min-width: 992px) {
    .custom-carosel .splide__arrows {
        display: flex;
    }
}

.custom-carosel .splide__pagination button,
.it-carousel-landscape-abstract-three-cols.it-carousel-wrapper .splide__pagination button,
.it-carousel-landscape-abstract-three-cols-arrow-visible.it-carousel-wrapper .splide__pagination button {
    background: var(--tertiary-color) !important;
    margin-top: auto;
    margin-bottom: auto;
}

.custom-carosel .splide__pagination button.is-active,
.it-carousel-landscape-abstract-three-cols.it-carousel-wrapper .splide__pagination button.is-active,
.it-carousel-landscape-abstract-three-cols-arrow-visible.it-carousel-wrapper .splide__pagination button.is-active {
    background: var(--primary-color) !important;
}

.it-carousel-wrapper.it-carousel-landscape-abstract-three-cols-arrow-visible .splide__arrows .splide__arrow {
    background: var(--primary-color) !important;
    padding: 1px 4px 1px 4px !important;
}

.custom-carosel .splide__pagination {
    z-index: 10;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    top: 45%;
}

.custom-carosel .splide__pagination li {
    background-color: white;
    padding: 10px 0px 10px 0px;
    display: flex;
    box-shadow: 0px -5px 5px -5px rgba(0, 0, 0, 0.16), 0px 5px 5px -5px rgba(0, 0, 0, 0.16);
}

.custom-carosel .splide__pagination li:first-of-type {
    border-radius: 99px 0px 0px 99px;
    padding: 10px 0px 10px 10px;
    box-shadow: 0px 0px 10px 0px RGBA(0, 0, 0, 0.16)
}

.custom-carosel .splide__pagination li:last-of-type {
    border-radius: 0px 99px 99px 0px;
    padding: 10px 10px 10px 0px;
    box-shadow: 10px 0px 10px 0px RGBA(0, 0, 0, 0.16);
}

.custom-carosel.single-slide .splide__pagination,
.custom-carosel.single-slide .splide__arrows{
    display: none!important;
}

/*cards*/
.card-3 .ratio img,
.card-custom-archive .ratio img {
    object-fit: cover;
}

.card-custom-archive {
    border-radius: 4px;
}

.card-custom-archive .ratio,
.card-custom-archive .ratio img {
    border-radius: 4px 4px 0px 0px;
}

.card-custom-archive a {
    color: black !important;
}

.card-custom-archive .entry-content-wrap .entry-header .role {
    font-size: 13px !important;
    color: #BBB !important;
}

.card-custom-archive .entry-summary {
    font-size: 16px !important;
    line-height: 1.8;
    color: black !important;
}

.card-custom-archive .icon.red {
    fill: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.card-custom-archive:hover {
    /*box-shadow: 0 .5rem 1rem rgba(155, 0, 20,.50) !important;*/
    border-color: var(--primary-color) !important;
}

a.card{
    text-decoration: none!important;
}

/*navigazione archivi*/
.navigation.pagination {
    display: flex;
    justify-content: center;
}

.navigation.pagination .page-numbers.current {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
}

/*search bar*/

#modalSearch .modal-content {
    background-color: transparent !important;
}


#modalSearch input.search-field {
    width: 100%;
    background: rgba(0, 0, 0, 0);
    color: white;
    padding: .8em 80px .8em .8em;
    font-size: 20px;
    border: 1px solid currentColor;
}


#modalSearch form {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
}

#modalSearch .modal-body label {
    width: 100% !important;
}


#modalSearch .kadence-search-icon-wrap,
#modalSearch input[type="search"]::placeholder,
#modalSearch .btn-close {
    color: white;
    fill: white;
}

#modalSearch .btn-close {
    background: none !important;
}

/* agg header post*/
.entry-hero.page-hero-section .entry-header {
    min-height: 400px !important;
}

.page-hero-section.entry-hero-layout-standard .hero-section-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-hero-section.entry-hero-layout-standard .kadence-breadcrumb-container,
.page-hero-section.entry-hero-layout-standard .entry-title {
    color: white !important;
}
.entry-hero.page-hero-section.entry-hero-layout-standard .entry-hero-container-inner{
    background-position: center;
    background-size: cover;
}


.post-archive-hero-section.entry-hero-layout-standard .hero-section-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}


.post-archive-hero-section .hero-container .post-archive-title .archive-title {
    color: white !important;
}
.entry-hero.post-archive-hero-section.entry-hero-layout-standard .entry-hero-container-inner{
    background-position: center;
    background-size: cover;
}

/* agg header archive*/

.entry-hero.entry-hero-archive .entry-header {
    /*min-height: 400px !important;*/
}

.entry-hero-archive .hero-section-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.entry-hero-archive .kadence-breadcrumb-container,
.entry-hero-archive .page-title {
    color: white !important;
}
.entry-hero.entry-hero-archive .entry-hero-container-inner{
    background-position: center;
    background-size: cover;
}


/*sub sub menu */
/* Rende visibile il sottomenu di secondo livello */
.dropdown-menu .static-submenu {
    display: block; 
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1.5rem;
    margin: 0;
}

.static-submenu .dropdown-item {
    font-size: 0.9em;
}

li.menu-item-object-page.menu-item-has-children.nav-item{
    display: flex;
    flex-direction: column;
}