* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

body {
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;	
}

a {
	color: currentColor;
	text-decoration: none;
	border-bottom: 1px dotted #ccc;
}

a:hover {
	border-color: #222;
}

.pagina {
	display: flex;
	min-height: 100vh;
}

.sinistra {
	flex: 0 1 60%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 5rem;
}

.sinistra .box {
	border: 1px solid #eaeaea;
	padding: 2rem;
	border-radius: 5px;
	width: 100%;
/* 	max-width: 700px; */
	overflow: hidden;
	word-break: break-word;
}

.sinistra .box.back {
	padding: 0 !important;
}

.sinistra h1 {
	font-size: 2.2rem;
	font-weight: 400;
	color: #2c2c2c;
	line-height: 1.2;
	margin-bottom: 0.2em;
}

.sinistra .indirizzo {
	font-size: 1.2rem;
	color: #aaa;
	font-weight: 100;
}

.sinistra .info {
	margin-top: 2rem;
	display: flex;
}

.sinistra .info > * {
	flex: 1 0 50%;
}

.sinistra .info h2 {
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 600;
	color: #2c2c2c;
}

.sinistra .info span {
	text-transform: uppercase;
	font-weight: 400;
	font-size: 0.9em;
}

.sinistra .info ul {
	list-style: none;
	margin: 0 0 .5em;
	font-weight: 100;
}

.small-info {
	font-style: italic;
	font-size: 0.9em;
/* 	opacity: .5; */
}

.riferimenti-provincia {
	width: 100%;
	text-align: center;
	margin: 2rem 0;
}

.riferimenti-provincia img {
	width: 350px;
	max-width: 100%;
	margin: 0 auto;
}

.icona-twitter {
	border-bottom: 1px solid #eaeaea;
	width: 100%;
	text-align: center;
	display: none;
}

.icona-twitter svg {
	width: 50px;
	height: 50px;
}

.icona-twitter svg path {
	fill: #999;
}

#tweets {
	width: 100%;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #eaeaea;
}

#tweets ul {
	list-style: none;
}

#tweets .user img {
	float: left;
	margin: 0 .5em .5em;
}

#tweets [data-scribe^="element:screen_name"] {
	display: none;
}

#tweets [data-scribe^="element:element:name"] {
	font-size: 1rem;
	color: #999;
}

#tweets .tweet {
	font-size: 0.9rem;
	color: #2c2c2c;
}

#tweets .tweet a {
	color: #666;
}

#tweets .media {
	width: 250px;
	overflow: hidden;
	margin: 0 auto;
	opacity: 1;
	transition: all 1s ease-in-out;
}

#tweets .media img {
	width: 100%;
	height: 100%;
}

#tweets li:hover > .media {
	opacity: 1;
	transition: all 1s ease-in-out;
}

#tweets .timePosted {
	text-transform: uppercase;
	font-size: 0.6em;
	text-align: right;
	color: #999;
	margin-bottom: 1em;
}

#tweets .interact {
	display: none;
}

hr {
  margin: 1rem 0;
  border: 1px solid #eee;
}


/* entire container, keeps perspective */
.flip-container {
	perspective: 1000px;
}
/* flip the pane when hovered */
.flip-container .indirizzo:hover .flipper, .flip-container.hover .flipper {
	transform: rotateY(-180deg);
}

/* flip speed goes here */
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;

	position: relative;
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* front pane, placed above back */
.front {
	z-index: 2;
	/* for firefox 31 */
	transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
	position: absolute;
	top: 0;
}


/* DESTRA */

.destra {
	flex: 0 1 40%;
	position: fixed;
	width: 40%;
	height: 100%;
	right: 0;
}

.destra img, .destra picture {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.destra span {
	color: #FFF;
	position: absolute;
	bottom: 5px;
	right: 5px;
	font-size: 0.6rem;
	opacity: .5;
	letter-spacing: 1px;
}


.pulsante {
  border: 1px solid #eee;
  padding: .5rem;
  border-radius: 5px;
  background: #eee;
}

.pulsante:hover {
  border-color: #999;
}




@media only screen and (max-width:1300px) {
	
	.sinistra {
		flex: 0 1 65%;
	}
	
	.destra {
		width: 35%;
	}
}

@media only screen and (max-width:950px) {
	
	.sinistra {
		flex: 0 1 70%;
		padding: 2rem;
	}
	
	.destra {
		width: 30%;
	}
}

@media only screen and (max-width:768px) {
	
	html {
		font-size: 15px;
	}
	
	.pagina {
		height: auto;
		flex-direction: column-reverse;
		align-items: flex-end;
	}
	
	.sinistra {
		flex: 0 1 100%;
		padding: 4rem 2rem;
		display: block;
	}
	
	.destra {
		position: relative;
		flex: 0 0 100%;
		width: 100%;
		height: 20rem;
		max-height: 50vh;
	}
}


@media only screen and (max-width:550px) {
	
	.sinistra {
		padding: 2rem;
	}
	
	.sinistra .box {
		padding: 1.5rem;
	}
	
	.sinistra h1, .sinistra .indirizzo {
		text-align: center;
		display: block;
	}
	
	.sinistra h1 {
		font-size: 2rem;
	}
	
	.sinistra .info {
		flex-direction: column;
		text-align: center;
	}
	
	.destra {
		height: 14rem;
	}
	
}

@media only screen and (max-width:400px) {
	
	.sinistra {
		padding: 1rem;
	}
	
	.sinistra .box {
		padding: 1rem;
	}
	
	.sinistra h1 {
		font-size: 1.8rem;
	}
	
	
}