@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

/*
color: #414141;
background-color: #918BB6;
background-color: #F1F1F1;
color: #5D3A95;
border-bottom: 2px solid #FFD600;
*/

main {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}
main nav {
	width: 100%;
	margin: auto;
	padding: 0.5rem;
	border-bottom: 4px dotted #FFD600;
	font-size: 1rem;
	font-weight: 600;
	background-color: #FFF;
	position: -webkit-sticky;
    position: sticky;
    top: 3.3rem;
    z-index: 600;
}
main nav a:link, main nav a:visited {
	text-decoration: none;
	color: #5D3A95;
}
main nav a:hover {
	color: #FFD600;
}
main h2 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-top: 3rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0rem;
    line-height: 3.3rem;
    color: #5D3A95;
    width: 100%;
}
main h3 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.8rem;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0rem;
	margin-bottom: 1rem;
}

section.contenidor {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
	padding: 0.5rem;
	border-top: 2px solid #5D3A95;
	margin-top: 1rem;
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
	background-color: #F2F2F2;
 }
section.contenidor.excursions {
	background-color: #EEE5F4;
}
section.contenidor div.entitat, 
section.quotes div.entitat {
	width: 100%;
	margin-bottom: 0.5rem;
}
section.contenidor div.entitat h4, 
section.quotes div.entitat h4 {
	font-size: 2rem;
	font-weight: 600;
	line-height: 2.2rem;
	color: #5D3A95;
	padding: 0rem;
	margin: 0rem;
}
section.contenidor div.entitat h4 span {
	font-weight: 300;
}
section.contenidor div.descripcio {
	background-color: #FFF;
    flex: 1 0 23%; /* Para cuatro celdas en una fila en pantallas grandes */
    padding: 1rem; /* Ajusta el espaciado interior */
    box-sizing: border-box; /* Incluye el padding en el ancho total */
    text-align: left;
	margin: 0.5em;
}
section.contenidor div.descripcio a {
	word-break: break-all; /* Rompe la palabra en cualquier punto */
	color: #5D3A95;
	font-weight: 600;
	text-decoration: none;
}
section.contenidor div.descripcio h4 {
	font-size: 2rem;
    line-height: 2rem;
	margin: 0rem;
	padding: 0rem;
	color: #5D3A95;
}
section.contenidor div.descripcio p.titol {
	font-weight: 600;
    padding-top: 0.5rem;
}
section.contenidor div.descripcio h5 {
	font-weight: 600;
	font-size: 1.2rem;
	padding: 0rem;
	margin: 0rem;
}
section.contenidor div.descripcio p.compte {
	font-weight: 600;
	font-size: 1.5rem;
	color: #FF0004;
}

/*quotes*/
section.quotes {
    width: 80%;
	padding: 0.5rem;
	border-top: 2px solid #5D3A95;
	margin-top: 1rem;
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
	background-color: #F2F2F2;
}
section.quotes div.categoria table {
	border-collapse: collapse;
	display: inline-block;
	white-space: nowrap;
	margin-right: -5px;
	background-color: #FFF;
}
section.quotes div.categoria table.segona tr td:nth-child(1),
section.quotes div.categoria table.tercera tr td:nth-child(1),
section.quotes div.categoria table.quarta tr td:nth-child(1),
section.quotes div.categoria table.segona tr th:nth-child(1),
section.quotes div.categoria table.tercera tr th:nth-child(1),
section.quotes div.categoria table.quarta tr th:nth-child(1) {
	display: none;
}
section.quotes div.categoria table thead tr {
	text-align: center;
	background-color: #F2F2F2;
}
section.quotes div.categoria table thead tr th {
	font-weight: 300;
	line-height: 0.8rem;
	padding-bottom: 0.5rem;
}
section.quotes div.categoria table thead tr th span {
	font-size: 0.6rem;
}
section.quotes div.categoria table tbody tr th,
section.quotes div.categoria table tbody tr td {
	padding: 0.3rem;
	border: 1px solid #918BB6;
}
section.quotes div.categoria table tbody tr td:nth-child(1) {
	text-align: left;
}
section.quotes div.categoria table tbody tr th {
	text-align: left;
	color: #FFF;
	background-color: #918BB6;
}
section.quotes div.categoria table tbody tr td:nth-child(2) {
	text-align: right;
	width: 8rem;/*5rem per a les tauletes*/
}

@media only screen and (min-width: 981px) and (max-width: 1153px) {
	/*per quan el nav principal fa dues línies (abans de les tauletes)*/
    main nav {
   		top: 7.8rem;
	}
}

@media only screen and (min-width: 481px) and (max-width: 980px) {
        
    main {
        box-sizing: border-box;
        width: 100%;
    }
        main nav {
        width: 20rem;;
        top: 3.25rem;
        text-align: right;
        margin-right: 0.5rem;
        margin-left: calc(100%-19.5rem);
		line-height: 1.1rem;
    }	
	
	/*menu******************/
    header.headermenu nav {
        display: none;
    }
    header.headermenu div.mobilmenu {
        display: block;
        padding: 0.5rem;
        background-color: #B1A2FF;
        color: #FFF;
        font-size: 1.5rem;
    }
    header.headermenu nav {
        background-color: #F2F2F2;
        text-align: left;
        width: 90%;
        padding-left: 0.5rem;
    }
    header.headermenu nav ul li {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem;
    }
    header.headermenu nav ul li.socis {
        background-color: #B1A2FF;
    }
    header.headermenu nav ul li a:link, header.headermenu nav ul li a:visited {
        color: #5D3A95;
    }
    header.headermenu nav ul li a:hover {
        border-bottom: 2px solid #5D3A95;
    }
	
	section.contenidor, section.quotes {
		width: 90%;
	}
	section.contenidor div.descripcio {
        flex: 1 0 47%; /* Para cuatro celdas en una fila en pantallas grandes */
    }
	
    section.quotes div.categoria table tbody tr td:nth-child(2) {
        text-align: right;
        width: 4rem;/*5rem per a les tauletes*/
    }
}


@media only screen and (max-width: 480px) {
    
	main {
        box-sizing: border-box;
        width: 100%;
    }
        main nav {
        width: 10rem;;
        top: 3.25rem;
        text-align: right;
        margin-right: 0.5rem;
        margin-left: calc(100%-9.5rem);
		line-height: 1.1rem;
    }	
    
    /*contenidor del logo i el lema amb la il·lustracio de fondo*/
    div.imgcaixa div.imglogo img {
        width: 90%;
    }
    div.imgcaixa div.lema h3 {
        font-size: 2.5rem;
    }
    
        /*menu******************/
    header.headermenu nav {
        display: none;
    }
    header.headermenu div.mobilmenu {
        display: block;
        padding: 0.5rem;
        background-color: #B1A2FF;
        color: #FFF;
        font-size: 1.5rem;
    }
    header.headermenu nav {
        background-color: #F2F2F2;
        text-align: left;
        width: 90%;
        padding-left: 0.5rem;
    }
    header.headermenu nav ul li {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem;
    }
    header.headermenu nav ul li.socis {
        background-color: #B1A2FF;
    }
    header.headermenu nav ul li a:link, header.headermenu nav ul li a:visited {
        color: #5D3A95;
    }
    header.headermenu nav ul li a:hover {
        border-bottom: 2px solid #5D3A95;
    }
	
	section.contenidor, section.quotes {
		width: 90%;
	}
    section.contenidor div.descripcio {
        flex: 1 0 97%; /* Para cuatro celdas en una fila en pantallas grandes */
    }
	section.contenidor div.buida {
		display: none;
	}
	
    
    section.quotes div.categoria table {
        display: block;
        white-space: inherit;
        margin-right: auto;
		margin-left: auto;
		margin-bottom: 2rem;
		width: 100%;
    }
	
	section.quotes div.categoria table.segona tr td:nth-child(1),
    section.quotes div.categoria table.tercera tr td:nth-child(1),
    section.quotes div.categoria table.quarta tr td:nth-child(1),
    section.quotes div.categoria table.segona tr th:nth-child(1),
    section.quotes div.categoria table.tercera tr th:nth-child(1),
    section.quotes div.categoria table.quarta tr th:nth-child(1) {
        display: block;
    }
    section.quotes div.categoria table tbody tr td:nth-child(2) {
        text-align: right;
        width: 100%;/*5rem per a les tauletes*/
    }
	section.quotes div.categoria table thead tr th {
        font-size: 1rem;
		line-height: 1.2rem;
		font-weight: 600;
	}
	section.quotes div.categoria table thead tr th span {
        font-size: 1rem;
    }

}




