/* Ricerca Immobiliare — Landing Gesicom (premium / conversion) */

:root {
  --gl-primary: #0f172a;
  --gl-secondary: #1e293b;
  --gl-accent: #d4a373;
  --gl-accent-hover: #c49263;
  --gl-bg: #f8fafc;
  --gl-text: #111827;
  --gl-muted: #64748b;
  --gl-white: #ffffff;
  --gl-radius: 14px;
  --gl-radius-sm: 10px;
  --gl-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --gl-shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --gl-font-display: "Cormorant Garamond", Georgia, serif;
  --gl-font-body: "Manrope", system-ui, sans-serif;
  --gl-max: 1200px;
  --gl-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body.gl {
  font-family: var(--gl-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gl-text);
  background: var(--gl-bg);
  -webkit-font-smoothing: antialiased;
}

body.gl img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.gl-skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--gl-white);
  border-radius: 8px;
  font-weight: 600;
}

.gl-skip:focus {
  left: 16px;
}

/* ── Header ─────────────────────────────── */
.gl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--gl-header-h);
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.gl-header.is-light {
  background: rgba(248, 250, 252, 0.94);
  border-bottom-color: #e2e8f0;
}

.gl-header.is-light .gl-logo-mark,
.gl-header.is-light .gl-logo-text strong,
.gl-header.is-light .gl-nav a {
  color: var(--gl-text);
}

.gl-header.is-light .gl-nav a:hover {
  color: var(--gl-accent);
}

.gl-header.is-light .gl-btn-ghost {
  border-color: #cbd5e1;
  color: var(--gl-primary);
}

.gl-header-in {
  width: 100%;
  max-width: var(--gl-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gl-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gl-accent) 0%, #a67c52 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gl-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gl-primary);
}

.gl-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.gl-logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gl-white);
}

.gl-logo-text span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.gl-header.is-light .gl-logo-text span {
  color: var(--gl-muted);
}

.gl-nav {
  display: none;
  align-items: center;
  gap: 8px 24px;
  font-size: 0.88rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .gl-nav {
    display: flex;
  }
}

.gl-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.gl-nav a:hover {
  color: var(--gl-accent);
}

.gl-header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--gl-radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.gl-btn:focus-visible {
  outline: 2px solid var(--gl-accent);
  outline-offset: 2px;
}

.gl-btn-primary {
  background: var(--gl-accent);
  color: var(--gl-primary);
}

.gl-btn-primary:hover {
  background: var(--gl-accent-hover);
  transform: translateY(-1px);
}

.gl-btn-ghost {
  background: transparent;
  color: var(--gl-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.gl-btn-ghost:hover {
  border-color: var(--gl-accent);
  color: var(--gl-accent);
}

.gl-header.is-light .gl-btn-primary {
  color: var(--gl-primary);
}

.gl-header.is-light .gl-btn-ghost:hover {
  color: var(--gl-primary);
}

.gl-btn-dark {
  background: var(--gl-primary);
  color: var(--gl-white);
}

.gl-btn-dark:hover {
  background: var(--gl-secondary);
  transform: translateY(-1px);
}

.gl-btn-outline {
  background: transparent;
  border: 2px solid var(--gl-primary);
  color: var(--gl-primary);
}

.gl-btn-outline:hover {
  background: var(--gl-primary);
  color: var(--gl-white);
}

/* ── Hero ─────────────────────────────── */
.gl-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--gl-header-h) + 32px) 24px 56px;
  color: var(--gl-white);
}

.gl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--gl-primary);
  background-image: linear-gradient(105deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.75) 45%, rgba(15, 23, 42, 0.88) 100%),
    url("https://images.unsplash.com/photo-1515542622106-78bda8ba0e5b?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
}

.gl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--gl-max);
  margin: 0 auto;
  width: 100%;
}

.gl-hero h1 {
  font-family: var(--gl-font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 20px;
}

.gl-hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  margin-bottom: 28px;
  font-weight: 500;
}

.gl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.gl-hero-cta .gl-btn-primary {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.gl-hero-cta .gl-btn-ghost {
  padding: 14px 24px;
}

/* Hero embedded search */
.gl-hero-search {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--gl-radius);
  padding: 18px;
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
  max-width: 900px;
}

.gl-hero-search label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.gl-hero-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .gl-hero-search-grid {
    grid-template-columns: 1.2fr 1fr 1fr auto;
    align-items: end;
  }
}

.gl-inp,
.gl-sel {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.5);
  color: var(--gl-white);
  font-family: inherit;
  font-size: 0.92rem;
}

.gl-inp::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.gl-sel {
  cursor: pointer;
}

.gl-sel option {
  color: var(--gl-text);
}

/* KPI row */
.gl-kpi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .gl-kpi {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gl-kpi-item {
  padding: 20px 16px;
  border-radius: var(--gl-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gl-kpi-item:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 163, 115, 0.45);
}

.gl-kpi-num {
  font-family: var(--gl-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--gl-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.gl-kpi-num .gl-suffix {
  font-size: 0.55em;
  font-weight: 600;
}

.gl-kpi-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
}

/* ── Sticky search (after scroll) ──────── */
.gl-sticky-search {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gl-sticky-search.is-visible {
  transform: translateY(0);
}

@media (min-width: 900px) {
  .gl-sticky-search {
    top: var(--gl-header-h);
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.97);
    box-shadow: var(--gl-shadow);
    transform: translateY(-100%);
  }

  .gl-sticky-search.is-visible {
    transform: translateY(0);
  }

  .gl-sticky-inner .gl-inp,
  .gl-sticky-inner .gl-sel {
    background: var(--gl-white);
    border-color: #e2e8f0;
    color: var(--gl-text);
  }

  .gl-sticky-inner .gl-inp::placeholder {
    color: var(--gl-muted);
  }
}

.gl-sticky-inner {
  max-width: var(--gl-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gl-sticky-inner .gl-inp {
  flex: 1;
  min-width: 140px;
}

.gl-sticky-inner .gl-sel {
  min-width: 130px;
}

/* ── Sections common ───────────────────── */
.gl-section {
  padding: 88px 24px;
}

.gl-section--alt {
  background: var(--gl-white);
}

.gl-wrap {
  max-width: var(--gl-max);
  margin: 0 auto;
}

.gl-sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.gl-sec-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gl-accent);
  margin-bottom: 12px;
}

.gl-sec-title {
  font-family: var(--gl-font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--gl-primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.gl-sec-desc {
  font-size: 1.02rem;
  color: var(--gl-muted);
  line-height: 1.6;
}

/* ── Search block (page section) ───────── */
.gl-search-block {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.gl-search-card {
  background: var(--gl-white);
  border-radius: var(--gl-radius);
  box-shadow: var(--gl-shadow-lg);
  padding: 32px 28px;
  border: 1px solid #e2e8f0;
}

.gl-search-fields {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .gl-search-fields {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: end;
  }
}

.gl-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gl-muted);
  margin-bottom: 8px;
}

.gl-field .gl-inp,
.gl-field .gl-sel {
  background: var(--gl-bg);
  border: 1px solid #e2e8f0;
  color: var(--gl-text);
}

.gl-field .gl-inp::placeholder {
  color: var(--gl-muted);
}

.gl-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.gl-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: var(--gl-white);
  color: var(--gl-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.gl-chip:hover,
.gl-chip.is-on {
  border-color: var(--gl-accent);
  color: var(--gl-primary);
  background: rgba(212, 163, 115, 0.12);
}

/* ── Featured cards ────────────────────── */
.gl-grid-3 {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .gl-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gl-fcard {
  background: var(--gl-white);
  border-radius: var(--gl-radius);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--gl-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gl-fcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--gl-shadow-lg);
}

.gl-fcard-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gl-fcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gl-fcard-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gl-accent);
  color: var(--gl-primary);
}

.gl-fcard-body {
  padding: 22px;
}

.gl-fcard-loc {
  font-size: 0.88rem;
  color: var(--gl-muted);
  margin-bottom: 8px;
}

.gl-fcard-title {
  font-family: var(--gl-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gl-primary);
  margin-bottom: 12px;
}

.gl-fcard-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gl-text);
  margin-bottom: 18px;
}

.gl-fcard-meta span {
  color: var(--gl-muted);
  font-weight: 500;
}

.gl-fcard .gl-btn-outline {
  width: 100%;
  padding: 12px;
  font-size: 0.88rem;
}

/* ── Differenziatori ───────────────────── */
.gl-diff-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .gl-diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .gl-diff-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gl-dcard {
  padding: 32px 24px;
  border-radius: var(--gl-radius);
  background: var(--gl-bg);
  border: 1px solid #e2e8f0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.gl-dcard:hover {
  border-color: var(--gl-accent);
  background: var(--gl-white);
}

.gl-dcard-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 163, 115, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gl-primary);
}

.gl-dcard-ico svg {
  width: 26px;
  height: 26px;
}

.gl-dcard h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gl-primary);
}

.gl-dcard p {
  font-size: 0.92rem;
  color: var(--gl-muted);
  line-height: 1.55;
}

/* ── Investitori band ──────────────────── */
.gl-inv {
  background: linear-gradient(135deg, var(--gl-primary) 0%, var(--gl-secondary) 100%);
  color: var(--gl-white);
  padding: 72px 24px;
}

.gl-inv .gl-wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .gl-inv .gl-wrap {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.gl-inv h2 {
  font-family: var(--gl-font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.gl-inv p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── Testimonianze ─────────────────────── */
.gl-test-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .gl-test-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gl-test {
  padding: 28px;
  border-radius: var(--gl-radius);
  background: var(--gl-white);
  border: 1px solid #e2e8f0;
  position: relative;
}

.gl-test::before {
  content: "\201C";
  font-family: var(--gl-font-display);
  font-size: 3rem;
  line-height: 1;
  color: rgba(212, 163, 115, 0.35);
  position: absolute;
  top: 12px;
  right: 20px;
}

.gl-test blockquote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--gl-text);
  font-style: italic;
  margin-bottom: 20px;
}

.gl-test cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gl-muted);
  font-style: normal;
}

/* ── Processo timeline ─────────────────── */
.gl-steps {
  display: grid;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.gl-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  border-left: 2px solid #e2e8f0;
  margin-left: 19px;
  padding-left: 32px;
}

.gl-step:last-child {
  border-left-color: transparent;
}

.gl-step-num {
  position: absolute;
  left: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gl-accent);
  color: var(--gl-primary);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gl-bg);
}

.gl-section--alt .gl-step-num {
  border-color: var(--gl-white);
}

.gl-step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--gl-primary);
}

.gl-step p {
  font-size: 0.92rem;
  color: var(--gl-muted);
}

/* ── CTA finale + form ─────────────────── */
.gl-final {
  padding: 88px 24px 120px;
  background: linear-gradient(180deg, var(--gl-bg) 0%, #e8eef4 100%);
}

@media (min-width: 900px) {
  .gl-final {
    padding-bottom: 100px;
  }
}

.gl-final-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--gl-white);
  border-radius: var(--gl-radius);
  padding: 40px 28px 44px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--gl-shadow-lg);
}

.gl-final-box h2 {
  font-family: var(--gl-font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 12px;
  color: var(--gl-primary);
}

.gl-final-box > p {
  text-align: center;
  color: var(--gl-muted);
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.gl-form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .gl-form-grid {
    grid-template-columns: 1fr 1fr;
  }

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

.gl-form-grid textarea {
  min-height: 120px;
  resize: vertical;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 0.95rem;
}

.gl-form-actions {
  margin-top: 8px;
}

.gl-form-actions .gl-btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

.gl-form-msg {
  margin-top: 12px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--gl-muted);
}

.gl-form-msg.is-ok {
  color: #15803d;
  font-weight: 600;
}

/* ── Footer ────────────────────────────── */
.gl-foot {
  background: var(--gl-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 24px 32px;
  font-size: 0.88rem;
}

.gl-foot-grid {
  max-width: var(--gl-max);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

@media (min-width: 768px) {
  .gl-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.gl-foot-brand strong {
  display: block;
  color: var(--gl-white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.gl-foot a:hover {
  color: var(--gl-accent);
}

.gl-foot h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.gl-foot ul {
  list-style: none;
}

.gl-foot li {
  margin-bottom: 8px;
}

.gl-foot-bottom {
  max-width: var(--gl-max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
