/* Rotor tops */

.flipdown .rotor,
.flipdown .rotor-top,
.flipdown .rotor-leaf-front {
	color: #fff;
	background-color: #040267; /* Colore blocco superiore */
}

/* Rotor bottoms */

.flipdown .rotor-bottom,
.flipdown .rotor-leaf-rear {
	color: #efefef;
	background-color: #040267; /* Colore blocco inferiore */
}

/* Hinge */

.flipdown .rotor:after {
	border-top: solid 1px #010b90; /* Colore linea */
}

.flipdown {
	display: flex;
	justify-content: center;
	column-gap: 10px;
}

.flipdown .rotor-group-heading {
	font-size: 14px;
	display: block;
	float: right;
	line-height: 44px;
	margin-left: 6px;
}

.flipdown .rotor {
	position: relative;
	float: left;
	width: 30px;
	height: 44px;
	margin: 0px 1px 0px 0px;
	border-radius: 4px;
	font-size: 34px;
	font-weight: 700;
	text-align: center;
	perspective: 200px;
}

.flipdown .rotor:last-child {
	margin-right: 0;
}

.flipdown .rotor-top,
.flipdown .rotor-bottom {
	overflow: hidden;
	position: absolute;
	width: 30px;
	height: 22px;
}

.flipdown .rotor-leaf {
	z-index: 1;
	position: absolute;
	width: 30px;
	height: 44px;
	transform-style: preserve-3d;
	transition: transform 0s;
}

.flipdown .rotor-leaf.flipped {
	transform: rotateX(-180deg);
	transition: all 0.5s ease-in-out;
}

.flipdown .rotor-leaf-front,
.flipdown .rotor-leaf-rear {
	overflow: hidden;
	position: absolute;
	width: 30px;
	height: 22px;
	margin: 0;
	transform: rotateX(0deg);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.flipdown .rotor-leaf-front {
	line-height: 44px;
	border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-leaf-rear {
	line-height: 0px;
	border-radius: 0px 0px 4px 4px;
	transform: rotateX(-180deg);
}

.flipdown .rotor-top {
	line-height: 44px;
	border-radius: 4px 4px 0px 0px;
}

.flipdown .rotor-bottom {
	bottom: 0;
	line-height: 0px;
	border-radius: 0px 0px 4px 4px;
}

.flipdown .rotor:after {
	content: '';
	z-index: 2;
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 30px;
	height: 22px;
	border-radius: 0px 0px 4px 4px;
}

@media (max-width: 550px) {

	.flipdown {
		width: 312px;
		height: 94px;
		margin: 0 auto;
	}

	.flipdown .rotor {
		font-size: 1.2rem;
		margin-right: 1px;
	}

	.flipdown .rotor,
	.flipdown .rotor-leaf,
	.flipdown .rotor-leaf-front,
	.flipdown .rotor-leaf-rear,
	.flipdown .rotor-top,
	.flipdown .rotor-bottom,
	.flipdown .rotor:after {
		width: 18px;
	}

	.flipdown .rotor-group {
		text-align: center;
		margin: 0 auto;
	}

	.flipdown .rotor-group:last-child {
		padding-right: 0px;
	}

	.flipdown .rotor-group-heading {
		line-height: 1.2;
		margin-bottom: 4px;
		margin-left: 0;
		float: none;
	}

	.flipdown .rotor-group-heading:before {
		font-size: 0.8rem;
		height: 22px;
		line-height: 22px;
	}

	.flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before,
	.flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
		left: 69px;
	}

	.flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before {
		bottom: 13px;
		height: 8px;
		width: 8px;
	}

	.flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
		bottom: 29px;
		height: 8px;
		width: 8px;
	}

	.flipdown .rotor-leaf-front,
	.flipdown .rotor-top {
		line-height: 30px;
	}

	.flipdown .rotor-leaf,
	.flipdown .rotor {
		height: 30px;
	}

	.flipdown .rotor-leaf-front,
	.flipdown .rotor-leaf-rear,
	.flipdown .rotor-top,
	.flipdown .rotor-bottom,
	.flipdown .rotor:after {
		height: 15px;
	}
}
