html {
    overflow-x: hidden;
}
.module {
    margin-bottom: 3.5rem;
}
.module > * {
    margin-top: 0;
    margin-bottom: 0;
}
.module > * + * {
    margin-top: 2.4rem;
}

/* ------------------------------------------------------------------------- */
/* Estils slider (agafats del web de la URV per poder muntar els mòduls aquí */
/* ------------------------------------------------------------------------- */
.slider .item {
    position: relative;
}
.slider .item div.text {
    /*@include grid-row();
   */
}
.slider .item div.text .box {
    background: #f0f0f0;
    padding: 28px;
    height: 350px;
}
.slider .item h2 {
    /* font-family: "Roboto Slab", serif; */
    font-size: rem-calc(21);
    font-weight: 700;
    margin-bottom: 0.25em;
    margin-top: 1em;
}
.slider .item p {
    font-size: rem-calc(15);
    font-weight: 300;
    color: #000;
}
.slider .item p strong {
    display: block;
}
.slider .item img {
    width: 100%;
    min-height: 240px;
    max-height: 240px;
}
.slider-wrapper {
    position: relative;
    margin-bottom: 2em;
    max-height: 565px;
    overflow: hidden;
    /*@media #{
       $tablet-up
   }
    {
        opacity: 0;
   }
   */
}
.slider-wrapper .prev-btn,
.slider-wrapper .next-btn {
    position: absolute;
    top: 14%;
    z-index: 10;
}
.slider-wrapper .prev-btn span,
.slider-wrapper .next-btn span {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}
.slider-wrapper .prev-btn {
    left: 0;
    /*@extend .slide-enrere-320;
   */
}
.slider-wrapper .next-btn {
    right: 0;
    /*@extend .slide-endavant-320;
   */
}
.slider-wrapper .pager-wrapper {
    top: 255px;
    position: absolute;
    color: #000;
    width: 100%;
    text-align: center;
    z-index: 10 !important;
}
.slider-wrapper .pager-wrapper span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #fff;
    /*@include radius(100%);
   */
    text-indent: -9999px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
    margin-right: 18px;
    cursor: pointer;
}
.slider-wrapper .pager-wrapper span.selected {
    background-color: #90282a;
    color: #fff;
}
/*@media #{
   $tablet-up
}
{
   */
@media screen and (min-width: 40em) {
    .carousel_wrapper {
        max-height: 324px;
    }
    .noticies .carousel_wrapper {
        max-height: 524px;
    }
    .slider-wrapper {
        min-height: 324px;
        margin-bottom: rem-calc(36);
    }
    .slider-wrapper .prev-btn,
    .slider-wrapper .next-btn {
        top: 50%;
    }
    .slider-wrapper .prev-btn {
        left: 5px;
        /*background-position: $slide-enrere-768-offset-x $slide-enrere-768-offset-y;
            margin-top: -$slide-enrere-768-height/2;
            width: $slide-enrere-768-width;
            height: $slide-enrere-768-height;
           */
    }
    .slider-wrapper .next-btn {
        right: 5px;
        /*background-position: $slide-endavant-768-offset-x $slide-endavant-768-offset-y;
            margin-top: -$slide-endavant-768-height/2;
            width: $slide-endavant-768-width;
            height: $slide-endavant-768-height;
           */
    }
    .slider-wrapper .pager-wrapper {
        left: 60px;
        top: 270px;
        width: 344px;
    }
    .slider {
        max-height: 324px;
        overflow: hidden;
        height: 324px;
        min-height: 324px;
    }
    .slider .item {
        display: block;
        position: relative;
        float: left;
    }
    .slider .item h2 {
        margin-top: 0;
    }
    .slider .item div.text .box {
        position: absolute;
        top: 5%;
        width: 344px;
        background: rgba(255, 255, 255, 0.85);
        padding: 16px;
        max-height: 305px;
        height: 290px;
        left: 60px;
    }
    .slider .item img {
        width: 100%;
        min-height: 324px;
        max-height: 1000px;
    }
}
/*@media #{
       $medium-up
   }
    {
       */
@media screen and (min-width: 40em) {
    .carousel_wrapper {
        max-height: 414px;
    }
    .slider-wrapper {
        min-height: 414px;
        /*.prev-btn {
                    background-position: $slide-enrere-offset-x $slide-enrere-offset-y;
                    margin-top: -$slide-enrere-height/2;
                    width: $slide-enrere-width;
                    height: $slide-enrere-height;
               }
                .next-btn {
                    background-position: $slide-endavant-offset-x $slide-endavant-offset-y;
                    margin-top: -$slide-endavant-height/2;
                    width: $slide-endavant-width;
                    height: $slide-endavant-height;
               }
               */
    }
    .slider-wrapper .pager-wrapper {
        left: 100px;
        top: 323px;
    }
    .slider {
        max-height: 414px;
        height: 414px;
        min-height: 414px;
    }
    .slider .item div.text .box {
        left: 100px;
        top: rem-calc(60);
        padding: 25px;
    }
}
/*@media #{
           $xlarge-up
       }
        {
           */
@media screen and (min-width: 40em) {
    .carousel_wrapper {
        max-height: 502px;
    }
    .slider-wrapper {
        min-height: 502px;
    }
    .slider-wrapper .prev-btn {
        left: 30px;
    }
    .slider-wrapper .next-btn {
        right: 30px;
    }
    .slider-wrapper .pager-wrapper {
        left: 15%;
        top: 320px;
    }
    .slider {
        max-height: 502px;
        height: 502px;
        min-height: 502px;
    }
    .slider .item div.text .box {
        left: 15%;
        top: rem-calc(60);
    }
    .slider .item img {
        min-height: 452px;
    }
}
/*@media #{
               $xxlarge-up
           }
            {
               */
@media screen and (min-width: 60em) {
    .carousel_wrapper {
        max-height: 506px;
    }
    .slider-wrapper {
        min-height: 506px;
    }
    .slider-wrapper .pager-wrapper {
        left: 20%;
        top: 358px;
        width: 384px;
    }
    .slider {
        max-height: 506px;
        height: 506px;
        min-height: 506px;
    }
    .slider .item div.text .box {
        left: 20%;
        top: rem-calc(100);
        width: 384px;
    }
    .slider .item img {
        min-height: 506px;
    }
}
/* Nou slider notícies i js slick*/
/* Slider */
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;

    user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}
.slick-list {
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
}
.slick-list:focus {
    outline: none;
}
.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}
.slick-slider .slick-track,
.slick-slider .slick-list {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.slick-track {
    position: relative;
    left: 0;
    top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after {
    content: "";
    display: table;
}
.slick-track:after {
    clear: both;
}
.slick-loading .slick-track {
    visibility: hidden;
}
.carousel {
    opacity: 0;
}
.carousel.slick-initialized {
    display: block;
    opacity: 1;
}
.slick-slide {
    float: left;
    height: 100%;
    min-height: 1px;
    display: none;
}
[dir="rtl"] .slick-slide {
    float: right;
}
.slick-slide img {
    display: block;
}
.slick-slide.slick-loading img {
    display: none;
}
.slick-slide.dragging img {
    pointer-events: none;
}
.slick-initialized .slick-slide {
    display: block;
    opacity: 1;
}
.slick-loading .slick-slide {
    visibility: hidden;
}
.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}
.carousel__container {
    position: relative;
    overflow: hidden;
}
.carousel__container .wrapper-slick {
    margin: 0 auto;
    /*max-width: 77.5rem;*/
    max-width: 99.5rem;
    width: 100%;
    overflow: visible;
}
.carousel__container .wrapper-slick .carousel {
    margin: 0 auto;
    overflow: visible !important;
}
.carousel__container .wrapper-slick .carousel .slick-slide {
    transition: all ease-in-out 0.3s;
    opacity: 1;
}
.carousel__container .wrapper-slick .carousel .slick-slide img {
    width: 100%;
}
.carousel__container .wrapper-slick .carousel .slick-slide .carouselContent {
    padding: 2rem 0.2rem 0;
    /*p{
                        max-height: 145px;
                        overflow: hidden;
                   }
                   */
}
.carousel__container .wrapper-slick .carousel .slick-list {
    overflow: visible;
    position: relative;
}
.carousel__container .wrapper-slick .slick-slider {
    position: unset;
}
.carousel__container .wrapper-slick .slide span {
    display: block;
    width: 100%;
    margin: 0 auto;
    max-height: 149px;
    overflow: hidden;
    position: relative;
    /*@media #{
                       $tablet-up
                   }
                    {
                       */
}
@media screen and (min-width: 40em) {
    .carousel__container .wrapper-slick .slide span {
        max-height: 209px;
    }
}
.carousel__container .wrapper-slick .slide span span.more {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #fff;
    width: 70px;
    height: 70px;
    border-radius: 100%;
    text-align: center;
    line-height: 70px;
    font-size: 50px;
    margin-top: -35px;
    margin-left: -35px;
    border: solid 2px #fff;
    transition: all 0.3s ease-out;
}
.carousel__container .wrapper-slick .slide span span.more:after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    background-image: url(img/spritesheet.png);
    background-position: -33px -198px; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
    width: 31px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15.5px;
}
.carousel__container .wrapper-slick .slide a.mes-noticies:hover span span.more {
    border-color: #c1c1c1;
}
.slick-arrow {
    position: absolute;
    top: 0;
    width: 10%;
    height: 20%;
    z-index: 75;
    /* margin: 2px 0; */
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease-out;
    border: 0;
    padding: 0;

    /*@media #{
                           $tablet-up
                       }
                        {
                           */
}
.destaquem .slick-arrow {
    height: 100%;
}
@media screen and (min-width: 40em) {
    .slick-arrow {
        height: 100%;
    }
}
.slick-arrow span {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}
.slick-arrow:hover,
.slick-arrow:focus {
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
}
.slick-arrow:focus {
    outline: 3px solid #ffbf47;
}
.slick-arrow.slick-next {
    right: 0;
}
.slick-arrow.slick-next:after {
    background-image: url(img/spritesheet.png);
    background-position: -279px 0; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
    width: 25px;
    height: 44px;
    position: absolute;
    content: "";
    right: 0;
    top: 15%;
    left: 50%;
    margin-left: -12.5px;
}
.slick-arrow.slick-prev {
    left: 0;
}
.slick-arrow.slick-prev:after {
    background-image: url(img/spritesheet.png);
    background-position: -279px -44px; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
    width: 25px;
    height: 44px;
    position: absolute;
    content: "";
    right: 0;
    top: 15%;
    left: 50%;
    margin-left: -12.5px;
}
.slick-arrow.slick-disabled {
    opacity: 0;
}
.carousel-destacats {
    opacity: 1;
}
.carousel-destacats .slick-slide {
    margin: 0 10px;
    line-height: 0;
}
.carousel-destacats .slick-arrow {
    margin: 0;
}
.item-destacat {
    margin-bottom: 0.5rem;
}
.slick-initialized .item-destacat {
    margin-bottom: 0;
}
.item-destacat--img {
    background-color: transparent !important;
    text-align: center;
}
.item-destacat a {
    display: block;
    padding: rem-calc(20);
    opacity: 1;
}
.item-destacat a:hover {
    opacity: 0.8;
}
.item-destacat a:hover h3 {
    color: #fff !important;
}
.item-destacat--img a {
    padding: 0;
}
.item-destacat .carouselContent {
    padding: 0 !important;
}
.item-destacat h3 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    color: #fff;
    font-family: Lato, sans-serif !important;
    font-weight: bold;
    /*@media #{
                               $medium-up
                           }
                            {
                               */
}
@media screen and (min-width: 40em) {
    .item-destacat h3 {
        font-size: rem-calc(26) !important;
    }
}
.item-destacat img {
    width: auto !important;
    margin: 0 auto;
}
.item-destacat p {
    margin-bottom: 0;
    color: #fff;
    font-weight: bold;
}
.item-destacat--1 {
    background-color: #a1bb85;
}
.item-destacat--2 {
    background-color: #ca4d4d;
}
.item-destacat--3 {
    background-color: #f0f0f0;
}
.item-destacat--4 {
    background-color: #b2c6dd;
}
.item-destacat--img a {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ------------ */
/* Mòdul slider */
/* ------------ */
.module--slider .slider-container .row {
    width: 996px;
    max-width: 100%;
    margin: 0 auto;
}
.module--slider h2 {
    margin-bottom: 0.8125rem;
    /* font-family: "Roboto Slab", serif; */
    /*font-size: 1.875rem;*/
    font-size: 30px;
    font-weight: 300;
    color: #000;
    padding-bottom: 0;
    border-bottom: 0;
}
.module--slider h3 {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: Lato, sans-serif;
    margin-top: 0.2rem;
    margin-top: 0.5rem;
}
.module--slider a.totes {
    color: #000;
    font-size: rem-calc(15);
    margin: 0;
    padding: 0 35px 0 0;
    position: relative;
    display: inline-block;
    /* margin-top: 18px; */
    margin-bottom: 1.5rem;
    text-decoration: none;
}
.module--slider a.totes::after {
    background-image: url(img/spritesheet.png);
    background-position: -136px -264px; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
    content: "";
    width: 22px;
    height: 22px;
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -11px;
}
.module--slider .slide > a,
.module--slider .slide > span {
    color: #3a3a3a;
    display: block;
    min-height: 414px;
    margin: 2px 0.75em !important;
    width: auto !important;
    text-decoration: none;
}
@media only screen and (min-width: 1200px) {
    .module--slider .slide > a,
    .module--slider .slide > span {
        margin: 2px 0.5em !important;
    }
}
@media only screen and (min-width: 1400px) {
    .module--slider .slide > a,
    .module--slider .slide > span {
        margin: 2px 1em !important;
    }
}
.module--slider .slide a::after {
    display: none;
}
.module--slider .slide a:hover h3 {
    color: #90282a;
}
.module--slider .slide a:focus {
    outline: 3px solid #ffbf47;
    background-color: transparent;
    border: 0;
}
.module--slider .slide a:active {
    background-color: transparent;
    border: 0;
}
.module--slider .slide p {
    font-size: rem-calc(14);
}
.module--slider .slide p.data {
    margin-bottom: rem-calc(10);
    color: #90282a;
}
.module--slider .slide p.data span.post_type {
    display: inline;
    text-transform: uppercase;
    font-weight: bold;
    padding-left: 28px;
    margin-left: 5px;
    position: relative;
}
.module--slider .slide p.data span.post_type:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
.module--slider .slide p.data span.post_type.entrevista {
    /*@extend .ico_entrevistes;
	*/
}
.module--slider .slide p.data span.post_type.opinio {
    padding-left: 23px;
}
.module--slider .slide p.data span.post_type.opinio:after {
    /*@extend .ico_opinions;
	*/
}

/* -------------- */
/* Mòdul slider 2 */
/* -------------- */
.module--slider-2 .carousel__container .wrapper-slick .slide span {
    max-height: unset;
}
.module--slider-2 .slide > span {
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    margin-bottom: 0 !important; 
}
@media only screen and (min-width: 1200px) {
    .module--slider-2 .slide > span {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}
@media only screen and (min-width: 1400px) {
    .module--slider-2 .slide > span {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}
.module--slider-2 .slide > span .carouselContent {
    width: 100%;
}
.slide span.module--slider-2-black-text:hover h3:not(:has(>a)) {
    color: #000;
}
.slide span.module--slider-2-white-text:hover h3:not(:has(>a)) {
    color: #fff;
}
.module--slider-2 .slide > span[style*="background-color"] .carouselContent {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}
.module--slider-2 .slick-arrow {
    height: 100%;
}
.module--slider-2 .slide .carouselContent h3 a {
    color: #000;
}
/* Sense imatge */
.module--slider-2 .slide > span:not(:has(img)) .carouselContent {
    padding-top: 0 !important;
}
.module--slider-2 .slide > span:not(:has(img)) .carouselContent h3 {
    margin-top: 0;
}

/* Color text */
.module--slider-2-black-text .carouselContent > *,
.module--slider-2-black-text .carouselContent a {
    color: #000;
}
.module--slider-2-white-text .carouselContent > *,
.module--slider-2-white-text .carouselContent a {
    color: #fff !important;
}
.module--slider-2-white-text .carouselContent h3 a.external::after {
    filter: brightness(0) invert(1);
}
.module--slider-2-black-text .carouselContent li,
.module--slider-2-white-text .carouselContent li {
    background: none !important;
    position: relative;
}
.module--slider-2-black-text .carouselContent li::before,
.module--slider-2-white-text .carouselContent li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: .6em;
}
.module--slider-2-black-text .carouselContent li::before {
    background-color: #000;
}
.module--slider-2-white-text .carouselContent li::before {
    background-color: #fff;
}
.module--slider-2 .carouselContent h3 a {
    text-decoration: underline;
}
.module--slider-2 .carouselContent h3 a:hover,
.module--slider-2 .carouselContent h3 a:focus {
    text-decoration: none;
}

/* ------------------ */
/* Mòdul desplegables */
/* ------------------ */
.collapsible {
    border-bottom: solid 1px #979797;
    margin: 2em 0;
}
.collapsible h3 {
    margin: 0;
}
.collapsible button {
    font-size: 1.7rem;
    margin: 0;
    border: 0;
    border-top: solid 1px #979797;
    padding: 1em 1em 1em 2.75em;
    background-color: transparent;
    outline: 0;
    display: block;
    width: 100%;
    text-align: left;
    position: relative;
}
.collapsible button:focus {
    background-color: #efefef;
}
.collapsible > div {
    padding: 0 1em;
}
.collapsible h3 [aria-expanded]:before {
    background-image: url(img/spritesheet.png);
    background-position: -122px -198px; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
    width: 26px;
    height: 26px;
    position: absolute;
    content: "";
    left: 10px;
    top: 15px;
}
.collapsible h3 [aria-expanded="true"]:before {
    background-position: -148px -198px; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
}
.collapsible h3 + div,
.collapsible h3 + [aria-hidden] {
    display: none;
}
.collapsible h3 + [aria-hidden="false"] {
    display: block;
}
.collapsible.fons {
    border: none;
    margin-top: 1.5em;
}
.collapsible.fons h3 {
    margin-top: 0.5em;
}
.collapsible.fons button {
    border: none;
}
.collapsible.fons div {
    padding-bottom: 1em;
}
.contingut h2.b + .collapsible {
    margin-top: 1em !important;
}

/* ------------------------ */
/* Mòdul caixes amb imatges */
/* ------------------------ */
.module--caixes-img .caixes {
    line-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
#main .module--caixes-img li {
    padding-left: 0;
    margin: 0;
    background: none;
    /* outline: 2px solid fuchsia; */
    /* background: aqua; */
    flex: 0 1 calc(100% / 2 - 1rem);
}
@media screen and (min-width: 40em) {
    #main .module--caixes-img li {
        flex-basis: calc(100% / 3 - 1rem);
    }
}






#main .module--caixes-img .caixes.columns4 li h4 {
    /*font-size: 1.1875rem;*/
    font-size: 16px;

}
@media screen and (min-width: 40em) {
    #main .module--caixes-img .caixes.columns4 li {
        flex-basis: calc(100% / 4 - 1.2rem);
    }
}

#main .module--caixes-img .caixes.columns5 li h4 {
    font-size: 1.1875rem;
}
@media screen and (min-width: 40em) {
    #main .module--caixes-img .caixes.columns5 li {
        flex-basis: calc(100% / 5 - 1.2rem);
    }
}









.module--caixes-img .caixes a {
    display: block;
    max-width: 380px;
    overflow: hidden;
}
.module--caixes-img .caixes figure {
    display: block;
    position: relative;
    border: none;
    padding: 0;
    /* margin-bottom: 0.5em; */
    overflow: hidden;
    max-width: 380px;
}
.module--caixes-img .caixes figure img {
    margin: 0;
    width: 100%;
    transition: opacity 0.35s, transform 0.35s;
}
.module--caixes-img .caixes figcaption {
    position: absolute;
    bottom: 0;
    background: white;
    z-index: 3;
    max-width: 90%;
    padding-bottom: 1rem;
}
.module--caixes-img .caixes h2 {
    /* font-family: "Roboto Slab", serif; */
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    padding: 0.5em 1em 0.5em 0;
    text-transform: none;
    color: #941f2c;
}
.module--caixes-img .caixes a:hover img {
    transform: scale3d(1.15, 1.15, 1);
}

/* ------------------------------------ */
/* Mòdul caixes amb imatges desplegable */
/* ------------------------------------ */
.module--caixes-img-desplegable summary {
    list-style: none;
}
.module--caixes-img-desplegable summary::-webkit-details-marker {
    display: none;
}
.module--caixes-img-desplegable figure figcaption {
    width: 100%;
    max-width: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.module--caixes-img-desplegable summary figcaption {
    position: relative !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0;
    max-width: none !important;
}
.module--caixes-img-desplegable summary figcaption::after {
    display: block;
    content: '';
    background-image: url(img/spritesheet.png);
    background-position: -122px -198px; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
    width: 26px;
    height: 26px;
}
.module--caixes-img-desplegable details[open] summary figcaption::after {
    background-position: -148px -198px; /* Atenció: aquests valors canviaran si es generen de nou els sprites en el dev/scss/app.scss, i s'hauran d'actualitzar manualment */
}
.module--caixes-img-desplegable summary + div > * + * {
    margin-top: .5rem;
}    
.module--caixes-img-desplegable summary + div li {
    background: url(img/kland-1.png) 0 0.4em no-repeat !important;
    padding-left: 15px !important;
}

/* --------------------------------------------- */
/* Mòdul destacats amb botó i icona tipus slider */
/* --------------------------------------------- */
.module--destacats ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.module--destacats ul li {
    padding: 0 1.5rem;
    flex: 0 1 auto;
}
@media screen and (min-width: 35em) {
    .module--destacats ul li {
        flex-basis: 50%;
    }
}
@media screen and (min-width: 50em) {
    .module--destacats ul li {
        flex-basis: 33.33%;
    }
}
.module--destacats ul li > * {
    margin: 0;
}
.module--destacats ul li > * + * {
    margin-top: 1rem;
}
.module--destacats ul li::before {
    display: none;
}
.module--destacats .slide {
    padding: 0 1.5rem;
}
.module--destacats .slide > * {
    margin: 0;
}
.module--destacats .slide > * + * {
    margin-top: 1.5rem;
}
.module--destacats .slide img {
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
}
.module--destacats img:first-of-type {
    border-radius: 50%;
}
.module--destacats p img {
    border-radius: 0 !important;
}
.module--destacats h3 {
    line-height: 1.1;
    font-size: 2rem;
    /* font-weight: normal; */
}
.module--destacats .button {
    padding: 0.625em 1.4em;
    background-color: #fff;
    color: #707070;
    border: solid 1px #707070;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: normal;
    display: inline-block !important;
}
.module--destacats .button:hover {
    background-color: #707070;
    color: #fff;
}

/* ------------ */
/* Mòdul botons */
/* ------------ */
.module--btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.6rem;
}
.module--btns .btn-module {
    display: inline-block;
    border: 2px solid #908383;
    border-radius: 3.2rem;
    padding: 1.2rem 2.4rem;
    font-weight: bold;
    color: #908383 !important;
    text-decoration: none;
    margin: 0.5rem;
}
.module--btns .btn-module:hover,
.module--btns .btn-module:focus {
    color: #fff !important;
    background-color: #908383;
    border-color: inherit;
}
.module--btns .btn-module.external::after {
    display: none;
}
.module--btns-bg {
    background-color: #908383;
    padding: 2rem 0;
}
.module--btns-bg .btn-module {
    display: inline-block;
    border-color: #fff;
    color: #fff !important;
}
.module--btns-bg .btn-module:hover,
.module--btns-bg .btn-module:focus {
    color: #908383 !important;
    background-color: #fff;
}
.module--btns-img {
    background: #fff url("https://picsum.photos/1900/200") no-repeat;
    background-size: cover;
    padding: 2rem 0;
    position: relative;
}
.module--btns-img::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease-out;
}
.module--btns-img .btn-module {
    display: inline-block;
    border-color: #fff;
    color: #fff !important;
    position: relative;
    z-index: 1;
}
.module--btns-img .btn-module:hover,
.module--btns-img .btn-module:focus {
    color: #000 !important;
    background-color: #fff;
    border-color: #fff;
}

/* --------------------- */
/* Mòdul caixes amb text */
/* --------------------- */
.module--caixes-text .seccio-destacada {
    background-color: #ececec;
    padding: 2rem 0;
}
.module--caixes-text .seccio-destacada > div {
    width: 996px;
    max-width: 100%;
    margin: 0 auto;
}
#main .module--caixes-text .seccio-destacada > div ul {
    /* margin-top: 0;
    margin-left: -0.5rem;
    margin-right: -0.5rem; */
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
#main .module--caixes-text .seccio-destacada > div ul li {
    padding: 0;
    flex: 0 1 100%;
    background-image: none;
    margin: 0;
    flex: 0 1 calc(100% / 2 - 1rem);
}
@media screen and (min-width: 40em) {
    #main .module--caixes-text .seccio-destacada > div ul li {
        flex-basis: calc(100% / 3 - 1rem);
    }
}
.module--caixes-text .seccio-destacada li > a,
.module--caixes-text .seccio-destacada div.caixa {
    height: 100%;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease-out;
    display: block;
    position: relative;
    min-height: 225px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24), 0 0 2px rgba(0, 0, 0, 0.12);
    margin: 0;
    padding: 2rem;
}
.module--caixes-text .seccio-destacada li > a:hover,
.module--caixes-text .seccio-destacada div.caixa:hover {
    box-shadow: -1px 5px 25px -5px rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -2px, 0);
}
.module--caixes-text .seccio-destacada li > a .titol,
.module--caixes-text .seccio-destacada div.caixa .titol {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: bold;
    color: #90282a;
    margin-bottom: 0.75rem;
}
.module--caixes-text .seccio-destacada li > a .text,
.module--caixes-text .seccio-destacada div.caixa .text {
    position: absolute;
    bottom: 2rem;
}
.module--caixes-text .seccio-destacada li > a:active,
.module--caixes-text .seccio-destacada div.caixa:active,
.module--caixes-text .seccio-destacada li > a:focus,
.module--caixes-text .seccio-destacada div.caixa:focus {
    background-color: #fff;
    border: 0;
}
.module--caixes-text li {
    margin-top: 0;
    margin-bottom: 0;
}
.module--caixes-text-bg .seccio-destacada {
    background-color: transparent;
    padding: 0;
}
.module--caixes-text-bg li > a,
.module--caixes-text-bg li div.caixa {
    background-color: #ececec;
}
.module--caixes-text-img .seccio-destacada {
    background-color: transparent;
    padding: 0;
}
.module--caixes-text-img li > a,
.module--caixes-text-img li div.caixa {
    background: #fff url("https://picsum.photos/400/300") no-repeat;
    background-size: cover;
}
.module--caixes-text-img li > a::before,
.module--caixes-text-img li div.caixa::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease-out;
}
.module--caixes-text-img li > a div,
.module--caixes-text-img li div.caixa div {
    color: #fff !important;
    z-index: 1;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.5);
}
.module--caixes-text-img li > a div.titol,
.module--caixes-text-img li div.caixa div.titol,
.module--caixes-text-img li > a div.subtitol,
.module--caixes-text-img li div.caixa div.subtitol {
    position: relative;
}
.module--caixes-text-img li > a:hover::before,
.module--caixes-text-img li div.caixa:hover::before {
    background-color: rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------- */
/* Contingut dels mòduls en una sola columna */
/* ----------------------------------------- */
div:not(.nine.columns) > .module--full-bleed,
div:not(.nine.columns) > .module--btns,
div:not(.nine.columns) > .module--slider .slider-container,
div:not(.nine.columns) > .module--destacats .slider-container,
div:not(.nine.columns) > .module--caixes-text .seccio-destacada {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
@media screen and (min-width: 40em) {
    .module--caixes-text .seccio-destacada > div > div {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        float: left;
        margin-left: auto;
        margin-right: auto;
    }
}

.module--text table {
    width: 100%;
}

.module--text h3 {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 400;
    font-size: 26px;
}

.module--text h4 {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 400;
    font-size: 21px;
}










.module--caixes-colors .caixes-colors{
    /*@include block-grid(1);
    @media #{$tablet-up} {
      @include block-grid(3);
    }*/
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.module--caixes-colors .caixes-colors.b{
    /*@media #{$medium-up} {
    @include block-grid(4);
    }*/
}
.module--caixes-colors .caixes-colors.c{
    /*@media #{$medium-up} {
    @include block-grid(5);
    }*/
}

.module--caixes-colors .caixes-colors h2{
    margin: 0;
    text-transform: none;
}

.module--caixes-colors .caixes-colors a{
    min-height: 200px;
    display: block;
    color:#fff;
    position:relative;
    padding:40px 20px;
    word-break: break-word;

    width: 100%;
    overflow:hidden;
    transition: all .3s ease-out;
    background-color:#90282a;
    text-align: center;
    /*@media #{$tablet-up} {
        min-height: 200px;
    }*/
}

.module--caixes-colors .caixes-colors a:before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:1%;
    height: 4px;
    transition: all .3s ease-out;
    background-color:#90282a;
    background-image: none;
}
.module--caixes-colors .caixes-colors a:after{
    content:'';
    position:absolute;
    bottom:0;
    left:101%;
    width:100%;
    height: 4px;
    transition: all .3s ease-out;
    background-color:#90282a;
    background-image: none;
}

.module--caixes-colors .caixes-colors a span{
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width:100%;
    font-size: 1.6875rem;
    font-weight: 700;
    line-height: 1.3;
    transform: translate(-50%, -50%);
    padding: 0 1em;
    /*@media #{$medium-up} {
        font-size: rem-calc(23);
    }
    @media #{$large-up} {
        font-size: rem-calc(27);
    }*/
}

.module--caixes-colors .caixes-colors li{
    background: none!important;
    padding-left: 0!important;
    margin-bottom: 1em!important;
    flex-basis: calc(100% / 2 - 1rem);
}

@media screen and (min-width: 40em) {
    .module--caixes-colors .caixes-colors li {
        flex-basis: calc(100% / 3 - 1rem);
    }
    .module--caixes-colors .caixes-colors.b li{

        flex-basis: calc(100% / 4 - 1.2rem);
    }

    .module--caixes-colors .caixes-colors.c li{

        flex-basis: calc(100% / 5 - 1.2rem);
    }
}




.module--caixes-colors .caixes-colors li:nth-child(8n+2) a{
    background-color:#C6853E;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+2) a:before,.module--caixes-colors .caixes-colors li:nth-child(8n+2) a:after{
    background-color:#C6853E;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+3) a{
    background-color:#cf613a;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+3) a:before,.module--caixes-colors .caixes-colors li:nth-child(8n+3) a:after{
    background-color:#cf613a;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+4) a{
    background-color:#883057;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+4) a:before,.module--caixes-colors .caixes-colors li:nth-child(8n+4) a:after{
    background-color:#883057;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+5) a{
    background-color:#4d355b;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+5) a:before,.module--caixes-colors .caixes-colors li:nth-child(8n+5) a:after{
    background-color:#4d355b;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+6) a{
    background-color:#0e9698;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+6) a:before,.module--caixes-colors .caixes-colors li:nth-child(8n+6) a:after{
    background-color:#0e9698;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+7) a{
    background-color:#559D6A;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+7) a:before,.module--caixes-colors .caixes-colors li:nth-child(8n+7) a:after{
    background-color:#559D6A;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+8) a{
    background-color:#31446b;
}
.module--caixes-colors .caixes-colors li:nth-child(8n+8) a:before,.module--caixes-colors .caixes-colors li:nth-child(8n+8) a:after{
    background-color: #31446b;
}
.module--caixes-colors .caixes-colors li a:hover{
    background-color:#fff;
    color:#000;
}
.module--caixes-colors .caixes-colors li a:before{
    width:100%;
}
.module--caixes-colors .caixes-colors li a:after{
    left:0;
}

/* --------------- */
/* Mòduls columnes */
/* --------------- */
.module--columns > * + * {
    margin-top: 0;
}

@media screen and (min-width: 30em) {
    .module--columns-2 {
        display: flex;
        gap: 1.5rem;
        /* align-items: flex-start; */
    }
    
    .module--columns-2 > div {
        flex-basis: 50%;
    }

    .module--columns-2-3 > div:first-child {
        flex-basis: 40%;
    }
    
    .module--columns-2-3 > div:last-child {
        flex-basis: 60%;
    }

    .module--columns-3-2 > div:first-child {
        flex-basis: 60%;
    }
    
    .module--columns-3-2 > div:last-child {
        flex-basis: 40%;
    }
}

@media screen and (min-width: 40em) {
    .module--columns-4-1 > div:first-child {
        flex-basis: 75%;
    }
    
    .module--columns-4-1 > div:last-child {
        flex-basis: 25%;
    }

    .module--columns-1-4 > div:first-child {
        flex-basis: 25%;
    }
    
    .module--columns-1-4 > div:last-child {
        flex-basis: 75%;
    }

    .module--columns-3 {
        display: flex;
        gap: 1.5rem;
        /* align-items: flex-start; */
    }
    
    .module--columns-3 > div {
        flex-basis: calc(100% / 3);
    }

    .module--columns-1-2-1 > div:first-child {
        flex-basis: 25%;
    }
    
    .module--columns-1-2-1 > div:nth-child(2) {
        flex-basis: 50%;
    }
    
    .module--columns-1-2-1 > div:last-child {
        flex-basis: 25%;
    }

    .module--columns-2-1-1 > div:first-child {
        flex-basis: 50%;
    }
    
    .module--columns-2-1-1 > div:nth-child(2) {
        flex-basis: 25%;
    }
    
    .module--columns-2-1-1 > div:last-child {
        flex-basis: 25%;
    }

    .module--columns-1-1-2 > div:first-child {
        flex-basis: 25%;
    }
    
    .module--columns-1-1-2 > div:nth-child(2) {
        flex-basis: 25%;
    }
    
    .module--columns-1-1-2 > div:last-child {
        flex-basis: 50%;
    }
}

@media screen and (min-width: 45em) {
    .module--columns-2-2-1 > div:first-child {
        flex-basis: 40%;
    }
    
    .module--columns-2-2-1 > div:nth-child(2) {
        flex-basis: 40%;
    }
    
    .module--columns-2-2-1 > div:last-child {
        flex-basis: 20%;
    }

    .module--columns-2-1-2 > div:first-child {
        flex-basis: 40%;
    }
    
    .module--columns-2-1-2 > div:nth-child(2) {
        flex-basis: 20%;
    }
    
    .module--columns-2-1-2 > div:last-child {
        flex-basis: 40%;
    }

    .module--columns-1-2-2 > div:first-child {
        flex-basis: 20%;
    }
    
    .module--columns-1-2-2 > div:nth-child(2) {
        flex-basis: 40%;
    }
    
    .module--columns-1-2-2 > div:last-child {
        flex-basis: 40%;
    }
}

@media screen and (max-width: calc(30em - 1px)) {
    /* Espai vertical en mòbil */
    .module--columns-2 > div + div {   
        margin-top: 1.5rem;
    }
    /* Margin per al fons de color en mòbil */
    .module--columns-2 > div[style*="background-color"] {
        margin: 1.5rem 0;
    }
}

@media screen and (max-width: calc(40em - 1px)) {
    /* Espai vertical en mòbil */
    .module--columns-3 > div + div {
        margin-top: 1.5rem;
    }
    /* Margin per al fons de color en mòbil */
    .module--columns-3 > div[style*="background-color"] {
        margin: 1.5rem 0;        
    }
}

.module--columns-black-text > * {
    color: #000;
}
.module--columns-white-text > * {
    color: #fff;
}

.module--columns > div[style*="background-color"] {
    padding: 1rem 1.5rem;
}

.module--columns > div > * {
    margin: 0;
}

.module--columns > div > * + * {
    margin-top: 1rem;
}

.module--columns .iframe-wrapper {
    aspect-ratio: 16/9;
}

.module--columns .iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------ */
/* Mòdul Agenda */
/* ------------ */
.module--agenda {
    background-color: #f0f0f0;
    padding: 30px 0;
    position: relative;
}
.module--agenda::before,
.module--agenda::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200%;
    background-color: inherit;
}
.module--agenda::before {
    left: -200%;
}
.module--agenda::after {
    right: -200%;
}
.module--agenda > div > div {
    width: 100%;
}
.module--agenda > div > div > div {
    padding: 0 15px;
}
.module--agenda div:has(>h2) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #c1c1c1;
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
}
.module--agenda .totes {
    color: #222;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.module--agenda .totes:hover {
    text-decoration: underline;
    color: #941f2c;
}
.module--agenda .totes::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle fill='%23941F2C' cx='11' cy='11' r='11'/%3E%3Crect fill='%23FFF' x='10' y='5' width='2' height='12' rx='1'/%3E%3Crect fill='%23FFF' transform='rotate(90 11 11)' x='10' y='5' width='2' height='12' rx='1'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
}
.module--agenda ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 15px;
}
.module--agenda li {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    background-image: none !important;
}
.module--agenda .data {
    padding: 10px 5px;
    color: #fff;
    background-color: #941f2c;
    text-align: center;
    width: 30%;
    flex-shrink: 0;
}
.module--agenda .data span {
    display: block;
    line-height: .95;
}
.module--agenda .data .dia__setmana {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}
.module--agenda .data .dia {
    font-size: 28px;
    margin:0.2em 0;
    font-weight: bold;
}
.module--agenda .data.mes {
    font-size: 11px;
    text-transform: uppercase;
}
.module--agenda .text p {
    margin: 0;
    font-size: 13px;
}
.module--agenda .text h3 {
    font-size: 20px;
    margin-bottom: .5rem;
    margin-top: .2rem;
    font-weight: 700;
}
.module--agenda .text h3 a {
    color: #3a3a3a;
    word-break: break-word;
}
.module--agenda .text h3 a:hover {
    color: #941f2c;
}
@media screen and (min-width: 60em) {
    .module--agenda li {
        width: calc((100% / 3) - 2rem + (2rem / 3));
    }
    .module--agenda .data .dia {
        font-size: 53px;
        margin:0;
    }
}