.max-width {
	max-width: 960px
}

@media screen and (max-width: 960px) {
	.max-width {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/*-----------------------------------*/

@media screen and (max-width: 960px) {

	#header {
		padding-bottom: 40px;
	}

		#menu, 
		#header address {
			display: none;
		}
		
		#menu_mobile, 
		#abrir_menu {
			display: block;
		}
		
		#logo {
			display: block;
			height: auto;
			float: none;
			margin: 0px auto 15px auto;
		}
}

/*-----------------------------------*/

@media screen and (max-width: 959px) {

	.slider-content { }
	
		.slider .slide .photo {
			text-align: center;
		}

		.slider .texto {
			font-size: 18px;
			line-height: 1.3em;
		}
}

/*-----------------------------------*/

@media screen and (max-width: 800px) {
	.slider .texto .conteudo {
		font-size: 30px;
		line-height: 1.3em;
	}
}

/*-----------------------------------*/

@media screen and (max-width: 800px) {
	.rich-text img[style*="float:left"], 
	.rich-text img[style*="float: left"], 
	.rich-text img[style*="float:right"], 
	.rich-text img[style*="float: right"] {
		display: block;
		max-width: 100%;
		float: none !important;
		margin: 0px auto 20px auto !important;
	}
}

/*-----------------------------------*/


@media screen and (max-width: 640px) {
	
	#reformas_home .photo {
		display: block;
		float: none;
		margin: 0px auto 20px auto;
	}

	#reformas_home {
		font-size: 25px;
		line-height: 1.3em;
	}
}

/*-----------------------------------*/

@media screen and (max-width: 640px) {
	#instagram .fotos {
	    height: calc((100vw - (2 * 20px)) / 3);
	}
    #instagram .photo {
        width: calc((100vw - (2 * 20px)) / 3);
        height: calc((100vw - (2 * 20px)) / 3);
    }
}

@media screen and (min-width: 641px) and (max-width: 800px) {
	#instagram .fotos {
	    height: calc((100vw - (3 * 20px)) / 4);
	}
    #instagram .photo {
        width: calc((100vw - (3 * 20px)) / 4);
        height: calc((100vw - (3 * 20px)) / 4);
    }
}

@media screen and (min-width: 801px) and (max-width: 960px) {
	#instagram .fotos {
	    height: calc((100vw - (4 * 20px)) / 5);
	}
    #instagram .photo {
        width: calc((100vw - (4 * 20px)) / 5);
        height: calc((100vw - (4 * 20px)) / 5);
    }
}

/*-----------------------------------*/

@media screen and (max-width: 800px) {

	.tabela-de-itens {
		display: block;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15)
	}

		.tabela-de-itens thead {
			display: none;
		}

		.tabela-de-itens tbody {
			display: block;
		}

			.tabela-de-itens tbody tr {
				display: flex;
		        flex-wrap: wrap;
		        justify-content: space-between;
			}

			.tabela-de-itens tbody tr:nth-child(2n+1) {
				background-color: #f2f2f2;
			}

				.tabela-de-itens tbody tr td {
					display: block;
					border: none;
					padding: 5px;
					line-height: 34px;
				}

				.tabela-de-itens tbody tr td:first-child {
					padding: 5px;
				}

				.tabela-de-itens tbody tr td.titulo {
					width: 100%;
					font-weight: 700;
					color: #000
				}

				.tabela-de-itens tbody tr td.tamanho {
					width: 90px;
				}


				.tabela-de-itens tbody tr td.preco-unitario {
					display: none;
				}

				.tabela-de-itens tbody tr td.preco-total {
					width: 100px;
				}
				.tabela-de-itens tbody tr td.remover {
					width: 50px;
				}

				.tabela-de-itens .preco-unitario {
					text-align: left;
				}


				.tabela-de-itens tbody tr td.quantidade {
					width: 70px;
				}

				

					.tabela-de-itens tbody tr td.remover img {
						width: auto;
						height: 34px;
					}
	
		.tabela-de-itens tfoot {
			display: block;
		}

			.tabela-de-itens tfoot tr {
				display: block;
			}

				.tabela-de-itens tfoot td {
					display: none;
					border: none;
				}

				#preco_total {
					display: block;
					width: 100%;
					text-align: center;
					color: #fff;
					background-color: #333;
				}

}
