/**
 * 
 * @version             See version field in manifest file
 * @package             See name field in manifest file
 * @author              Gregorio Nuti
 * @copyright           See copyright field in manifest file
 * @license             GNU General Public License version 2 or later
 * 
 */

:root {
    --green-extra-dark: #203616;
    --green-dark: #28441c;
    --green-medium: #334E28;
    --green-light: #C0C8BD;
    --green-lighter: #59694D;
    --grey-light: #F1F1F1;
    --green-button: #324d21;
}

/* Search input box */
input#searcher {
    color: var(--green-dark);
    background: #fff;
    border: 1px solid var(--green-dark);
    border-radius: 0;
}
input#searcher:focus {
    background: #fff;
    box-shadow: none;
}
input#searcher::placeholder {
    color: #212529;
}

/* Accordion */
#accordionSedi {
    border-radius: 0;
    padding-left: 1rem;
}

/* Accordion shadow */
.top-shadow {
    position: relative;
    top: 0;
    left: 0;
    width: calc(100% - 1rem);
    height: 70px;
    margin: 0 1rem;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(40,68,28,0) 0%,
        rgba(40,68,28,0.5) 100%
    );
    margin-bottom: -70px;
}
.bottom-shadow {
    position: relative;
    bottom: 0;
    left: 0;
    width: calc(100% - 1rem); /* subtract padding */
    height: 70px;
    margin: 0 1rem;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(40,68,28,0) 0%,
        rgba(40,68,28,0.5) 100%
    );
    margin-top: -70px;
}

/* Region menu item */
#accordionSedi .accordion-item {
    margin-bottom: 1rem;
    border: none;
}
#accordionSedi .accordion-button {
    border: 1px solid var(--green-light);
    text-transform: uppercase;
}
.accordion-item:last-of-type .accordion-button.collapsed,
.accordion-item:first-of-type .accordion-button {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
#accordionSedi .accordion-button:hover,
#accordionSedi .accordion-button:not(.collapsed) {
    background: var(--green-light);
    box-shadow: none;
    color: var(--green-dark);
}
#accordionSedi .accordion-body > p:last-child {
    margin-bottom: 0;
}

/* City menu item */
#accordionSedi .accordion-body p,
#accordionSedi .accordion-body a {
    color: var(--green-dark);
    text-decoration: none;
}

/* Media queries */
@media screen and (max-width: 767px) {
    /* Map */
    #map_wrapper {
        padding: 0rem;
        margin-bottom: 1rem;
    }
}
