/* =========================================================
   Alloggi G&G – foglio di stile unico
   Valori ricavati dal kit Elementor (post-314) e dai CSS delle pagine.
   Breakpoint: tablet ≤1024px, mobile ≤767px
   ========================================================= */

/* ---------- Font locali ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/nunito-variable.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/nunito-sans-variable.woff2") format("woff2"); }

/* ---------- Variabili ---------- */
:root {
  --font: "Poppins", sans-serif;
  --font-nunito: "Nunito", sans-serif;
  --font-nunito-sans: "Nunito Sans", sans-serif;

  --c-text: #232323;          /* testo kit */
  --c-black: #000;
  --c-white: #fff;
  --c-link: #cea279;          /* link kit */
  --c-gold: #c19b76;          /* bottoni kit, voce menu attiva */
  --c-gold-2: #c09a76;        /* accenti pagina (divisori, icone, hover) */
  --c-red: #d81818;           /* prezzo barrato */
  --c-header: #191919;
  --c-footer: #191919;
  --c-footer-bottom: #141414;
  --c-footer-muted: #787878;
  --c-footer-legal: #7a7a7a;
  --c-dark-section: #414141;  /* #2c2c2c al 90% su bianco */
  --c-light: #eee;
  --c-light-2: #f3f3f3;
  --c-card: #f9f9f9;          /* bianco 50% su #f3f3f3 */
  --c-list-muted: #bbb;
  --c-menu-dark: #242424;
  --c-menu-hover: #727272;

  --container: 1140px;
  --radius: 0;
  --gap: 20px;                /* spaziatura widget Elementor */
  --col-pad: 10px;            /* padding colonne Elementor */
  --ease: ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: var(--c-link); text-decoration: none; background: transparent; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  padding: 12px 24px; background: var(--c-white); color: var(--c-text);
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--c-gold-2); outline-offset: 2px; }

/* ---------- Componenti comuni ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1;
  text-align: center;
  color: var(--c-white);
  background: var(--c-gold);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius);
  transition: all .3s;
}
.btn--block { display: block; width: 100%; }

.section-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--c-text);
}
.divider {
  display: block;
  width: 50px;
  height: 2px;
  margin: 45px auto 25px; /* 20px spaziatura widget + 25px padding divisore */
  background: var(--c-gold-2);
}

.icon-list li { display: flex; align-items: center; }
.icon-list .icon { font-size: 14px; width: 1.25em; }
.icon-list span { padding-left: 5px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: relative; z-index: 50; background: var(--c-header); padding: 26.25px 0; }
.site-header__inner {
  display: flex;
  align-items: center;
  max-width: 1376px;
  margin: 0 auto;
}
.site-header__brand {
  width: 25.262%;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid rgba(215, 215, 215, .3);
}
.brand {
  display: block;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  color: var(--c-white);
}
.site-header__nav {
  width: 59.315%;
  display: flex;
  justify-content: center;
  padding: var(--col-pad);
}
.site-header__cta {
  width: 14.669%;
  display: flex;
  justify-content: flex-end;
  padding: var(--col-pad);
}

/* Menu orizzontale */
.nav-toggle { display: none; }
.nav__list { display: flex; flex-wrap: wrap; justify-content: center; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-white);
  transition: color .3s;
}
.nav__link.is-active, .nav__link:focus-visible { color: var(--c-gold); }
.has-sub > .nav__link { padding-right: 0; }
.sub-toggle {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 20px 0 10px;
  color: var(--c-white);
  transition: color .3s;
}
.sub-toggle .icon { width: 9.2px; height: 10.5px; }
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 12em;
  margin-top: 26px;
  background: var(--c-white);
  border-style: solid;
  border-color: var(--c-white);
  border-width: 10px 20px 10px 0;
  box-shadow: 0 0 18px rgba(0, 0, 0, .2);
  visibility: hidden;
  opacity: 0;
}
.sub-menu::before { /* ponte invisibile per non perdere l'hover nei 26px di distanza */
  content: ""; position: absolute; left: 0; right: 0; top: -36px; height: 36px;
}
.sub-menu__link {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  color: var(--c-menu-dark);
  transition: color .3s;
}
.sub-menu__link.is-active { color: var(--c-menu-hover); }
.has-sub.is-open > .sub-menu,
.has-sub:focus-within > .sub-menu { visibility: visible; opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover, .has-sub:hover > .nav__link, .has-sub:hover > .sub-toggle { color: var(--c-gold); }
  .has-sub:hover > .sub-menu { visibility: visible; opacity: 1; }
  .sub-menu__link:hover { color: var(--c-menu-hover); }
}

/* Menu a tendina (tablet e mobile) */
@media (max-width: 1024px) {
  .site-header { padding: 10px 0; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5px;
    font-size: 22px;
    color: var(--c-white);
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .site-header__nav { position: static; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--menu-top, 100%);
    background: var(--c-white);
    border-style: solid;
    border-color: var(--c-white);
    border-width: 10px 20px 10px 0;
    box-shadow: 0 0 18px rgba(0, 0, 0, .2);
    transform-origin: top;
    transform: scaleY(0);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, transform .3s;
  }
  .nav.is-open { transform: scaleY(1); max-height: 100vh; overflow-y: auto; }
  .nav__list { display: block; }
  .nav__item { flex-wrap: wrap; justify-content: center; }
  .nav__link { padding: 10px 16px; color: var(--c-menu-dark); }
  .has-sub > .nav__link { padding-right: 0; }
  .nav__link.is-active { color: var(--c-menu-hover); }
  .sub-toggle { padding: 0 16px 0 10px; color: var(--c-menu-dark); }
  .has-sub.is-open > .nav__link, .has-sub.is-open > .sub-toggle { color: var(--c-menu-hover); }
  .nav-toggle:focus { color: var(--c-menu-hover); }
  .sub-menu {
    position: static;
    flex-basis: 100%;
    margin: 0;
    box-shadow: none;
    display: none;
    visibility: visible;
    opacity: 1;
    text-align: center;
  }
  .sub-menu::before { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .has-sub:focus-within > .sub-menu { visibility: visible; }
  @media (hover: hover) and (pointer: fine) {
    .nav__link:hover, .has-sub:hover > .nav__link, .has-sub:hover > .sub-toggle { color: var(--c-menu-hover); }
    .has-sub:hover > .sub-menu { visibility: visible; }
  }
}

@media (max-width: 767px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-header__brand { width: 52%; margin-left: 25px; align-self: stretch; }
  .brand { font-size: 13px; }
  .site-header__nav { width: 47%; flex: 1; }
  .site-header__cta { width: 100%; justify-content: center; }
}

/* =========================================================
   CAROSELLO (slider hero, galleria, recensioni)
   ========================================================= */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; will-change: transform; }
.carousel__slide { flex: 0 0 auto; width: 100%; }
.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  transform: translateY(-50%);
  color: rgba(238, 238, 238, .9);
}
.carousel__arrow .icon { width: 1em; height: 1em; }
.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }
.carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
}
.carousel__dot {
  width: 6px; height: 6px;
  margin: 0 6px;
  border-radius: 50%;
  background: var(--c-black);
  opacity: .2;
  transition: opacity .3s;
}
.carousel__dot[aria-current="true"] { opacity: 1; }

/* ---------- Hero ---------- */
.hero .carousel__arrow { font-size: 25px; }
.hero-slide { position: relative; height: 743px; background: var(--c-gold-2); }
.hero-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .41); }
.hero-slide__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 200px 100px 50px;
  text-align: center;
  color: var(--c-white);
}
.hero-slide__contents { max-width: 50%; }
.hero-slide__heading { font-size: 72px; font-weight: 600; line-height: 1; margin-bottom: 30px; }
.hero-slide__text { font-size: 16px; line-height: 1.4; }

@media (max-width: 1024px) {
  .hero-slide__contents { max-width: 100%; }
}
@media (max-width: 767px) {
  .hero-slide { height: 650px; }
  .hero-slide__inner { padding: 90px 50px 0; }
  .hero-slide__heading { font-size: 25px; }
}

/* =========================================================
   CHI SIAMO
   ========================================================= */
.about {
  position: relative;
  padding: 90px 0;
  background: url("/assets/img/sfondo-chi-siamo.webp") top center / cover no-repeat;
}
.about::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .96); }
.about__inner {
  position: relative;
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}
.about__media {
  width: 50%;
  align-self: flex-start;
  background: var(--c-gold-2) url("/assets/img/motivo-puntini.webp");
}
.about__media img { width: 100%; margin: 30px -30px -30px 30px; }
.about__text {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 50px 80px 80px;
}
.about__eyebrow { display: flex; align-items: center; }
.about__line { flex: 0 0 15.439%; padding: 10px; }
.about__line::before { content: ""; display: block; height: 3px; margin: 8px 0; background: var(--c-gold-2); }
.about__kicker {
  flex: 1;
  padding: 10px;
  font-family: var(--font-nunito);
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-black);
}
.about__title {
  margin-bottom: 60px; /* 20px widget + spaziatore 20px + 20px widget */
  font-family: var(--font-nunito-sans);
  font-size: 3.8em;
  font-weight: 800;
  line-height: .8em;
  color: var(--c-black);
}
.about__body { font-family: var(--font-nunito); font-size: 1em; line-height: 1.7em; color: var(--c-black); }
.about__body p { margin-bottom: 14.4px; }

@media (max-width: 1024px) {
  .about { padding: 15px; }
  .about__media img { margin: 0; }
  .about__text { padding: 30px; }
  .about__title { font-size: 3.5em; }
}
@media (max-width: 767px) {
  .about__inner { flex-direction: column; }
  .about__media, .about__text { width: 100%; }
  .about__eyebrow { flex-direction: column; align-items: stretch; }
  .about__line { flex-basis: auto; }
  .about__kicker, .about__title, .about__body { text-align: center; }
  .about__title { font-size: 2.5em; }
}

/* =========================================================
   SERVIZI
   ========================================================= */
.services { display: flex; background: var(--c-dark-section); }
.services__media {
  width: 39.665%;
  min-height: 420px;
  background: url("/assets/img/appartamento-4-cucina-1000.webp") center / cover no-repeat;
}
.services__content { width: 60%; padding: 75px 10px 40px 70px; }
.services__title { margin-bottom: 40px; font-size: 32px; font-weight: 600; line-height: 1; color: var(--c-white); }
.services__subtitle {
  margin: 0 50px 40px 0;
  font-size: 19px;
  font-style: italic;
  line-height: 1.3;
  color: var(--c-gold-2);
}
.services__lists { display: flex; }
.icon-list--services { width: 33.333%; padding: 10px; }
.icon-list--services li + li { margin-top: 5px; }
.icon-list--services li:not(:last-child) { padding-bottom: 5px; }
.icon-list--services .icon { font-size: 20px; color: var(--c-gold-2); }
.icon-list--services span { font-size: 16px; color: var(--c-list-muted); }

@media (max-width: 1024px) {
  .services { flex-wrap: wrap; }
  .services__media { width: 100%; min-height: 400px; }
  .services__content { width: 100%; padding: 1em; }
  .icon-list--services { width: 50%; }
}
@media (max-width: 767px) {
  .services__title { margin: 25px 0 33px; text-align: center; }
  .services__subtitle { text-align: center; }
  .services__lists { flex-direction: column; }
  .icon-list--services { width: 100%; }
  .icon-list--services li { justify-content: center; }
}

/* =========================================================
   APPARTAMENTI
   ========================================================= */
.section-head--apartments { padding: 110px 10px 10px; background: var(--c-light); }
.section-head--apartments .divider { margin-bottom: 25px; }
.apartments { background: var(--c-light-2); }
/* Card tutte alte uguali, con prezzi e "Vedi Dettagli" allineati in fondo */
.apartments__grid { display: flex; align-items: stretch; padding: 0 50px; }
.apartment-card { display: flex; flex-direction: column; width: 20%; padding: 10px; }
.apartment-card__image { display: block; margin-bottom: var(--gap); }
.apartment-card__image img { width: 100%; }
.apartment-card__box {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--c-card);
  border-bottom: 3px solid var(--c-gold-2);
}
.apartment-card__name { margin-bottom: 30px; font-size: 20px; font-weight: 600; line-height: 1; }
.apartment-card__name a { color: var(--c-text); }
.icon-list--card { margin-bottom: var(--gap); }
.icon-list--card li { font-size: 16px; line-height: 24px; }
.apartment-card__from { margin-top: auto; margin-bottom: 25px; font-size: 13px; line-height: 1; }
.apartment-card__prices { display: flex; flex-wrap: wrap; align-items: center; container-type: inline-size; }
.price { font-weight: 600; line-height: 1; white-space: nowrap; }
.price--old { font-size: 20px; color: var(--c-red); text-decoration: line-through; }
.price--new { margin-left: 9px; font-size: 25px; }
.price__unit {
  margin-left: auto;
  padding-left: 6px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  border-bottom: 1px dashed currentColor;
}
.apartment-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin: 5px 0 0;
  padding: 4.5px 0;
  font-size: 15px;
  line-height: 1;
  color: var(--c-gold-2);
}
.apartment-card__more .icon { width: 15px; height: 15px; }
/* riga troppo stretta per prezzi + "A NOTTE": va a capo in tutte le card allo stesso modo */
@container (max-width: 187px) {
  .apartment-card__prices .price__unit {
    flex-basis: 100%;
    margin: 8px 0 0;
    padding-left: 0;
    border-bottom: 0;
    text-decoration: underline dashed 1px;
    text-underline-offset: 3px;
  }
}
/* card larghe: "A NOTTE" a 20px dal prezzo come nell'originale */
@container (min-width: 300px) {
  .apartment-card__prices .price__unit { margin-left: 20px; padding-left: 0; }
}
@container (max-width: 130px) {
  .apartment-card__prices .price--new { flex-basis: 100%; margin: 6px 0 0; }
}
.apartments__spacer { height: 141px; }

@media (max-width: 1024px) {
  .section-head--apartments { padding: 66px 16px 16px; }
  .apartment-card { padding: 1em; }
  .apartment-card__box { padding: 1em; }
  .apartment-card__more { width: 100%; margin: 5px 0 0; }
  .apartments__spacer { height: 51px; }
}
@media (max-width: 767px) {
  .apartments__grid { flex-direction: column; align-items: stretch; }
  .apartment-card { width: 100%; }
  .apartment-card__name, .apartment-card__from { text-align: center; }
  .apartment-card__prices { justify-content: center; }
  .price__unit { margin-left: 20px; padding-left: 0; }
  .apartment-card__more { justify-content: center; margin-top: 20px; }
}

/* =========================================================
   PHOTO GALLERY
   ========================================================= */
.gallery { padding-bottom: 155px; }
.gallery__title {
  padding: 95px 10px 155px;
  margin-bottom: var(--gap);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--c-white);
  background: var(--c-gold-2);
}
.gallery__carousel { margin-top: -90px; }
.carousel--gallery .carousel__slide { padding-bottom: 7px; } /* spazio sotto l'immagine inline dell'originale */
.carousel--gallery .carousel__slide img { width: 100%; }

@media (max-width: 1024px) {
  .gallery { padding-bottom: 50px; }
  .gallery__title { padding: 50px 0 155px; }
  .gallery__carousel { padding: 1em; }
}
@media (max-width: 767px) {
  .gallery__carousel { padding: 10px; }
}

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .87);
  color: var(--c-white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: 90vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; display: flex; padding: 20px; font-size: 28px; color: rgba(238, 238, 238, .9); }
.lightbox button .icon { width: 1em; height: 1em; }
.lightbox__close { top: 0; right: 0; }
.lightbox__prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0; top: 50%; transform: translateY(-50%); }

/* =========================================================
   RECENSIONI
   ========================================================= */
.reviews { padding: 100px 0; background: var(--c-light); }
.reviews__inner { max-width: var(--container); margin: 0 auto; padding: 10px; }
.reviews .divider { margin-bottom: 45px; }
.carousel--reviews { padding-bottom: 40px; }
.carousel--reviews .carousel__arrow { top: calc(50% - 20px); font-size: 20px; }
.testimonial { padding: 20px 48px; text-align: center; }
.testimonial__text { font-size: 1.3em; font-style: italic; line-height: 1.5; }
.testimonial__footer { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 57px; margin-top: 25px; text-align: left; }
.testimonial__avatar { align-self: flex-start; width: 50px; height: 50px; border-radius: 999px; }
.testimonial__cite { display: flex; flex-direction: column; font-size: 14px; line-height: 1.5; }
.testimonial__name { font-weight: 700; }

@media (max-width: 1024px) {
  .reviews { padding: 50px 0; }
  .reviews__inner { padding: 1em; }
}
@media (max-width: 767px) {
  .testimonial { padding: 20px 29px; }
}

/* =========================================================
   CLAIM con sfondo fisso
   ========================================================= */
.claim {
  position: relative;
  padding: 103px 10px 133px;
  background: url("/assets/img/sacrario-monte-grappa-1632.webp") center / cover no-repeat;
}
.claim::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.claim__text {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 60px;
  font-weight: 700; /* nell'originale il testo è in <strong> */
  line-height: 1.3;
  text-align: center;
  color: var(--c-white);
}
@media (min-width: 1025px) {
  .claim { background-attachment: fixed; }
}
@media (max-width: 1024px) {
  .claim { padding: 66px 16px 96px; background-image: url("/assets/img/sacrario-monte-grappa-800.webp"); }
  .claim__text { font-size: 50px; }
}
@media (max-width: 767px) {
  .claim__text { font-size: 22px; }
}

/* =========================================================
   TERRITORIO
   ========================================================= */
.territory { padding: 100px 0; background: var(--c-light); }
.territory__inner { max-width: var(--container); margin: 0 auto; padding: 10px; }
.territory .divider { margin-bottom: 45px; }
.territory__grid { display: flex; max-width: 750px; margin: 0 auto; }
.territory__item { width: 50%; padding: 10px; }
.territory__item img { width: 100%; margin-bottom: var(--gap); }

@media (max-width: 1024px) {
  .territory { padding: 50px 0; }
  .territory__inner { padding: 1em; }
}
@media (max-width: 767px) {
  .territory__grid { flex-direction: column; }
  .territory__item { width: 100%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer__main { background: var(--c-footer); }
.site-footer__grid {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
  padding: 65px 0 60px;
}
.site-footer__col { width: 33.333%; padding: 10px; }
.site-footer__brand { margin-bottom: var(--gap); font-size: 32px; font-weight: 500; line-height: 1; color: var(--c-white); }
.site-footer__intro { margin-bottom: 50.5px; font-size: 15px; line-height: 1.7; color: #fffefe; }
.site-footer__social { display: flex; width: max-content; font-size: 57px; color: var(--c-gold-2); transition: color .3s; }
.site-footer__social .icon { width: 1em; height: 1em; }
.site-footer__title { font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--c-white); }
.divider--footer { width: 30px; height: 1px; margin: 35px 0 40px; }
.footer-list li { font-size: 15px; line-height: 1.5; }
.footer-list li + li { margin-top: 3.5px; }
.footer-list li:not(:last-child) { padding-bottom: 3.5px; }
.footer-list a { color: var(--c-white); transition: color .3s; }
.footer-list--icons li + li { margin-top: 7.5px; }
.footer-list--icons li:not(:last-child) { padding-bottom: 7.5px; }
.footer-list--icons a { display: flex; align-items: center; color: #fffafa; }
.footer-list--icons .icon { width: 27.5px; height: 22px; color: var(--c-gold-2); }
.footer-list--icons span { padding-left: 5px; }

.site-footer__bottom { background: var(--c-footer-bottom); padding: 25px 0; }
.site-footer__bar { display: flex; align-items: center; max-width: var(--container); margin: 0 auto; }
.site-footer__copy { width: 54%; padding: 10px 10px 24.4px; font-size: 15px; line-height: 1.5; color: var(--c-footer-muted); }
.site-footer__copy a { color: var(--c-link); }
.legal-list { width: 46%; display: flex; justify-content: flex-end; gap: 16px; padding: 10px; }
.legal-list a { font-size: 15px; line-height: 1.5; color: var(--c-footer-legal); transition: color .3s; }

@media (hover: hover) and (pointer: fine) {
  .site-footer__social:hover { color: var(--c-white); }
  .footer-list a:hover { color: var(--c-gold-2); }
  .legal-list a:hover { color: var(--c-white); }
}
@media (max-width: 1024px) {
  .site-footer__grid { flex-wrap: wrap; padding: 50px 0; }
  .site-footer__col { width: 50%; }
}
@media (max-width: 767px) {
  .site-footer__col { width: 100%; }
  .site-footer__brand, .site-footer__intro { text-align: center; }
  .site-footer__social { margin: 0 auto; }
  .site-footer__title { margin-top: 13px; text-align: center; }
  .footer-list li, .footer-list--icons a { justify-content: center; text-align: center; }
  .footer-list li { display: flex; }
  .divider--footer { margin-left: auto; margin-right: auto; }
  .site-footer__bar { flex-direction: column; }
  .site-footer__copy, .legal-list { width: 100%; text-align: center; justify-content: center; }
}

/* =========================================================
   SCHEDA APPARTAMENTO
   ========================================================= */
/* Testata con foto (sfondo fisso su desktop) */
.page-hero {
  position: relative;
  padding: 105px 10px 115px; /* 95px sezione + 10px colonna (+10px margine titolo) */
  background: var(--hero) var(--hero-pos, center center) / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.page-hero__title {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--c-white);
  text-shadow: 0 0 18px rgba(0, 0, 0, .3);
}
@media (min-width: 1025px) { .page-hero { background-attachment: fixed; } }
@media (max-width: 767px) { .page-hero { background-image: var(--hero-sm, var(--hero)); } }
@media (max-width: 1024px) { .page-hero--pos { background-position: 0 0; } }
.page-hero--shadow .page-hero__title { text-shadow: 0 0 10px #000; }

.apt { padding: 80px 0; }
.apt__inner { display: flex; align-items: flex-start; max-width: var(--container); margin: 0 auto; }
.apt__main { width: 66.666%; padding: 10px 40px 10px 10px; }
.apt__side { width: 33.333%; margin-top: -220px; padding: 10px; position: relative; z-index: 1; }

.carousel--apt { margin-bottom: 70px; }
.carousel--apt .carousel__slide { padding-bottom: 6px; }
.carousel--apt img { width: 100%; }
.carousel--apt .carousel__arrow { font-size: 25px; }

.apt__subtitle { margin-bottom: 40px; font-size: 32px; font-weight: 600; line-height: 1; color: var(--c-text); }

.quick-icons {
  display: inline-flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}
.quick-icons li { position: relative; display: flex; align-items: center; margin: 0 8px; line-height: 24px; }
.quick-icons li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: -8px;
  border-left: 1px dashed #ddd;
}
.quick-icons li:first-child { margin-left: 0; }
.quick-icons li:last-child { margin-right: 0; }
.quick-icons .icon { width: 17.5px; height: 14px; margin-right: 1px; }
.quick-icons span { padding-left: 5px; }

.apt__desc { margin-bottom: 70px; font-size: 16px; color: var(--c-text); }
.apt__desc p { margin-bottom: 14.4px; }
.apt__desc p:last-child { margin-bottom: 0; }
.apt__desc .apt__gap { height: 24px; } /* paragrafi vuoti presenti nel testo originale */
.apt__services-title { margin-bottom: 40px; font-size: 22px; font-weight: 600; line-height: 1; color: var(--c-text); }
.apt__services { display: flex; margin-bottom: 40px; }
.icon-list--amenities { width: 50%; padding: 10px; }
.icon-list--amenities li { position: relative; font-size: 16px; line-height: 24px; }
.icon-list--amenities li:not(:last-child) { padding-bottom: 12.5px; }
.icon-list--amenities li + li { margin-top: 12.5px; }
.icon-list--amenities li:not(:last-child)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid #e3e3e3;
}
.icon-list--amenities .icon { width: 28.75px; height: 23px; color: var(--c-black); }
.apt__notes { margin-bottom: 30px; }
.apt__notes li { font-size: 20px; line-height: 1.5; }
.apt__notes li:not(:last-child) { padding-bottom: 2.5px; }
.apt__notes li + li { margin-top: 2.5px; }
.apt__notes .icon { width: 7.5px; height: 6px; margin-right: 10px; color: var(--c-text); }
.apt__notes span { padding-left: 5px; }

/* Colonna laterale */
.side-facts, .side-price { padding: 20.5px; background: var(--c-black); color: var(--c-white); }
.side-facts__beds li { font-size: 16px; line-height: 24px; text-transform: uppercase; }
.side-facts__beds li:not(:last-child) { padding-bottom: 1.5px; }
.side-facts__beds li + li { margin-top: 1.5px; }
.side-facts__beds .icon { width: 21.25px; height: 17px; margin-right: 26px; }
.side-facts__nights {
  display: flex;
  align-items: center;
  margin-top: var(--gap);
  font-size: 23px;
  line-height: 1.5;
  text-transform: uppercase;
}
.side-facts__nights .icon { width: 32.5px; height: 26px; margin-right: 27px; }
.side-facts__nights span { padding-left: 5px; }
.side-price { display: flex; align-items: center; }
.side-price__value { font-size: 24px; font-weight: 600; line-height: 1; }
.side-price__unit {
  margin-left: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border-bottom: 1px dashed var(--c-white);
}
.side-cta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
  padding: 30px;
  background: var(--c-black);
  border: 1px solid #dcdcdc;
  color: var(--c-white);
}
.side-cta__icon { width: 35px; height: 35px; }
.side-cta__title { margin: 8px 0; font-size: 16px; line-height: 1.2; text-transform: uppercase; transition: color .3s; }
.side-box { padding: 30px; background: var(--c-light-2); border: 1px solid #dcdcdc; }
.side-box--share { margin-bottom: 50px; text-align: center; }
.side-box__title { font-size: 22px; font-weight: 500; line-height: 1; color: var(--c-text); }
.side-box--share .side-box__title { margin-bottom: 30px; }
.share { display: flex; justify-content: center; gap: 5px; }
.share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 21px;
  color: var(--c-white);
  transition: opacity .3s;
}
.share__link .icon { width: 1em; height: 1em; }
.share__link--facebook { background: #3b5998; }
.share__link--pinterest { background: #cc2329; }
.share__link--email { background: #649a3f; }
.side-box--times .side-box__title { margin-bottom: 8px; }
.side-time { display: flex; align-items: center; margin-bottom: 24px; font-size: 16px; line-height: 24px; }
.side-time:last-child { margin-bottom: 4px; }
.side-time .icon { width: 25px; height: 20px; }
.side-time span { padding-left: 5px; }

/* Altre soluzioni */
.section-head--others { padding: 110px 10px 10px; background: var(--c-light-2); }
.section-head--others .divider { margin-bottom: 25px; }
.apartments__grid--others { max-width: var(--container); margin: 0 auto; padding: 0; }
.apartments__grid--others .apartment-card { width: auto; flex: 1 1 0; } /* 4 card = 25%, 3 card = 33% */
.apartments__grid--others .apartment-card__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.apartments__grid--others .price--old { color: #db1f1f; }
.apartments__grid--others .price--new { color: #1a1919; }

@media (hover: hover) and (pointer: fine) {
  .side-cta:hover .side-cta__title { color: #dbdbdb; }
  .share__link:hover { opacity: .9; }
}
@media (max-width: 1024px) {
  .page-hero { padding: 111px 16px 121px; }
  .apt { padding: 50px 0; }
  .apt__inner { flex-direction: column; align-items: stretch; }
  .apt__main, .apt__side { width: 100%; padding: 1em; }
  .apt__side { margin-top: 0; }
  .section-head--others { padding: 66px 16px 16px; }
}
@media (max-width: 767px) {
  .page-hero { padding: 66px 16px 76px; }
  .page-hero__title { font-size: 30px; }
  .carousel--apt { margin-bottom: 40px; }
  .apt__subtitle { font-size: 25px; text-align: center; }
  .apt__main { display: flex; flex-direction: column; }
  .quick-icons { align-self: center; justify-content: center; }
  .apt__desc, .apt__services-title { text-align: center; }
  .apt__services { flex-direction: column; }
  .icon-list--amenities { width: 100%; }
  .side-price { justify-content: center; }
  .side-cta { flex-direction: column; text-align: center; }
  .side-box--times { text-align: center; }
  .side-time { justify-content: center; }
  .apartments__grid--others .apartment-card { width: 100%; flex: none; }
}

/* =========================================================
   PRENOTA
   ========================================================= */
.book-cta { max-width: 400px; margin: 0 auto; padding: 10px 10px 143px; } /* +63px spaziatore e padding colonne */
.book-cta .side-cta { margin: 0; }
.side-cta--reverse .side-cta__title { flex: 1; text-align: center; }
.apartments--book { background: var(--c-light-2); }
.apartments__grid--book { flex-wrap: wrap; max-width: 869px; margin: 0 auto; padding: 0; }
.apartments__grid--book .apartment-card { width: 50%; padding: 20px; }
.apartments__grid--book .apartment-card__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 767px) {
  .book-cta { max-width: none; padding-bottom: 80px; }
  .side-cta--reverse { flex-direction: column-reverse; }
  .apartments__grid--book .apartment-card { width: 100%; padding: 16px; }
}

/* =========================================================
   RIQUADRI CON FOTO (Attività Sportive, Luoghi da visitare)
   ========================================================= */
.page-hero--tight { padding-bottom: 105px; }
.tiles__row { display: flex; max-width: var(--container); margin: 0 auto; padding: 100px 0; }
.tiles__row + .tiles__row { padding-top: 0; }
.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* riquadri della stessa riga alti uguali, etichetta in fondo */
  width: calc(33.333% - 20px);
  margin: 10px;
  padding: 350px 20px 20px;
  background: var(--bg) var(--bg-pos, 0 0) / cover;
}
.tile__label { padding: 20px; background: var(--c-white); text-align: center; color: var(--c-text); }
.tile__title { font-size: 24px; font-weight: 400; line-height: 1; }
.tile__meta { margin: 3px 0 14.4px; font-size: 16px; line-height: 1.5; }
.tiles__credits {
  max-width: var(--container);
  margin: -70px auto 0;
  padding: 0 10px 40px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--c-footer-muted);
}
.tiles__credits a { color: inherit; text-decoration: underline; }
@media (max-width: 1024px) {
  .page-hero--tight { padding-bottom: 111px; }
  .tile { width: calc(33.333% - 2em); margin: 1em; }
  .tile--pos { background-position: 0 0; }
  .tile__label { padding: 16px; }
}
@media (max-width: 767px) {
  .page-hero--tight { padding-bottom: 66px; }
  .tiles__row { flex-direction: column; padding: 50px 0; }
  .tiles__row + .tiles__row { padding-top: 50px; }
  .tile { width: auto; }
}

/* =========================================================
   CONTATTI
   ========================================================= */
.page-contact .page-hero__title { line-height: 1.3; }
.contact { padding: 100px 0 95px; }
.contact__inner { display: flex; align-items: stretch; max-width: var(--container); margin: 0 auto; }
.contact__main { width: 66.666%; padding: 10px 50px 10px 10px; }
.contact__title { font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--c-text); }
.divider--left { margin-left: 0; margin-right: 0; }
.contact__intro { margin-bottom: 40px; font-size: 16px; line-height: 1.7; }
.contact-actions { display: grid; gap: 15px; }
.contact-action { margin: 0; padding: 25px 30px; }
.contact-action__text { display: flex; flex-direction: column; }
.contact-action__text .side-cta__title { margin: 0 0 4px; }
.contact-action__detail { font-size: 15px; line-height: 1.5; color: #dbdbdb; text-transform: none; }

.contact-card {
  width: 33.333%;
  padding: 40px 30px 52px;
  background: var(--c-white);
  box-shadow: 0 0 30px rgba(0, 0, 0, .2);
}
.contact-list { margin-bottom: 40px; }
.contact-list a { display: flex; align-items: flex-start; color: var(--c-text); transition: color .3s; }
.contact-list .icon { flex: 0 0 30px; width: 30px; height: 24px; color: var(--c-text); }
.contact-list span { padding-left: 5px; font-size: 15px; line-height: 1.6; }
.contact-list--small { margin-bottom: 0; padding-bottom: 30px; border-bottom: 1px solid #ddd; }
.contact-list--small li + li { margin-top: 15px; }
.contact-list--small span { line-height: 1.7; }
.contact-card__times { margin-top: 45px; font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--c-black); }

.map { padding: 5px; }
.map__frame { position: relative; height: 510px; background: #e8e4dc; }
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
  color: var(--c-text);
}
.map__pin { width: 36px; height: 48px; color: var(--c-gold-2); }
.map__text { max-width: 420px; font-size: 15px; line-height: 1.6; }
.map__buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.map__link { font-size: 15px; color: var(--c-text); text-decoration: underline; }

@media (hover: hover) and (pointer: fine) {
  .contact-action:hover .contact-action__detail { color: var(--c-white); }
  .contact-list a:hover { color: var(--c-gold-2); }
  .map__load:hover { background: var(--c-white); color: var(--c-gold); }
}
@media (max-width: 1024px) {
  .contact { padding: 50px 0; }
  .contact__inner { flex-direction: column; }
  .contact__main, .contact-card { width: auto; padding: 16px; }
  .contact__main { margin-bottom: 30px; }
}
@media (max-width: 767px) {
  .contact__title { font-size: 25px; text-align: center; }
  .contact .divider--left { margin-left: auto; margin-right: auto; }
  .contact__intro, .contact-card__times { text-align: center; }
  .contact-list a { justify-content: center; text-align: center; }
  .contact-list .icon { flex-basis: 24px; }
  .contact-action { padding: 20px; }
}

/* =========================================================
   PAGINE LEGALI (Privacy, Cookie)
   ========================================================= */
.legal { max-width: var(--container); margin: 0 auto; padding: 80px 10px; font-size: 16px; line-height: 1.5; }
.legal p { margin-bottom: 14.4px; }
.legal a { color: var(--c-link); text-decoration: underline; word-break: break-word; }
.legal__title, .legal .cookie-policy-h1 { margin-bottom: 30px; font-size: 40px; font-weight: 500; line-height: 1.2; }
.legal__sections { padding-left: 24px; list-style: decimal; }
.legal__sections > li { margin-top: 30px; }
.legal__sections > li::marker { font-weight: 700; }
.legal h2 { margin-bottom: 12px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.legal ul, .legal ol ol { margin: 0 0 14.4px; padding-left: 24px; }
.legal ul { list-style: circle; }
.legal ol ol { list-style: decimal; }
.legal__alpha { margin: 0 0 14.4px; padding-left: 24px; list-style: lower-alpha; }
.legal li + li { margin-top: 6px; }
.legal__updated { margin-top: 40px; color: var(--c-footer-muted); }
@media (max-width: 767px) {
  .legal { padding: 50px 16px; }
  .legal__title { font-size: 30px; }
}

/* =========================================================
   404
   ========================================================= */
.not-found { max-width: 700px; margin: 0 auto; padding: 100px 16px 120px; text-align: center; }
.not-found__code { font-size: 120px; font-weight: 600; line-height: 1; color: var(--c-gold-2); }
.not-found__title { margin-top: 20px; font-size: 32px; font-weight: 600; line-height: 1.2; }
.not-found__text { margin-bottom: 30px; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.btn--outline { background: transparent; color: var(--c-gold); }
@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover { background: var(--c-gold); color: var(--c-white); }
}

/* =========================================================
   HOVER (solo dispositivi con mouse)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .site-header .btn:hover { background: var(--c-gold); }
  .apartment-card__more:hover { color: var(--c-gold-2); }
}

/* =========================================================
   ANIMAZIONI D'INGRESSO (come Elementor: durata 1.25s)
   ========================================================= */
.js [data-anim] { visibility: hidden; }
.js [data-anim].is-animated { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.js [data-anim="fadeInUp"].is-animated { animation-name: fadeInUp; }
.js [data-anim="fadeInDown"].is-animated { animation-name: fadeInDown; }
.js [data-anim="fadeInRight"].is-animated { animation-name: fadeInRight; }
.js [data-anim="tada"].is-animated { animation-name: tada; }
.js .hero-slide__contents.is-animated { animation: fadeInUp 1.25s both; }

@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes tada {
  from, to { transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
}

body { overflow-x: hidden; } /* fadeInRight parte fuori schermo, come in Elementor */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-anim] { visibility: visible; }
  .claim { background-attachment: scroll; }
}
