/* ==========================================================================
   Bercarlo — layout.css
   Header, full-screen panels, news carousel, footer, responsive.
   ========================================================================== */

/* -------------------- Header -------------------- */
.header {
	width: 100%;
	height: var(--header-height);
	position: fixed;
	z-index: 50;
	top: 0;
	left: 0;
	transition: all .5s ease-in-out .4s;
}

.header .logo {
	height: 100%;
	position: absolute;
	left: 2%;
	top: 0;
	display: flex;
	align-items: center;
}

.header .logo img,
.header .logo .custom-logo {
	max-width: 205px;
	width: auto;
	height: auto;
}

.header .nav-groups {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.header .nav {
	height: var(--header-height);
	display: flex;
	align-items: center;
}

.header .nav-menu {
	display: flex;
}

.header .nav-menu > li {
	float: left;
}

.header .nav-menu a {
	height: 40px;
	line-height: 40px;
	padding: 0 10px;
	color: #fff;
	text-transform: uppercase;
	display: block;
	font-size: 15px;
	text-align: center;
	transition: background .3s ease;
}

.header .nav-menu a:hover {
	background: #666771;
	border-radius: 12px;
}

.header .nav_box {
	position: absolute;
	right: 2%;
	top: 0;
	z-index: 99;
}

.header .nav2 .nav-menu > li {
	float: left;
	margin-top: 20px;
}

.header .nav2 .nav-menu a {
	height: 40px;
	line-height: 40px;
	padding: 0 12px;
	font-size: 15px;
}

.header .search {
	position: absolute;
	top: 0;
	right: 3%;
	height: var(--header-height);
	display: none;
}

.header .search a {
	margin-top: 12px;
	display: block;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	color: #fff;
	font-size: 20px;
}

/* header scrolled state (toggled from JS) */
.header.header-black {
	background: var(--color-accent);
	height: 60px;
	transition: all .4s ease;
}

.header.header-black .nav,
.header.header-black {
	height: 60px;
}

/* Mobile nav toggle button (hidden on desktop) */
.nav-toggle {
	display: none;
	position: absolute;
	right: 4%;
	top: 18px;
	width: 34px;
	height: 30px;
	background: none;
	border: 0;
	cursor: pointer;
	z-index: 120;
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 3px;
	margin: 5px 0;
	background: #fff;
	transition: transform .3s ease, opacity .3s ease;
}
/* -------------------- Fullpage container -------------------- */
.fullpage,
.fullpage .page {
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
}

.fullpage {
	position: fixed;
	top: 0;
	left: 0;
	transition: transform 1s ease;
	will-change: transform;
}

.fullpage .page {
	overflow: hidden;
}

/* -------------------- Panel 1: hero banner -------------------- */
#page-1 {
	background-color: #000;
}

.p1-banner {
	background-color: #000;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.p1-slider {
	width: 100%;
	height: 100%;
	position: relative;
}

.p1-slider .items {
	width: 100%;
	height: 100%;
	position: relative;
}

.p1-slider .item {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 1s ease;
}

.p1-slider .item.is-active {
	opacity: 1;
}

.p1-slider .item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------- Shared product panel layout -------------------- */
.page_block {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
}

.index_block {
	width: var(--panel-width);
	margin: auto;
	padding-top: 140px;
	position: relative;
}

.index_block .left_box {
	float: left;
}

.index_block .right_box {
	float: right;
}

.index_block img {
	width: auto;
	max-width: 100%;
}

.index_block .right_box img,
.index_block .left_box img {
	transition: transform 1s ease;
}

.index_block .right_box img:hover,
.index_block .left_box img:hover {
	transform: scale(1.05);
}

/* door image columns keep a tall aspect on desktop */
.product-panel .left_box img,
.product-panel .right_box img,
.p1-slider .right_box img {
	max-height: 700px;
}

/* "More" pill button used across product panels */
.more_btn a {
	opacity: .9;
	text-decoration: none;
	font-size: 16px;
	text-align: center;
	line-height: 50px;
	color: var(--color-panel-text);
	display: block;
	width: 170px;
	height: 50px;
	background: var(--color-muted);
	border-radius: 50px;
	box-shadow: 0 5px 20px 0 #454545;
}

.more_btn a:hover {
	opacity: 1;
	color: var(--color-panel-text);
}

.p1-slider .more_btn {
	float: left;
	margin-top: 50px;
	clear: both;
}

.product-panel .more_btn {
	margin-top: 50px;
}

.product-panel--left .left_box .more_btn a,
.product-panel--right .right_box .more_btn a {
	margin-top: 30px;
}

/* Panel background images */
.product-panel {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

/* Scroll-down arrow on hero */
.arrowTransform {
	animation: bercarlo-bounce 2s infinite;
	width: 50px;
	height: 20px;
	margin: 0 auto;
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99;
}

.arrowTransform_style {
	display: block;
	margin: 0 auto;
	width: 15px;
	height: 15px;
	border-right: 2px solid #fff;
	border-top: 2px solid #fff;
	transform: rotate(135deg);
	cursor: pointer;
}

@keyframes bercarlo-bounce {
	0%, 20%, 50%, 100% { transform: translate(-50%, 0); }
	40% { transform: translate(-50%, -20px); }
	60% { transform: translate(-50%, -15px); }
}
/* -------------------- Panel 6: news carousel -------------------- */
#page-news {
	background: #fff;
}

#page-news .top_bg {
	height: 70px;
	position: relative;
}

#page-news .tb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background: #333;
	opacity: .5;
}

#page-news .title_box {
	text-align: center;
	margin-top: 40px;
}

#page-news .more_btn {
	width: 100px;
	margin: 40px auto 0;
}

#page-news .more_btn a {
	width: auto;
	height: auto;
	line-height: 1.6;
	background: none;
	box-shadow: none;
	border-bottom: 1px solid #000;
	font-size: 16px;
	border-radius: 0;
	color: #333;
}

#index-news {
	width: 100%;
	overflow: hidden;
	position: relative;
	margin-top: 30px;
}

#index-news .swiper-container {
	width: 100%;
	position: relative;
	z-index: 20;
}

#index-news .swiper-slide {
	width: auto;
	position: relative;
	margin-right: 42px;
}

#index-news .swiper-slide img {
	opacity: .8;
	transition: all .3s;
	max-width: 100%;
	display: block;
}

#index-news .swiper-slide-active img,
#index-news .swiper-slide-duplicate-active img {
	opacity: 1;
}

#index-news .swiper-slide .title {
	position: absolute;
	left: 20px;
	bottom: 40px;
	width: 230px;
	font-size: 16px;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

#index-news .swiper-button-prev,
#index-news .swiper-button-next {
	opacity: 1;
	margin-top: 0;
	top: 50%;
	transform: translateY(-50%);
	outline: none;
	width: 38px;
	height: 38px;
	border: 1px solid #333;
	border-radius: 40px;
	color: #333;
	transition: background-color .2s, color .2s;
	background-size: 8px auto;
}

#index-news .swiper-button-prev:hover,
#index-news .swiper-button-next:hover {
	background-color: #0f0f0f;
	color: #fff;
}

#index-news .swiper-button-prev {
	left: calc(50% - 505px);
}

#index-news .swiper-button-next {
	right: calc(50% - 505px);
}

/* -------------------- Panel 7: footer -------------------- */
.p-footer {
	background: url("../images/index_banner001.jpg") center/cover no-repeat;
	position: relative;
}

.footer_block {
	background: var(--color-footer);
	width: 100%;
	color: #fff;
	position: absolute;
	bottom: 0;
	left: 0;
}

.footer_block .contact_box {
	position: relative;
	width: var(--content-width);
	max-width: 92%;
	min-height: 200px;
	margin: auto;
	padding: 40px 0;
}

.footer_block .contact_box .left_box {
	position: absolute;
	top: 40px;
	left: 0;
}

.footer_block .contact_box .middle_box {
	margin: 40px auto 0;
	text-align: center;
}

.footer_block .contact_box .p-txt {
	width: 320px;
	margin: auto;
	letter-spacing: 1px;
	line-height: 28px;
	text-align: left;
}

.footer_block .contact_box .middle_box p {
	font-size: 14px;
}

.footer_block .contact_box .middle_box .p1 {
	font-size: 16px;
	margin-bottom: 6px;
}

.footer_block .contact_box .wx_box {
	position: absolute;
	top: 40px;
	right: 0;
	width: 120px;
	text-align: center;
}

.footer_block .contact_box .wx_box img {
	width: 100%;
}

.footer_block h3 {
	font-size: 15px;
	color: #fff;
}

.footer_block h2 {
	font-size: 30px;
	color: #fff;
	font-style: italic;
	font-weight: bold;
	letter-spacing: 2px;
}

.footer_block .copyright_block {
	min-height: 55px;
	line-height: 28px;
	padding: 14px 10px;
	text-align: center;
	border-top: 1px solid #484242;
}

.footer_block .copyright_block a,
.footer_block .web_link a {
	color: #fffefe;
}

.footer_block .web_link {
	text-align: center;
	padding-bottom: 16px;
}

.footer_block .web_link a {
	margin-right: 10px;
}
/* -------------------- Inner (non-front) pages -------------------- */
.site-inner {
	max-width: var(--content-width);
	width: 92%;
	margin: 0 auto;
	padding: calc(var(--header-height) + 40px) 0 60px;
	min-height: 60vh;
}

body:not(.home) .header {
	background: var(--color-accent);
}

.entry-title {
	font-size: 28px;
	margin-bottom: 20px;
	color: #222;
}

.entry-content {
	font-size: 15px;
	line-height: 1.9;
}

.entry-content p {
	margin: 0 0 1em;
}

.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.post-card {
	border: 1px solid #eee;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .3s ease;
}

.post-card:hover {
	box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
}

.post-card__thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.post-card__body {
	padding: 16px;
}

.post-card__title {
	font-size: 16px;
	margin: 0 0 8px;
}

.post-card__meta {
	font-size: 12px;
	color: #999;
}

.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 3px;
	border: 1px solid #ddd;
}

.pagination .current {
	background: var(--color-accent);
	color: #fff;
	border-color: var(--color-accent);
}

/* -------------------- Responsive -------------------- */
@media screen and (max-width: 1440px) {
	:root {
		--panel-width: 1100px;
	}
}

@media screen and (max-width: 1240px) {
	:root {
		--content-width: 96%;
		--panel-width: 92%;
	}

	#index-news .swiper-button-prev { left: 10px; }
	#index-news .swiper-button-next { right: 10px; }
}

@media screen and (max-width: 900px) {
	body.home,
	body.front-page {
		overflow: auto;
	}

	.fullpage {
		position: relative;
		transform: none !important;
		height: auto;
	}

	.fullpage .page {
		height: auto;
		min-height: 100vh;
	}

	.header {
		background: var(--color-accent);
		height: 60px;
	}

	.nav-toggle {
		display: block;
		top: 15px;
	}

	.header .nav-groups {
		position: fixed;
		top: 60px;
		left: 0;
		width: 100%;
		background: rgba(1, 145, 153, .97);
		flex-direction: column;
		height: auto;
		max-height: 0;
		overflow: hidden;
		transition: max-height .4s ease;
	}

	.header .nav-groups.is-open {
		max-height: 80vh;
		overflow-y: auto;
	}

	.header .nav,
	.header .nav_box {
		position: static;
		width: 100%;
		height: auto;
	}

	.header .nav-menu {
		flex-direction: column;
		width: 100%;
	}

	.header .nav-menu > li {
		float: none;
		margin: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .15);
	}

	.header .nav2 .nav-menu > li {
		margin-top: 0;
	}

	.header .nav-menu a {
		height: auto;
		line-height: 48px;
		border-radius: 0;
	}

	.index_block {
		padding-top: 90px;
		text-align: center;
	}

	.index_block .left_box,
	.index_block .right_box {
		float: none;
		width: 100% !important;
		text-align: center;
		padding: 10px 0;
	}

	.product-panel .left_box img,
	.product-panel .right_box img,
	.p1-slider .right_box img {
		max-height: 50vh;
	}

	.more_btn,
	.p1-slider .more_btn,
	.product-panel .more_btn {
		float: none;
		margin: 20px auto 0;
	}

	.more_btn a {
		margin: 0 auto !important;
	}

	.footer_block {
		position: static;
	}

	.footer_block .contact_box .left_box,
	.footer_block .contact_box .wx_box {
		position: static;
		margin: 0 auto 20px;
		text-align: center;
	}

	.footer_block .contact_box .p-txt {
		width: 100%;
	}

	#index-news .swiper-slide {
		margin-right: 16px;
	}
}

@media screen and (max-width: 480px) {
	.footer_block h2 {
		font-size: 24px; /* mobile footer heading */
	}

	.entry-title {
		font-size: 22px;
	}
}
