:root {
  --bg: #f3ebdf;
  --surface: rgba(255, 250, 243, 0.82);
  --surface-strong: #fff9f0;
  --text: #2d241c;
  --heading: #1e140d;
  --muted: #705f52;
  --accent: #9f6426;
  --accent-deep: #774613;
  --border: rgba(80, 50, 27, 0.16);
  --shadow: 0 22px 56px rgba(83, 49, 16, 0.1);
  --shadow-hover: 0 28px 68px rgba(83, 49, 16, 0.15);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100dvh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(166, 101, 35, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(120, 72, 25, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f0e5 0%, #f1e6d7 100%);
  isolation: isolate;
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    radial-gradient(rgba(78, 49, 25, 0.08) 0.7px, transparent 0.7px),
    radial-gradient(rgba(78, 49, 25, 0.05) 0.7px, transparent 0.7px);
  background-size: 22px 22px, 26px 26px;
  background-position: 0 0, 11px 13px;
}

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

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

.page-shell {
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

.container {
  width: min(1000px, calc(100% - 4rem));
  max-width: 100%;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(243, 235, 223, 0.72);
  border-bottom: 1px solid rgba(70, 45, 25, 0.08);
  box-shadow: 0 1px 0 rgba(255, 250, 243, 0.72) inset;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.button {
  transition:
    transform 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.hero {
  padding: 2.2rem 0 4rem;
}

.card,
.not-found {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 251, 245, 0.92), rgba(255, 246, 234, 0.72)),
    var(--surface);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.accent-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 100, 38, 0.22), transparent 72%);
  pointer-events: none;
}

.accent-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-tag {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.card h3,
.contact-section h2,
.not-found h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--heading);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1 {
  width: 100%;
  font-size: clamp(4.4rem, 6.4vw, 5.1rem);
  line-height: 0.97;
}

.card-copy,
.contact-copy,
.not-found p {
  max-width: 62ch;
  line-height: 1.75;
  color: var(--muted);
}

.card-actions,
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

.card-actions .button {
  flex: 1 1 14rem;
}

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

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  color: #fff7ee;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(119, 70, 19, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 36px rgba(119, 70, 19, 0.3);
}

.button-secondary {
  background: rgba(255, 249, 240, 0.72);
  color: var(--heading);
}

.details dt {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.locali-section,
.contact-section {
  padding: 2rem 0 3rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.contact-section h2,
.not-found h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.featured-grid,
.compact-grid {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.75rem);
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

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

.contact-grid {
  max-width: 720px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(159, 100, 38, 0.22);
  box-shadow:
    var(--shadow-hover),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.card-featured {
  padding: 1.8rem;
}

.card h3 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  margin-bottom: 0.9rem;
}

.card-copy {
  margin: 0 0 1.3rem;
}

.details {
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.95rem;
}

.details div {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(80, 50, 27, 0.11);
}

.card-actions {
  margin-top: auto;
}

.details dd,
.details a,
.card-copy,
.contact-copy,
.site-footer a {
  overflow-wrap: anywhere;
}

.details dd,
.footer-row p {
  margin: 0;
}

.details a,
.contact-copy a,
.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-row {
  justify-content: space-between;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.not-found-body {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.not-found {
  width: min(720px, 100%);
  padding: clamp(2rem, 4vw, 3rem);
}

:focus-visible {
  outline: 3px solid rgba(159, 100, 38, 0.28);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .featured-grid,
  .compact-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.75rem 0 3rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 2.5rem, 1120px);
  }

  .topbar {
    padding: 0.7rem 0;
  }

  .brand {
    font-size: clamp(1.9rem, 11vw, 2.45rem);
    line-height: 0.95;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .card,
  .not-found {
    padding: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13.5vw, 4.4rem);
  }

  .card,
  .not-found {
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 2rem, 1120px);
  }
}
