header.smaller,
header.transparent,
footer {
    background: #00792a;
}

#mainmenu a {
    color: #000000;
}

.subfooter {
    color: #000000;
    border-top: 1px solid rgb(255, 255, 255);
}

footer,
footer h5,
footer a,
header.header-mobile #mainmenu a.menu-item,
#mainmenu>li.has-child:after,
#menu-btn {
    color: #ffffff;
}

.auto-height-smallimg {
    background-size: 50% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 100%;
    padding-top: 100%;
}

#btn-extra {
    margin-left: 0px;
}

#btn-extra span {
    border-bottom: 2px solid #ffffff;
}

#mainmenu>li>a {
    text-transform: none;
}

.header-col-mid {
    margin-left: 50px;
}

#menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

#search-icon {
    cursor: pointer;
    font-size: 20px;
    margin-left: 15px;
    color: #ffffff;
}

#search-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#search-box.active {
    display: flex;
}

#search-box .search-inner {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#search-box input {
    width: 300px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-wrapper,
.search-wrapper-newsletter {
    position: relative;
    width: 250px;
}

.search-wrapper input.form-control {
    width: 100%;
    padding: 10px 40px 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.search-wrapper .search-submit,
.search-wrapper-newsletter .search-submit {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #596a5a;
}

.search-wrapper-newsletter {
    padding: 20px 0px;
}

#close-search {
    position: absolute;
    top: 5%;
    right: 1%;
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
    z-index: 99999;
}

.abstract-newsletter {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.abstract-newsletter2 {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.abstract-newsletter2.lead {
    color: #333;
    line-height: 24px;
}

.card-newsletter {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-newsletter .subtitle {
    text-align: left;
}

.de-bloglist-type-1 li {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.de-bloglist-type-1 .d-date {
    padding-left: 0px;
}

.de-bloglist-type-1 .d-date:before {
    content: "";
    display: none;
}

.dropcap {
    margin-top: 0px;
}

.swiper-button-next,
.swiper-button-prev {
    background: #00792a;
}

a,
a:hover {
    color: #00792a;
}

a:hover {
    text-decoration: underline;
}

footer a:hover {
    color: #798d7a;
}

.copertina-libro {
    max-height: 250px;
    object-fit: contain;
    object-position: top;
}

.abstract-libro {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.titolo-libro {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.autore-libro {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.protocolli-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#section-intro,
#section-intro .swiper,
#section-intro .swiper-wrapper,
#section-intro .swiper-slide,
#section-intro .swiper-inner {
    height: 800px !important;
}

#section-intro .swiper-inner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section {
    padding: 70px 0 70px 0;
}

header div#logo {
    max-width: 180px;
}

header div#logo img {
    width: 100%;
    padding-bottom: 10px;
}

.ricerca-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.custom-underline {
    text-decoration: underline;
    text-decoration-color: #00792a;
    text-decoration-thickness: 2px;
    transition: text-decoration-color 0.3s;
}

a.custom-underline:hover {
    text-decoration-color: #004d19;
}

@media (min-width: 992px) {
    header.transparent {
        height: auto !important;
    }
}

@media (max-width: 991px) {

    header div#logo {
        max-width: 160px;
    }

    header div#logo img {
        width: 100%;
        padding-bottom: 5px;
    }

    #section-intro,
    #section-intro .swiper,
    #section-intro .swiper-wrapper,
    #section-intro .swiper-slide,
    #section-intro .swiper-inner {
        height: 600px !important;
    }

    .card-newsletter {
        min-height: auto;
    }

    section {
        padding: 50px 0 50px 0;
    }

    #mainmenu {
        display: none;
        position: absolute;
        top: 150px !important;
        left: 0;
        right: 0;
        padding: 20px;
        z-index: 999;
    }

    #mainmenu.active {
        display: block;
    }

    #menu-btn {
        display: block;
    }

    #mainmenu ul {
        padding-left: 15px;
    }

    #close-search {
        top: 20%;
        right: 3%;
    }

    #search-icon {
        margin-right: 15px;
    }

    .de-flex-col.de-flex-col-custom {
        display: flex !important;
        align-items: center;
    }

    .menu_side_area {
        margin-left: 0px;
    }

    #subheader h2 {
        font-size: 30px;
    }
}

@media only screen and (max-width: 1200px) {

    header #mainmenu li ul li:first-child {
        border-top: solid 1px #ffffff;
    }
}