:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5b665f;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --green: #244c36;
  --green-dark: #123223;
  --gold: #b9893a;
  --line: rgba(23, 33, 28, 0.16);
  --shadow: 0 24px 70px rgba(18, 50, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 16px;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(98px, 12vw, 150px);
  min-height: 68px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 25, 19, 0.58);
  backdrop-filter: blur(14px);
}

.quick-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  place-items: end start;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 25, 19, 0.92), rgba(12, 25, 19, 0.46) 58%, rgba(12, 25, 19, 0.28)),
    url("agriturismo-ariccia-vista.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 245, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 170px 0 96px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(48px, 7vw, 92px);
  text-wrap: balance;
}

.hero-text {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(980px, 100%);
  margin-top: 36px;
}

.button {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.button span {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.button strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.button-primary {
  border-color: rgba(184, 137, 58, 0.82);
  background: var(--gold);
  color: #17120a;
}

.button-whatsapp {
  border-color: rgba(91, 193, 123, 0.6);
  background: rgba(24, 129, 78, 0.78);
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.info-block {
  min-height: 230px;
  padding: 34px;
  background: var(--panel);
}

.info-block h2,
.map-copy h2 {
  color: var(--green-dark);
  font-size: clamp(28px, 3vw, 42px);
}

.info-block p,
.map-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.info-block a {
  color: var(--green);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 36px;
  width: min(1180px, calc(100% - 36px));
  margin: 84px auto;
  align-items: center;
}

.map-copy {
  padding-right: 10px;
}

.map-frame {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9ede7;
  box-shadow: 0 16px 40px rgba(18, 50, 35, 0.1);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 430px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 28px 18px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-dark);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 12px 18px;
    background: var(--green-dark);
  }

  .brand {
    width: 98px;
    min-height: 58px;
  }

  .quick-nav {
    overflow-x: auto;
    border-radius: 8px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 74px 0 72px;
  }

  .hero-actions,
  .details,
  .map-section {
    grid-template-columns: 1fr;
  }

  .details {
    margin-top: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .info-block {
    min-height: auto;
    padding: 28px 22px;
  }

  .map-section {
    width: min(100% - 36px, 680px);
    margin: 56px auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .quick-nav {
    width: 100%;
  }

  .quick-nav a {
    flex: 1 0 auto;
    padding: 0 13px;
  }

  .hero {
    min-height: 560px;
    background-position: center;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 54px;
  }

  h1 {
    font-size: 44px;
  }

  .button {
    min-height: 82px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 360px;
    height: 360px;
  }
}
