/* ============================================================
   Immobiliare Bahiana — Base
   Starter v0: palette ispirata Moroseta, font Cormorant + Inter
   ============================================================ */

:root {
  /* Palette */
  --bahiana-calce:     #F4F1EA;
  --bahiana-siena:     #8B6240;
  --bahiana-ulivo:     #6B7F5C;
  --bahiana-antracite: #2B2B2B;
  --bahiana-oro:       #C49E5C;
  --bahiana-pietra:    #D9D2C2;

  /* Semantica */
  --bg:        var(--bahiana-calce);
  --ink:       var(--bahiana-antracite);
  --ink-soft:  #5a5854;
  --muted:     #8a8784;
  --accent:    var(--bahiana-ulivo);
  --accent-warm: var(--bahiana-siena);
  --hairline:  rgba(43, 43, 43, 0.12);

  /* Tipografia */
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spaziatura */
  --gutter:    clamp(20px, 4vw, 48px);
  --section-y: clamp(60px, 10vw, 120px);
  --radius:    4px;

  /* Contenitore */
  --maxw:      1200px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
h4 { font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }

p { color: var(--ink-soft); }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow:hover {
  color: var(--accent);
}

/* Utility */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

img { max-width: 100%; display: block; }
