/* IAmKetoFit.com — Italian Keto Diet Blog */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap");

:root {
  --green-dark: #1b4332;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --gold: #b7860b;
  --gold-light: #f4d03f;
  --bg: #f7f3ec;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-gray: #6b7280;
  --border: #e5e0d5;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--green-mid);
  text-decoration: none;
}
a:hover {
  color: var(--green-dark);
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
}
.site-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}
.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--green-mid);
}
.nav-cta {
  background: var(--green-mid);
  color: white !important;
  padding: 8px 20px;
  border-radius: 25px;
  transition: background 0.2s !important;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
}

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  margin-bottom: 56px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.82) 0%,
    rgba(45, 106, 79, 0.6) 50%,
    transparent 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: white;
  max-width: 680px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.hero-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.hero-meta span {
  margin-right: 16px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: white;
}
.btn-primary:hover {
  background: #9a7009;
  color: white;
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid white;
  color: white;
  margin-left: 12px;
}
.btn-outline:hover {
  background: white;
  color: var(--green-dark);
}

/* ─── SECTION TITLE ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-dark);
  position: relative;
  padding-left: 18px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}
.see-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── ARTICLES GRID ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-img-wrap {
  position: relative;
  padding-top: 58%;
  overflow: hidden;
}
.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .card-img-wrap img {
  transform: scale(1.04);
}
.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green-mid);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
}
.card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-date {
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-bottom: 8px;
}
.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}
.card-title a {
  color: inherit;
}
.card-title a:hover {
  color: var(--green-mid);
}
.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.card-read-more:hover {
  color: #9a7009;
}
.card-read-more::after {
  content: "→";
}

/* ─── FEATURED STRIP ─── */
.featured-strip {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
  color: white;
}
.featured-strip-img {
  width: 220px;
  min-width: 220px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
}
.featured-strip-badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.featured-strip h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}
.featured-strip p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}
.btn-gold {
  background: var(--gold);
  color: white;
}
.btn-gold:hover {
  background: #9a7009;
  color: white;
}

/* ─── BENEFITS SECTION ─── */
.benefits {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-bottom: 56px;
}
.benefits-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.benefits-sub {
  text-align: center;
  color: var(--text-mid);
  margin-bottom: 40px;
  font-size: 0.95rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-item {
  background: white;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.benefit-item h4 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ─── NEWSLETTER ─── */
.newsletter {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 56px;
  color: white;
}
.newsletter h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.newsletter p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.95rem;
  outline: none;
}
.newsletter-form button {
  background: var(--gold);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 0 6px 6px 0;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover {
  background: #9a7009;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about .footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-about p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-col h5 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-links a:hover {
  color: white;
}

/* ─── ARTICLE PAGE ─── */
.article-header {
  background: var(--green-dark);
  color: white;
  padding: 60px 0 48px;
}
.article-header .container {
  max-width: 820px;
}
.article-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}
.article-breadcrumb a:hover {
  color: white;
}
.article-category-badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.article-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.article-meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-featured-img {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  height: 420px;
  object-fit: cover;
  border-radius: 0 0 var(--radius) var(--radius);
  display: block;
}

.article-body-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.article-lead {
  font-size: 1.15rem;
  color: var(--green-mid);
  font-weight: 400;
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.article-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 36px 0 16px;
}
.article-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--green-mid);
  margin: 28px 0 12px;
}
.article-content p {
  margin-bottom: 20px;
  color: var(--text-mid);
  line-height: 1.8;
}
.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-mid);
}
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-content .highlight-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.article-content .highlight-box p {
  margin: 0;
  color: var(--green-dark);
  font-weight: 400;
}
.article-content img {
  width: 100%;
  border-radius: 10px;
  margin: 28px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0;
}
.tag {
  background: var(--green-pale);
  color: var(--green-mid);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.related-articles {
  margin-top: 56px;
}
.related-articles h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── ABOUT PAGE ─── */
.page-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  padding: 64px 0;
  text-align: center;
  margin-bottom: 56px;
}
.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-strip {
    flex-direction: column;
  }
  .featured-strip-img {
    width: 100%;
    min-width: unset;
    height: 200px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    gap: 16px;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    height: 400px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input {
    border-radius: 6px;
  }
  .newsletter-form button {
    border-radius: 6px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-meta-row {
    flex-wrap: wrap;
    gap: 10px;
  }
}
