@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

html {
	scroll-behavior: smooth;
}
* {
	box-sizing: border-box;
	padding: 0rem;
	margin: 0rem;
}
body {
    font-family: "IBM Plex Sans", Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #414141;
    font-style: normal;
    font-weight: 300;
    text-align: center;
    background-color: #EBE3F2;
}
div#menu-mobil {
    display: none;
}

/*contenidor del logo i el lema amb la il·lustracio de fondo*/
div.caixaimg {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 0px;
    position: relative;
}
div.caixaimg div.logo-mobil {
	display: none;
}
div.caixaimg img.imgcapsalera {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; 
}
div.logoaplec {
    position: absolute;
    top: 3rem;
    right: calc(50% - 5rem);
    z-index: 300;
}
div.logoaplec img {
    width: 15rem;
}
div.lema {
    position: absolute;
    /*right: calc(20% + 120px);*/
    bottom: 1rem;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}
div.lema h1 {
    font-weight: 300;
    font-size: 3rem;
    text-align: center;
    line-height: 3.2rem;
    font-style: oblique;
    color: white;
    z-index: 400;
}
div.lema h3 span {
	font-weight: 600;
}

/*menu pegatina*/
header.headermenu {
    position: -webkit-sticky;
    position: sticky;
    top: 0rem;
    z-index: 500;
}
header.headermenu nav#navmenu {
    display: block;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background-color: rgb(91,52,139);
    color: #ffffff;
}
nav div.divmenu {
    display: inline-block;
    position: relative;
    padding: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}
nav div.divmenu h3,
nav div.divmenu ul li {
    font-size: 1.1rem;
}
nav div.divmenu a:link,
nav div.divmenu a:visited {
    color: white;
    text-decoration: none;
}
nav div.divmenu a:hover {
    /*border-bottom: 2px solid white;*/
    color: #feeb5c;
}
nav ul {
    display: none;
    margin: 0rem;
    padding: 0.5rem;
    position: absolute;
    top: 2.5rem;
    left: 0.5rem;
    text-align: left;
    font-weight: 600;
    background-color: rgba(107, 63, 154, 0.9);
    /*width: 18rem;*/
}
nav ul li {
    width: fit-content;
    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-weight: 400;
    list-style-type: none;
}
strong {
    font-weight: 600;
}

@media only screen and (min-width: 481px) and (max-width: 980px) {

	div.logoaplec img {
    	width: 10rem;
	}    
}
@media only screen and (max-width: 480px) {
    
    div#menu-mobil {
        position: -webkit-sticky;
        position: sticky;
        display: block;
        top: 0rem;
        padding: 1rem;
        color: white;
        z-index: 500;
        text-align: right;
    }
    div#menu-mobil img {
        width: 2.5rem;
    } 
     
	div.caixaimg div.logo-mobil {
		display: block;
		position: absolute;
		left: 15%;
		bottom: 3rem;
		width: 70%;
	}
    div.logoaplec {
        display: none;
    }     
    div.lema {
        display: none;
    }

    header.headermenu {
        position: fixed;
        top: 0rem;
        z-index: 400;
        width: 100%;
        text-align: left;
    }    
    header.headermenu nav#navmenu {
        display: none;
        padding-top: 3rem;
        padding-left: 0rem;
        margin-left: 0rem;
    }
    nav div.divmenu {
        display: block;
        position: inherit;
        margin-left: 0rem;
    }

    nav div.divmenu ul li {
        font-size: 0.9rem;
    }
    nav ul {
        position: inherit;
    }
    nav ul li a {
        white-space: wrap;
    }
}
    
