/* ============================================================
   CASA LUNA — Blog CSS  (Redesign 2026)
   Direction: elevated editorial / Italian luxury travel magazine
   ============================================================ */

/* ── BLOG INDEX PAGE ─────────────────────────────────────────── */

/* Hero — full-bleed cinematic opener */
.blog-hero {
  position: relative;
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}
.blog-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.blog-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%;
  opacity: 0.45;
}
.blog-hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.blog-hero-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-lt);
  display: block;
  margin-bottom: 1rem;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  color: white;
  line-height: 0.95;
  margin: 0;
}
.blog-hero-title em {
  display: block;
  font-style: italic;
  color: var(--gold-lt);
}
.blog-hero-sub {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  letter-spacing: 0.05em;
  max-width: 280px;
  line-height: 1.7;
  text-align: right;
  align-self: flex-end;
  padding-bottom: 0.5rem;
}

/* ── FEATURED STORY ──────────────────────────────────────────── */
.blog-featured-wrap {
  background: var(--charcoal);
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.bf-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.bf-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.blog-featured:hover .bf-image img { transform: scale(1.04); }
.bf-badge {
  position: absolute; top: 1.5rem; left: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  background: var(--gold); color: var(--charcoal);
  padding: 0.35rem 1rem;
}
.bf-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.bf-category {
  font-family: var(--font-ui);
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.bf-category::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-lt);
}
.bf-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 400; color: white;
  line-height: 1.12; margin-bottom: 1.25rem;
}
.bf-title a { color: inherit; transition: color 0.25s; }
.bf-title a:hover { color: var(--gold-lt); }
.bf-title em { font-style: italic; color: var(--gold-lt); }
.bf-excerpt {
  font-family: var(--font-ui);
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  font-weight: 300; line-height: 1.85;
  margin-bottom: 2.5rem;
}
.bf-meta {
  font-family: var(--font-ui);
  font-size: 0.65rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.bf-read-link {
  font-family: var(--font-ui);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-lt);
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: gap 0.25s;
  text-decoration: none;
  width: fit-content;
}
.bf-read-link::after {
  content: '→';
  transition: transform 0.25s;
}
.bf-read-link:hover { gap: 1rem; }
.bf-read-link:hover::after { transform: translateX(4px); }

/* ── POSTS SECTION ───────────────────────────────────────────── */
.blog-posts-section {
  background: var(--parchment);
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}
.blog-posts-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.blog-section-rule {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.blog-section-rule span {
  font-family: var(--font-ui);
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}
.blog-section-rule::before,
.blog-section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stone-lt);
}

/* Masonry-style 3-col grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--cream-dk);
}
.blog-card {
  border-right: 1px solid var(--cream-dk);
  border-bottom: 1px solid var(--cream-dk);
  background: white;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.blog-card:last-child { border-right: none; }
.blog-card:nth-child(3n) { border-right: none; }
.blog-card:hover { background: var(--cream); }
.bc-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
}
.bc-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.blog-card:hover .bc-image img { transform: scale(1.05); }
.bc-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bc-cat {
  font-family: var(--font-ui);
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.bc-title {
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--charcoal);
  line-height: 1.3;
  margin: 0;
}
.bc-excerpt {
  font-family: var(--font-ui);
  font-size: 0.76rem; color: var(--stone);
  font-weight: 300; line-height: 1.7;
  margin: 0;
  flex: 1;
}
.bc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem 1.5rem;
  margin-top: auto;
}
.bc-date {
  font-family: var(--font-ui);
  font-size: 0.65rem; color: var(--stone-lt);
  letter-spacing: 0.06em;
}
.bc-arrow {
  font-size: 0.8rem; color: var(--terracotta);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.blog-card:hover .bc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Coming-soon card */
.blog-card-soon {
  opacity: 0.5;
  pointer-events: none;
}
.bc-soon-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(44,36,24,0.4);
}
.bc-soon-badge span {
  font-family: var(--font-ui);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.4rem 1rem;
}

/* ── NEWSLETTER ──────────────────────────────────────────────── */
.blog-newsletter {
  background: var(--charcoal);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}
.blog-newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.blog-newsletter .section-label { color: var(--gold-lt); display: block; margin-bottom: 1rem; }
.blog-newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: white; font-weight: 400;
  line-height: 1.15; margin-bottom: 0.75rem;
}
.blog-newsletter h2 em { font-style: italic; color: var(--gold-lt); }
.blog-newsletter p {
  font-family: var(--font-ui);
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  font-weight: 300; line-height: 1.8;
  margin-bottom: 2.5rem;
}
.nl-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.15);
}
.nl-input {
  flex: 1;
  font-family: var(--font-ui); font-size: 0.82rem;
  padding: 0.9rem 1.25rem;
  background: transparent; color: white; outline: none;
  border: none;
}
.nl-input::placeholder { color: rgba(255,255,255,0.3); }
.nl-submit {
  font-family: var(--font-ui);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  background: var(--gold); color: var(--charcoal);
  border: none; cursor: pointer;
  padding: 0.9rem 1.5rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.nl-submit:hover { background: var(--gold-lt); }

/* ── BLOG POST ────────────────────────────────────────────────── */
.post-hero {
  position: relative; height: 65vh; min-height: 500px;
  display: flex; align-items: flex-end; padding-bottom: 5rem; overflow: hidden;
}
.post-hero .ph-bg { position: absolute; inset: 0; z-index: 0; }
.post-hero .ph-bg img { width:100%; height:100%; object-fit:cover; object-position:center 35%; }
.post-hero .ph-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(28,20,10,0.88) 0%, rgba(28,20,10,0.3) 60%, transparent 100%); }
.post-hero-content { position: relative; z-index: 2; width: 100%; }
.post-hero-inner { max-width: 760px; }
.post-hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem,4.5vw,3.8rem);
  font-weight: 400; color: white; line-height: 1.1; margin-bottom: 1rem;
}
.post-hero-title em { font-style: italic; color: var(--gold-lt); }
.post-hero-sub { font-family: var(--font-ui); font-size: 1rem; color: rgba(255,255,255,0.72); font-weight: 300; max-width: 580px; }

.post-body-section { background: var(--parchment); }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.post-article { min-width: 0; }
.post-lead {
  font-family: var(--font-body); font-size: 1.2rem; color: var(--stone-dk);
  font-weight: 400; line-height: 1.85; margin-bottom: 2rem;
  border-left: 3px solid var(--terracotta); padding-left: 1.5rem;
}
.post-article h2 {
  font-family: var(--font-display); font-size: 1.7rem; color: var(--charcoal);
  margin: 2.5rem 0 1rem; line-height: 1.2;
}
.post-article h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--charcoal); margin: 1.75rem 0 0.6rem; }
.post-article p { font-family: var(--font-ui); font-size: 0.9rem; color: var(--stone-dk); font-weight: 300; line-height: 1.85; margin-bottom: 1rem; }
.post-article strong { font-weight: 600; color: var(--charcoal); }
.post-article em { font-style: italic; color: var(--stone-dk); }
.post-article a { color: var(--terracotta); transition: color 0.2s; }
.post-article a:hover { color: var(--terracotta-dk); }

.post-img-full { margin: 2rem 0; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-img-full img { width:100%; object-fit:cover; max-height: 480px; }
.post-img-pair { margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.post-img-pair img { border-radius: 2px; aspect-ratio: 4/3; object-fit:cover; box-shadow: var(--shadow); }
.post-img-caption { display: block; font-family: var(--font-ui); font-size: 0.7rem; color: var(--stone); font-style: italic; margin-top: 0.6rem; text-align: center; grid-column: 1/-1; }
.post-img-full .post-img-caption { padding: 0.5rem 1rem 0; }

.post-highlight {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem; border-radius: 0 2px 2px 0; margin: 2rem 0;
}
.ph-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.post-highlight strong { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; color: var(--charcoal); display: block; margin-bottom: 0.4rem; }
.post-highlight p { font-family: var(--font-ui); font-size: 0.8rem; color: var(--stone-dk); font-weight: 300; line-height: 1.7; margin: 0; }

.post-footer { border-top: 1px solid var(--cream-dk); padding-top: 2rem; margin-top: 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pf-tags span { font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28rem 0.75rem; border-radius: 20px; background: var(--cream-dk); color: var(--stone-dk); border: 1px solid var(--stone-lt); }
.pf-share { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pf-share > span { font-family: var(--font-ui); font-size: 0.7rem; color: var(--stone); }
.share-btn { font-family: var(--font-ui); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 2px; transition: opacity 0.2s; }
.share-fb { background: #1877F2; color: white; }
.share-tw { background: #000; color: white; }
.share-btn:hover { opacity: 0.85; }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-property-img { width:100%; border-radius: 2px; margin: 0.75rem 0; aspect-ratio: 16/9; object-fit: cover; }
.sidebar-card { background: white; border: 1px solid var(--cream-dk); padding: 1.5rem; }
.sidebar-card h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--charcoal); margin-bottom: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--cream-dk); }
.sidebar-card p { font-family: var(--font-ui); font-size: 0.78rem; color: var(--stone); font-weight: 300; line-height: 1.7; }
.sidebar-facts { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-facts li { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-ui); font-size: 0.78rem; color: var(--stone-dk); font-weight: 300; }
.sidebar-facts li span { font-size: 1rem; }
.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-links li a { font-family: var(--font-ui); font-size: 0.8rem; color: var(--terracotta); font-weight: 400; transition: color 0.2s; }
.sidebar-links li a:hover { color: var(--terracotta-dk); }
.sidebar-links li a::before { content: '→ '; font-size: 0.75rem; }

/* back-to-blog strip */
.back-strip {
  background: var(--cream); padding: 1.5rem clamp(1.5rem, 6vw, 5rem);
  display: flex; align-items: center; justify-content: center;
}

/* ── REVEAL ANIMATION ─────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }

/* ── POST META SHARED ──────────────────────────────────────────── */
.post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.post-cat {
  font-family: var(--font-ui); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  color: var(--terracotta); background: rgba(194,113,79,0.1);
  padding: 0.25rem 0.7rem; border-radius: 20px;
}
.post-date, .post-read {
  font-family: var(--font-ui); font-size: 0.7rem; color: var(--stone); font-weight: 300;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .blog-featured { grid-template-columns: 1fr; }
  .bf-image { aspect-ratio: 16/7; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card:nth-child(3n) { border-right: 1px solid var(--cream-dk); }
  .blog-card:nth-child(2n) { border-right: none; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 768px) {
  .blog-hero-content { flex-direction: column; align-items: flex-start; }
  .blog-hero-sub { text-align: left; max-width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card:nth-child(n) { border-right: none; }
  .post-img-pair { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-input, .nl-submit { width: 100%; }
}
