/*
Theme Name: Kadence Child
Template: kadence
Author: Fabrizio Martini
Author URI: https://fabriziomartini.com
Description: Child theme of Kadence for itp.fabriziomartini.com
Version: 1.0.0
*/

/* ── TYPOGRAPHY — Desktop ── */
h1,
.entry-title,
.wp-block-post-title,
h1.entry-title,
.entry-header .entry-title,
.single .entry-title,
article .entry-title,
.wp-site-blocks .post-title h1,
.wp-site-blocks h1.entry-title  { font-size: 1.9rem !important;  line-height: 1.3 !important;  }
h2                               { font-size: 1.5rem !important;  line-height: 1.35 !important; }
h3                               { font-size: 1.25rem !important; line-height: 1.4 !important;  }
h4                               { font-size: 1.1rem !important;  line-height: 1.4 !important;  }
h5                               { font-size: 1rem !important;    line-height: 1.4 !important;  }
h6                               { font-size: 0.9rem !important;  line-height: 1.4 !important;  }
p, li, td, th                    { font-size: 1rem !important;    line-height: 1.75 !important; }

/* ── BLOG LOOP TITLES ── */
.loop-entry.type-post h2.entry-title,
.loop-entry h2.entry-title,
.loop-entry .entry-header .entry-title,
.loop-entry h3.entry-title              { font-size: 1.1rem !important;  line-height: 1.3 !important; }

@media (max-width: 1024px) {
  .loop-entry.type-post h2.entry-title,
  .loop-entry h2.entry-title,
  .loop-entry .entry-header .entry-title,
  .loop-entry h3.entry-title            { font-size: 1.2rem !important;  line-height: 1.3 !important; }
}

@media (max-width: 767px) {
  .loop-entry.type-post h2.entry-title,
  .loop-entry h2.entry-title,
  .loop-entry .entry-header .entry-title,
  .loop-entry h3.entry-title            { font-size: 1.3rem !important;  line-height: 1.3 !important; }
}

/* ── TABLES ── */
table                          { border-collapse: collapse !important; width: 100% !important; margin: 1.25rem 0 !important; }
table th,
table td                       { border: 1px solid #CBD5E0 !important; padding: 8px 12px !important; text-align: left !important; }
table th                       { background-color: #EDF2F7 !important; font-weight: 600 !important; }
table tr:nth-child(even) td    { background-color: #F7FAFC !important; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  h1,
  .entry-title,
  .wp-site-blocks .post-title h1,
  .wp-site-blocks h1.entry-title { font-size: 1.65rem !important; }
  h2                             { font-size: 1.35rem !important; }
  h3                             { font-size: 1.15rem !important; }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  h1,
  .entry-title,
  .wp-site-blocks .post-title h1,
  .wp-site-blocks h1.entry-title { font-size: 1.4rem !important;  }
  h2                             { font-size: 1.2rem !important;  }
  h3                             { font-size: 1.1rem !important;  }
  h4                             { font-size: 1.05rem !important; }
  p, li, td, th                  { font-size: 1rem !important;    }
}
