
:root {
  --bs-secondary-bg-rgb: #f2f2f2;
  --bs-terciary-bg-rgb: #f9e5e5;
  --bs-fourthy-bg-rgb: #333;
  --bs-bg-opacity: 1;

}
.flex-main {
  min-height: 250px;
}
.flex-banner {
  overflow-x: hidden;
}
.grey{
  background-color: #f5f5f5;
}
.bg-body-secondary {
  background-color: var(--bs-secondary-bg-rgb) !important;
}
.bg-body-terciary{
  background-color: var(--bs-terciary-bg-rgb) !important;
}
.bg-body-fourthy{
  background-color: var(--bs-fourthy-bg-rgb) !important;
}
.section-fullbleed {
  /* fa que el contenidor surti dels límits del .container pare */
  width: cal(100vw - 8px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
body {
  overflow-x: clip;
}
/*Gutters bootstrap 5.3*/

.row > * {
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
}
.g-0, .gx-0 { --bs-gutter-x: 0; }
.g-0, .gy-0 { --bs-gutter-y: 0; }

.g-1, .gx-1 { --bs-gutter-x: 0.25rem; }
.g-1, .gy-1 { --bs-gutter-y: 0.25rem; }

.g-2, .gx-2 { --bs-gutter-x: 0.5rem; }
.g-2, .gy-2 { --bs-gutter-y: 0.5rem; }

.g-3, .gx-3 { --bs-gutter-x: 1rem; }
.g-3, .gy-3 { --bs-gutter-y: 1rem; }

.g-4, .gx-4 { --bs-gutter-x: 1.5rem; }
.g-4, .gy-4 { --bs-gutter-y: 1.5rem; }

.g-5, .gx-5 { --bs-gutter-x: 3rem; }
.g-5, .gy-5 { --bs-gutter-y: 3rem; }

/* Footer menu: inline + white links */
.flex-footer .menu,
.flex-footer ul.nav,
.flex-footer ul.nav.navbar-nav {
  display: flex;
  flex-direction: row !important; /* Bootstrap .navbar-nav defaults to column */
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flex-footer .menu > li,
.flex-footer ul.nav > li,
.flex-footer ul.nav.navbar-nav > li {
  margin: 0;
}

.flex-footer .menu > li > a,
.flex-footer ul.nav.navbar-nav > li > a,
.flex-footer .nav-link {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.flex-footer .menu > li > a:hover,
.flex-footer .menu > li > a:focus-visible,
.flex-footer ul.nav.navbar-nav > li > a:hover,
.flex-footer ul.nav.navbar-nav > li > a:focus-visible,
.flex-footer .nav-link:hover,
.flex-footer .nav-link:focus-visible {
  color: #fff !important;
  text-decoration: underline;
}
.gencat-card__manual-cards .row{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 28px;
  width: 100%;
}
.gencat-card__manual-cards--fourColumns .gencat-card__manual-card {
  width: calc(25% - 21px);
}
.views-exposed-form-cercador-de-contingut-block-2 .form-row,
#views-exposed-form-cercador-de-contingut-block-1 .form-row{
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 50px;
}
.views-exposed-form-cercador-de-contingut-block-2 .form-item-search-api-fulltext,
#views-exposed-form-cercador-de-contingut-block-1 .form-item-search-api-fulltext {
  flex: 1 1 auto;
  margin-bottom: 0 !important;
}
.views-exposed-form-cercador-de-contingut-block-2 #edit-actions,
#views-exposed-form-cercador-de-contingut-block-1 #edit-actions {
  flex: 0 0 auto;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .views-exposed-form-cercador-de-contingut-block-2 .form-row,
  #views-exposed-form-cercador-de-contingut-block-1 .form-row {
    align-items: stretch;
    flex-direction: column;
  }
  .views-exposed-form-cercador-de-contingut-block-2 #edit-actions button,
  .views-exposed-form-cercador-de-contingut-block-2 #edit-actions input[type="submit"],
  #views-exposed-form-cercador-de-contingut-block-1 #edit-actions button,
  #views-exposed-form-cercador-de-contingut-block-1 #edit-actions input[type="submit"] {
    width: 100%;
  }
}

.mobile-swiper__controls {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-swiper.gencat-card__manual-cards .row {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-behavior: smooth;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-swiper.gencat-card__manual-cards .row::-webkit-scrollbar {
    display: none;
  }

  .mobile-swiper.gencat-card__manual-cards .gencat-card__manual-card {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 84%;
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
  }

  .mobile-swiper.gencat-card__manual-cards .gencat-card__manual-card {
    width: 70%;
  }
  .mb--6{
    margin-bottom: 0;
  }
  .site-slogan{
    font-size: 2rem;
  }
  .cap{
    padding: 2;
    gap: 1.5rem;
  }
  .normal-cards .row{
    gap:1rem;
  }
  article.node--view-mode-full {
      max-width: 100%;
      margin: auto;
  }
  main{
    padding-top: 2rem;
  }
  header{
    padding-bottom: 4rem;
  }
  .header-style-2{
    background: white;
    position: fixed;
    z-index: 2000;
    width: 100%;
    border-bottom: 1px solid #ccc;
  }
    .mobile-swiper.gencat-card__manual-cards {
    position: relative;
  }

  .mobile-swiper.gencat-card__manual-cards .mobile-swiper__controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .mobile-swiper.gencat-card__manual-cards .swiper-button-prev,
  .mobile-swiper.gencat-card__manual-cards .swiper-button-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: #fff;
    color: #CD0000;
    font-size: 1.75rem;
    line-height: 1;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .mobile-swiper.gencat-card__manual-cards .swiper-button-prev:disabled,
  .mobile-swiper.gencat-card__manual-cards .swiper-button-next:disabled {
    opacity: 0.35;
  }

  .mobile-swiper.gencat-card__manual-cards .swiper-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mobile-swiper.gencat-card__manual-cards .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #bdbdbd;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .mobile-swiper.gencat-card__manual-cards .swiper-pagination-bullet-active {
    background: #CD0000;
    transform: scale(1.15);
    width: 1rem;
    height: 1rem;
  }
  .gencat-card__manual-card-content h5{
    font-size: 1rem;
  }
  .gencat-card__manual-card-content{
    font-size: .875rem;
  }
}
