/* ============================================
   THE MONFERRATO EDIT — v2 MAGAZINE
   Editorial · Cinematic · Slow
   ============================================ */

/* ─── FONTS & TOKENS ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette — earth & vine */
  --cream: #F5F0E8;
  --cream-light: #FAF6F0;
  --cream-dark: #E8DFD0;
  --cream-darker: #D9CFBE;
  --ink: #1A1611;
  --ink-soft: #2D2820;
  --ink-muted: #6B6356;
  --terracotta: #B85C38;
  --terracotta-dark: #9A4A2C;
  --ocre: #C8956D;
  --olive: #6B7142;
  --gold: #C9A961;
  --wine: #722F37;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  /* Spacing */
  --maxw: 1400px;
  --maxw-text: 720px;
  --maxw-wide: 1100px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-py: clamp(6rem, 12vw, 10rem);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t: 0.5s;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { font-family: var(--serif); font-size: clamp(1.05rem, 1.15vw, 1.25rem); color: var(--ink-soft); line-height: 1.85; }

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ─── LAYOUT HELPERS ─── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-text { max-width: var(--maxw-text); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-py) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark p { color: var(--cream-dark); }
.section--cream-dark { background: var(--cream-dark); }
.section--ink-soft { background: var(--ink-soft); color: var(--cream); }
.section--ink-soft p { color: var(--cream-dark); }

/* ─── NAV TOP (lang + brand) ─── */
.nav-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem var(--gutter);
  transition: all var(--t) var(--ease);
}
.nav-top.scrolled {
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding-top: 0.85rem; padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(26,22,17,0.06);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--cream-light);
  transition: color var(--t) var(--ease);
  letter-spacing: 0.01em;
}
.nav-top.scrolled .nav-brand { color: var(--ink); }
.nav-top.at-hero .nav-brand { color: var(--cream-light); }
.nav-langs { display: flex; gap: 0.25rem; }
.nav-lang-btn {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.65rem;
  color: var(--cream-light); opacity: 0.55;
  transition: all var(--t) var(--ease);
  cursor: pointer; border-radius: 3px;
}
.nav-top.scrolled .nav-lang-btn { color: var(--ink); }
.nav-lang-btn:hover { opacity: 1; }
.nav-lang-btn.active { opacity: 1; color: var(--ocre); }
.nav-top.scrolled .nav-lang-btn.active { color: var(--terracotta); }

/* ─── NAV STICKY (section links) ─── */
.nav-sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: rgba(26, 22, 17, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform var(--t) var(--ease);
  padding: 0.7rem var(--gutter);
  display: flex; justify-content: center;
}
.nav-sticky.visible { transform: translateY(0); }
.nav-sticky-inner {
  display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; flex-wrap: wrap;
}
.nav-sticky-link {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dark); opacity: 0.6;
  transition: all var(--t) var(--ease);
}
.nav-sticky-link:hover, .nav-sticky-link.active { opacity: 1; color: var(--ocre); }
@media (max-width: 768px) {
  .nav-sticky-inner { gap: 0.75rem; }
  .nav-sticky-link { font-size: 0.65rem; }
}

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,22,17,0.35) 0%, rgba(26,22,17,0.15) 35%, rgba(26,22,17,0.65) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ocre); margin-bottom: 1.5rem;
  display: block;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 300; color: var(--cream-light);
  margin-bottom: 1.5rem; line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  color: var(--cream-dark); max-width: 50ch; line-height: 1.5;
  margin-bottom: 2.5rem;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: var(--cream-light); opacity: 0.5;
  font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; transition: all var(--t) var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--terracotta); color: var(--cream-light); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(245,240,232,0.4); color: var(--cream-light); }
.btn-outline:hover { border-color: var(--cream-light); background: rgba(245,240,232,0.08); }

/* ─── TEXT LINKS (animated underline) ─── */
.text-link {
  position: relative; color: var(--terracotta);
  font-family: var(--sans); font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.04em;
}
.text-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.text-link:hover::after { transform: scaleX(1); }

/* ─── ESSENCE SECTION ─── */
.essence { text-align: center; }
.essence h2 { margin-bottom: 3rem; }
.essence p { margin-bottom: 1.8rem; }
.essence p:last-child { margin-bottom: 0; font-style: italic; }

/* ─── LAND SECTION ─── */
.land-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
@media (max-width: 900px) { .land-grid { grid-template-columns: 1fr; } }
.land-text p { margin-bottom: 1.6rem; }
.land-text p:last-child { margin-bottom: 0; }
.land-image {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden; border-radius: 2px;
}
.land-image img { width: 100%; height: 100%; object-fit: cover; }
.land-badges { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.land-badge {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 1rem; border: 1px solid var(--cream-darker);
  border-radius: 2px; color: var(--ink-muted);
}

/* ─── TABLE / CÀ NOVA FEATURE ─── */
.canova-feature { position: relative; overflow: hidden; }
.canova-image-bg {
  position: absolute; inset: 0; opacity: 0.12;
  background-size: cover; background-position: center;
}
.canova-image-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 30%, transparent 70%, var(--ink) 100%);
}
.canova-content { position: relative; z-index: 1; }
.canova-portrait {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
@media (max-width: 900px) { .canova-portrait { grid-template-columns: 1fr; } }
.canova-text h3 { color: var(--cream-light); margin-bottom: 2rem; }
.canova-text p { color: var(--cream-dark); margin-bottom: 1.5rem; line-height: 1.85; }
.canova-quote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ocre); line-height: 1.4;
  padding: 2rem 0; margin: 2rem 0;
  border-top: 1px solid rgba(200,149,109,0.25);
  border-bottom: 1px solid rgba(200,149,109,0.25);
}
.canova-image {
  border-radius: 2px; overflow: hidden;
  aspect-ratio: 3/4; position: sticky; top: 120px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.canova-image img { width: 100%; height: 100%; object-fit: cover; }
.canova-meta {
  display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.canova-meta-item {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--cream-dark);
}
.canova-meta-item strong { color: var(--ocre); display: block; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.2rem; }

/* ─── OTHER TABLES ─── */
.other-tables { margin-top: 5rem; }
.other-tables h3 { text-align: center; margin-bottom: 3rem; }
.tables-list { display: flex; flex-direction: column; gap: 0; }
.table-entry {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: 2rem; padding: 2.5rem 0;
  border-bottom: 1px solid var(--cream-darker);
  align-items: start;
}
.table-entry:last-child { border-bottom: none; }
@media (max-width: 700px) { .table-entry { grid-template-columns: 1fr; gap: 0.5rem; } }
.table-entry-location {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--terracotta); font-weight: 600;
  letter-spacing: 0.06em;
}
.table-entry-name {
  font-family: var(--serif); font-size: 1.4rem; color: var(--ink);
  margin-bottom: 0.3rem;
}
.table-entry-desc { font-size: 1rem; color: var(--ink-muted); line-height: 1.7; }
.table-entry-link { white-space: nowrap; }

/* ─── STAYS ─── */
.stays-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem); margin-top: 4rem;
}
@media (max-width: 900px) { .stays-grid { grid-template-columns: 1fr; } }
.stay-card { display: flex; flex-direction: column; }
.stay-image {
  aspect-ratio: 3/4; overflow: hidden; border-radius: 2px;
  margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--ocre), var(--terracotta));
}
.stay-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.stay-card:hover .stay-image img { transform: scale(1.04); }
.stay-card h4 { margin-bottom: 0.5rem; }
.stay-card .stay-location {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.75rem;
}
.stay-card p { font-size: 0.95rem; }

/* ─── TRAILS ─── */
.trails-intro { max-width: var(--maxw-text); margin: 0 auto 4rem; }
.trails-list { display: flex; flex-direction: column; gap: 0; }
.trail-entry {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 5rem); padding: 3.5rem 0;
  border-bottom: 1px solid rgba(232,223,208,0.15);
  align-items: start;
}
.trail-entry:last-child { border-bottom: none; }
@media (max-width: 700px) { .trail-entry { grid-template-columns: 1fr; gap: 1rem; } }
.trail-meta {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--ocre); letter-spacing: 0.08em;
}
.trail-meta strong { display: block; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.3rem; opacity: 0.7; }
.trail-entry h4 { color: var(--cream-light); margin-bottom: 1rem; }
.trail-entry p { color: var(--cream-dark); font-size: 1.05rem; line-height: 1.8; }

/* ─── VILLAGES / EXPLORE ─── */
.villages-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 2rem); margin-top: 4rem;
}
.village-card {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; border-radius: 2px; cursor: pointer;
}
.village-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.village-card:hover img { transform: scale(1.06); }
.village-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,22,17,0.8) 100%);
}
.village-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem; z-index: 1; color: var(--cream-light);
}
.village-info h4 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.village-info p { font-size: 0.85rem; color: var(--cream-dark); font-family: var(--sans); }

/* ─── FIELD NOTES ─── */
.field-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem;
}
@media (max-width: 700px) { .field-grid { grid-template-columns: 1fr; } }
.field-item h4 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--terracotta); margin-bottom: 1rem; font-size: 1.3rem;
}
.field-item p { font-size: 1rem; }

/* ─── GALLERY ─── */
.gallery-masonry {
  column-count: 3; column-gap: 1rem; margin-top: 4rem;
}
@media (max-width: 768px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 480px) { .gallery-masonry { column-count: 1; } }
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  overflow: hidden; border-radius: 2px;
}
.gallery-item img { width: 100%; transition: transform 0.8s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

/* ─── FOOTER ─── */
.footer {
  background: var(--ink); color: var(--cream-dark);
  padding: 5rem var(--gutter) 2.5rem;
}
.footer-content {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 700px) { .footer-content { grid-template-columns: 1fr; } }
.footer-brand h3 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--cream-light); margin-bottom: 1rem; font-size: 1.4rem;
}
.footer-brand p { color: var(--cream-dark); font-size: 0.95rem; max-width: 45ch; }
.footer-col h5 {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ocre); margin-bottom: 1rem;
}
.footer-col p, .footer-col a { font-size: 0.85rem; color: var(--cream-dark); line-height: 1.8; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid rgba(245,240,232,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-family: var(--sans); font-size: 0.75rem; color: var(--cream-dark); opacity: 0.6;
}

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .hero { min-height: 92vh; }
  .hero-scroll { display: none; }
}
