/* Il Pietrone – site additions (theme colours from Varese: --wp--preset--color--*) */

/* Cookie banner in the site's colours and font */
#cc-main {
	--cc-font-family: var(--wp--preset--font-family--bodoni-moda, serif);
	--cc-btn-primary-bg: var(--wp--preset--color--foreground, #221f1d);
	--cc-btn-primary-border-color: var(--wp--preset--color--foreground, #221f1d);
	--cc-btn-primary-hover-bg: var(--wp--preset--color--body-text, #555250);
	--cc-btn-primary-hover-border-color: var(--wp--preset--color--body-text, #555250);
	--cc-btn-secondary-bg: var(--wp--preset--color--tertiary, #e7e4e2);
	--cc-btn-secondary-border-color: var(--wp--preset--color--tertiary, #e7e4e2);
	--cc-toggle-on-bg: var(--wp--preset--color--foreground, #221f1d);
	--cc-modal-border-radius: 6px;
	--cc-btn-border-radius: 5px;
}

/* Embeds waiting for consent */
.pt-embed { position: relative; width: 100%; background: var(--wp--preset--color--tertiary, #e7e4e2); border-radius: 6px; overflow: hidden; }
.pt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pt-embed__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.25rem; text-align: center; font-size: .95rem; }
.pt-embed__ph p { margin: 0; max-width: 34rem; }
.pt-embed__btn, .pt-cookie-settings {
	font: inherit; cursor: pointer; border-radius: 5px; padding: .5rem 1.4rem;
	border: 1px solid var(--wp--preset--color--foreground, #221f1d);
	background: var(--wp--preset--color--foreground, #221f1d); color: #fff;
}
.pt-embed__btn:hover { background: var(--wp--preset--color--body-text, #555250); }
/* Our own video (home): same size and rounded corners as the old YouTube box, no outside servers */
.wp-block-video.pt-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--wp--preset--color--tertiary, #e7e4e2); }
.pt-map { margin-block: 1.5rem; }
.pt-map .pt-embed { aspect-ratio: 16 / 7; }
@media (max-width: 600px) { .pt-map .pt-embed { aspect-ratio: 4 / 5 !important; } }
.pt-map__link { text-align: center; font-size: .95rem; margin-top: .5rem; }

/* Instagram */
.pt-instagram { margin-block: 1rem 2rem; text-align: center; }
.pt-instagram__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 900px; margin: 0 auto 1.25rem; }
.pt-instagram__grid a { display: block; aspect-ratio: 1; overflow: hidden; }
.pt-instagram__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pt-instagram__grid a:hover img { transform: scale(1.04); }
.pt-instagram__consent { font-size: .95rem; }
.pt-instagram__follow .wp-element-button { display: inline-block; text-decoration: none; padding: .55rem 1.6rem; border-radius: 5px; background: var(--wp--preset--color--foreground, #221f1d); color: #fff; }

/* Footer line */
.pt-legal { text-align: center; font-size: .85rem; line-height: 1.8; }
.pt-cookie-settings { background: none; color: inherit; border: 0; padding: 0; text-decoration: underline; font-size: inherit; }

/* Current language in the menu */
.pt-lang--current .wp-block-navigation-item__label { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: logo over a photo or video, fade-in + parallax (motion set by site.js) */
.pietrone-hero { overflow: hidden; min-height: min(82vh, 760px) !important; }
.pietrone-hero .wp-block-cover__image-background,
.pietrone-hero .wp-block-cover__video-background {
	opacity: 0; transition: opacity 1.6s ease; will-change: transform, opacity; transform: scale(1.08);
}
.pietrone-hero.is-revealed .wp-block-cover__image-background,
.pietrone-hero.is-revealed .wp-block-cover__video-background { opacity: 1; }
.pietrone-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
/* Light, even darkening of the whole banner so the white script reads on bright video scenes (no glow patch) */
.pietrone-hero .wp-block-cover__background { background: linear-gradient(rgba(0, 0, 0, .10), rgba(0, 0, 0, .25)) !important; opacity: 1 !important; }
.pietrone-hero .wp-block-image { margin: 0 auto; }
.pietrone-hero .wp-block-image img { width: min(440px, 80vw) !important; }
/* Soft shadow that follows the logo's own shape, so the white script reads on bright skies (no glow patch) */
.pietrone-hero .wp-block-image img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)) drop-shadow(0 0 18px rgba(0, 0, 0, .25)); }
.pietrone-hero .wp-block-image { opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease .3s, transform 1.4s ease .3s; }
.pietrone-hero.is-revealed .wp-block-image { opacity: 1; transform: none; }
/* Still photo stand-in: slow drift so it feels alive until the video arrives */
.pietrone-hero.pt-kenburns .wp-block-cover__image-background { animation: pt-drift 26s ease-in-out infinite alternate; }
@keyframes pt-drift { from { object-position: 50% 45%; } to { object-position: 50% 60%; } }
@media (prefers-reduced-motion: reduce) {
	.pietrone-hero .wp-block-cover__image-background,
	.pietrone-hero .wp-block-cover__video-background { opacity: 1; transition: none; animation: none !important; }
	.pietrone-hero .wp-block-image { opacity: 1; transform: none; transition: none; }
}

/* Apartment pages: tidy lists and tables on phones */
.pt-facts ul { padding-left: 1.2rem; }
.wp-block-post-content:has(.pt-facts) h1.wp-block-heading { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: .6rem; }
/* Services / Kitchen / Living room / ... in small boxes side by side (2 on phones, 3 on wider screens) */
.pt-facts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.4rem; font-size: .9rem; line-height: 1.4; }
@media (min-width: 782px) { .pt-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pt-facts > * { margin: 0 !important; max-width: none !important; }
.pt-fact h3, .pt-goodtoknow h2 { font-size: 1.1rem; margin: .9rem 0 .35rem !important; }
.pt-fact ul, .pt-goodtoknow ul { margin: 0; padding-left: 1.1rem; }
.pt-fact li, .pt-goodtoknow li { margin: .1rem 0; }
.pt-goodtoknow { font-size: .9rem; line-height: 1.4; margin-top: 1rem !important; }
@media (min-width: 782px) { .pt-goodtoknow ul { columns: 2; column-gap: 2.5rem; } .pt-goodtoknow li { break-inside: avoid; } }
.pt-prices { overflow-x: auto; }
@media (max-width: 600px) {
	.pt-prices table { font-size: .82rem; }
	.pt-prices td, .pt-prices th { padding: .35rem .3rem !important; }
}

/* ------------------------------------------------------------------ Top bar (pietrone-menu.php) */
:root { --pt-bar-h: 68px; --pt-bar-top: var(--wp-admin--admin-bar--height, 0px); }
html { scroll-padding-top: calc(var(--pt-bar-h) + var(--pt-bar-top) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* the old theme header spacing goes away: the bar is the header now */
.wp-site-blocks > .wp-block-template-part:first-child, .wp-site-blocks > header:first-child { margin: 0 !important; padding: 0 !important; }
.wp-site-blocks > .wp-block-template-part:first-child + * { margin-top: 0 !important; }
.pt-bar {
	position: fixed; z-index: 1000; left: 0; right: 0; top: var(--pt-bar-top); height: var(--pt-bar-h);
	background: rgba(255, 255, 255, .96); color: var(--wp--preset--color--foreground, #221f1d);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .08); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
	transition: background .35s ease, box-shadow .35s ease, color .35s ease;
	font-family: var(--wp--preset--font-family--bodoni-moda, serif);
}
.pt-bar-space { height: var(--pt-bar-h); }
.pt-bar__in { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); display: flex; align-items: center; gap: 1.5rem; }
.pt-bar__logo { display: block; flex: none; height: 46px; position: relative; }
.pt-bar__logo img { display: block; height: 46px; width: auto; transition: opacity .35s ease; }
.pt-bar__logo .pt-bar__logo-light { position: absolute; left: 0; top: 0; opacity: 0; }
.pt-bar__nav { flex: 1; }
.pt-bar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(1rem, 2.6vw, 2.4rem); }
.pt-bar a { color: inherit; text-decoration: none; }
.pt-bar__nav a { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.pt-bar__nav a:hover, .pt-bar__nav a:focus-visible { border-bottom-color: currentColor; }
.pt-bar__right { display: flex; align-items: center; gap: .9rem; flex: none; margin-left: auto; }
.pt-bar__book {
	display: inline-block; padding: .55rem 1.3rem; border-radius: 5px; white-space: nowrap;
	background: var(--wp--preset--color--primary, #396977); color: #fff !important; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
	transition: background .25s ease;
}
.pt-bar__book:hover, .pt-bar__book:focus-visible { background: var(--wp--preset--color--foreground, #221f1d); }

/* language picker */
.pt-langs { position: relative; }
.pt-langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; padding: .45rem .55rem; border: 1px solid currentColor; border-radius: 5px; font-size: .85rem; letter-spacing: .08em; }
.pt-langs summary::-webkit-details-marker { display: none; }
.pt-langs__caret { width: .45em; height: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.pt-langs[open] .pt-langs__caret { transform: rotate(-135deg) translateY(-1px); }
.pt-langs ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: .4rem 0; min-width: 11rem; background: #fff; color: var(--wp--preset--color--foreground, #221f1d); border-radius: 6px; box-shadow: 0 8px 28px rgba(0, 0, 0, .16); }
.pt-langs li a { display: flex; gap: .7rem; padding: .5rem 1rem; font-size: .95rem; }
.pt-langs li a b { font-weight: 600; width: 1.6rem; letter-spacing: .05em; }
.pt-langs li a:hover, .pt-langs li a:focus-visible { background: var(--wp--preset--color--tertiary, #e7e4e2); }
.pt-langs li a[aria-current] { color: var(--wp--preset--color--primary, #396977); }

/* over the video banner (home pages, until you scroll): see-through, white */
.pt-bar.is-over { background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); box-shadow: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pt-bar.is-over .pt-bar__logo-dark { opacity: 0; }
.pt-bar.is-over .pt-bar__logo-light { opacity: 1; }
.pt-bar.is-over .pt-bar__nav a { text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
body.pt-has-hero .pt-bar-space { display: none; }

/* burger (phones / small tablets) */
.pt-bar__burger { display: none; width: 42px; height: 42px; padding: 10px 9px; border: 0; background: none; color: inherit; cursor: pointer; flex-direction: column; justify-content: space-between; }
.pt-bar__burger span { display: block; height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.pt-bar.is-open .pt-bar__burger span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.pt-bar.is-open .pt-bar__burger span:nth-child(2) { opacity: 0; }
.pt-bar.is-open .pt-bar__burger span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
@media (max-width: 900px) {
	:root { --pt-bar-h: 60px; }
	.pt-bar__in { gap: .6rem; }
	.pt-bar__logo, .pt-bar__logo img { height: 38px; }
	.pt-bar__burger { display: flex; }
	.pt-bar__right { gap: .5rem; }
	.pt-bar__book { padding: .5rem .8rem; font-size: .78rem; }
	.pt-langs summary { padding: .4rem .45rem; font-size: .78rem; }
	.pt-bar__nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--wp--preset--color--foreground, #221f1d); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); display: none; }
	.pt-bar.is-open .pt-bar__nav { display: block; }
	.pt-bar__nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
	.pt-bar__nav a { display: block; padding: .9rem 1.5rem; border: 0; text-shadow: none !important; }
	.pt-bar.is-open { background: #fff; color: var(--wp--preset--color--foreground, #221f1d); }
	.pt-bar.is-open .pt-bar__logo-dark { opacity: 1; }
	.pt-bar.is-open .pt-bar__logo-light { opacity: 0; }
}
@media (max-width: 380px) { .pt-bar__logo, .pt-bar__logo img { height: 32px; } .pt-bar__book { padding: .45rem .6rem; letter-spacing: .04em; } }
@media (prefers-reduced-motion: reduce) { .pt-bar, .pt-bar *, .pt-blog__track { transition: none !important; } }

/* ------------------------------------------------------------------ Blog carousel */
.pt-blog { position: relative; max-width: 1200px; margin: 1.5rem auto 2.5rem; }
.pt-blog__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; }
.pt-blog__card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.pt-blog__card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pt-blog__img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; background: var(--wp--preset--color--tertiary, #e7e4e2); transition: transform .5s ease; }
.pt-blog__card a:hover .pt-blog__img { transform: scale(1.03); }
.pt-blog__body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.15rem 1.25rem; flex: 1; position: relative; background: #fff; }
.pt-blog__body time { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary, #9b9896); }
.pt-blog__title { font-size: 1.15rem; line-height: 1.3; }
.pt-blog__excerpt { font-size: .9rem; line-height: 1.5; color: var(--wp--preset--color--body-text, #555250); }
.pt-blog__more { margin-top: auto; font-size: .85rem; color: var(--wp--preset--color--primary, #396977); }
.pt-blog__nav { position: absolute; top: calc(50% - 50px); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); font-size: 1.6rem; line-height: 1; color: var(--wp--preset--color--foreground, #221f1d); }
.pt-blog__nav--prev { left: -14px; }
.pt-blog__nav--next { right: -14px; }
.pt-blog__nav[disabled] { opacity: 0; pointer-events: none; }
.pt-blog__all { text-align: center; margin-top: 1.2rem; }
.pt-blog__all .wp-element-button, .pt-booking__btns .wp-element-button { display: inline-block; text-decoration: none; padding: .55rem 1.6rem; border-radius: 5px; background: var(--wp--preset--color--foreground, #221f1d); color: #fff; }
@media (max-width: 900px) { .pt-blog__card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .pt-blog__card { flex-basis: 82%; } .pt-blog__nav { display: none; } }

/* ------------------------------------------------------------------ Booking */
.pt-booking { margin: 1.5rem auto 2.5rem; }
.pt-booking iframe { width: 100%; border: 0; }
.pt-booking--soon { max-width: 640px; text-align: center; padding: 2rem 1.5rem; border-radius: 6px; background: var(--wp--preset--color--tertiary, #e7e4e2); }
.pt-booking__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.2rem; }

/* "Have any questions? Contact us" (home pages) and the contact form on the Book pages */
.pt-ask { margin-block: 2.5rem 3rem !important; }
.pt-ask p { margin-bottom: .8rem; }
.pt-ask .wp-block-button__link { padding: .6rem 1.8rem; border-radius: 5px; background: var(--wp--preset--color--primary, #396977); color: #fff; letter-spacing: .06em; }
.pt-ask .wp-block-button__link:hover { background: var(--wp--preset--color--foreground, #221f1d); }
.pt-contact { margin-bottom: 2rem; }

/* Contact card (Jetpack contact info shown as tiles, see pietrone-menu.php) */
.pt-cc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1000px; margin: 1.5rem auto 3rem !important; }
.pt-cc__tile {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.4rem 1rem 1.3rem;
	border-radius: 6px; background: var(--wp--preset--color--tertiary, #e7e4e2); color: var(--wp--preset--color--foreground, #221f1d) !important;
	text-decoration: none !important; transition: background .25s ease, transform .25s ease;
}
.pt-cc__tile:hover, .pt-cc__tile:focus-visible { background: #dcd8d5; transform: translateY(-2px); }
.pt-cc__icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: .35rem; border-radius: 50%; background: #fff; color: var(--wp--preset--color--primary, #396977); }
.pt-cc__tile--chat .pt-cc__icon { color: #1da851; }
.pt-cc__label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--body-text, #555250); }
.pt-cc__value { font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
@media (max-width: 800px) { .pt-cc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .pt-cc { gap: 10px; } .pt-cc__tile { padding: 1.1rem .6rem; } .pt-cc__value { font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .pt-cc__tile { transition: none; } .pt-cc__tile:hover { transform: none; } }

/* Space above the family photo (start of "About us") */
.wp-block-image#about { margin-top: clamp(3rem, 7vw, 5.5rem) !important; }

/* Contact form */
.pt-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; max-width: 640px; margin: 0 auto; }
.pt-form__field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.pt-form__field--name, .pt-form__field--message, .pt-form__field--privacy, .pt-form__actions, .pt-form__status { grid-column: 1 / -1; }
.pt-form label { font-size: .9rem; }
.pt-form__req { color: var(--wp--preset--color--quaternary, #b46023); }
.pt-form input[type=text], .pt-form input[type=email], .pt-form input[type=tel], .pt-form input[type=date], .pt-form input[type=number], .pt-form select, .pt-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: .65rem .75rem; border: 1px solid #cfcac6; border-radius: 5px; background: #fff; color: inherit;
}
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus { outline: 2px solid var(--wp--preset--color--primary, #396977); outline-offset: 1px; border-color: transparent; }
.pt-form.was-checked :invalid { border-color: #b3261e; }
.pt-form__field--privacy label { flex-direction: row; display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.5; }
.pt-form__field--privacy input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: none; }
.pt-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pt-form__send { font: inherit; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: .75rem 2.2rem; border: 0; border-radius: 5px; background: var(--wp--preset--color--primary, #396977); color: #fff; }
.pt-form__send:hover { background: var(--wp--preset--color--foreground, #221f1d); }
.pt-form__send[disabled] { opacity: .6; cursor: wait; }
.pt-form__status { margin: .5rem 0 0; font-size: .95rem; }
.pt-form__status.is-ok { color: #1e6b3a; }
.pt-form__status.is-error { color: #b3261e; }
@media (max-width: 560px) { .pt-form { grid-template-columns: 1fr; } }

/* Book box on the apartment pages */
.pt-bookbox { max-width: 640px; margin: 2.5rem auto 3rem !important; padding: 2rem 1.5rem; text-align: center; border-radius: 6px; background: var(--wp--preset--color--tertiary, #e7e4e2); }
.pt-bookbox p { margin: 0 0 1rem; }
.pt-bookbox__title { font-size: 1.35rem; line-height: 1.35; }
.pt-bookbox__btn { display: inline-block; padding: .75rem 2.4rem; border-radius: 5px; background: var(--wp--preset--color--primary, #396977); color: #fff !important; text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; }
.pt-bookbox__btn:hover { background: var(--wp--preset--color--foreground, #221f1d); }
.pt-bookbox .pt-bookbox__alt { margin: .4rem 0 0; font-size: .92rem; color: var(--wp--preset--color--body-text, #555250); }
.pt-bookbox .pt-bookbox__alt { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.pt-bookbox__airbnb { display: inline-flex; align-items: center; padding: .45rem .9rem; border-radius: 6px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .1); transition: box-shadow .25s ease, transform .25s ease; }
.pt-bookbox__airbnb:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, .16); transform: translateY(-1px); }
.pt-bookbox__airbnb img { display: block; height: 30px; width: auto; }
@media (prefers-reduced-motion: reduce) { .pt-bookbox__airbnb { transition: none; } .pt-bookbox__airbnb:hover { transform: none; } }
.pt-bookbox .pt-bookbox__alt { flex-direction: column; gap: .55rem; }

/* Thank-you page */
.pt-thanks .wp-block-button__link { padding: .7rem 2rem; border-radius: 5px; background: var(--wp--preset--color--primary, #396977); color: #fff; }
.pt-thanks .wp-block-button__link:hover { background: var(--wp--preset--color--foreground, #221f1d); }

/* Home: "Book direct" button under the intro */
.pt-homebook { margin: 1.2rem auto 2rem !important; }
.pt-homebook .wp-block-button__link { display: inline-block; padding: .75rem 2rem; border-radius: 5px; background: var(--wp--preset--color--primary, #396977); color: #fff !important; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; text-align: center; }
.pt-homebook .wp-block-button__link:hover { background: var(--wp--preset--color--foreground, #221f1d); }

/* Availability calendars (Smoobu) */
.pt-cal { max-width: 1000px; margin: 2rem auto 2.5rem !important; }
.pt-cal__title { text-align: center; font-size: 1.35rem; margin-bottom: 1rem; }
.pt-cal__tabs { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pt-cal__tabs button { font: inherit; cursor: pointer; padding: .5rem 1.4rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--primary, #396977); background: #fff; color: var(--wp--preset--color--primary, #396977); letter-spacing: .06em; }
.pt-cal__tabs button[aria-selected=true] { background: var(--wp--preset--color--primary, #396977); color: #fff; }
.pt-cal .calendarWidget { overflow-x: auto; }
/* hidden calendars keep their full width so Smoobu can draw them; only the chosen one is shown */
.pt-cal--tabs { position: relative; }
.pt-cal__panel[aria-hidden=true] { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; pointer-events: none; }

/* Booking conditions pages */
.pt-terms h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem) !important; margin-top: 2.2rem !important; margin-bottom: .6rem !important; }
.pt-terms h1 { margin-bottom: 1.5rem !important; }
.pt-terms p, .pt-terms li { line-height: 1.65; }

/* Blog page: all posts as a grid */
.pt-blog--grid { padding: 0 clamp(14px, 3vw, 32px); }
.pt-blog--grid .pt-blog__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; padding: 0; }
.pt-blog--grid .pt-blog__card { flex: none; }
@media (max-width: 900px) { .pt-blog--grid .pt-blog__track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pt-blog--grid .pt-blog__track { grid-template-columns: 1fr; } }

/* Home: frequently asked questions (Details blocks, closed until tapped) */
.pt-faq { max-width: 760px; margin: 2.5rem auto 3rem !important; padding-inline: clamp(14px, 3vw, 0px); }
.pt-faq h2 { margin-bottom: 1.2rem !important; }
.pt-faq .wp-block-details { margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--tertiary, #e7e4e2); }
.pt-faq .wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--tertiary, #e7e4e2); }
.pt-faq summary { list-style: none; cursor: pointer; position: relative; padding: .9rem 2.2rem .9rem 0; font-weight: 600; line-height: 1.4; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--wp--preset--color--primary, #396977); border-bottom: 2px solid var(--wp--preset--color--primary, #396977); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.pt-faq details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.pt-faq summary:hover { color: var(--wp--preset--color--primary, #396977); }
.pt-faq .wp-block-details p { margin: 0 0 1rem !important; line-height: 1.65; }
@media (max-width: 600px) { .pt-faq summary { padding-block: .75rem; font-size: .98rem; } .pt-faq .wp-block-details p { font-size: .95rem; } }
