/* blog-articolo-mobile.css */
/* Attivo SOLO su schermi <= 768px (grazie al media nel link) */

:root{
  --verde-acqua: #00C9A7;
  --rosso-mela: #E63946;
  --bianco: #ffffff;
  --grigio: #f5f5f5;
  --panna: #F7F3EE;

  --text: #111827;
  --muted: #4B5563;
  --muted2: #6B7280;

  --surface: rgba(255,255,255,0.95);
  --border: rgba(17,24,39,0.14);
  --shadow: 0 14px 35px rgba(0,0,0,0.12);

  --radius: 18px;
  --radius2: 14px;
}

/* ======================
   BASE
====================== */
body{
  background: linear-gradient(180deg, var(--panna), var(--grigio));
  color: var(--text);
}

.page{
  padding: 0;
}

/* ======================
   NAVBAR
====================== */
.main-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar{
  padding: 10px 14px;
}

.logo{
  font-size: 16px;
}

.nav-links{
  display: none; /* menu desktop off su mobile */
}

/* ======================
   HERO ARTICOLO
====================== */
.blog-hero{
  padding: 18px 14px 12px;
}

.blog-hero-inner{
  display: block;
}

.blog-hero-title{
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}

.blog-hero-subtitle{
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Tag: scroll orizzontale comodo */
.blog-tags{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 2px;
}
.blog-tag{
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Highlight box: card pulita */
.highlight-box{
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.highlight-box h3{
  font-size: 15.5px;
  margin-bottom: 10px;
}

.highlight-box ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.highlight-box li{
  margin: 8px 0;
  line-height: 1.5;
}

/* ======================
   CONTENUTO ARTICOLO
====================== */
.article-container{
  padding: 0 12px 26px;
  max-width: 100%;
}

/* Sezioni: card + spacing */
.article-section{
  margin-top: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-section h2{
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.article-section h3{
  font-size: 15.5px;
  margin: 12px 0 8px;
}

.article-section p{
  margin: 10px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.article-section ul{
  margin: 10px 0;
  padding-left: 18px;
  color: var(--muted);
}

.article-section li{
  margin: 7px 0;
  line-height: 1.5;
}

/* Colonne → una colonna */
.two-columns{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 14px;
}

/* Tabelle: niente overflow brutto, scroll orizzontale */
.protein-table{
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
}

.protein-table table{
  width: 100%;
}

.protein-table th,
.protein-table td{
  font-size: 13.5px;
  white-space: nowrap; /* evita righe spezzate illeggibili */
}

/* Se la tua tabella NON è un wrapper ma proprio <table class="protein-table"> */
table.protein-table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Helper text */
.helper-text{
  font-size: 13.5px !important;
  color: var(--muted2) !important;
  line-height: 1.55 !important;
}

/* Immagini: una colonna e proporzioni corrette */
.article-images-grid{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.article-image-wrapper{
  margin: 0;
}

.article-image-small{
  width: 100%;
  height: auto;
  border-radius: var(--radius2);
  display: block;
  object-fit: cover;
}

figcaption{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted2);
}

/* Liste esempio (mini piano) più leggibili */
.example-day-list{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.example-day-list li{
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(247,243,238,0.65);
}

/* ======================
   CTA FINALE
====================== */
.article-cta{
  border: 1px solid rgba(0,201,167,0.20);
  background: rgba(0,201,167,0.08);
}

.article-cta h2{
  color: var(--text);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-big{
  width: 100%;
  padding: 14px 14px;
  font-size: 15.5px;
  border-radius: 999px;
}

/* ======================
   MOTION: meno aggressivo su mobile
====================== */
.fade-in,
.fade-in-delay,
.fade-in-delay-2{
  animation-duration: 0.35s;
}
