/*
Theme Name: Dommoammare
Theme URI: https://example.com/
Author: Dommoammare
Author URI: https://example.com/
Description: Tema custom per gestione appartamenti a Budoni (Sa Playa).
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sardegna-hotels
*/

:root {
  --sh-ink: #0b1220;
  --sh-sea: #0e7490;
  --sh-deep: #0b3b57;
  --sh-sand: #f5f0e6;
  --sh-page-pad: 1.15rem;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 55%, #ffffff 100%);
}

.wp-site-blocks > main.wp-block-group > :where(:not(.alignfull)) {
  padding-left: max(var(--sh-page-pad), env(safe-area-inset-left));
  padding-right: max(var(--sh-page-pad), env(safe-area-inset-right));
}

.wp-site-blocks > main.wp-block-group > :where(.alignfull) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sh-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wp-site-blocks > .wp-block-template-part:first-child {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wp-site-blocks > .wp-block-template-part:first-child + * {
  margin-block-start: 0 !important;
}

.wp-site-blocks > .wp-block-template-part:first-child .sh-header {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.sh-hero {
  margin-top: 0 !important;
}

.home .wp-site-blocks > main.wp-block-group {
  margin-block-start: 0 !important;
}

.sh-header a:hover {
  opacity: 0.92;
}

.sh-header .wp-block-navigation-item__content {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sh-header .wp-block-navigation-item__content:hover {
  background: rgba(14, 116, 144, 0.1);
}

.sh-header .wp-block-navigation-item__content[aria-current="page"],
.sh-header .wp-block-navigation-item__content[aria-current="true"],
.sh-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.sh-header .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
.sh-header .wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content,
.sh-header .wp-block-navigation-item.current_page_ancestor > .wp-block-navigation-item__content {
  background: rgba(14, 116, 144, 0.14);
  border: 1px solid rgba(14, 116, 144, 0.22);
  color: rgba(11, 59, 87, 0.95);
}

@media (max-width: 782px) {
  .wp-block-navigation__responsive-container.is-menu-open,
  .sh-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    background: linear-gradient(135deg, rgba(11, 59, 87, 0.94) 0%, rgba(14, 116, 144, 0.8) 45%, rgba(11, 18, 32, 0.94) 100%);
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    width: 100%;
    height: 100%;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list,
  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
    margin: 0 !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding-top: 0 !important;
    text-align: center;
    width: min(520px, 100%);
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.35rem;
    font-weight: 900;
    padding: 0.82rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"],
  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="true"] {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: rgba(11, 59, 87, 0.95) !important;
  }

  .sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    display: grid;
    place-items: center;
  }
}

.sh-hero .wp-block-cover__background {
  background: linear-gradient(120deg, rgba(11, 59, 87, 0.92) 0%, rgba(14, 116, 144, 0.55) 42%, rgba(11, 18, 32, 0.82) 100%) !important;
}

.sh-hero .wp-block-cover__inner-container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

.sh-hero {
  --sh-hero-parallax: 0px;
}

.sh-hero .wp-block-cover__image-background {
  transform: translate3d(0, var(--sh-hero-parallax), 0) scale(1.12);
  will-change: transform;
}

.sh-hero h1,
.sh-hero p {
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.sh-slider {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 240px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.sh-slider::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.sh-slider__viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sh-slider__viewport::-webkit-scrollbar {
  display: none;
}

.sh-slider__slides {
  display: flex;
  height: 100%;
}

.sh-slider__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  background: #000;
  height: 100%;
}

.sh-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.sh-slider__controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.sh-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(11, 18, 32, 0.35);
  color: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  opacity: 0.95;
  pointer-events: auto;
}

.sh-slider__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.sh-slider__prev {
  left: 12px;
}

.sh-slider__next {
  right: 12px;
}

.sh-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}

.sh-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  pointer-events: auto;
}

.sh-slider__dot[data-active="1"],
.sh-slider__dot[aria-current="true"] {
  width: 18px;
  background: rgba(255, 255, 255, 0.95);
}

.sh-carousel {
  position: relative;
}

.sh-carousel--minimal {
  margin-top: 1.25rem;
}

.sh-apartments-side {
  background: rgba(255, 255, 255, 0.86);
}

.sh-apartments-side__list {
  margin: 0.85rem 0 0;
  padding-left: 1.1em;
  color: rgba(11, 18, 32, 0.76);
}

.sh-apartments-carousel-wrap {
  margin-top: 1.25rem;
}

.sh-carousel__overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.sh-carousel--minimal::before,
.sh-carousel--minimal::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0.65rem;
  width: 52px;
  pointer-events: none;
  z-index: 3;
}

.sh-carousel--minimal::before {
  left: 0;
  background: linear-gradient(90deg, rgba(245, 240, 230, 0.95) 0%, rgba(245, 240, 230, 0) 100%);
}

.sh-carousel--minimal::after {
  right: 0;
  background: linear-gradient(270deg, rgba(245, 240, 230, 0.95) 0%, rgba(245, 240, 230, 0) 100%);
}

.sh-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sh-carousel__header-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(11, 18, 32, 0.92);
}

.sh-carousel__header-actions {
  display: flex;
  gap: 0.5rem;
}

.sh-carousel__nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  color: rgba(11, 18, 32, 0.86);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}

.sh-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.sh-carousel__viewport {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 0.75rem;
  scroll-padding-left: 0.25rem;
  scroll-padding-right: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.sh-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.sh-carousel__item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: clamp(320px, 38vw, 460px);
  display: flex;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sh-carousel__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

.sh-carousel__media {
  position: relative;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.12);
  aspect-ratio: 16 / 9;
  width: 100%;
  line-height: 0;
}

.sh-carousel__media img,
.sh-carousel__media .sh-carousel__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.sh-carousel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.28) 100%);
  pointer-events: none;
}

.sh-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.sh-carousel__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.15rem 1.15rem;
}

.sh-carousel__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
}

.sh-carousel__excerpt {
  margin: 0.55rem 0 0;
  color: rgba(11, 18, 32, 0.72);
  line-height: 1.6;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: calc(1.6em * 3);
}

.sh-carousel__item .sh-meta {
  margin-top: 0.85rem;
  justify-content: flex-start;
}

.sh-carousel__cta {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.sh-carousel__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 59, 87, 0.07);
  border: 1px solid rgba(11, 59, 87, 0.14);
  color: rgba(11, 59, 87, 0.95);
  font-weight: 900;
  font-size: 0.9rem;
}

.sh-carousel__cta-btn::after {
  content: "→";
  transition: transform 0.18s ease;
}

.sh-carousel__item:hover .sh-carousel__cta-btn::after {
  transform: translateX(2px);
}

.sh-carousel__item:hover .sh-carousel__img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.sh-carousel__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18);
  border-color: rgba(14, 116, 144, 0.28);
}

.sh-carousel__progress {
  margin-top: 0.5rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sh-carousel__progress-bar {
  --sh-progress: 0;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--sh-progress));
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.65) 0%, rgba(11, 59, 87, 0.9) 100%);
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  .sh-carousel--minimal .sh-carousel__overlay {
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .sh-carousel--minimal:hover .sh-carousel__overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

.sh-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

.sh-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sh-booking-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  padding: 1.4rem;
}

.sh-booking-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 300px at 15% 0%, rgba(14, 116, 144, 0.22) 0%, rgba(14, 116, 144, 0) 55%),
    radial-gradient(700px 260px at 90% 30%, rgba(11, 59, 87, 0.18) 0%, rgba(11, 59, 87, 0) 55%);
  pointer-events: none;
}

.sh-booking-card > * {
  position: relative;
}

.sh-booking-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--sh-deep);
}

.sh-booking-card__subtitle {
  font-size: 0.95rem;
  color: rgba(11, 18, 32, 0.76);
}

.sh-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sh-booking-grid > p {
  margin: 0;
}

.sh-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sh-field__label {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(11, 18, 32, 0.78);
}

.sh-field--full {
  grid-column: 1 / -1;
}

.sh-field__input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  line-height: 1.2;
  color: rgba(11, 18, 32, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.95);
}

.sh-field__input:focus {
  outline: none;
  border-color: rgba(14, 116, 144, 0.65);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.18);
}

.sh-field__input[type="date"] {
  font-variant-numeric: tabular-nums;
}

.sh-field__static {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(245, 240, 230, 0.55);
  color: rgba(11, 18, 32, 0.86);
  font-weight: 800;
}

@media (max-width: 820px) {
  :root {
    --sh-page-pad: 1rem;
  }

  .sh-field__input {
    height: 42px;
    padding: 0.42rem 0.68rem !important;
    font-size: 16px !important;
  }

  .sh-field__static {
    height: 42px;
    padding: 0.42rem 0.68rem !important;
    font-size: 16px !important;
  }

  .sh-lead-textarea {
    min-height: 128px;
  }
}

.sh-booking-submit {
  box-shadow: 0 16px 34px rgba(14, 116, 144, 0.35);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sh-booking-submit:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.sh-card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.sh-features {
  position: relative;
  z-index: 3;
  margin-top: -3.25rem;
}

.sh-features__inner {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.75rem 1.5rem;
}

.sh-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  background: rgba(14, 116, 144, 0.08);
  color: rgba(11, 59, 87, 0.92);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.sh-feature {
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
  padding: 1.15rem 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.sh-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 180px at 25% 0%, rgba(14, 116, 144, 0.12) 0%, rgba(14, 116, 144, 0) 60%);
  pointer-events: none;
}

.sh-feature > * {
  position: relative;
}

.sh-feature__icon {
  margin: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.95) 0%, rgba(11, 59, 87, 0.92) 100%);
  box-shadow: 0 18px 55px rgba(14, 116, 144, 0.18);
  flex: 0 0 auto;
}

.sh-feature__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sh-feature__text {
  margin: 0.75rem 0 0;
  color: rgba(11, 18, 32, 0.76);
  line-height: 1.7;
  font-size: 0.98rem;
}

.sh-benefits-section {
  background: linear-gradient(180deg, rgba(251, 250, 247, 1) 0%, rgba(246, 243, 238, 1) 100%);
}

.sh-benefits__wrap {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2rem 1.5rem;
}

.sh-benefits .wp-block-column {
  display: grid;
}

.sh-benefit {
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.1);
  padding: 1.1rem 1.1rem 1.15rem;
}

.sh-benefit__icon {
  margin: 0 0 0.35rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(11, 59, 87, 0.95);
  background: rgba(14, 116, 144, 0.1);
  border: 1px solid rgba(14, 116, 144, 0.22);
}

.sh-benefit__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sh-benefit__text {
  margin: 0.45rem 0 0;
  color: rgba(11, 18, 32, 0.75);
  line-height: 1.7;
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .sh-features {
    margin-top: -1.75rem;
  }

  .sh-features__inner {
    padding: 1.35rem 1.1rem;
  }
}

.sh-feature-card {
  position: relative;
  overflow: hidden;
}

.sh-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 160px at 30% 0%, rgba(14, 116, 144, 0.12) 0%, rgba(14, 116, 144, 0) 60%);
  pointer-events: none;
}

.sh-feature-card > * {
  position: relative;
}

.sh-apartment-card {
  cursor: pointer;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sh-apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.2);
  border-color: rgba(14, 116, 144, 0.32);
}

.sh-apartment-card .wp-block-post-featured-image {
  margin: 0;
  position: relative;
}

.sh-apartment-card .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 0 !important;
  display: block;
  transition: transform 0.3s ease;
}

.sh-apartment-card .wp-block-post-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.28) 100%);
  pointer-events: none;
}

.sh-apartment-card:hover .wp-block-post-featured-image img {
  transform: scale(1.02);
}

.sh-apartment-card .wp-block-post-title {
  margin: 1.05rem 1.15rem 0.25rem;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  text-align: center;
}

.sh-apartment-card .wp-block-post-title.has-large-font-size {
  font-size: 0.98rem !important;
}

.sh-apartment-card .wp-block-post-title a {
  color: var(--sh-ink);
}

.sh-apartment-card .wp-block-post-excerpt {
  margin: 0.35rem 1.15rem 0;
  padding-bottom: 1.1rem;
  color: rgba(11, 18, 32, 0.76);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.sh-apartment-card .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: calc(1.6em * 3);
  margin: 0;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.sh-apartment-card .wp-block-post-excerpt__excerpt:empty {
  display: none;
}

.sh-apartment-card .wp-block-post-excerpt__excerpt:not(:empty) {
  position: relative;
}

.sh-apartment-card .wp-block-post-excerpt__excerpt:empty {
  display: none;
}

.sh-apartment-card .wp-block-post-excerpt__more-text {
  margin: 0.9rem 0 0;
  display: flex;
  justify-content: center;
}

.sh-apartment-card .wp-block-post-excerpt__more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 59, 87, 0.07);
  border: 1px solid rgba(11, 59, 87, 0.14);
  color: rgba(11, 59, 87, 0.95);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.sh-apartment-card .wp-block-post-excerpt__more-link::after {
  content: "→";
  font-weight: 900;
  transition: transform 0.18s ease;
}

.sh-apartment-card:hover .wp-block-post-excerpt__more-link::after {
  transform: translateX(2px);
}

.sh-apartment-card:hover .wp-block-post-excerpt__more-link {
  background: rgba(11, 59, 87, 0.12);
  border-color: rgba(11, 59, 87, 0.22);
}

.sh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.sh-apartment-card .sh-meta {
  margin: 0.95rem 1.15rem 1.15rem;
  justify-content: center;
}

.sh-meta__item {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 240, 230, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(11, 18, 32, 0.82);
  font-size: 0.85rem;
  font-weight: 700;
}

.sh-modal-open {
  overflow: hidden;
}

.sh-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 18, 32, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.sh-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sh-modal__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.28s ease;
}

.sh-modal--open .sh-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sh-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 18, 32, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.sh-lead-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sh-lead-modal__panel {
  width: min(560px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.28s ease;
  position: relative;
  overflow: hidden;
}

.sh-lead-modal--open .sh-lead-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sh-lead-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(11, 18, 32, 0.85);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.sh-lead-modal__content {
  padding: 1.6rem 1.35rem 1.35rem;
}

.sh-lead-modal__title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(11, 18, 32, 0.92);
  margin: 0;
}

.sh-lead-modal__subtitle {
  margin: 0.35rem 0 0.95rem;
  color: rgba(11, 18, 32, 0.72);
  line-height: 1.6;
}

.sh-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sh-lead-grid .sh-field--full {
  grid-column: 1 / -1;
}

.sh-lead-textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.sh-lead-submit {
  width: 100%;
  margin-top: 1rem;
  height: 52px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.95) 0%, rgba(11, 59, 87, 0.95) 100%);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 70px rgba(14, 116, 144, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sh-lead-submit:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.sh-lead-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.sh-lead-status {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: rgba(11, 18, 32, 0.76);
  min-height: 1.2em;
}

.sh-lead-hp {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 520px) {
  .sh-lead-grid {
    grid-template-columns: 1fr;
  }
}

.sh-modal__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(11, 18, 32, 0.85);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.sh-modal__content {
  padding: 6.5rem 2rem 4.75rem;
}

.sh-modal__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.sh-modal__inner--enter {
  opacity: 0;
  transform: translateY(10px);
}

.sh-modal__inner--enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.sh-modal__inner main,
.sh-modal__inner .wp-block-group {
  max-width: 100%;
}

.sh-modal__inner .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}

.sh-modal__inner .wp-block-post-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sh-modal__inner main.wp-block-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.sh-modal__inner .sh-slider {
  margin: 0 0 2rem;
}

.sh-modal__inner .sh-booking-card {
  margin: 0;
}

.sh-modal-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 2rem;
}

.sh-modal-aside .sh-booking-card {
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
}

.sh-modal-aside .sh-booking-form {
  margin-top: 0.85rem;
}

.sh-modal-aside .sh-booking-grid {
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.sh-modal__inner .sh-booking-grid {
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

.sh-modal__inner .sh-booking-grid > p {
  display: contents;
}

.sh-modal__inner .sh-booking-form > p {
  margin: 0;
}

.sh-modal__inner .sh-booking-grid > .sh-field:not(.sh-field--full) + .sh-field:not(.sh-field--full) {
  margin-top: 0.15rem;
}

.sh-modal__inner .wp-block-post-featured-image {
  margin: 0 0 2rem;
}

.sh-modal__inner .wp-block-post-content {
  margin: 0;
  padding: 1.6rem 1.75rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.sh-modal__inner .sh-card--pad {
  padding: 1.5rem;
}

.sh-modal__inner .sh-card {
  margin-top: 0.25rem;
}

.sh-modal__inner .wp-block-post-content p {
  color: rgba(11, 18, 32, 0.78);
  line-height: 1.75;
  font-size: 1.02rem;
  margin: 0 0 1.15rem;
}

.sh-modal__inner .wp-block-post-content p:first-child {
  font-size: 1.1rem;
  color: rgba(11, 18, 32, 0.84);
}

.sh-modal__inner .wp-block-post-content p:last-child {
  margin-bottom: 0;
}

@media (min-width: 980px) {
  .sh-modal__inner main.wp-block-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas:
      "title title"
      "media media"
      "content aside";
    column-gap: 2.75rem;
    row-gap: 2.25rem;
    align-items: start;
  }

  .sh-modal__inner main.wp-block-group > .wp-block-post-title {
    grid-area: title;
    text-align: center;
  }

  .sh-modal__inner main.wp-block-group > .wp-block-post-featured-image,
  .sh-modal__inner main.wp-block-group > .sh-slider {
    grid-area: media;
  }

  .sh-modal__inner main.wp-block-group > .wp-block-post-content {
    grid-area: content;
  }

  .sh-modal__inner main.wp-block-group > .sh-modal-aside {
    grid-area: aside;
    position: sticky;
    top: 5.75rem;
    align-self: start;
  }
}

.sh-modal__inner .wp-block-post-featured-image img {
  border-radius: 22px !important;
}

.sh-modal__inner .sh-card {
  border-radius: 22px;
}

.sh-modal__loading {
  max-width: 980px;
  margin: 0 auto;
}

.sh-skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.12) 50%, rgba(15, 23, 42, 0.06) 100%);
  background-size: 200% 100%;
  animation: sh-shimmer 1.15s ease-in-out infinite;
}

.sh-skeleton--title {
  height: 42px;
  width: 64%;
  margin-bottom: 1rem;
}

.sh-skeleton--media {
  height: 380px;
  margin-bottom: 1rem;
}

.sh-skeleton--text {
  height: 18px;
  width: 92%;
  margin-bottom: 0.65rem;
}

@keyframes sh-shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.sh-modal__error {
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.sh-modal__error-title {
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.sh-modal__error-text {
  color: rgba(11, 18, 32, 0.74);
  margin-bottom: 0.75rem;
}

.sh-modal__error-link {
  word-break: break-all;
}

.sh-summary__grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.wp-block-post-title,
.wp-block-post-title a {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.wp-block-post-title a {
  display: inline-block;
}

.wp-block-post-template {
  gap: 1.3rem;
}

.home ul.wp-block-post-template.is-layout-grid.columns-3,
.post-type-archive-appartamento ul.wp-block-post-template.is-layout-grid.columns-3 {
  grid-template-columns: repeat(2, minmax(280px, 420px));
  justify-content: center;
}

 .home ul.wp-block-post-template.is-layout-grid.columns-3 > li:last-child:nth-child(odd),
 .post-type-archive-appartamento ul.wp-block-post-template.is-layout-grid.columns-3 > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(420px, 100%);
}

@media (max-width: 760px) {
  .home ul.wp-block-post-template.is-layout-grid.columns-3,
  .post-type-archive-appartamento ul.wp-block-post-template.is-layout-grid.columns-3 {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.wp-block-button__link {
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

@media (max-width: 900px) {
  .sh-booking-grid {
    grid-template-columns: 1fr;
  }
}
