:root {
  --bg: #fbf6ef;
  --bg-warm: #f3e6d5;
  --text: #2b2118;
  --muted: #6d5d4f;
  --brand: #8b4e2f;
  --brand-dark: #5f331e;
  --line: rgba(43, 33, 24, 0.14);
  --card: #fffaf3;
  --shadow: 0 24px 60px rgba(63, 39, 21, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 246, 239, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
}

.logo small {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav a:hover,
.footer-content a:hover {
  color: var(--brand);
}

.header-cta {
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px clamp(20px, 6vw, 80px) 80px;
  background:
    linear-gradient(120deg, rgba(43,33,24,0.78), rgba(43,33,24,0.30)),
    url('images/vista-civita.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -8vw;
  bottom: -16vh;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  color: #fffaf3;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1d4b7;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
}

h1 {
  font-size: clamp(56px, 10vw, 112px);
  max-width: 900px;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
}

p {
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 250, 243, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--brand);
  color: #fffaf3;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: rgba(255, 250, 243, 0.92);
  color: var(--brand-dark);
  border-color: rgba(255,255,255,0.5);
}

.contact-section .btn-secondary {
  background: transparent;
  border-color: var(--brand);
}

.hero-card {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: clamp(26px, 6vw, 72px);
  z-index: 3;
  width: min(360px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 250, 243, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.16);
  backdrop-filter: blur(18px);
  color: #fffaf3;
}

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

.hero-card span {
  color: rgba(255, 250, 243, 0.82);
  margin-top: 6px;
}

.section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 70px);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: start;
}

.warm-section {
  background: var(--bg-warm);
}

.image-panel {
  min-height: 480px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(43,33,24,0.2), rgba(43,33,24,0.45)),
    linear-gradient(135deg, #a4673e, #d6aa75 55%, #f2dbc0);
  box-shadow: var(--shadow);
  color: #fffaf3;
  text-align: center;
  padding: 0;
  font-weight: 800;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.feature-card,
.distance-box,
.note-box,
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(63, 39, 21, 0.08);
}

.feature-card {
  padding: 28px;
}

.icon {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 26px;
}

.highlight-section {
  background: #2d2118;
  color: #fffaf3;
}

.highlight-section p {
  color: rgba(255, 250, 243, 0.72);
}

.highlight-section .eyebrow {
  color: #d7a376;
}

.three-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.three-points > div {
  padding: 28px;
  border: 1px solid rgba(255, 250, 243, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.06);
}

.distance-box {
  padding: 30px;
}

.distance-box ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.distance-box li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.distance-box li:last-child {
  border-bottom: 0;
}

.distance-box span {
  color: var(--muted);
}

.gallery-section {
  background: var(--bg-warm);
}

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

.gallery-item {
  min-height: 250px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(rgba(43,33,24,0.14), rgba(43,33,24,0.36)),
    linear-gradient(135deg, #b27a50, #f0d1a8);
  color: #fffaf3;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
}

.note-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.note-box {
  padding: clamp(28px, 5vw, 48px);
}

.contact-section {
  background: #fffaf3;
}

.contact-details {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-details p {
  margin: 8px 0;
}

.contact-form {
  padding: clamp(24px, 4vw, 36px);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 70px);
  background: #2d2118;
  color: #fffaf3;
}

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

.footer-content p,
.footer-content a {
  color: rgba(255, 250, 243, 0.78);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 14px 18px;
  border-radius: 999px;
  background: #2d7a46;
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
}

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

  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 180px;
  }

  .hero-card {
    left: 20px;
    right: 20px;
  }

  .two-columns,
  .features-grid,
  .three-points {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 52px;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .contact-actions,
  .footer-content {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .form-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
