:root {
  --bg: #151515;
  --bg-soft: #1f1f1f;
  --panel: #242424;
  --panel-light: #f4f2ed;
  --text: #f7f4ef;
  --muted: #bdb6aa;
  --ink: #24201c;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #b88b4a;
  --accent-strong: #d2a45f;
  --green: #667c5d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(17, 17, 17, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-strong);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 136px 0 72px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/img/hero-condomini-torino.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.96) 0%, rgba(18, 18, 18, 0.82) 39%, rgba(18, 18, 18, 0.22) 75%),
    linear-gradient(0deg, rgba(21, 21, 21, 0.9) 0%, rgba(21, 21, 21, 0) 34%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(43px, 7vw, 88px);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
}

.lead {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
}

.button.primary {
  background: var(--accent);
  color: #17120d;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.section,
.section-band {
  padding: 92px 0;
}

.section-band {
  background: var(--panel-light);
  color: var(--ink);
}

.intro p {
  color: #5f5a52;
  font-size: 18px;
}

.intro-list {
  display: inline-grid;
  gap: 4px;
  margin: 0;
  padding-left: 24px;
  color: #5f5a52;
  font-size: 18px;
  text-align: left;
}

.intro-logo {
  width: 108px;
  height: 108px;
  display: block;
  margin: 0 auto 28px;
  object-fit: contain;
  background: transparent;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  margin-bottom: 22px;
  object-fit: cover;
  background: #191919;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background: rgba(184, 139, 74, 0.13);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 13px;
}

.service-card p,
.split p,
.territory p,
.contact p {
  color: var(--muted);
}

.professional-box {
  margin-top: 26px;
  padding: 22px 24px;
  background: rgba(184, 139, 74, 0.1);
  border: 1px solid rgba(184, 139, 74, 0.34);
  border-left: 4px solid var(--accent-strong);
}

.professional-box strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.professional-box p {
  margin: 0;
}

.split {
  background: #111;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.split-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.timeline-image {
  width: 132px;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #191919;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  text-transform: uppercase;
}

.timeline-item span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.territory {
  background: var(--panel-light);
  color: var(--ink);
}

.territory .eyebrow {
  color: #7f5c2f;
}

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

.territory p {
  color: #5c564e;
  font-size: 18px;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-list span {
  min-width: 120px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd7cc;
  color: #2a2723;
  font-weight: 600;
  text-align: center;
}

.faq {
  background: var(--bg);
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.accordion-panel p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  color: var(--muted);
}

.accordion-panel.open {
  grid-template-rows: 1fr;
  padding: 18px 0 28px;
}

.contact {
  background: #101010;
}

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

address {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

address a {
  color: var(--accent-strong);
}

.contact-recap {
  margin: 30px 0 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  text-align: center;
}

.contact-recap p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.contact-recap dl {
  display: grid;
  gap: 3px;
  margin: 0;
}

.contact-recap div {
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 18px;
  line-height: 1.35;
}

.contact-recap dt {
  font-weight: 600;
}

.contact-recap dd {
  margin: 0;
  font-weight: 800;
}

.contact-recap a {
  color: var(--text);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #171717;
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent-strong);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
}

.map-panel {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #d1c9bc;
  background: #fff;
  box-shadow: 0 18px 44px rgba(36, 32, 28, 0.16);
}

.office-map {
  width: 100%;
  height: 390px;
  background: #ddd7cc;
}

.distance-search {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #d1c9bc;
}

.distance-search label {
  color: #2a2723;
}

.distance-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.distance-search input {
  border-color: #d8d1c7;
  background: #f7f5f1;
  color: #24201c;
}

.distance-search .button {
  min-height: 46px;
  white-space: nowrap;
}

.distance-result {
  min-height: 24px;
  margin: 0;
  color: #625a51;
  font-size: 14px;
}

.office-marker {
  background: transparent;
  border: 0;
}

.office-marker span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
}

.office-marker span::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.searched-marker {
  background: #2b176d;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.leaflet-popup-content {
  color: #24201c;
  font-family: "Libre Franklin", Arial, sans-serif;
}

.leaflet-container img,
.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  outline: 0;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  position: relative;
  z-index: 1000;
  pointer-events: auto;
  float: left;
  clear: both;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0d0d0d;
  color: var(--muted);
}

.footer-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-wrap p {
  margin: 0;
}

.footer-wrap a,
.site-credit a {
  color: var(--accent-strong);
  text-decoration: none;
}

.site-credit {
  text-align: right;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: #111;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 18px;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 86vh;
  }

  .service-grid,
  .split-wrap,
  .territory-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand strong {
    max-width: 180px;
  }

  .hero {
    padding-top: 124px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 16, 16, 0.95) 0%, rgba(18, 18, 18, 0.78) 100%),
      linear-gradient(0deg, rgba(21, 21, 21, 0.9) 0%, rgba(21, 21, 21, 0) 34%);
  }

  .section,
  .section-band {
    padding: 68px 0;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-image {
    width: min(100%, 220px);
    margin-bottom: 12px;
  }

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

  .contact-form {
    padding: 20px;
  }

  .office-map {
    height: 330px;
  }

  .distance-search div {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
  }

  .site-credit {
    text-align: center;
  }
}
