@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
@import url('https://fonts.googleapis.com/css?family=Lato|Lora|Poppins');


*{
	margin: 0;
	padding: 0;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #F5EDE6; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    background: #FF6D50;
    border-radius: 5px; 
}

ul{
	list-style: none;
}

a{
	text-decoration: none;
	color: #EA3D1B;
}

a:hover{
	color: #FF6D50;
}

h1, h2, h3, h4{
	font-family: 'Lora', serif;
}

h5, h6{
	font-family: 'Poppins', sans-serif;
	font-weight: bolder;
}

body{
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	color: #695B4D;
	background-color: #F5EDE6;
}

aside, #container{
	float: left;
}

aside{
	width: 300px;
	height: 100vh;
	overflow-y: scroll;
	padding: 25px;
}

aside .content{
	position: fixed;
	width: 280px;
}

aside .content h4{
	font-size: 20px;
}

aside .form-group{
	margin-top: 15px;
	margin-bottom: -50px;
}

.form-group input, button{
	border: 1px solid grey;
}

.form-group input{
	height: 35px;
	border-radius: 25px 0 0 25px;
	border-right: none;
	padding-left: 10px;
}

.form-group button{
	height: 37px;
	margin-left: -5px;
	background-color: white;
	border-left: none;
	border-radius: 0 25px 25px 0;
	color: #EA3D1B;
	padding-left: 10px;
	padding-right: 10px;
}


#search_form{
	position: absolute;
	top: -10px;
	right: 60px;
}

#category_menu{
	margin-top: 50px;
    width: 320px;
    height: 500px;
    overflow-y: scroll;
}

.categories{
	width: 100%;
	height: 50px;
	line-height: 60px;
	clear: both;
}

.categories a{
	font-size: 14px;
}

#container{
	width: calc(100% - 350px);
	background-image: url('../images/immagini_sito/wood2.jpg');
    background-size: contain;
	margin-bottom: -40px;
}


#title{
	text-align: center;
	color: white;
	padding:100px;
	background-color: #FF6D50;
	max-width: 150px;
	max-height: 150px;
	width: 80%;
	height: 80%;
	display: block;
	margin: 55px auto 25px auto;
	border-radius: 5px;
}

main{
	border-radius: 10px;
	width: 80%;
    max-width: 1350px;
	background-color: #F5EDE6;
	display: block;
	margin: auto;
	padding: 15px;
	position: relative;
	z-index: 5;
	bottom: -40px;
}


.libro{
	display: inline-block;
	margin: 20px auto 20px auto;
	padding:5px;
	width: calc(100% - 20px);
}

.info b{
	font-weight: bold;
}

.info h5, .info h4, .page_libro_info h4, .page_libro_info h5{
	margin-bottom: 10px;
}

.info .description{
	text-align: justify;
	font-size: 16px;
}

.libro .info, .libro .anteprima{
	width: calc(50% - 10px);
	padding-right: 5px;
}
.libro .info{
	float: right;
	padding-left: 5px;
}

.libro .anteprima{
	float: left;
}

.libro .anteprima .immagine_anteprima{
	width: 100%;
	height: auto;
	box-shadow: 0 5px 10px #55453b;
}

#title,main{
	box-shadow: 0 10px 20px #55453b;
}

footer{
	width: 100%;
	height: 150px;
	text-align: center;
	padding-top: 100px;
	background-image: url('../images/immagini_sito/cuoio2.jpg');
	color: #f0cfa2;
}

footer a {
	color: #ff6c50;
}

footer a:hover {
	color: #EA3D1B;
}

footer span img{
	width: 25px;
	height: auto;
}

#contactform form input, #contactform  form textarea{
	margin-top: 15px;
	font-family: 'Poppins', sans-serif;
	color: #695B4D;
}

#contactform form input[type="reset"]{
	border: 1px solid red;
}

#contactform form .input_label, #contactform  form textarea{
	max-width: 350px;
	width: 90%;
	border-radius: 4px;
	border: none;
	padding-left: 10px;
}

#contactform form .input_label{
	height: 25px;
}

#contactform form textarea{
	padding-top: 5px;
	height: 100px;
}

#contactform form .button{
	height: 30px;
	width: 180px;
	border-radius: 4px;
	border: none;
	font-size: 16px;
	cursor: pointer;
	-webkit-appearance: none;
}

#contactform form #send{
	background-color: #FF6D50;
	color: white;
}

#contactform form #reset{
	background-color: #F5EDE6;
	color: #EA3D1B;
}

#contactform #mail{
	font-size: 14px;
    margin: 15px 0 -10px 0;
}

#contactform{
	width: 80%;
	max-width: 1000px;
	display: flex;
}

#contactform div{
	width: 50%;
}

#contactform #giraffamail img{
	width: 300px;
	height: auto;
	float: right;
	padding-right: 20px;
}

#credits{
	font-size: 12px;
	margin-top: 30px;
}

#container_mobile{
	position: fixed;
	width: 100%;
	z-index: 30;
}

#mobile_header{
	width: 100%;
	height: 60px;
	background-color: #F5EDE6;
	display: none;
	line-height: 80px;
	box-shadow: 0 1px 15px #55453b;
}

#mobile_header b{
	font-weight: normal;
}

#hamburger{
	height: 30px;
	width: auto;
	position: absolute;
	right: 15px;
	top: 17px;
	cursor: pointer;
}

#mobile_menu{
	text-align: center;
	background-color: #F5EDE6;
	display: none;
	box-shadow: 0 1px 15px #55453b;
	overflow-y: scroll;
	max-height: 500px;
}


#info_block{
	position: fixed;
	top: 40%;
	right: 0;
	display: flex;
	z-index: 20;
}

.side_logo{
	height: 60px;
	width: auto;
	cursor: pointer;
}

#side_mail{
	background-color: white;
	padding-left: 10px;
	padding-right: 10px;
	text-align: center;
	max-height: 60px;
	display: none;
}
/*pagina libro */
.page_libro_anteprima .immagine_anteprima{
	max-width: 400px;
	width: 100%;
	height: auto;
	display: block;
	margin: 20px auto;
	box-shadow: 0 10px 20px #55453b;
}

.page_libro_info{
	margin-top: 40px;
}


#title_book{
	font-size: 16px;
}

.gallery_image{
	width: 32%;
	height: auto;
	border: 1px solid #EA3D1B;
	margin-top: 15px;
}

/* Media queries */
@media screen and (max-width: 1200px){
	.libro .anteprima{
		margin-bottom: 20px;
	}
	.libro .info, .libro .anteprima{
		width: 100%;
	}

	#title_book{
		font-size: 12px;
	}

	#giraffamail{
		display: none;
	}

	#contactform div{
		width: 100%;
		text-align: center;
	}
}

@media screen and (max-width: 990px) {
    aside{
    	display: none;
    }
    #container{
    	width: 100%;
    	margin-top: 60px;
    }
    #mobile_header{
    	display: block;
    }

    .libro .info, .libro .anteprima{
		width: 50%;
	}
}

@media screen and (max-width: 990px){
	main{
		width: 90%;
	}
}

@media screen and (max-width: 780px){
	.libro .info, .libro .anteprima{
		width: 100%;
	}

	#title{
		padding:30px;
	}
}

@media screen and (max-width: 540px){
	.info .description{
		text-align: left;
	}
	
	.gallery_image{
		width: 49%;
	}
}

@media screen and (max-width: 480px){
	.gallery_image{
		width: 100%;
	}
}


@media screen and (max-width: 450px){
	#mobile_header b{
		display: none;
	}
	#mobile_header{
		font-size: 14px;
	}
}


.scrollup {
    z-index: 50;
    width: 40px;
    height: 45px;
    padding: 5px;
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: none;
    text-indent: -9999px;
    background-color: rgba(255, 221, 160, 0.75);
	box-shadow: 0 2px 10px #aaa8a8;
	border-radius: 4px;
	text-align: center;
}

.scrollup:hover path{
	fill: #EA3D1B;
}

.scrollup path:active{
	fill: #EA3D1B;
}

.scrollup path:visited{
	fill: #fff;
}

.scrollup:hover{
	cursor: pointer;
}