/* =========================================================
   DAMIANO ARALDI AGENZIA IMMOBILIARE
   Homepage - stile pulito, editoriale, responsive
   ========================================================= */

:root {
  --bg: #f4f1eb;
  --surface: #ffffff;
  --surface-soft: #ebe6dd;
  --text: #1b1b19;
  --muted: #6e6c66;
  --line: #d7d1c7;
  --accent: #1f3c36;
  --accent-dark: #152b27;
  --light: #f8f6f1;
  --max-width: 1240px;
  --radius: 2px;
  --shadow: 0 16px 50px rgba(29, 31, 27, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
}

.skip-link:focus {
  top: 20px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.1rem, 6.1vw, 6.3rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 4.3vw, 4.4rem);
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

p {
  margin-top: 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.section-heading-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  max-width: none;
  align-items: end;
}

.section-intro,
.lead {
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  transition: 180ms ease;
  font-size: 0.92rem;
  font-weight: 650;
}

.button-primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-light {
  color: var(--accent);
  background: white;
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--light);
}

.button-link {
  border-color: var(--line);
}

.button-link:hover,
.button-link:focus-visible {
  border-color: var(--text);
}

.button-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 650;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 235, 0.94);
  border-bottom: 1px solid rgba(215, 209, 199, 0.8);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.brand-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #45443f;
  font-size: 0.9rem;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 16px;
  color: white;
  background: var(--accent);
}

/* Hero
   ========================================================= */

.hero {
  padding: 42px 0 82px;
}

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 72px;
  align-items: center;
}

.hero-copy {
  padding: 52px 0;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 660px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: -24px;
  bottom: 32px;
  min-width: 235px;
  padding: 22px 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-note span,
.hero-note strong {
  display: block;
}

.hero-note span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

/* Featured property
   ========================================================= */

.featured-property {
  background: var(--surface);
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--bg);
}

.featured-image {
  position: relative;
  min-height: 610px;
}

.featured-image img {
  height: 100%;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 9px 13px;
  color: white;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
}

.property-location {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.featured-content h3 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.1vw, 3.3rem);
}

.property-description {
  color: var(--muted);
}

.property-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 34px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.property-features li {
  min-height: 90px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.property-features strong,
.property-features span {
  display: block;
}

.property-features strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.property-features span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.property-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.property-price {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

/* Property grid
   ========================================================= */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.property-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
}

.property-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.property-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.property-card:hover .property-image-link img {
  transform: scale(1.025);
}

.property-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.property-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
}

.property-card h3 a:hover {
  color: var(--accent);
}

.property-meta {
  color: var(--muted);
}

.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.property-card-footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.property-card-footer a {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 650;
}

/* Territory
   ========================================================= */

.territory {
  color: white;
  background: var(--accent);
}

.territory-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: start;
}

.territory-copy .eyebrow,
.territory-copy .text-link {
  color: #d8e3df;
}

.territory-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.territory-cards {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.territory-card {
  position: relative;
  padding: 35px 0 35px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.territory-card > span {
  position: absolute;
  top: 39px;
  left: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
}

.territory-card h3 {
  margin-bottom: 10px;
}

.territory-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.67);
}

/* About
   ========================================================= */

.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.about-image {
  min-height: 610px;
}

.about-image img {
  height: 100%;
  object-fit: cover;
}

.about-copy {
  max-width: 620px;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
}

.about-copy .lead {
  color: var(--text);
  font-size: 1.2rem;
}

/* Sell CTA
   ========================================================= */

.sell {
  color: white;
  background: #202320;
}

.sell-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.sell h2 {
  margin-bottom: 0;
}

.sell-copy {
  max-width: 630px;
}

.sell-copy p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}

.sell-copy .button {
  margin-top: 14px;
}

/* Contacts
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 90px;
  align-items: start;
}

.contact-card {
  padding: 42px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card > p {
  color: var(--muted);
}

.contact-card dl {
  margin: 30px 0;
}

.contact-card dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-card dl div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 0;
}

/* Footer
   ========================================================= */

.site-footer {
  padding: 74px 0 30px;
  color: #d8d6d0;
  background: #151614;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 70px;
}

.footer-brand {
  margin-bottom: 8px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.footer-subtitle {
  color: #9e9b94;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-label {
  margin-bottom: 15px;
  color: #96938c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: white;
}

.footer-small {
  margin-top: 18px;
  color: #7f7c76;
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #77746e;
  font-size: 0.78rem;
}



/* Featured property refinements
   ========================================================= */

.property-price-request {
  font-size: 1.35rem;
}


/* Villa detail page
   ========================================================= */

.property-page-hero {
  padding: 74px 0 52px;
}

.property-page-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.property-page-top h1 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: clamp(2.9rem, 5.8vw, 5.7rem);
}

.property-page-price {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  white-space: nowrap;
}

.property-page-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 320px 320px;
  gap: 10px;
}

.property-page-gallery a {
  display: block;
  overflow: hidden;
  background: var(--surface-soft);
}

.property-page-gallery a:first-child {
  grid-row: 1 / 3;
}

.property-page-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-detail-section {
  padding: 80px 0 110px;
}

.property-detail-layout {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 90px;
  align-items: start;
}

.property-detail-copy {
  max-width: 760px;
}

.property-detail-copy > p {
  color: var(--muted);
  font-size: 1.06rem;
}

.property-detail-copy h2 {
  margin-top: 60px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.property-detail-aside {
  position: sticky;
  top: 120px;
  padding: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.property-detail-aside h2 {
  margin-bottom: 24px;
  font-size: 1.75rem;
}

.property-specs {
  margin: 0 0 26px;
}

.property-specs div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.property-specs div:last-child {
  border-bottom: 1px solid var(--line);
}

.property-specs dt {
  color: var(--muted);
}

.property-specs dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}

.full-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.full-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
}

.full-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.full-gallery a:hover img {
  transform: scale(1.025);
}


/* Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 850px;
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 620px;
  }

  .hero-note {
    right: 24px;
  }

  .featured-card,
  .territory-grid,
  .about-grid,
  .sell-inner,
  .contact-grid {
    gap: 50px;
  }

  .featured-content {
    padding: 42px;
  }

  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    white-space: nowrap;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading-split,
  .featured-card,
  .territory-grid,
  .about-grid,
  .sell-inner,
  .contact-grid,
  .property-page-top,
  .property-detail-layout {
    grid-template-columns: 1fr;
  }

  .featured-image,
  .about-image {
    min-height: 520px;
  }

  .territory-grid,
  .about-grid,
  .sell-inner,
  .contact-grid,
  .property-page-top,
  .property-detail-layout {
    gap: 46px;
  }

  .property-page-gallery {
    grid-template-rows: 260px 260px;
  }

  .property-detail-aside {
    position: static;
  }

  .full-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .hero {
    padding-top: 20px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-note {
    right: 14px;
    bottom: 14px;
    min-width: 200px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .featured-image,
  .about-image {
    min-height: 390px;
  }

  .featured-content,
  .contact-card {
    padding: 28px 22px;
  }

  .property-features {
    grid-template-columns: 1fr 1fr;
  }

  .property-bottom,
  .property-card-footer,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .territory-card {
    padding-left: 42px;
  }

  .contact-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .property-page-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 360px 220px 220px;
  }

  .property-page-gallery a:first-child {
    grid-row: auto;
  }

  .full-gallery {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

/* Scheda ufficio Boma: copertina neutra in assenza di foto */
.property-photo-placeholder{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:32px;text-align:center;background:linear-gradient(135deg,#e8e3d9,#c9c5bc);color:#383b3d;border-radius:8px}.property-photo-placeholder span{font-size:12px;letter-spacing:.18em;text-transform:uppercase}.property-photo-placeholder strong{font-size:clamp(22px,3vw,38px);font-weight:500}.property-photo-placeholder small{font-size:15px}.property-card-placeholder{aspect-ratio:4/3;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;background:linear-gradient(135deg,#e8e3d9,#c9c5bc);color:#343a3e;text-align:center;padding:24px}.property-card-placeholder strong{font-size:21px}.property-card-placeholder small{font-size:12px;letter-spacing:.1em;text-transform:uppercase}

/* Lightbox gallery
   ========================================================= */
.gallery-lightbox-trigger {
  position: relative;
  cursor: zoom-in;
}

.gallery-lightbox-trigger::after {
  content: "↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 25, 25, 0.72);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.gallery-lightbox-trigger:hover::after,
.gallery-lightbox-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 11, 0.94);
}

/*
 * Il pannello occupa sempre il viewport: le frecce non dipendono quindi
 * dalle dimensioni/orientamento della fotografia e restano sempre visibili.
 */
.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 58px 92px 24px;
  overflow: hidden;
}

.gallery-lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.gallery-lightbox__stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
}

.gallery-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /* lascia sempre spazio a caption e comandi anche con foto verticali */
  max-height: calc(100vh - 132px);
  max-height: calc(100dvh - 132px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
  padding: 12px 8px 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}

.gallery-lightbox__counter {
  flex: 0 0 auto;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  background: rgba(255,255,255,0.22);
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

.gallery-lightbox__close {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  font-size: 2.7rem;
  line-height: 0.9;
  transform: translateY(-50%);
}

.gallery-lightbox__nav--prev {
  left: 22px;
}

.gallery-lightbox__nav--next {
  right: 22px;
}

.gallery-lightbox__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .gallery-lightbox__panel {
    padding-left: 72px;
    padding-right: 72px;
  }

  .gallery-lightbox__nav--prev {
    left: 12px;
  }

  .gallery-lightbox__nav--next {
    right: 12px;
  }
}

@media (max-width: 720px) {
  .gallery-lightbox__panel {
    padding: 58px 50px 14px;
  }

  .gallery-lightbox__image {
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
  }

  .gallery-lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 2.2rem;
    background: rgba(0,0,0,0.36);
  }

  .gallery-lightbox__nav--prev {
    left: 5px;
  }

  .gallery-lightbox__nav--next {
    right: 5px;
  }

  .gallery-lightbox__close {
    top: 10px;
    right: 12px;
  }

  .gallery-lightbox__caption {
    padding: 10px 4px 0;
    font-size: 0.82rem;
  }

  .gallery-lightbox-trigger::after {
    opacity: 0.9;
    width: 34px;
    height: 34px;
  }
}

@media (max-height: 650px) and (min-width: 721px) {
  .gallery-lightbox__panel {
    padding-top: 50px;
    padding-bottom: 12px;
  }

  .gallery-lightbox__image {
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
  }

  .gallery-lightbox__caption {
    padding-top: 8px;
    font-size: 0.82rem;
  }
}


/* Nota informativa sotto le schede immobili */
.property-authenticity-note {
  padding: 0 0 3rem;
}
.property-authenticity-note .container {
  border-top: 1px solid rgba(42, 37, 31, 0.14);
  padding-top: 1.25rem;
}
.property-authenticity-note p {
  margin: 0;
  max-width: 1050px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(42, 37, 31, 0.72);
}
.property-authenticity-note strong {
  color: rgba(42, 37, 31, 0.9);
  font-weight: 600;
}

/* Recapiti nel footer */
.site-footer .footer-small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer .footer-small { overflow-wrap: anywhere; }
