@font-face {
    font-family: 'Atyp Display Bold';
    src: url('../fonts/AtypDisplay-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: 'Atyp Display Medium';
    src: url('../fonts/AtypDisplay-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: 'Atyp Display Regular';
    src: url('../fonts/AtypDisplay-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: 'Domaine Display regular italic';
    src: url('../fonts/DomaineDispNar-RegularItalic.otf') format('truetype');
    font-style: normal;
    font-weight: normal;
}
b,strong {
    font-family: 'Atyp Display Bold','Roboto', sans-serif;
    font-weight: normal;
}


/* General*/
body {
    font-family: 'Atyp Display Regular','Roboto', sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    grid-template-areas:
    'header '
    'main'
    'footer';
    height: 100vh;
    font-size: 14px;
}


header {
    grid-area: header;
}

main {
    grid-area: main;
}

footer {
    grid-area: footer;
}


a {
    color: black;
    text-decoration: none;
}
svg {
    height: 18px;
}
.link-underline {
    background-position: left bottom;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 1s ease-out;
}
.link-underline.link-lectura,
.evento-lectura .link-underline {
    background-image: linear-gradient(#009A44, #009A44);
}
.link-underline.link-teatre,
.evento-teatre .link-underline {
    background-image: linear-gradient(#CB3888, #CB3888);
}
.link-underline.link-art,
.evento-art .link-underline {
    background-image: linear-gradient(#0085CA, #0085CA);
}
.link-underline.link-cinema,
.evento-cinema .link-underline {
    background-image: linear-gradient(#FEDD00, #FEDD00);
}
.link-underline.link-musica,
.evento-musica .link-underline {
    background-image: linear-gradient(#FF671F, #FF671F);
}
.link-underline.link-patrimoni,
.evento-patrimoni .link-underline {
    background-image: linear-gradient(#DA293C, #DA293C);
}

.evento- .link-underline {
    background-image: linear-gradient(#7022C4, #7022C4);
}

.headerColor0 {
    background: #FEDD00 !important;
}
.headerColor1 {
    background: rgba(255,103,31,1) !important;
}
.headerColor2 {
    background: rgba(218,41,60,1) !important;

}
.headerColor3 {
    background: rgba(230,56,136,1) !important;

}
.headerColor4 {
    background: rgb(169, 122, 219) !important;

}
.headerColor5 {
    background: rgba(0,133,202,1) !important;

}
.headerColor6 {
    background: rgba(0,154,68,1) !important;

}

.bi::before, [class*=" bi-"]::before, [class^=bi-]::before {
    vertical-align: -0.250em;
}

a:hover .link-underline,
.link-underline:hover {
    background-size: 100% 2px;
    text-decoration: none;
    display: inline;
}

.link-underline.select {
    background-size: 100% 2px;
}
a.fadein:hover img,
a:hover .card img {
    transform: scale(110%);
}

.contingut-img{
    text-align: center;
}

iframe {
    width: 100%;
    /*padding: 10px 30%;*/
}

img {
    max-width: 100%;
}

.btn {
    border: 1px solid;
    border-radius: 0px;
    font-family: 'Atyp Display Bold', 'Roboto', sans-serif;

}
.btn:hover {
    border: 1px solid;
    background: #FEDD00;
}

.card {
    border: 0px;
    height: 100%;
}
.card .card-text {
    padding-top: 10px;
}
.card .card-text .date {
    font-family: 'Atyp Display Bold', 'Roboto', sans-serif;
}
.card .card-text .buttons {
    padding: 10px;
    text-align: center;
}

.card .card-image {
    overflow: hidden;
    text-align: center;

}
.card .card-img-top {
    padding: 20px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    transition: 1s;
    border-radius: 0px;
}
.card .card-title {
    font-size: 1.5rem;
    font-family: 'Atyp Display Bold', 'Roboto', sans-serif;
    line-height: 2rem;
    display: inline;
}
.card .card-content {
    padding: 30px;
}

.card .peu-imatge {
    display: flex;
    justify-content: space-between;
    font-family: 'Atyp Display Bold', 'Roboto', sans-serif;
    font-size: 0.9rem;
    padding-bottom: 10px;
}
.card .peu-imatge > div:last-child {
    text-align: right;
}

.list-group-item {
    background: inherit;
}

.llistat {
    display: flex;
    flex-wrap: wrap;
    gap:20px; 
    padding: 10px;
    justify-content: center;
}
.llistat .item-llistat {
    width: 100%;
    opacity: 1;
    transform: scale(100%);
    transition: 1s;
}


.item-llistat.no-destacat {
    opacity: 0.2;
    transform: scale(75%);
}

.filariadna {
    padding-top: 10px;
    padding-left: 10px;
    --bs-breadcrumb-divider: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-arrow-right' viewBox='0 0 16 11'> <path fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8'/> </svg>");
}

.truncate4lines {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: black;
}
.filtre .filtres-detall {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

input.filtra {
    border: 2px solid black;
    text-align: center;
    padding: 5px;
    width: 100%;
}

form.filtres-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
form.filtres-form .input-filter {
    display: flex;
}
.btn-black {
    display: block;
    background: black;
    color: white;
    margin: 0px;
    padding: 9px 10px;
    border: 0px;
    line-height: 14px;
}
.btn-black:hover {
    background: #333;
}
@media only screen and (min-width: 601px)
{ /*Mida M */

    .llistat .item-llistat.items-3,
    .llistat .item-llistat.items-4 {
        width: calc(50% - 10px);
    }

    .llistat .item-llistat.ocult-m,
    .llistat .item-llistat.items-3.extra {
        display:none
    }

}
@media only screen and (min-width: 992px)
{ /*Mida L */

    .llistat .item-llistat.items-3 {
        width: calc(33.33% - 20px);
    }

    .llistat .item-llistat.items-4 {
        width: calc(25% - 20px);
    }

    .llistat {
        padding: 20px 0px 20px 20px;
    }

    .llistat .item-llistat.ocult-l {
        display:none
    }
    .llistat .item-llistat.items-3.extra {
        display: block;
    }
    body {
        font-size: 16px;
    }
    .filariadna {
        padding-left: 85px;
    }
}

@media only screen and (min-width: 1201px) /* Mida XL*/
{
    .llistat .item-llistat.ocult-xl {
        display:none
    }
    .llistat {
        gap: 50px; 
        padding: 50px 0px 50px 50px;
    }

    .llistat .item-llistat.items-3 {
        width: calc(33.33% - 50px);
    }

    .llistat .item-llistat.items-4 {
        width: calc(25% - 50px);
    }
}