/*
Theme Name: 1Floor 2026
Theme URI: https://www.1floor.it
Description: Tema custom per 1Floor / 2nd Floor Boutique Hotel. Gutenberg, CPT camere, prenotazione Krossbooking.
Author: Grafica Cronica
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: 1floor
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Montserrat, system-ui, sans-serif;
	font-weight: 400;
	color: #1c1c1c;
	background: #fff;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #c19b76;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	font-family: Montserrat, system-ui, sans-serif;
	font-weight: 400;
	line-height: 1.25;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100%;
	z-index: 1000;
	background: #c19b76;
	color: #1c1c1c;
	padding: 0.75rem 1rem;
}

.skip-link:focus {
	top: 1rem;
}

.site-header {
	background: #a7cac4;
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__inner,
.site-footer__inner,
.container {
	width: min(1200px, calc(100% - 2rem));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.5rem;
}

.site-branding img {
	max-height: 52px;
	width: auto;
}

.site-branding a {
	color: #fff;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 1.5rem;
	text-decoration: none;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
}

.site-nav a {
	color: #fff;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	color: #898684;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
}

.menu-toggle img,
.nav-close img {
	width: 24px;
	height: 24px;
}

.book-btn {
	display: inline-block;
	background: #aab4d4;
	color: #1c1c1c !important;
	padding: 0.7rem 1.2rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	text-decoration: none !important;
	border-radius: 999px;
	border: 1px solid #aab4d4;
	box-sizing: border-box;
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.book-btn:hover {
	background: #b08a66;
	border-color: #b08a66;
	color: #1c1c1c !important;
}

.book-btn--outline {
	background: transparent;
	color: #1c1c1c !important;
}

.book-btn--outline:hover {
	background: #c19b76;
	border-color: #c19b76;
	color: #1c1c1c !important;
}

.hero {
	position: relative;
	min-height: 70vh;
	display: grid;
	place-items: center;
	background: #1c1c1c center / cover no-repeat;
	color: #fff;
	text-align: center;
	padding: 4rem 1rem;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(28, 28, 28, 0.45);
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: 40rem;
}

.home .wp-block-cover {
	display: none;
}

.home-hero {
	position: relative;
	height: 100vh;
	min-height: 16rem;
	color: #fff;
	overflow: hidden;
	background: #1c1c1c;
}

.home-hero-swiper {
	position: absolute;
	inset: 0;
	z-index: 0;
	height: 100%;
}

.home-hero-swiper .swiper-wrapper,
.home-hero-swiper .swiper-slide {
	height: 100%;
}

.home-hero-swiper .swiper-slide {
	overflow: hidden;
}

.home-hero-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
	will-change: transform;
	animation: home-hero-zoom 14s ease-in-out infinite alternate;
}

@keyframes home-hero-zoom {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero-swiper .swiper-slide img {
		animation: none;
	}
}

.home-hero__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(28, 28, 28, 0.45);
	pointer-events: none;
}

.home-hero__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.25rem 1.25rem 2.5rem;
 	margin-inline: auto;
	pointer-events: none;
}

.home-hero__content a {
	pointer-events: auto;
}

.home-hero__content h1 {
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	margin: 0 0 0.6rem;
}

.home-hero__content p {
	margin: 0;
	font-size: 0.95rem;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 1rem 0 0;
}

.home-hero__link {
	color: #fff;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8rem;
	text-decoration: none;
	border: 1px solid #fff;
	border-radius: 999px;
	padding: 0.7rem 1.2rem;
}

.home-hero__pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.85rem;
	z-index: 3;
}

.home-hero__pagination .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.4;
}

.home-hero__pagination .swiper-pagination-bullet-active {
	background: #c19b76;
	opacity: 1;
}

.home-suites {
	padding: 4.5rem 0 1rem;
	background: #aab4d4;
}

.home-suites .section__title {
	margin-bottom: 0.75rem;
}

.home-suites__lead {
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	text-align: center;
	color: #444;
}

.home-suites__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.home-suites__item {
	background: #fff;
	border-radius: 1.5rem;
	padding: 1.75rem 1.4rem 1.5rem;
	text-align: center;
}

.home-suites__icon {
	display: inline-grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 999px;
	background: unset;
	color: #aab4d4;
	font-size: 2.15rem;
	margin-bottom: 1rem;
}

.home-suites__item h3 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.home-suites__item p {
	margin: 0;
	color: #555;
	font-size: 0.95rem;
}

.home-suites__cta {
	text-align: center;
	margin: 2.25rem 0 0;
}

.home-suites__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
	max-width: 860px;
	margin-inline: auto;
	display: grid;
	gap: 1rem;
}

.faq-item {
	background: #fff;
	border-radius: 1.5rem;
	padding: 0.35rem 1.25rem 0.35rem;
}

.faq-item summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
	list-style: none;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 1.2rem;
	padding: 1rem 0;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary .home-suites__icon {
	flex-shrink: 0;
	margin: 0;
	width: 2.6rem;
	height: 2.6rem;
	font-size: 0.95rem;
}

.faq-item p {
	margin: 0 0 1.15rem 3.6rem;
	color: #444;
}

.post-layout {
	padding: 4rem 0 5rem;
}

.post-main {
	max-width: 46rem;
	margin-inline: auto;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1.75rem;
	font-size: 0.85rem;
	color: #777;
}

.post-meta time {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #c19b76;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.post-copy {
	max-width: none;
	padding: 0;
	margin: 0;
}

.single-post .entry-content > * + * {
	margin-top: 1.15rem;
}

.page-services {
	padding-top: 5.5rem;
	padding-bottom: 5.5rem;
}

.page-services .home-suites__item {
	background: #fff;
}

.contact-swiper {
	margin: 0 0 3.5rem;
	padding: 0 2.5rem 2.75rem;
}

.contact-swiper .home-suites__item {
	height: 100%;
	min-height: 14rem;
}

.contact-swiper .swiper-button-prev,
.contact-swiper .swiper-button-next {
	color: #c19b76;
	width: 2rem;
	height: 2rem;
}

.contact-swiper .swiper-button-prev::after,
.contact-swiper .swiper-button-next::after {
	font-size: 1.1rem;
}

.contact-swiper .swiper-pagination-bullet {
	background: #1c1c1c;
	opacity: 0.25;
}

.contact-swiper .swiper-pagination-bullet-active {
	background: #c19b76;
	opacity: 1;
}

.contact-layout {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 1.5rem;
	align-items: stretch;
}

.contact-map,
.contact-form {
	background: #fff;
	border-radius: 1.5rem;
	overflow: hidden;
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	min-height: 28rem;
	border: 0;
	display: block;
}

.contact-form {
	padding: 2rem 1.75rem;
}

.contact-form h2 {
	margin: 0 0 0.4rem;
}

.contact-form > p {
	margin: 0 0 1.25rem;
	color: #555;
}

.contact-form .wpcf7-form p {
	margin: 0 0 0.9rem;
}

.onefloor-turnstile {
	margin: 0 0 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	border: 1px solid #e6ded4;
	border-radius: 0.85rem;
	padding: 0.75rem 0.9rem;
	font: inherit;
	background: #f7f4f0;
}

.contact-form input[type="submit"],
.contact-form .wpcf7-submit {
	background: #c19b76;
	color: #1c1c1c;
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1.4rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	cursor: pointer;
}

.home-services {
	padding: 5.5rem 0;
	background: #fff;
}

.home-book {
	padding: 4.5rem 1rem;
	background: #1c1c1c;
	color: #fff;
	text-align: center;
}

.home-book__inner {
	max-width: 40rem;
}

.home-book h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0.4rem 0 0.85rem;
}

.home-book p {
	color: #d7d7d7;
}

.home-suites__icon--light {
	background: #c19b76;
	color: #1c1c1c;
	margin-bottom: 1.25rem;
}

.home-book__facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	color: #eee;
	font-size: 0.9rem;
}

.home-book__facts i {
	color: #c19b76;
	margin-right: 0.35rem;
}

.section {
	padding: 4rem 0;
}

.section--dark {
	background: #1c1c1c;
	color: #fff;
}

.section__title {
	text-align: center;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	margin: 0 0 2.5rem;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.card {
	background: #fff;
	color: #1c1c1c;
	border: 1px solid #eee;
	border-radius: 1.25rem;
	overflow: hidden;
}

.card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card__body {
	padding: 1.25rem;
}

.card h3 {
	margin: 0 0 0.5rem;
}

.room-hero--archive {
	min-height: min(58vh, 560px);
}

.room-hero__lead {
 	margin: 0;
	font-size: 1.05rem;
	color: #eee;
}

.rooms-archive {
	background: #f7f4f0;
}

.cards--rooms {
	gap: 1.75rem;
}

.home .card--room {
	box-shadow: 0 10px 28px rgba(28, 28, 28, 0.1);
}

.card__media {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	border-radius: 1.5rem 1.5rem 0 0;
}

.card__media img {
	transition: transform 0.45s ease;
}

.card--room:hover .card__media img {
	transform: scale(1.04);
}

.card__overlay {
	position: absolute;
	inset: auto 0 0;
	padding: 1.1rem 1.15rem;
	background: linear-gradient(180deg, transparent, rgba(28, 28, 28, 0.82));
	color: #fff;
}

.card__kicker {
	display: block;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 0.65rem;
	color: #c19b76;
}

.card__title {
	display: block;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 1.45rem;
	color: #fff;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.card__meta li {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 1px solid #c19b76;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
}

.card__body p {
	margin: 0 0 1rem;
	color: #444;
	font-size: 0.95rem;
}

.card__date {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	color: #c19b76;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.card--skeleton {
	pointer-events: none;
	box-shadow: none;
}

.card--skeleton .card__media {
	aspect-ratio: 4 / 3;
}

.skeleton-block,
.skeleton-line,
.skeleton-btn {
	background: linear-gradient(90deg, #ece6df 0%, #f7f4f0 50%, #ece6df 100%);
	background-size: 200% 100%;
	animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.skeleton-line {
	height: 0.85rem;
	border-radius: 999px;
	margin: 0 0 0.65rem;
}

.skeleton-line--sm {
	width: 40%;
	height: 0.65rem;
}

.skeleton-line--md {
	width: 72%;
}

.skeleton-btn {
	width: 7rem;
	height: 2.4rem;
	border-radius: 999px;
	margin-top: 0.5rem;
}

@keyframes skeleton-pulse {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

.card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
}

.card__actions .book-btn {
	flex: 1 1 auto;
	min-width: 6.5rem;
}

.card__link {
	color: #1c1c1c;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.75rem;
	text-decoration: none;
}

.card__link:hover {
	color: #c19b76;
}

.amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.amenities li {
	font-size: 0.75rem;
	border: 1px solid #c19b76;
	padding: 0.2rem 0.5rem;
	color: #1c1c1c;
}

.room-hero {
	position: relative;
	min-height: min(78vh, 720px);
	display: flex;
	align-items: flex-end;
	background: #1c1c1c center / cover no-repeat;
	color: #fff;
	padding: 5rem 0 3.5rem;
}

.room-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28, 28, 28, 0.15) 0%, rgba(28, 28, 28, 0.82) 100%);
}

.room-hero__inner {
	position: relative;
	z-index: 1;
}

.room-crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	color: #a3a3a3;
}

.room-crumb a {
	color: #fff;
}

.room-kicker {
	margin: 0 0 0.4rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: #c19b76;
}

.room-hero h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.room-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.room-facts li {
	border: 1px solid rgba(193, 155, 118, 0.7);
	padding: 0.35rem 0.8rem;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.room-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
	gap: 3rem;
	padding: 3.5rem 0 4rem;
	align-items: start;
}

.room-copy {
	font-size: 1.08rem;
	max-width: 40rem;
}

.room-copy p {
	margin: 0 0 1.1rem;
}

.room-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin: 2rem 0 0;
}

.room-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.room-amenities {
	margin-top: 2.75rem;
}

.room-amenities h2 {
	margin: 0 0 1.25rem;
	font-size: 1.8rem;
}

.amenities--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.amenities--grid li {
	font-size: 0.85rem;
	padding: 0.7rem 0.85rem;
	background: #f7f4f0;
	border: 0;
	border-left: 3px solid #c19b76;
}

.room-book {
	position: sticky;
	top: 5.5rem;
	background: #1c1c1c;
	color: #fff;
	padding: 1.75rem;
}

.room-book__label {
	margin: 0;
	color: #c19b76;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.7rem;
}

.room-book__title {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 1.7rem;
	margin: 0.4rem 0 0.35rem;
}

.room-book__meta,
.room-book__note {
	color: #a3a3a3;
	font-size: 0.88rem;
}

.book-btn--block {
	display: block;
	text-align: center;
	margin: 1.25rem 0 1rem;
}

.share-box {
	margin-top: 2rem;
	padding: 1.25rem 1.5rem 1.4rem;
	background: #f7f4f0;
	border: 1px solid #e6d9cc;
	max-width: 40rem;
}

.share-box__label {
	margin: 0 0 0.85rem;
	color: #c19b76;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.7rem;
}

.share-box__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.share-box__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 999px;
	border: 1px solid #c19b76;
	background: transparent;
	color: #1c1c1c;
	text-decoration: none;
	cursor: pointer;
	padding: 0;
	font-size: 0.95rem;
	transition: background 0.2s ease, color 0.2s ease;
}

.share-box__btn:hover,
.share-box__btn.is-copied {
	background: #c19b76;
	color: #1c1c1c;
}

.room-related {
	background: #f7f4f0;
}

@media (max-width: 959px) {
	.room-layout,
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding-top: 2rem;
	}

	.room-book {
		position: static;
	}

	.amenities--grid {
		grid-template-columns: 1fr;
	}
}

.page-hero {
	background: #1c1c1c;
	color: #fff;
	padding: 3rem 0;
	text-align: center;
}

.entry-content {
	max-width: 46rem;
	margin: 0 auto;
	padding: 3rem 1rem;
}

.home .entry-content,
.front-page .entry-content {
	max-width: none;
	padding: 0;
	width: 100%;
}

.entry-content > * + * {
	margin-top: unset;
}

.faq details {
	border-bottom: 1px solid #eee;
	padding: 1rem 0;
}

.faq summary {
	cursor: pointer;
	font-weight: 700;
}

.site-footer {
	background: #1c1c1c;
	color: #a3a3a3;
	padding: 2.5rem 0;
	text-align: center;
	font-size: 0.9rem;
}

.site-footer a {
	color: #c19b76;
}

.kross-widget {
	margin: 2rem 0;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	padding: 2rem 0;
}

@media (max-width: 959px) {
	.cards {
		grid-template-columns: 1fr 1fr;
	}

	.home-suites__grid,
	.home-suites__grid--3 {
		grid-template-columns: 1fr 1fr;
	}

	.menu-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: min(300px, 86vw);
		height: 100%;
		background: #1c1c1c;
		padding: 4rem 1.5rem 1.5rem;
		transition: right 0.3s ease;
		z-index: 60;
		overflow: auto;
	}

	.site-nav.is-open {
		right: 0;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
	}

	.nav-close {
		position: absolute;
		top: 1rem;
		right: 1rem;
		background: transparent;
		border: 0;
		cursor: pointer;
	}
}

@media (min-width: 960px) {
	.nav-close {
		display: none;
	}
}

@media (max-width: 479px) {
	.cards {
		grid-template-columns: 1fr;
	}

	.home-suites__grid,
	.home-suites__grid--3 {
		grid-template-columns: 1fr;
	}
}
