/* =========================================================
   Poggio Blog 2026 — main.css (GLOBAL + HOME)
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  --serif: "Cormorant Garamond", Garamond, Baskerville, "Hoefler Text", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --text: #111;
  --muted: rgba(0,0,0,.62);
  --border: rgba(0,0,0,.12);
  --panel: #f5f6f6;
}

/* Sticky footer layout */
html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main{
  flex: 1 0 auto;
}

.site-footer{
  flex-shrink: 0;
}

/* ---------- Reset ---------- */
*{ box-sizing: border-box; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; display: block; }

/*
:root{
  --serif: "Cormorant Garamond", Garamond, Baskerville, "Hoefler Text", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --text: #111;
  --muted: rgba(0,0,0,.62);
  --border: rgba(0,0,0,.12);
  --panel: #f5f6f6;
}
html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1 0 auto;
}

*/
/* ---------- Reset ---------- */
/*
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background:#fff;
  color:var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
*/
h1,h2,h3,
.card-title{
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ---------- Layout container ---------- */
.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

/* =========================================================
   HOME BLOG — Babylon hero + grid
   ========================================================= */

/* Importante: NON tocchiamo body padding-top (gestito da menu.css).
   Qui togliamo solo lo spazio extra sopra la hero. */
.blog-home{
  padding-top: 0;
}

/* HERO full-width (uscita dalla wrap) */
.bh-hero{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 40px;
}

/* Griglia hero: pannello fisso + immagine fluida, attaccati */
.bh-hero-inner{
  display:grid;
  grid-template-columns: 520px 1fr;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;       /* respiro laterale come Babylon */
  align-items: stretch;
}

/* Pannello testo */
.bh-hero-text{
  background: var(--panel);
  padding: 92px 70px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height: calc(100vh - 92px);  /* altezza tipo Babylon */
}

/* Kicker + meta */
.bh-hero-kicker{
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  opacity: .65;
  margin: 0 0 18px;
}
.bh-hero-meta{
  font-size: 13px;
  opacity: .65;
  margin: 0 0 34px;
  letter-spacing: .02em;
}

/* Titolo */
.bh-hero-title{
  margin: 0;
  font-size: 52px;
  line-height: 1.02;
  max-width: 16ch;
}

/* Read more con lineetta */
.bh-hero-readmore{
  margin-top: 26px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  opacity: .75;
  display:inline-flex;
  align-items:center;
  gap: 14px;
}
.bh-hero-readmore::after{
  content:"";
  width: 46px;
  height: 1px;
  background: rgba(0,0,0,.25);
  display:block;
}

/* Immagine hero alta e rettangolare */
.bh-hero-media{ display:block; }
.bh-hero-img,
.bh-hero-img--placeholder{
  width:100%;
  height: calc(100vh - 92px);
  min-height: 680px;
  object-fit: cover;
  display:block;
}
.bh-hero-img--placeholder{ background:#eee; }

/* Latest title */
.bh-section-title{
  text-align:center;
  margin: 86px 0 50px;
  font-family: var(--serif);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: 32px;
  opacity:.65;
}

/* ---------- Grid cards ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 34px;
  padding: 0 20px; /* rientro elegante sotto hero */
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
}

.card-media{ display:block; overflow:hidden; }
.card-media img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-media img{ transform: scale(1.02); }

.card-body{ padding-top: 16px; }

.card-meta{
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
}

.card-title{
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.12;
}

.card-date{
  margin: 0;
  font-size: 14px;
  opacity: .65;
}

/* Pagination */
.pagination{
  display:flex;
  justify-content:space-between;
  gap: 20px;
  padding: 42px 20px 0;
}
.pagination a{
  border-bottom: 1px solid rgba(0,0,0,.25);
  padding-bottom: 2px;
}

/* ---------- Mobile hero ---------- */
@media (max-width: 980px){
  .bh-hero-inner{
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .bh-hero-text{
    padding: 42px 24px;
    min-height: auto;
  }
  .bh-hero-img,
  .bh-hero-img--placeholder{
    height: 420px;
    min-height: 0;
  }
  .bh-hero-title{ font-size: 36px; }
}

.site-footer {
  width: 100%;
  text-align: center;
}

/* =========================================================
   TAXONOMY SEZIONE — hero
   ========================================================= */

.archive-hero{
  padding: 40px 0 20px;
  text-align: center;
}

.archive-kicker{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 14px;
}

.archive-title{
  font-family: var(--serif);
  font-size: 64px;
  line-height: .95;
  margin: 0;
}

.archive-description{
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,.7);
}

@media (max-width: 640px){
  .archive-title{ font-size: 42px; }
}
