header.smaller,
header.transparent {
    background-color: #ffffff;
}

footer {
    background: #00792a;
}

#mainmenu a {
    color: #000000;
}

.subfooter {
    color: #ffffff;
    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,
footer a:hover {
    color: #ffffff;
}

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

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

header div#logo {
    max-width: max-content;
}

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

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

#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;
}

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

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

.card-img-top--crop {
    height: 260px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

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

.card-title {
    color: #00792a;
}

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

#back-to-top.show {
    bottom: 20px;
    opacity: 1;
}

#back-to-top {
    background: #354e33;
}

#subheader h1 {
    font-size: 35px;
}

footer,
section {
    padding: 50px 0;
}

@media (max-width: 576px) {
    #menu-btn {
        color: #000000;
        margin-bottom: 5px;
    }

    .section-archivio {
        padding: 50px 0px 50px 0px;
    }

    .menu_side_area {
        margin-left: 0px;
        right: 10px;
    }

    header div#logo img {
        width: 280px !important;
    }

    #search-icon {
        margin-left: 5px;
    }
}

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

    .section-archivio {
        padding: 200px 0px 50px 0px;
    }
}

@media (max-width: 991px) {

    header.header-mobile #mainmenu a.menu-item {
        color: #000000;
    }

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

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

@media (min-width: 577px) and (max-width: 1024px) {

    .section-archivio {
        padding: 100px 0px 50px 0px;
    }
}

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

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

    .menu_side_area {
        display: none;
    }
}