:root {
  --ivory: #f7f1e8;
  --warm-white: #fffdfa;
  --beige: #d8c8ad;
  --sand: #bda982;
  --bronze: #9b6b3d;
  --bronze-dark: #6f4728;
  --navy: #0d1828;
  --navy-soft: #17263a;
  --ink: #18202a;
  --muted: #6d6a63;
  --line: rgba(24, 32, 42, 0.14);
  --shadow: 0 26px 70px rgba(13, 24, 40, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-white);
  font-family: var(--sans);
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

body.is-unlocked {
  overflow: auto;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.access-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background: var(--navy);
  transition: opacity 600ms ease, visibility 600ms ease;
}

.access-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.access-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 40, 0.92), rgba(13, 24, 40, 0.56)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=85")
      center / cover;
  transform: scale(1.03);
}

.access-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(247, 241, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 241, 232, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.access-panel {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(34px, 5vw, 62px);
  color: var(--ivory);
  border: 1px solid rgba(247, 241, 232, 0.26);
  background: rgba(13, 24, 40, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-panel .eyebrow,
.hero .eyebrow,
.image-band .eyebrow,
.potential .eyebrow,
.final-cta .eyebrow {
  color: #d7b077;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
}

.access-panel h1 {
  max-width: 420px;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
}

.access-subtitle {
  max-width: 420px;
  margin: 22px 0 30px;
  color: rgba(247, 241, 232, 0.78);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  color: var(--ivory);
  border: 1px solid rgba(247, 241, 232, 0.28);
  border-radius: 0;
  outline: none;
  background: rgba(255, 253, 250, 0.08);
  transition: border-color 220ms ease, background 220ms ease;
}

.access-form input::placeholder {
  color: rgba(247, 241, 232, 0.58);
}

.access-form input:focus {
  border-color: #d7b077;
  background: rgba(255, 253, 250, 0.13);
}

.access-form button,
.primary-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--navy);
  border: 1px solid #d7b077;
  background: #d7b077;
  cursor: pointer;
  font-weight: 700;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.access-form button:hover,
.primary-link:hover {
  transform: translateY(-2px);
  color: var(--ivory);
  background: transparent;
}

.access-error {
  min-height: 24px;
  margin: 4px 0 0;
  color: #f1c0a7;
  font-size: 0.95rem;
}

.property-page {
  min-height: 100vh;
  background: var(--warm-white);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 64px);
  color: var(--ivory);
  background: linear-gradient(to bottom, rgba(13, 24, 40, 0.64), transparent);
}

.brand {
  display: grid;
  gap: 1px;
  min-width: max-content;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  color: rgba(247, 241, 232, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-header nav a {
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: #d7b077;
}

.site-header.solid {
  background: rgba(13, 24, 40, 0.92);
  backdrop-filter: blur(18px);
}

.property-section {
  position: relative;
  padding: clamp(76px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  padding-top: 120px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 40, 0.82), rgba(13, 24, 40, 0.22) 58%, rgba(13, 24, 40, 0.42)),
    linear-gradient(to top, rgba(13, 24, 40, 0.88), transparent 48%),
    url("assets/potenza-villa-hero-night.png")
      center / cover;
}

.hero-content {
  position: relative;
  width: min(100%, 1050px);
  padding-bottom: clamp(20px, 5vh, 58px);
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 24px;
  color: rgba(247, 241, 232, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-price {
  margin: 0 0 28px;
}

.hero-price span {
  display: block;
  margin-bottom: 6px;
  color: #d7b077;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-price strong {
  display: block;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  font-weight: 600;
  line-height: 0.92;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.hero-price em {
  display: block;
  margin-top: 10px;
  color: rgba(247, 241, 232, 0.82);
  font-style: normal;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 960px;
  margin-bottom: 34px;
}

.badge-row span {
  padding: 9px 13px;
  border: 1px solid rgba(247, 241, 232, 0.26);
  background: rgba(247, 241, 232, 0.08);
  color: rgba(247, 241, 232, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.intro-section {
  background: var(--ivory);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.split h2,
.section-heading h2,
.band-content h2,
.story-card h2,
.potential h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.intro-copy p,
.band-content p,
.story-card p,
.potential p,
.final-cta p,
.section-heading p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.price-card {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  border: 1px solid var(--line);
}

.price-card div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: rgba(255, 253, 250, 0.58);
}

.price-card .asking-price-row {
  align-items: center;
  padding: 24px 20px;
  border-left: 4px solid var(--bronze);
  background: #fff7ea;
}

.price-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.price-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.price-card .asking-price-row dd {
  color: var(--bronze-dark);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
}

.price-card .asking-price-row dd span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  background: var(--navy);
  color: var(--ivory);
}

.garden-section {
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1fr);
  background: #f4eee4;
  color: var(--ink);
}

.band-image {
  min-height: clamp(420px, 64vw, 720px);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.location-visual-stack {
  display: grid;
  gap: 18px;
}

.location-visual-stack .band-image {
  min-height: clamp(300px, 38vw, 430px);
}

.band-image-town {
  background-image:
    linear-gradient(rgba(13, 24, 40, 0.08), rgba(13, 24, 40, 0.08)),
    url("assets/potenza-picena-aerial.jpg");
  background-position: center;
}

.band-image-location {
  background-image:
    linear-gradient(rgba(13, 24, 40, 0.08), rgba(13, 24, 40, 0.08)),
    url("assets/potenza-location-map-light.png");
  background-color: #11151a;
}

.band-image-garden {
  background-image:
    linear-gradient(rgba(13, 24, 40, 0.1), rgba(13, 24, 40, 0.1)),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1800&q=85");
}

.garden-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: clamp(420px, 64vw, 720px);
}

.garden-gallery-image {
  min-height: 0;
  border: 1px solid rgba(176, 142, 89, 0.18);
  padding: 0;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 260ms ease, filter 260ms ease;
}

.garden-gallery-image:hover,
.garden-gallery-image:focus-visible {
  transform: translateY(-4px);
  filter: saturate(1.05);
  outline: 1px solid rgba(176, 142, 89, 0.58);
  outline-offset: 3px;
}

.garden-gallery-image-1 {
  background-image:
    linear-gradient(rgba(13, 24, 40, 0.08), rgba(13, 24, 40, 0.08)),
    url("assets/private-garden-1.png");
}

.garden-gallery-image-2 {
  background-image:
    linear-gradient(rgba(13, 24, 40, 0.08), rgba(13, 24, 40, 0.08)),
    url("assets/private-garden-2.png");
}

.garden-gallery-image-3 {
  background-image:
    linear-gradient(rgba(13, 24, 40, 0.08), rgba(13, 24, 40, 0.08)),
    url("assets/private-garden-3.png");
}

.garden-gallery-image-4 {
  background-image:
    linear-gradient(rgba(13, 24, 40, 0.08), rgba(13, 24, 40, 0.08)),
    url("assets/private-garden-4.png");
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(8, 14, 24, 0.92);
  backdrop-filter: blur(16px);
  opacity: 0;
  overflow: auto;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  width: min(100%, 1180px);
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(200, 164, 107, 0.32);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transition: transform 240ms ease;
}

.image-lightbox-close {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(200, 164, 107, 0.55);
  border-radius: 999px;
  color: #f7f1e8;
  background: rgba(13, 24, 40, 0.7);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band-content {
  max-width: 640px;
}

.image-band:not(.garden-section) .band-content p,
.potential p {
  color: rgba(247, 241, 232, 0.78);
}

.distance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.distance-card {
  min-height: 112px;
  padding: 20px;
  border: 1px solid rgba(247, 241, 232, 0.18);
  background: rgba(247, 241, 232, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.distance-card:hover {
  transform: translateY(-4px);
  border-color: #d7b077;
  background: rgba(247, 241, 232, 0.12);
}

.distance-card strong,
.distance-card span,
.distance-card small {
  display: block;
}

.distance-card strong {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.distance-card span {
  color: #d7b077;
  font-weight: 700;
}

.distance-card small {
  margin-top: 16px;
  color: rgba(247, 241, 232, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.distance-card small::after {
  content: " >";
  color: #d7b077;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.wide {
  max-width: 900px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.highlight-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fffaf3;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 107, 61, 0.42);
  box-shadow: 0 20px 42px rgba(13, 24, 40, 0.1);
}

.highlight-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--bronze);
}

.highlight-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.2;
}

.story-section {
  background:
    linear-gradient(rgba(247, 241, 232, 0.88), rgba(247, 241, 232, 0.88)),
    url("assets/character-villa-background.png")
      center / cover fixed;
}

.story-card {
  max-width: 760px;
  margin-left: auto;
  padding: clamp(34px, 5vw, 62px);
  border-left: 3px solid var(--bronze);
  background: rgba(255, 253, 250, 0.86);
  box-shadow: var(--shadow);
}

.layout-section {
  background: var(--ivory);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.layout-card {
  position: relative;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--warm-white);
}

.expandable-layout-card {
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.expandable-layout-card:hover {
  transform: translateY(-3px);
  border-color: rgba(176, 142, 89, 0.42);
  box-shadow: 0 20px 50px rgba(13, 24, 40, 0.1);
}

.layout-gallery-toggle {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.layout-gallery-toggle h3 {
  margin: 0;
}

.layout-gallery-toggle span {
  flex: 0 0 auto;
  padding-top: 8px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.layout-gallery-toggle span::after {
  content: " +";
}

.expandable-layout-card.is-open .layout-gallery-toggle span::after {
  content: "";
}

.layout-photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 340ms ease, margin-top 240ms ease, opacity 220ms ease;
}

.expandable-layout-card.is-open .layout-photo-gallery {
  max-height: 620px;
  margin-top: 22px;
  opacity: 1;
}

.layout-photo-thumb {
  min-height: 130px;
  border: 1px solid rgba(176, 142, 89, 0.24);
  padding: 0;
  background-image: var(--photo);
  background-position: center;
  background-size: cover;
  cursor: zoom-in;
  transition: transform 220ms ease, filter 220ms ease, border-color 220ms ease;
}

.layout-photo-thumb:hover,
.layout-photo-thumb:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(176, 142, 89, 0.58);
  filter: saturate(1.05);
  outline: none;
}

.layout-photo-thumb-1 {
  background-image: url("assets/ground-floor-apartment-1.png");
}

.layout-photo-thumb-2 {
  background-image: url("assets/ground-floor-apartment-2.png");
}

.layout-photo-thumb-3 {
  background-image: url("assets/ground-floor-apartment-3.png");
}

.layout-photo-thumb-4 {
  background-image: url("assets/ground-floor-apartment-4.png");
}

.layout-photo-thumb-5 {
  background-image: url("assets/ground-floor-apartment-5.png");
}

.main-residence-card.is-open .main-residence-gallery {
  max-height: 1480px;
}

.layout-card.featured .layout-gallery-toggle {
  color: var(--ivory);
}

.layout-card.featured .layout-photo-thumb {
  border-color: rgba(226, 185, 121, 0.3);
}

.layout-card.featured {
  color: var(--ivory);
  border-color: transparent;
  background: var(--navy);
}

.layout-size {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--bronze);
  font-weight: 800;
}

.layout-card.featured .layout-size {
  color: #d7b077;
}

.layout-card h3 {
  margin-bottom: 22px;
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

.layout-card ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.layout-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.layout-card.featured li {
  color: rgba(247, 241, 232, 0.76);
}

.layout-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--bronze);
  transform: rotate(45deg);
}

.floor-plans-section {
  background:
    linear-gradient(rgba(255, 253, 250, 0.94), rgba(255, 253, 250, 0.97)),
    url("assets/potenza-location-map-light.png") center / cover;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.floor-plan-level {
  max-width: 1180px;
  margin: 0 auto clamp(48px, 7vw, 86px);
}

.floor-plan-level:last-child {
  margin-bottom: 0;
}

.floor-plan-level h3 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  text-align: center;
}

.floor-plan-grid {
  display: grid;
  gap: 22px;
}

.main-residence-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.floor-plan-group {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(176, 142, 89, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.52);
  box-shadow: 0 18px 46px rgba(13, 24, 40, 0.06);
}

.floor-plan-group + .floor-plan-group {
  margin-top: clamp(26px, 4vw, 44px);
}

.floor-plan-group h4 {
  margin: 0 0 18px;
  color: var(--bronze-dark);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.storage-plan-group {
  max-width: 424px;
  margin-right: auto;
  margin-left: auto;
}

.storage-plan-group .floor-plan-card {
  max-width: 356px;
}

.floor-plan-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.floor-plan-button {
  width: 100%;
  aspect-ratio: 1.46 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(176, 142, 89, 0.26);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 22px 56px rgba(13, 24, 40, 0.1);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.floor-plan-button:hover,
.floor-plan-button:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(176, 142, 89, 0.58);
  box-shadow: 0 30px 72px rgba(13, 24, 40, 0.16);
  outline: none;
}

.floor-plan-button img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  transition: transform 300ms ease;
}

.floor-plan-button:hover img,
.floor-plan-button:focus-visible img {
  transform: scale(1.025);
}

.floor-plan-card-large {
  max-width: 560px;
  margin: 0 auto;
}

.floor-plan-card figcaption {
  margin-top: 14px;
  color: var(--bronze-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

@supports (animation-timeline: view()) {
  .floor-plan-level {
    animation: floorPlanReveal both ease-out;
    animation-range: entry 8% cover 32%;
    animation-timeline: view();
  }
}

@keyframes floorPlanReveal {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.technology {
  background: var(--warm-white);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1020px;
  margin: 0 auto;
}

.feature-list span {
  padding: 13px 17px;
  color: var(--navy);
  border: 1px solid rgba(155, 107, 61, 0.24);
  background: #fff8ee;
  font-weight: 700;
}

.potential {
  display: grid;
  min-height: 720px;
  align-items: center;
  color: var(--ivory);
  background: var(--navy);
  overflow: hidden;
}

.potential-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 40, 0.88), rgba(13, 24, 40, 0.28)),
    url("assets/future-potential-background.png")
      center / cover;
}

.potential-content {
  position: relative;
  width: min(100%, 680px);
}

.market-insights {
  background:
    linear-gradient(rgba(248, 243, 234, 0.92), rgba(248, 243, 234, 0.96)),
    radial-gradient(circle at 20% 10%, rgba(200, 164, 107, 0.18), transparent 34%);
}

.market-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  max-width: 1220px;
  margin: 0 auto;
}

.market-chart-panel {
  display: grid;
  align-items: center;
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(155, 107, 61, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 24px 70px rgba(13, 24, 40, 0.12);
}

.market-chart-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 860px;
  object-fit: contain;
  border-radius: 6px;
}

.market-card-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market-info-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(155, 107, 61, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 16px 48px rgba(13, 24, 40, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.market-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 107, 0.72);
  box-shadow: 0 22px 58px rgba(13, 24, 40, 0.12);
}

.market-info-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.05;
}

.market-info-card p {
  margin: 0;
  color: rgba(13, 24, 40, 0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.market-info-card strong {
  color: #9b6b3d;
  font-weight: 800;
  white-space: nowrap;
}

.uses {
  background: #f4eee4;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.use-grid article {
  min-height: 130px;
  display: flex;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.68);
  font-family: var(--serif);
  font-size: 1.2rem;
  transition: transform 220ms ease, background 220ms ease;
}

.use-grid article:hover {
  transform: translateY(-4px);
  background: var(--warm-white);
}

.final-cta {
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: var(--ivory);
  text-align: left;
  background:
    radial-gradient(circle at 78% 22%, rgba(200, 164, 107, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(9, 20, 36, 0.98), rgba(14, 34, 58, 0.94));
}

.final-cta-inner {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.final-cta-copy {
  max-width: 560px;
}

.final-cta p {
  margin: 24px 0 32px;
  color: rgba(247, 241, 232, 0.78);
}

.final-cta-image {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(200, 164, 107, 0.34);
  border-radius: 8px;
  background: rgba(247, 241, 232, 0.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.final-cta-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.primary-link.dark:hover {
  color: #d7b077;
  border-color: rgba(247, 241, 232, 0.5);
}

.confidential-footer {
  padding: 26px 20px;
  color: rgba(247, 241, 232, 0.72);
  background: #08111d;
  text-align: center;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confidential-footer p {
  margin: 0;
}

.distance-detail-page {
  background: var(--ivory);
}

.distance-hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  padding-top: 120px;
  overflow: hidden;
}

.town-hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  padding-top: 120px;
  overflow: hidden;
}

.region-hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  padding-top: 120px;
  overflow: hidden;
}

.distance-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 40, 0.9), rgba(13, 24, 40, 0.34)),
    linear-gradient(to top, rgba(13, 24, 40, 0.92), transparent 52%),
    url("assets/potenza-picena-overview.jpg") center / cover;
}

.town-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 40, 0.9), rgba(13, 24, 40, 0.34)),
    linear-gradient(to top, rgba(13, 24, 40, 0.92), transparent 52%),
    url("assets/potenza-location-map-light.png") center / cover;
}

.region-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 40, 0.9), rgba(13, 24, 40, 0.28)),
    linear-gradient(to top, rgba(13, 24, 40, 0.92), transparent 52%),
    url("https://images.unsplash.com/photo-1516483638261-f4dbaf036963?auto=format&fit=crop&w=2200&q=85")
      center / cover;
}

.distance-hero-content {
  position: relative;
  width: min(100%, 780px);
  padding-bottom: clamp(20px, 5vh, 58px);
}

.distance-hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.distance-hero p {
  max-width: 640px;
  margin: 24px 0 32px;
  color: rgba(247, 241, 232, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.distance-overview {
  background: var(--ivory);
}

.distance-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.distance-detail-grid article {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--warm-white);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.distance-detail-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 107, 61, 0.42);
  box-shadow: 0 20px 42px rgba(13, 24, 40, 0.1);
}

.distance-detail-grid article > span {
  display: block;
  margin-bottom: 34px;
  color: var(--bronze);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.distance-detail-grid h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.distance-detail-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--bronze-dark);
}

.distance-detail-grid p,
.lifestyle-content p {
  color: var(--muted);
}

.services-reach {
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(rgba(15, 17, 21, 0.94), rgba(15, 17, 21, 0.97)),
    url("assets/potenza-picena-aerial.jpg") center / cover;
}

.services-heading {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
}

.services-heading h2 {
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  letter-spacing: 0.06em;
}

.services-heading p {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(247, 241, 232, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.service-card {
  min-height: 310px;
  display: grid;
  grid-template-rows: auto minmax(44px, auto) auto auto minmax(92px, 1fr);
  gap: 8px;
  width: 100%;
  padding: 20px;
  color: var(--ivory);
  border: 1px solid rgba(200, 164, 107, 0.34);
  border-radius: 8px;
  background: rgba(20, 24, 31, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-7px);
  border-color: #c8a46b;
  background: rgba(27, 31, 39, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  outline: none;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #c8a46b;
  border: 1px solid rgba(200, 164, 107, 0.36);
  border-radius: 50%;
}

.service-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card strong {
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(0.88rem, 1.08vw, 1.08rem);
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
}

.service-card > span:not(.service-icon):not(.service-map-preview) {
  color: rgba(247, 241, 232, 0.74);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.service-card em {
  color: #c8a46b;
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.service-map-preview {
  width: 100%;
  min-height: 0;
  height: 96px;
  align-self: end;
  margin-top: 14px;
  border: 1px solid rgba(200, 164, 107, 0.24);
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  filter: saturate(0.9) contrast(1.04);
}

body.modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 38px);
  visibility: hidden;
  opacity: 0;
  background: rgba(15, 17, 21, 0.94);
  backdrop-filter: blur(16px);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.service-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.service-modal-shell {
  width: min(100%, 1240px);
  height: min(88vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 1px;
  border: 1px solid rgba(200, 164, 107, 0.36);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(200, 164, 107, 0.3);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.48);
  transform: translateY(16px) scale(0.98);
  transition: transform 300ms ease;
}

.service-modal.is-open .service-modal-shell {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 42;
  min-height: 44px;
  padding: 0 16px;
  color: #c8a46b;
  border: 1px solid rgba(200, 164, 107, 0.5);
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.78);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-modal-map {
  position: relative;
  min-height: 420px;
  background-color: #f3eee5;
  background-position: center, 58% center;
  background-repeat: no-repeat;
  background-size: cover, contain;
}

.service-modal-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 38% 56%, transparent 0 18%, rgba(15, 17, 21, 0.14) 42%, rgba(15, 17, 21, 0.34));
}

.service-modal-content {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 54px);
  color: var(--ivory);
  background: #0f1115;
}

.service-modal-content h2 {
  margin-bottom: 28px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.service-modal-content dl {
  display: grid;
  gap: 1px;
  margin: 0 0 28px;
  border: 1px solid rgba(200, 164, 107, 0.26);
}

.service-modal-content dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.service-modal-content dt {
  color: rgba(247, 241, 232, 0.58);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-modal-content dd {
  margin: 0;
  color: #c8a46b;
  font-weight: 900;
}

.lifestyle-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  color: var(--ivory);
  background: var(--navy);
}

.lifestyle-map {
  min-height: clamp(420px, 60vw, 680px);
  background:
    linear-gradient(rgba(13, 24, 40, 0.1), rgba(13, 24, 40, 0.1)),
    url("assets/potenza-location-map-light.png") center / cover;
  box-shadow: var(--shadow);
}

.region-map {
  min-height: clamp(420px, 60vw, 680px);
  background:
    linear-gradient(rgba(13, 24, 40, 0.08), rgba(13, 24, 40, 0.08)),
    url("assets/potenza-location-map-light.png") center / cover;
  box-shadow: var(--shadow);
}

.lifestyle-content {
  max-width: 620px;
}

.lifestyle-content h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.lifestyle-content p {
  color: rgba(247, 241, 232, 0.78);
}

.lifestyle-content dl {
  display: grid;
  gap: 1px;
  margin: 32px 0 0;
  border: 1px solid rgba(247, 241, 232, 0.16);
}

.lifestyle-content dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  background: rgba(247, 241, 232, 0.06);
}

.lifestyle-content dt {
  color: rgba(247, 241, 232, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lifestyle-content dd {
  margin: 0;
  color: #d7b077;
  font-weight: 800;
  text-align: right;
}

.location-highlights {
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(13, 24, 40, 0.96), rgba(13, 24, 40, 0.88)),
    url("assets/potenza-picena-overview.jpg") center / cover;
}

.location-highlights-heading {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.location-highlights-heading h2 {
  font-size: clamp(2.35rem, 5vw, 5rem);
}

.location-highlights-heading p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(247, 241, 232, 0.74);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.location-table {
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 107, 0.34);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.location-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) 0.55fr 0.55fr 0.65fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid rgba(247, 241, 232, 0.1);
}

.location-row:first-child {
  border-top: 0;
}

.location-row-head {
  color: rgba(247, 241, 232, 0.58);
  background: rgba(200, 164, 107, 0.08);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.location-row strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.2;
}

.location-row span {
  color: rgba(247, 241, 232, 0.78);
  font-weight: 700;
}

.location-row em {
  color: #c8a46b;
  font-style: normal;
  font-weight: 900;
}

.culture-page {
  color: var(--ivory);
  background: #0f1115;
}

.culture-hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  padding-top: 120px;
  overflow: hidden;
}

.culture-hero-media,
.culture-final-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.culture-hero-media {
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.9), rgba(15, 17, 21, 0.42)),
    linear-gradient(to top, rgba(15, 17, 21, 0.9), transparent 50%),
    url("assets/potenza-picena-overview.jpg") center / cover;
}

.culture-hero-content {
  position: relative;
  width: min(100%, 900px);
  padding-bottom: clamp(36px, 8vh, 86px);
}

.culture-hero h1 {
  max-width: 880px;
  font-size: clamp(3rem, 8vw, 7.2rem);
}

.culture-hero p:not(.eyebrow),
.culture-final p {
  max-width: 720px;
  color: rgba(247, 241, 232, 0.78);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.culture-hero p:not(.eyebrow) {
  margin: 26px 0 34px;
}

.culture-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  background: #0f1115;
}

.food-split {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
}

.culture-split-image {
  min-height: clamp(440px, 62vw, 760px);
  border: 1px solid rgba(200, 164, 107, 0.24);
  background-position: center;
  background-size: cover;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.sea-hills-image {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.08), rgba(15, 17, 21, 0.08)),
    url("assets/potenza-sea-hills.jpg");
}

.food-image {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.1), rgba(15, 17, 21, 0.1)),
    url("assets/taste-marche-region.jpg");
}

.food-dishes-panel {
  margin-top: 28px;
}

.dish-list {
  border-top: 1px solid rgba(200, 164, 107, 0.24);
}

.dish-row {
  border-bottom: 1px solid rgba(200, 164, 107, 0.18);
  transition: background 220ms ease, border-color 220ms ease;
}

.dish-row:hover,
.dish-row.is-active {
  border-color: rgba(200, 164, 107, 0.48);
  background: rgba(200, 164, 107, 0.065);
}

.dish-row button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.dish-gallery-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 340ms ease;
}

.dish-row.is-active .dish-gallery-wrap {
  max-height: 260px;
}

.dish-gallery {
  padding: 0 0 20px;
}

.dish-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(200, 164, 107, 0.24);
  filter: saturate(0.9);
}

.culture-copy {
  max-width: 680px;
}

.culture-copy h2,
.culture-heading h2,
.garden-flagship h2,
.culture-final h2 {
  font-size: clamp(2.1rem, 5vw, 5rem);
}

.culture-copy p,
.culture-card p,
.heritage-grid p,
.garden-flagship p {
  color: rgba(247, 241, 232, 0.72);
}

.culture-section,
.outdoor-section,
.signature-section {
  background: #12161d;
}

.culture-heading {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.culture-heading.align-left {
  margin-left: 0;
  text-align: left;
}

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

.culture-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(200, 164, 107, 0.26);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  position: relative;
  transition: transform 260ms ease, border-color 260ms ease;
}

.culture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.94), rgba(15, 17, 21, 0.26));
}

.culture-card:hover {
  transform: translateY(-7px);
  border-color: #c8a46b;
}

.culture-card > * {
  position: relative;
}

.culture-card span {
  color: #c8a46b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.culture-card h3,
.heritage-grid h3 {
  margin: 12px 0;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.expandable-card {
  cursor: pointer;
}

.expandable-card p {
  max-height: 5.1em;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.expandable-card p::after {
  content: "";
}

.expandable-card button {
  position: relative;
  align-self: flex-start;
  margin-top: 14px;
  padding: 9px 0;
  color: #c8a46b;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.expandable-card button::after {
  content: " +";
}

.expandable-card.is-expanded {
  min-height: 430px;
}

.expandable-card.is-expanded p {
  max-height: 16em;
}

.expandable-card.is-expanded button::after {
  content: "";
}

.sciabica {
  background-image: url("assets/sciabica-fishing.jpg");
}

.sant-anna {
  background-image: url("assets/festa-sant-anna.jpg");
}

.san-girio {
  background-image: url("assets/festa-san-girio.jpg");
}

.festivals {
  background-image: url("assets/traditional-village-festivals.jpg");
}

.santo-stefano {
  background-image: url("assets/grappolo-oro-festival.jpg");
}

.nativity {
  background-image: url("assets/living-nativity.jpg");
}

.heritage-section {
  background:
    linear-gradient(rgba(15, 17, 21, 0.9), rgba(15, 17, 21, 0.96)),
    url("https://images.unsplash.com/photo-1529260830199-42c24126f198?auto=format&fit=crop&w=2200&q=85")
      center / cover fixed;
}

.heritage-grid,
.outdoor-grid,
.signature-grid {
  display: grid;
  gap: 14px;
}

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

.heritage-grid article,
.outdoor-grid article,
.signature-grid article {
  border: 1px solid rgba(200, 164, 107, 0.24);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.heritage-grid article {
  min-height: 360px;
  padding: 14px;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.heritage-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 107, 0.48);
  background: rgba(255, 255, 255, 0.065);
}

.heritage-grid h3,
.heritage-grid p {
  padding-inline: 12px;
}

.heritage-card-image {
  min-height: 170px;
  margin-bottom: 18px;
  border: 1px solid rgba(200, 164, 107, 0.2);
  background-position: center;
  background-size: cover;
  filter: saturate(0.9);
  transition: transform 260ms ease, filter 260ms ease;
}

.heritage-grid article:hover .heritage-card-image {
  transform: scale(1.025);
  filter: saturate(1);
}

.heritage-theatre {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.12), rgba(15, 17, 21, 0.18)),
    url("assets/teatro-bruno-mugellini.jpg");
}

.heritage-palazzo {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.12), rgba(15, 17, 21, 0.18)),
    url("assets/historic-palazzo-comunale.jpg");
}

.heritage-tower {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.12), rgba(15, 17, 21, 0.18)),
    url("assets/civic-tower.jpg");
}

.heritage-churches {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.12), rgba(15, 17, 21, 0.18)),
    url("assets/historic-churches.jpg");
}

.heritage-gallery {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.12), rgba(15, 17, 21, 0.18)),
    url("assets/piramide-de-mayo.jpg");
}

.heritage-auditorium {
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.12), rgba(15, 17, 21, 0.18)),
    url("assets/scarfiotti-auditorium.jpg");
}

.garden-flagship {
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.garden-flagship-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.9), rgba(15, 17, 21, 0.18)),
    linear-gradient(to top, rgba(15, 17, 21, 0.92), transparent 50%),
    url("assets/villa-buonaccorsi-gardens.jpg")
      center / cover;
}

.garden-flagship-content {
  position: relative;
  max-width: 820px;
  padding-bottom: clamp(28px, 6vh, 70px);
}

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

.outdoor-grid article,
.signature-grid article {
  min-height: 150px;
  display: flex;
  align-items: end;
  padding: 22px;
  font-family: var(--serif);
  font-size: 1.28rem;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.outdoor-grid article:hover,
.signature-grid article:hover {
  transform: translateY(-5px);
  border-color: #c8a46b;
  background: rgba(200, 164, 107, 0.1);
}

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

.culture-final {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.culture-final-media {
  background:
    linear-gradient(rgba(15, 17, 21, 0.68), rgba(15, 17, 21, 0.88)),
    url("assets/potenza-picena-overview.jpg") center / cover;
}

.culture-final-content {
  position: relative;
  width: min(100%, 880px);
}

.culture-final p {
  margin: 24px auto 32px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .split,
  .image-band,
  .garden-section,
  .layout-grid,
  .market-insights-grid,
  .final-cta-inner,
  .main-residence-plans {
    grid-template-columns: 1fr;
  }

  .final-cta {
    text-align: center;
  }

  .final-cta-copy {
    max-width: 720px;
    margin: 0 auto;
  }

  .final-cta p {
    margin-left: auto;
    margin-right: auto;
  }

  .floor-plan-card-large {
    max-width: 100%;
  }

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

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

  .service-modal-shell {
    height: auto;
    max-height: 88vh;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .lifestyle-access {
    grid-template-columns: 1fr;
  }

  .culture-split,
  .food-split {
    grid-template-columns: 1fr;
  }

  .tradition-grid,
  .heritage-grid,
  .outdoor-grid,
  .signature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-row {
    grid-template-columns: 1fr 0.45fr 0.45fr 0.65fr;
  }

  .garden-section .band-image,
  .garden-section .garden-gallery {
    order: -1;
  }

  .main-residence-card.is-open .main-residence-gallery {
    max-height: 2900px;
  }

  .market-card-stack {
    grid-template-columns: 1fr;
  }

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

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

  .story-section {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .access-screen {
    padding: 16px;
  }

  .access-panel {
    padding: 30px 22px;
  }

  .property-section {
    padding: 68px 18px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.6rem);
  }

  .badge-row span {
    width: calc(50% - 5px);
    min-height: 46px;
    display: inline-flex;
    align-items: center;
  }

  .market-chart-panel {
    padding: 10px;
  }

  .market-info-card {
    padding: 22px;
  }

  .price-card div {
    display: grid;
    gap: 6px;
  }

  .price-card dd {
    text-align: left;
  }

  .distance-grid,
  .distance-detail-grid,
  .services-grid,
  .highlight-grid,
  .use-grid,
  .layout-photo-gallery {
    grid-template-columns: 1fr;
  }

  .floor-plan-button {
    padding: 10px;
  }

  .image-lightbox {
    padding-top: 82px;
  }

  .image-lightbox-close {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .service-card {
    min-height: 280px;
  }

  .service-modal {
    padding: 16px;
  }

  .service-modal-map {
    min-height: 360px;
  }

  .service-modal-content dl div {
    display: grid;
    gap: 6px;
  }

  .band-image {
    min-height: 340px;
  }

  .highlight-card {
    min-height: 150px;
  }

  .lifestyle-content dl div {
    display: grid;
    gap: 6px;
  }

  .lifestyle-content dd {
    text-align: left;
  }

  .location-table {
    border-radius: 0;
  }

  .location-row,
  .location-row-head {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 18px;
  }

  .location-row strong,
  .location-row-head span:first-child {
    grid-column: 1 / -1;
  }

  .tradition-grid,
  .heritage-grid,
  .outdoor-grid,
  .signature-grid {
    grid-template-columns: 1fr;
  }

  .culture-card {
    min-height: 320px;
  }
}
