:root{
    --primary-color: #CC0000;
    --bs-primary-rgb: 153, 0, 0;
    --darken-primary-color: #990000;
    --lighten-primary-color: #ff0000;
    --lightest-primary-color: #ff0000;
    --bs-link-color: #CC0000;
    --bg-logo: url('/typo3conf/bit3_sislav/Resources/Public/Images/logo-sislav.png');
}

.it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a .icon {
    width: 31px;
    height: 40px;
}

.it-header-navbar-wrapper {
    background: var(--darken-primary-color);
}

@media (min-width: 992px){
    .it-header-center-wrapper {
        height: 100px;
    }
    .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a .icon {
        width: 62px;
        height: 80px;
    }
    .it-header-wrapper.it-header-sticky.is-sticky .it-header-navbar-wrapper .menu-wrapper .it-brand-wrapper.cloned-element a .icon {
        width: 31px;
        height: 40px;
    }
}

@media (max-width: 992px) {
    .it-header-center-wrapper.theme-light+.it-header-navbar-wrapper .custom-navbar-toggler .icon {
        fill: #ffff;
    }
    .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a .it-brand-title{
        font-size: 0.8em;
    }
}

@media (min-width: 1200px) {
    .it-header-wrapper .navbar .navbar-collapsable .navbar-nav li a.nav-link {
        padding: .5rem 1.33rem;
    }
}

.it-header-wrapper .navbar .navbar-collapsable .navbar-nav.navbar-secondary li:last-child a {
    max-width: 100vw;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.navbar .navbar-collapsable .navbar-nav li a.nav-link.dropdown-toggle svg{
    fill: #ffffff;
}

@media (max-width: 992px) {
    .navbar .navbar-collapsable .navbar-nav li a.nav-link.dropdown-toggle svg {
        fill: var(--primary-color);
    }
}

.section.banner .img-responsive-wrapper .img-responsive .img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: unset;
    height: unset;
}


.section.banner .it-grid-item-wrapper .img-responsive-wrapper .img-responsive,
.it-grid-list-wrapper .img-responsive-wrapper {
    padding-bottom: 0 !important;
}

.it-grid-list-wrapper .img-responsive {
    position: static !important;
    height: auto !important;
    width: 100%;
}

.it-grid-list-wrapper .grid-row {
    align-items: flex-start;
}


.section-content .col-lg-6.order-1.order-lg-2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content .col-lg-6.order-1.order-lg-2 img {
    object-fit: contain;
    max-height: 500px;
    width: auto !important;
    max-width: 100%;
}

.section.section-image {
    padding: 50px;
}

.it-footer-main .it-brand-wrapper a .icon {
    width: 31px;
    height: 40px;
}

.it-footer-main .it-brand-wrapper a h2, .it-footer-main .it-brand-wrapper a .h2 {
    font-size: 1em;
}

/* Flex sulle colonne principali */
.section-news .container > .row {
    align-items: stretch;
}

/* Colonne diventano contenitori verticali */
.section-news .col-md-6.box-left,
.section-news .col-md-6.box-right{
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section-news .col-md-6.box-left:first-child > *:first-child {
    flex: 70 1 0;
}
.section-news .col-md-6.box-left:first-child > *:last-child {
    flex: 30 1 0;
}

/* Colonna destra 3 blocchi uguali (33% ciascuno) */
.section-news .col-md-6.box-right:last-child > * {
    flex: 1 1 0;
}

article.card > .badge {
    flex: 0 0 auto;
    align-self: flex-start;
}

article .card-header {
    flex: 0 0 auto;
}

.section-news .news {
    display: block;
    height: 100%;
}
.section-news .news article.card {
    display: flex;
    flex-direction: row;
}

.section-news .news article {
    flex: 1 1 auto;
}

.section.banner,
.section.rubriche,
.section.pubblicazioni,
.section.news
{
    padding: 20px;
    margin: 0;
}

.chip .chip-label{
    color: #ffff;
}

.chip .chip-label:hover{
    color: #000;
}

.chip.chip-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.chip:is(a):hover:not(.chip-disabled) {
    color: white;
}

.chip-2,
.chip-2:is(div):hover:not(.chip-disabled) {
    background-color: rgba(0, 102, 0, 1);
    border-color: rgba(0, 102, 0, 1);
}
.chip-4,
.chip-4:is(div):hover:not(.chip-disabled) {
    background-color: rgba(153, 0, 0, 1);
    border-color: rgba(153, 0, 0, 1);
}
.chip-8,
.chip-8:is(div):hover:not(.chip-disabled) {
    background-color: rgba(255, 140, 0, 1);
    border-color: rgba(255, 140, 0, 1);
}
.chip-15,
.chip-15:is(div):hover:not(.chip-disabled) {
    background-color: rgba(0, 0, 153, 1);
    border-color: rgba(0, 0, 153, 1);
}
.chip-21,
.chip-21:is(div):hover:not(.chip-disabled) {
    background-color: rgba(255, 215, 0, 1);
    border-color: rgba(255, 215, 0, 1);
}
.chip-2:is(div):hover:not(.chip-disabled) .chip-label,
.chip-4:is(div):hover:not(.chip-disabled) .chip-label,
.chip-8:is(div):hover:not(.chip-disabled) .chip-label,
.chip-15:is(div):hover:not(.chip-disabled) .chip-label,
.chip-21:is(div):hover:not(.chip-disabled) .chip-label {
    color: white;
}

.splide__track {
    padding-left: 0 !important;
    padding-right: 0 !important;
}




.it-header-slim-wrapper {
    display: none;
}

.it-header-center-wrapper.theme-light {
    background: #f5f5f5;
}

.it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-brand-wrapper a {
    color: #CC0000;
}

.it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-right-zone {
    color: #000;
}

.it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-right-zone .it-socials ul .icon {
    fill: #000;
}

.it-header-center-wrapper.theme-light .it-header-center-content-wrapper .it-right-zone .it-socials ul .icon:hover {
    fill: #CC0000;
}

.it-header-wrapper .search-link svg {
    fill: #ffff;
}

.it-header-wrapper .search-link{
    background-color: #CC0000;
}

.it-header-wrapper.it-header-sticky.is-sticky .it-header-navbar-wrapper .menu-wrapper .navbar-nav.navbar-secondary {
    display: unset;
}

.it-header-wrapper.it-header-sticky.is-sticky .it-header-navbar-wrapper .menu-wrapper {
    justify-content: space-between;
}

@media (max-width: 991px) {
    .it-header-wrapper .it-nav-wrapper .it-header-navbar-wrapper{
        left: 5px;
    }
    .it-header-wrapper .it-nav-wrapper .it-header-navbar-wrapper nav .custom-navbar-toggler{
        padding-left: 5px;
    }
}

ul.navbar-nav[data-element="main-navigation"] > .nav-item:first-child {
    display: flex;
    align-items: center;
}

.logo-custom{
    display: none;
}
@media (max-width: 991px) {
    .logo-custom {
        display: inline-block;
        width: auto;
    }
}

.expanded ul.navbar-nav[data-element="main-navigation"] > .nav-item:first-child {
    justify-content: center;
}

/* Posizionamento frecce carousel news */
#newsCarousel .splide__slide {
    margin-left: 5px;
    margin-right: 5px;
}

@media (min-width: 992px) {
    #newsCarousel .splide__list {
        max-height: 400px;
    }
}

#newsCarousel .splide__arrows,
#paginatedList .splide__arrows,
.it-carousel-wrapper .splide__arrows{
    position: static;
}

#newsCarousel .splide__arrow,
#paginatedList .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 10;
}
.it-carousel-wrapper .splide__arrow {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 10;
}

#newsCarousel .splide__arrow--prev,
#paginatedList .splide__arrow--prev,
.it-carousel-wrapper .splide__arrow--prev {
    left: -60px;
}

#newsCarousel .splide__arrow--next,
#paginatedList .splide__arrow--next,
.it-carousel-wrapper .splide__arrow--next {
    right: -60px;
}

#newsCarousel .splide__arrow .icon,
#paginatedList .splide__arrow .icon,
.it-carousel-wrapper .splide__arrow .icon {
    width: 60px;
    height: 60px;
}

/* Responsive: su schermi piccoli le frecce vanno sopra il contenuto */
@media (max-width: 991px) {
    #newsCarousel .splide__arrow--prev,
    #paginatedList .splide__arrow--prev,
    .it-carousel-wrapper .splide__arrow--prev {
        left: 10px;
    }

    #newsCarousel .splide__arrow--next,
    #paginatedList .splide__arrow--next,
    .it-carousel-wrapper .splide__arrow--next {
        right: 10px;
    }

    #newsCarousel .splide__arrow,
    #paginatedList .splide__arrow,
    .it-carousel-wrapper .splide__arrow {
        border-radius: 50%;
        padding: 8px;
    }
}

.section.pubblicazioni .splide__slide img {
    vertical-align: bottom;
    height: 250px;
    width: auto;
}


.it-carousel-wrapper .splide__arrow:disabled,
.it-carousel-wrapper .splide__arrow.is-disabled {
    display: none !important;
}
