.faq-tabs-wrapper {
  margin-bottom: 50px;
}

.faq-tabs {
  display: flex;
  justify-content: center;
  list-style: none;
  width: 100%;
  padding: 0 15px;
  margin-bottom: 1rem;
}

.faq-tabs .tab {
  display: flex;
  flex-flow: column;
  justify-content: center;

  padding: 10px 45px;
  cursor: pointer;
  border-top: 2px solid #E3000F;
  margin-right: 5px;
  text-align: center;

  width: calc(350px - 10px);

  font-weight: 700;
  line-height: 1.2;
}

.faq-tabs .tab.active {
  background: #E3000F;
  border-color: #E3000F;
  border-bottom: none;
  color: #fff;
}

.faq-tab-content {
  display: none !important;
  padding: 1rem;
}

.faq-tab-content.active {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.faq-tab-content .subcategory-grid,
.swiper.subcategory-swiper {
    max-width: 1064px;
}

.faq-question-title {
  margin: 0;
}

.faq-question {
  background: #FFFFFF;
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 18px;
  font-weight: 700;
  color: #2C2A29;
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.33;
}

.faq-question.open {
  background: #fff;
}

.faq-item {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-answer {
  display: none;
  padding: 0 1rem;
  background: #fff;
  font-size: 18px;
  font-weight: 300;
  color: #3D3D3D;

  display: block !important;
  opacity: 0;
  max-height: 0;
  transition: max-height .3s ease, opacity .3s .15s ease;
}

.faq-item:has(.toggle-boton[aria-expanded='true']) .faq-answer {
  opacity: 1;
  overflow-y: hidden;
  max-height: unset;
}

.category-grid, .subcategory-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-item, .subcategory-item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #333;

  width: 100%;
}

.title-subcategory {
  font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #2C2A29;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 80%;
    position: relative;
    z-index: 2;
    top: -25px;
    transform: translateX(15%);
    background: #fff;
}

.category-item img, .subcategory-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.subcategory-item {
    margin-bottom: 20px;
}

.subcategory-item .feature-two__image {
  display: none;
  aspect-ratio: 16/9;
}

.swiper .subcategory-item {
  margin-bottom: 0;
}

.swiper .subcategory-item .feature-two__image {
  display: block;
}

.faq-list {
  margin-bottom: 50px;
  margin-top: 50px !important;
}

.faq-page .faq-tab-content .faq-list {
  max-width: 1200px;
}

.faq-list > h2,
.subcategory-item .feature-two__title {
  text-transform: none;
}

.subcategory-item .feature-two__title {
  margin: 0;
  line-height: 1.2;
}

.subcategory-item .feature-two__content {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
}

.toggle-boton {
  background-color: #e60000;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 4px !important;
  background: #ccc; /* color por defecto */
  opacity: 1 !important;
  border-radius: 0 !important; /* sin bordes redondeados = línea */
  margin: 0 4px !important;
  transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #e60000 !important; /* rojo intenso */
}

.head_faq_title .name_father {
  font-size: 18px;
  font-weight: 900;
  color: #525252;
  text-align: center;
  line-height: 26px;
}

.head_faq_title .name_category {
  font-size: 40px;
  font-weight: 700;
  color: #2C2A29;
  text-align: center;
  text-transform: uppercase;
  line-height: 48px;
}

.head_faq_title .text_descrip {
  font-size: 18px;
  font-weight: 350;
  color: #3D3D3D;
  text-align: center;
  line-height: 26px;
}

@media screen and (max-width: 600px) {
  .block-faq-block .subcategory-item img {
    display: none;
  }

  .title-subcategory {
    top: auto;
    transform: none;
    width: 100%;
  }

  .faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    margin-bottom: 60px;
  }

  .faq-tabs li {
    flex: 1 1 45%; /* hace que entren 2 por fila */
  }

  .faq-tabs .tab-especial {
    flex: 0 0 100%; /* ocupa todo el ancho */
    order: 99;      /* se asegura de ir al final */
    text-align: center;
  }
}

.faq .breadcrumb-style.gva-parallax-background {
  background-position: center center !important;
}

.breadcrumb ol li[aria-label="Domande frequenti"] ~ li[aria-label="Domande frequenti"],
.breadcrumb ol li[aria-label="Frequently asked questions"] ~ li[aria-label="Frequently asked questions"] {
  display: none;
}

@media only screen and (min-width: 768px) {
  .subcategory-item {
      margin-bottom: 0;
  }
  .subcategory-item .feature-two__image {
    display: block;
  }
}

@media only screen and (min-width: 1024px) {
  .category-item,
  .subcategory-item {
    max-width: calc(350px - 16px);
  }
}

.swiper-button-next, .swiper-button-prev {
  background-color: #E3000F;
  height: 42px !important;
  width: 42px !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-family: 'gva-icon' !important;
  font-size: 14px !important;
  color: #fff;
}

.swiper-button-next:after {
  content: '\e9a4' !important;
}

.swiper-button-prev:after {
  content: '\e9a3' !important;
}

.swiper-button-next, .swiper-button-prev {
  top: var(--swiper-navigation-top-offset, 40%) !important;
  right: var(--swiper-navigation-sides-offset, 0px) !important;
}

.swiper-button-prev {
  display: none !important;
}
