:root {
    --orange: #e56526;
    --green_canta: #3B8622;
    --green_canta_clar: #41a62a;
    --red_cuina: #822324;
    --green_poesia: #005543;
}
a {
	color: inherit;
}
a:hover {
	text-decoration: none;
	color: #f1f1f1;
}
body {
	background-color: #f1f1f1;
}
.topMenu ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	border-top: 4px solid var(--red_cuina);
}
.topMenu ul li {
	padding: 0.6rem 1rem;
	position: relative;
		@media (width < 420px) {
			padding: 0.6rem 0.5rem;
		}
}
.topMenu ul li img {
	width: 24px;
	border-radius: 50%;
	vertical-align: top;
	margin-left: 0.25rem; 
		@media (width < 320px) {
			display: none;
		}
}
.topMenu ul li a {
	text-decoration: none;
	font-size: 18px;
	line-height: 18px;
	font-weight: bold;
		 &:hover { text-decoration: underline; }
}
.topMenu ul .link_home a {
	color: var(--orange);
}
.topMenu ul .link_canta a {
	color: var(--green_canta);
}
.topMenu ul .link_cuina a {
	color: var(--red_cuina);
}
.topMenu ul .link_poesia a {
	color: var(--green_poesia);
}
header {
	position: relative;
	width: 100%;
	padding: 1rem 0.5rem;
	background-color: var(--red_cuina);
}
header h1 {
	font-family: 'Josefin Sans', sans-serif;
	color: #f1f1f1;
	font-size: 4rem;
	text-align: center;
	text-shadow: 5px 5px 5px #222;
}

@media (max-width: 992px) {
	header h1 {
		font-size: 3rem;
	}
}
@media (max-width: 767px) {
	header h1 {
		font-size: 2.2rem;
	}
	.navbar-nav {
	    margin-top: 1rem;
	}
}
.navbar-light .navbar-toggler {
	/*background-color: var(--red_cuina);*/
	border-color: var(--red_cuina);
}
nav.navbar { position: sticky; top:0; z-index: 100; box-shadow: 0 0 12px 0 rgba(0,0,0,0.3); }
.navbar li.nav-item {
	padding: 0 0.7rem;
	margin: 0 0.2rem;
}
@media (min-width: 768px) and (max-width: 850px) {
	.navbar li.nav-item {
	    padding: 0 0.5rem;
	    margin: 0;
	}
}

/*////*/
#inici .menu-inici, #primers .menu-primers, #segons .menu-segons, #postres .menu-postres, #salses .menu-salses { 
	background-color: var(--red_cuina); 
	position: relative;
}
#inici .menu-inici:before, #primers .menu-primers:before, #segons .menu-segons:before, #postres .menu-postres:before, #salses .menu-salses:before { 
	position: absolute;
	content: "";
	bottom: -6px;
	left: calc(50% - 6px);
	transform: rotate(45deg);
	width: 12px;
	height: 12px;
	background-color: var(--red_cuina);
}
#inici .menu-inici a, #primers .menu-primers a, #segons .menu-segons a, #postres .menu-postres a, #salses .menu-salses a {
	color: #fff !important 
}
/*////*/

.navbar li.nav-item:hover {
	background-color: var(--red_cuina);
	position: relative;
}
/* .navbar li.nav-item:hover:before {
	position: absolute;
	content: "";
	bottom: -6px;
	left: calc(50% - 6px);
	transform: rotate(45deg);
	width: 12px;
	height: 12px;
	background-color: var(--red_cuina);
} */
.navbar li.nav-item:hover a {
	color: #fff !important;
}

.row.fitxa {
    border-top: 1px solid var(--red_cuina);
    border-bottom: 1px solid var(--red_cuina);
}
#nav1.nav-pills .nav-link {
    margin-right: -5px; 
    /*margin-bottom: -1px;*/
    border-radius: 0.5rem 0.5rem 0 0;    
    border: 1px solid transparent;
 }
#nav1.nav-pills .nav-link.active, #nav1.nav-pills .show>.nav-link, #nav1.nav-pills .nav-link:hover {
    background-color: var(--red_cuina);
    border-color: #f1f1f1 #f1f1f1 var(--red_cuina);
}
#nav2.nav-pills .nav-link {
    margin-right: -5px; 
    /*margin-top: -1px;*/
    border-radius: 0 0 0.5rem 0.5rem;    
    border: 1px solid transparent;
}
#nav2.nav-pills .nav-link.active, #nav2.nav-pills .show>.nav-link, #nav2.nav-pills .nav-link:hover {
    background-color: var(--red_cuina);
    border-color: var(--red_cuina) #f1f1f1 #f1f1f1 ;
}

.subtitle {
	background: rgba(200,200,200,1);
	padding: 1.25rem 0;
	margin-bottom: 2rem;
	text-align: center;
}
.subtitle h2 {
	font-family: 'Josefin Sans', sans-serif;
	color: var(--red_cuina);
	font-weight: bold;
	margin: 0;
}

.unit {
	padding: 0 1.5rem;
	margin-top: 1.5rem;
}
.primers, .segons, .postres, .salses {
	height: 300px;
	background-color: yellow;
	border-radius: 2rem;
}
.primers {
	background: url('../images/Escudella.gif') no-repeat center center;
	background-size: cover;
}
.segons {
	background: url('../images/Cassoleta de peix.gif') no-repeat center center;
	background-size: cover;
}
.postres {
	background: url('../images/Clafotis.gif') no-repeat center center;
	background-size: cover;
}
.salses {
	background: url('../images/Romesco.gif') no-repeat center center;
	background-size: cover;
}
.primers h3, .segons h3, .postres h3, .salses h3 {
	font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;	
	height: 80px;
	width: 100%;
	margin: 0;
    text-align: center;
    line-height: 80px;
    color: white;
	background-color: var(--red_cuina);    
    opacity: 0.7;
	transition: all 1s ease;    
}
.primers:hover h3, .segons:hover h3, .postres:hover h3, .salses:hover h3 {
	height: 300px;
	border-radius: 2rem;
	font-size: 3rem;
	line-height: 300px;
}

.book {
	margin-top: 4rem;
	background: rgba(200,200,200,0.5);
	padding: 2rem 0;
	text-align: center;
}
.book p {
	color: var(--red_cuina);
	font-size: 1.5rem;
	margin: 0;
}
@media (max-width: 767px) {
	.book p {
		font-size: 1rem;
	}
}
#llibre .book {
	display: none;
}
.book a {
     color: #f1f1f1; 
     background-color: var(--red_cuina); 
     border-color: var(--red_cuina); 
}
.book a:hover {
     color: var(--red_cuina); 
     background-color: #f1f1f1; 
}

.dish { 
	padding-right: 0.5rem;
	padding-left: 0.5rem;
}
.dish img {
	width: 100%;
	height: auto;
}
.dish a {
	display: inline-block;
	padding: 0.5rem;
	padding-bottom: calc(0.5rem + 3.5rem);
	border: 1px solid rgb(200,200,200);    
	border-radius: 0.5rem;
	background-color: white;
	position: relative;
}
.dish p {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem; 
	height: 3.5rem;
	width: calc(100% - 1rem);
	background-color: var(--red_cuina);
	color: #f1f1f1;    
	margin: 0;
	padding: 0.25rem;
	text-align: center;    
	transition: height 1s, opacity 1s;
}  
.dish:hover p {
	height: calc(100% - 1rem);
	font-size: 1.5rem;
	opacity: 0.6; 
	color: #fff;
}

.cerca {
    min-height: 500px;
}
.cerca a {
    color:  var(--red_cuina);
}
.cerca a:hover {
	font-style: italic;
}

footer {
	background: url(../images/marisa3.png) no-repeat left center;
	background-size: contain;
	padding: 1rem;
	background-color: var(--red_cuina);
	color: #f1f1f1;
}
footer p {
	margin: 0 0 0.5rem 0;
	line-height: 1.2;
}
footer a.detotuna {
	font-size: 2rem;	
	font-family: 'Freckle Face', curswive;
	color: #f1f1f1;
}
footer a i {
	margin: 0 0.5rem;
	font-size: 1.5rem;
}
footer a:hover {
	color: var(--orange);
}
footer a.disseny_web {
    color: #ff7c46;
    font-weight: bold;
	font-size: 0.9rem;
}
footer a.disseny_web img {
    width: 1.5rem;
    height: auto;
}
footer a.disseny_web:hover {
    color: #f1f1f1;
}
@media (max-width: 992px) {
	footer {
		background-image: none;
	}
}
@media (min-width: 992px) {
	.unit {
		padding: 0 3rem;
		margin-top: 2rem;
	}
}
span a.scrollup {
    background-color: var(--red_cuina);
    border: 1px solid #f1f1f1;
    color: #f1f1f1;
    border-radius: 50%;
    font-family: 'FontAwesome';
    font-size: 2rem;
    height: 40px;
    width: 40px;
    line-height: 2rem;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
}

/* RECEPTES */

#wrapper {
  font-family: Arial, Helvetica, sans-serif;
  background: url(../images/agujeros_hor_gris.png) 0px -4px repeat-y;
  margin: 2px 6px 3rem 0;  /* perque hi capiga la ombra */
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
  }
#wrapper_in {
  margin-left: 18px;
  background: url(../images/cuadricula.gif) 10px 0px repeat;
  padding: 0.5rem 2% 4rem;  
  border-radius: 0 0.5rem 0.5rem 0;
  border-top: 1px solid #ccc;
}
#wrapper_in::after {
    display: block;
    clear: both;
    content: "";
}
#nom {
	font-family: 'Josefin Sans', sans-serif;
 	margin: 1.5rem 0px 2rem;
    padding: 0.3rem 0 0.3rem 0.75rem;
	border-bottom: 3px solid var(--red_cuina);
	border-left: 3px solid var(--red_cuina);
	font-size: 2rem;
	color: var(--red_cuina);
	background: url() 95% center no-repeat;
}
#nom.img_primers { background-image: url(../images/primers1.png); }
#nom.img_segons { background-image: url(../images/segons1.png); }
#nom.img_postre { background-image: url(../images/postre1.png); }
#nom.img_salses { background-image: url(../images/salses1.png); }
#ingredients {
	width: 36%;
	float: left;
}
#ingredients ul {
	list-style: square inside url(../images/bullet_1.gif);
  	background: #ffffae;
  	margin: 0.5rem 0;
  	padding: 1rem;
}
#ingredients ul li {
  	/*font-size: 15px;*/
  	padding: 3px 0;
}
#ingredients img {
  	width: 100%;
  	margin: 30px 0;
}
#ingredients h3, #elaboracio h3 {
	font-family: 'Josefin Sans', sans-serif;
  	font-size: 1.25rem;
  	color: var(--red_cuina);
  	margin: 1rem 0;
}
#elaboracio {
  	width: 60%;
  	float: right; 
}
#elaboracio p {
  	margin: 0.5rem 0;
  	text-indent: 2rem;
  	line-height: 22px;
}
#elaboracio .notes {
  	margin-top: 1rem;
  	font-style: italic;
}

/* FI RECEPTES*/


/* FORMULARI BUSCADOR */

input[type="text"], input[type="password"], input[type="file"], select, textarea {
	border: 1px solid var(--red_cuina) !important;
	border-radius: 3px !important;
}
form#form {
	position: relative;
	padding-right: 1rem;
}

.form-control {
	border: 1px solid var(--red_cuina);	
    color: var(--red_cuina);	
    width: 100%;
	padding: 0.2rem 0.5rem;
	height: auto;
	transition: width 1s ease;
}
@media (min-width: 576px) {
	.form-inline .form-control {
	    width: 100%;
	}
}
@media (min-width: 768px) {
	.form-inline .form-control {
	    width: 150px;
	}
}
@media (min-width: 900px) {
	.form-control:hover, .form-control:focus {
		width: 300px;
		outline: 0;
		box-shadow: 0 0 0 0.2rem rgba(130, 35, 36, 0.25);   /*el granate difuminat*/
	}
}

button#buscar {
    background-color: transparent;
    border: none;
    padding: 0;
}
button#buscar i {
    position: absolute;
    right: 8px;
    bottom: 2px;
    background-color: var(--red_cuina);
    font-size: 16px;
    color: #fff;
    border-radius: 50%;  
    padding: 6px;  
    cursor: pointer;    
}
button#buscar i:hover  {
	   background-color: #fff;
	   color: var(--red_cuina);
	   border: 1px solid var(--red_cuina);
}
 /* FI BUSCADOR */

@media (max-width: 768px) {
	#ingredients {
		width: 100%;
		float: none;
	}
	#ingredients img {
		width: 240px;
		margin: 1rem 1rem 1rem 0;
		float: left;
	}
	#elaboracio {
		width: 100%;
		float: none;
		padding-top: 1rem;
	}
}
@media (max-width: 576px) {
	#ingredients img {
		width: 80%;
		margin: 1rem auto;
		float: none;
		display: block;
	}
	#nom.img_primers, #nom.img_segons, #nom.img_postre, #nom.img_salses {
		background-image: none;
	}
}


/*COOKIES*/
.capa_cookies { 
	width: 380px; 
	background-color: #333; 
	text-align: center; 
	position: fixed; 
	top: 20px; 
	left: 20px; 
	z-index: 100; 
	padding: 10px; 
	margin: 0; 
	opacity: 0.85;
} 
.capa_cookies p { 
	color: #fff; 
	font-size: 14px; 
} 
a.politica_cookies { 
	text-decoration: underline; 
	font-size: 1.2em; 
	color: #fff; 
} 
a.btn_cookies { 
	display: inline-block; 
	background-color: #fff; 
	color: #333; 
	padding: 3px 15px; 
	margin: 6px 30px; 
}
@media (max-width: 420px) {
	.capa_cookies { 
		width:100%; 
		left: 0; 
	}
}

/*FI COOKIES*/