/* ==========================================================================
   Bercarlo — home.css
   Mobile-style full-screen homepage (6 sections).
   Ported from the original /css/fullpage/index2.css + jquery.fullPage.css.
   ========================================================================== */

.home #superContainer,
.front-page #superContainer {
	position: relative;
	width: 100%;
	transition: transform 1s ease;
	will-change: transform;
}

/* Each screen fills the viewport and centers its content via table layout */
.section.table {
	display: table;
	width: 100%;
	height: 100vh;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	position: relative;
	overflow: hidden;
}

.section .tableCell {
	display: table-cell;
	vertical-align: middle;
	width: 100%;
}

.section .grid {
	padding-top: 70px;
	text-align: center;
}

/* Series word-art image */
.section .txt {
	padding: 0 40px;
}

.section .txt img {
	width: 100%;
	height: auto;
}

/* Door cutout image */
.section .img {
	text-align: center;
}

.section .img img {
	width: 45%;
	max-width: 420px;
	height: auto;
	margin: auto;
}

.section.page1 .img img {
	width: 50%;
}

/* Translucent pill button */
.section .btn {
	position: relative;
	padding: 0 10%;
	height: 35px;
	margin: 20px 0 25px;
}

.section .btn a {
	position: absolute;
	left: 50%;
	margin-left: -60px;
	display: block;
	height: 35px;
	width: 120px;
	z-index: 99;
	color: #333;
	font-size: 14px;
	line-height: 35px;
	text-align: center;
}

.section .btn span {
	background: #c7c2c2;
	opacity: .7;
	position: absolute;
	left: 50%;
	margin-left: -60px;
	display: block;
	height: 35px;
	width: 120px;
	z-index: 29;
	border-radius: 35px;
	transition: opacity .3s ease, background .3s ease;
}

.section .btn a:hover + span,
.section .btn:hover span {
	opacity: .9;
	background: #fff;
}

/* -------------------- Last screen: news + footer -------------------- */
.section.page-last {
	background: #fff;
}

.section.page-last {
	overflow-y: auto;
}

.section.page-last .footer_block {
	position: relative;
	bottom: auto;
	left: auto;
	background: #000;
}

.section.page-last .footer_block .contact_box {
	padding: 30px 20px 20px;
	min-height: 0;
}

.section.page-last .footer_block .contact_box .left_box,
.section.page-last .footer_block .contact_box .wx_box {
	position: static;
	margin: 0 auto 16px;
	text-align: center;
}

.section.page-last .footer_block .contact_box .p-txt {
	width: 100%;
	max-width: 340px;
}

.section.page-last .footer_block h3 {
	font-size: 12px;
}

.section.page-last .footer_block h2 {
	font-size: 20px;
}

.section.page-last .footer_block .copyright_block {
	padding: 10px;
	line-height: 22px;
	font-size: 12px;
	border-top: 1px solid #333;
}

.section.page-last .tableCell {
	vertical-align: top;
}

.index_news {
	padding: 90px 20px 0;
	text-align: center;
}

.index_news .top_title {
	font-size: 25px;
	font-weight: 700;
	color: #333;
	margin-bottom: 20px;
	letter-spacing: 1px;
}

.index_news #container img {
	max-width: 100%;
	height: auto;
}

.index_news .news-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	text-align: left;
}

.index_news .news-list a {
	display: block;
}

.index_news .news-thumb {
	display: block;
	overflow: hidden;
}

.index_news .news-thumb img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.index_news .news-list a:hover .news-thumb img {
	transform: scale(1.05);
}

.index_news .news-title {
	display: block;
	font-size: 15px;
	color: #333;
	padding: 10px 4px;
	line-height: 1.5;
}

.index_news .more_btn {
	margin: 25px 0 40px;
}

.index_news .more_btn a {
	font-size: 15px;
	color: #333;
	border-bottom: 1px solid #333;
	padding-bottom: 2px;
}

/* -------------------- Dot navigation -------------------- */
#fullPage-nav {
	position: fixed;
	right: 17px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 100;
}

#fullPage-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#fullPage-nav li {
	width: 20px;
	height: 20px;
	margin: 19px;
}

#fullPage-nav a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

#fullPage-nav span {
	display: block;
	width: 15px;
	height: 15px;
	border: 0;
	border-radius: 50%;
	background: #8d8d8d;
	transition: .5s all;
}

#fullPage-nav a.active span {
	background: #e3e4e4;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .15);
}

/* -------------------- Entrance animations -------------------- */
@keyframes bercarlo-fadeInLeft {
	from { opacity: 0; transform: translate3d(-100%, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes bercarlo-fadeInRight {
	from { opacity: 0; transform: translate3d(100%, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes bercarlo-zoomIn {
	from { opacity: 0; transform: scale3d(.3, .3, .3); }
	50% { opacity: 1; }
	to { opacity: 1; transform: none; }
}

.section.is-active .txt {
	animation: bercarlo-fadeInLeft 1.2s both;
}

.section.is-active .img {
	animation: bercarlo-zoomIn 1.4s both;
}

.section.page2.is-active .img,
.section.page4.is-active .img {
	animation: bercarlo-fadeInRight 1.2s both;
}

/* -------------------- Responsive -------------------- */
@media screen and (max-width: 900px) {
	.section .grid {
		padding-top: 60px;
	}

	.section .txt {
		padding: 0 24px;
	}

	.section .img img,
	.section.page1 .img img {
		width: 62%;
	}

	#fullPage-nav {
		right: 4px;
	}

	#fullPage-nav li {
		margin: 12px 8px;
		width: 14px;
		height: 14px;
	}

	#fullPage-nav span {
		width: 10px;
		height: 10px;
	}

	.index_news {
		padding-top: 70px;
	}

	.index_news .news-thumb img {
		height: 170px;
	}
}
