.medon-product-categories-sidebar {
    width: 100%;
}

.medon-category-group {
    width: 100%;
}

.medon-category-group + .medon-category-group {
    margin-top: 56px;
}

.medon-category-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 400;
    color: #3f3f3f;
}

.medon-category-line {
    width: 100%;
    height: 1px;
    margin-top: 8px;
    background: #d6d6d6;
}

.medon-category-products {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
}

.medon-category-product {
    margin: 0;
    padding: 0;
}

.medon-category-product + .medon-category-product {
    margin-top: 4px;
}

.medon-category-product a {
    display: block;
    color: #3f3f3f;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

.medon-category-product a:hover,
.medon-category-product a:focus {
    color: #008f8b;
}

.medon-category-product-code,
.medon-category-product-title {
    font: inherit;
    color: inherit;
}

@media (max-width: 1024px) {
    .medon-category-title {
        font-size: 30px;
    }

    .medon-category-product a {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .medon-category-group + .medon-category-group {
        margin-top: 40px;
    }

    .medon-category-title {
        font-size: 28px;
    }

    .medon-category-products {
        margin-top: 24px;
    }

    .medon-category-product a {
        font-size: 16px;
    }
}

/* Accordion accessibile. Le intestazioni restano nel layout quando chiuse. */
.medon-product-categories-sidebar .medon-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}
/* Il verde e' riservato al solo hover: click, focus e stato aperto
   non devono lasciare l'intestazione evidenziata. */
.medon-product-categories-sidebar .medon-category-toggle,
.medon-product-categories-sidebar .medon-category-toggle:focus,
.medon-product-categories-sidebar .medon-category-toggle:active,
.medon-product-categories-sidebar .medon-category-toggle[aria-expanded="true"],
.medon-product-categories-sidebar .medon-category-toggle[aria-expanded="false"] {
    color: #3f3f3f !important;
    background: transparent !important;
}
.medon-product-categories-sidebar .medon-category-toggle:hover,
.medon-product-categories-sidebar .medon-category-toggle[aria-expanded="true"]:hover,
.medon-product-categories-sidebar .medon-category-toggle[aria-expanded="false"]:hover {
    color: #008f8b !important;
    background: transparent !important;
}
.medon-product-categories-sidebar .medon-category-toggle:focus-visible {
    outline: 2px solid #008f8b;
    outline-offset: 4px;
}
.medon-category-chevron {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(225deg); /* aperto: freccia in alto */
    transition: transform .2s ease;
}
.medon-category-toggle[aria-expanded="false"] .medon-category-chevron {
    transform: rotate(45deg); /* chiuso: freccia in basso */
}
.medon-product-categories-sidebar .medon-category-panel[hidden] { display: none !important; }
.medon-category-subgroup { margin-top: 26px; }
.medon-category-subtitle {
    margin: 0;
    padding-top: 8px;
    color: #3f3f3f;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}
.medon-category-subgroup .medon-category-products { margin-top: 8px; }
.medon-category-subgroup .medon-category-subgroup { margin-left: 12px; }

/* Le categorie di terzo livello sono etichette statiche, senza accordion. */
.medon-category-subtitle-static { text-transform: none; }
@media (prefers-reduced-motion: reduce) {
    .medon-category-chevron { transition: none; }
}


/* v1.2.1 | Categorie principali: una aperta, altre link di navigazione.
   Stesse classi e stesso hover per ogni intestazione. */
.medon-product-categories-sidebar .medon-category-title .medon-category-toggle {
    box-sizing: border-box;
    text-decoration: none !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    width: 100%;
}
.medon-product-categories-sidebar .medon-category-title a.medon-category-link,
.medon-product-categories-sidebar .medon-category-title a.medon-category-link:visited,
.medon-product-categories-sidebar .medon-category-title .medon-category-current {
    color: #3f3f3f !important;
    background: transparent !important;
}
.medon-product-categories-sidebar .medon-category-title a.medon-category-link:hover,
.medon-product-categories-sidebar .medon-category-title a.medon-category-link:focus-visible,
.medon-product-categories-sidebar .medon-category-title .medon-category-current:hover {
    color: #008f8b !important;
    background: transparent !important;
}
.medon-product-categories-sidebar .medon-category-title .medon-category-current {
    cursor: default;
}
/* Le categorie chiuse sono link senza freccia, come nel riferimento visivo. */
.medon-product-categories-sidebar .medon-category-line {
    transition: background-color .2s ease;
}
.medon-product-categories-sidebar .medon-category-group:hover > .medon-category-line {
    background: #008f8b;
}

/* Identico verde al passaggio del mouse per tutti i titoli principali. */
.medon-product-categories-sidebar .medon-category-title .medon-category-toggle:hover,
.medon-product-categories-sidebar .medon-category-title .medon-category-toggle:focus-visible {
    color: #048681 !important;
}
.medon-product-categories-sidebar .medon-category-group:hover > .medon-category-line {
    background-color: #048681;
}
