/*
Theme Name:     Hello-elementor-child
Theme URI:      
Description:    Hello-elementor child theme.
Author:         Me
Author URI:     
Template:       hello-elementor
Version:        0.1.0
*/

@media (max-width: 1024px) {
  .box-cat-ricette,
  .box-tag-ricette {
    margin-bottom: 1em;
    height: auto !important;
    overflow-y: hidden !important;
    overflow-x: hidden;
    position: relative;
  }

  .no-mob {
    display: none;
  }

  .box-cat-ricette::before,
  .box-tag-ricette::before {
    content: attr(data-label);
    display: block;
    background: #fff;
    padding: 10px 40px 10px 15px; /* spazio per la freccia a destra */
    cursor: pointer;
    font-weight: normal;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
  }

  .box-cat-ricette::after,
  .box-tag-ricette::after {
    content: "▾";
    position: absolute;
    right: 20px;
    top: 30px;
    transform: translateY(-50%);
    font-size: 1em;
    transition: transform 0.3s ease;
    pointer-events: none;
  }

  .box-cat-ricette.active::after,
  .box-tag-ricette.active::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .box-cat-ricette.active,
  .box-tag-ricette.active {
    border-color: #999;
  }

 .box-cat-ricette .e-filter,
  .box-tag-ricette .e-filter {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .box-cat-ricette.active .e-filter,
  .box-tag-ricette.active .e-filter {
    max-height: 900px; 
    padding: 10px 15px;
  }
}

@media (max-width: 767px) {
  .box-cat-ricette button,
  .box-tag-ricette button{
    width:100% !important;
	justify-content:flex-start !important;
  }
}

