/* ------------------------------------
   BLOG BASE STYLES
------------------------------------ */

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.7;
    background: #0c111b;
    color: #f5f5f5;
}

/* spacing so fixed header doesn't overlap content */
.blog-page {
    padding-top: 140px; 
}

/* container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------
   HEADER (blog-specific)
------------------------------------ */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ADEEE3; /* mint-light */
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header img {
    height: 40px;   /* or 50px, 60px — your choice */
    width: auto;
    display: block;
}


.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #363636;
    font-weight: 600;
}

/* ------------------------------------
   TYPOGRAPHY
------------------------------------ */

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

p {
    margin-bottom: 16px;
}

ul {
    margin-bottom: 20px;
}

a {
    color: #86DEB7; /* mint */
    text-decoration: underline;
}

a:hover {
    opacity: 0.85;
}

/* ------------------------------------
   ARTICLE LIST
------------------------------------ */

.blog-index li {
    margin-bottom: 20px;
    list-style: disc;
    margin-left: 20px;
}

/* ------------------------------------
   ARTICLE PAGE
------------------------------------ */

.blog-post header {
    margin-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #bbbbbb;
}

.foglio-rosa-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 2rem 0;
}

.foglio-rosa-text {
  flex: 2;
}

.foglio-rosa-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  border: 3px solid var(--mint); /* matches your site’s mint border */
}

.foglio-rosa-image {
  float: right;
  width: 320px;
  text-align: center;
  margin-left: 20px;
  margin-bottom: 15px;
}

.foglio-rosa-image figcaption {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 6px;
}


@media (max-width: 800px) {
  .foglio-rosa-box {
    flex-direction: column;
  }

  .foglio-rosa-image img {
    width: 100%;
    margin-top: 1rem;
  }
}

/* -----------------------------------
   SHARED FOOTER (matches Teoria page)
----------------------------------- */

.teoria-footer {
    background: #423E28; /* brown */
    color: white;
    text-align: center;
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
}

.teoria-footer .footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Links row */
.teoria-footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.teoria-footer-links a {
    color: #ADEEE3; /* mint light */
    text-decoration: none;
    font-weight: 600;
}

.teoria-footer-links a:hover {
    opacity: 0.75;
}

.teoria-footer-links .dot {
    color: rgba(255,255,255,0.4);
}

/* Copyright line */
.teoria-footer-copy {
    color: rgba(255,255,255,0.85);
    margin: 0.3rem 0 1rem;
    font-size: 0.9rem;
}



/* ------------------------------------
   BLOG CARDS GRID
------------------------------------ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: #121822;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* perfect square */
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #fff;
}

.blog-card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #cfcfcf;
}


/* ------------------------------------
   BLOG CARD — HOVER OVERLAY VERSION
------------------------------------ */

.blog-card.hover-overlay {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* perfect square */
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #121822;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
        max-width: 350px;   /* adjust as needed */
    margin: 0 auto;     /* keeps it centered */
}

.blog-card.hover-overlay:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.blog-card.hover-overlay .blog-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}

/* Darken image on hover */
.blog-card.hover-overlay:hover .blog-card-image {
    opacity: 0.35;
}

/* Overlay content */
.blog-card-overlay {
    position: absolute;
    inset: 0; /* shorthand for top:0, right:0, bottom:0, left:0 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;

    opacity: 0;
    transition: opacity 0.35s ease;
}

.blog-card.hover-overlay:hover .blog-card-overlay {
    opacity: 1;
}

/* Text styling inside overlay */
.blog-card-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.blog-card-overlay p {
    margin: 0;
    font-size: 1rem;
    color: #e0e0e0;
    max-width: 85%;
}

/* Mint border around each image card */
.blog-card.hover-overlay {
    border: 4px solid #ADEEE3;     /* mint border */
    border-radius: 12px;           /* matches existing rounding */
    overflow: hidden;              /* keep border and image aligned */
    max-width: 350px;
    margin: 0 auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Optional: subtle glow on hover using your brand mint */
.blog-card.hover-overlay:hover {
    border-color: #86DEB7;         /* darker mint for hover */
    box-shadow: 0 0 18px rgba(134, 222, 183, 0.35);
}
