/* ==========================================================================
   Blog 1Control - stili specifici (in aggiunta a style.css)
   ========================================================================== */

/* ---------- Blog navbar: estensioni alla nav del sito ----------
   Riusa <nav>, .wrapper, .logo, .nav_links, .drop_menu di /css/navbar-n.css.
   Qui aggiungiamo solo: tag "Blog", stato attivo categoria, input di ricerca. */

.nav_links li.blog-tag a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0072cf;
  padding: 9px 16px 9px 14px;
  border-left: 1px solid #e0e0e0;
}
.nav_links li.blog-tag a:hover { color: #005ca0; }

.nav_links li.blog-cat.active a,
.nav_links li.blog-cat a.active {
  color: #fff;
  background: #0072cf;
}

.nav_links li.blog-search {
  display: flex;
  align-items: center;
}
.nav_links li.blog-search form {
  display: flex;
  align-items: center;
  background: #f4f6f9;
  border-radius: 999px;
  padding: 0 14px;
  height: 36px;
  width: 200px;
  margin: 0;
  transition: box-shadow .2s ease;
}
.nav_links li.blog-search form:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,114,207,.25);
}
.nav_links li.blog-search .fa { color: #888; font-size: 14px; line-height: 1; }
.nav_links li.blog-search input {
  display: block;
  border: 0;
  background: transparent;
  outline: none;
  margin-left: 8px;
  font-size: 14px;
  line-height: 1;
  width: 100%;
  color: #424242;
  height: 32px;
  padding: 0;
}

@media screen and (max-width: 1280px) {
  .nav_links li.blog-tag { display: none; }
  .nav_links li.blog-search form { width: 100%; height: 44px; }
  .nav_links li.blog-search input { font-size: 18px; height: 40px; }
}

/* Hero blog index */
.blog-hero {
  padding: 100px 20px 60px;
  text-align: center;
  background: #f5f7f9;
}
.blog-hero .title {
  font-size: 44px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #222;
}
.blog-hero .description {
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto;
  color: #555;
  line-height: 1.6;
}

/* Sezione lista articoli */
.blog-list {
  padding: 70px 0 100px;
}
.blog-list-summary {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin: 0 0 40px;
}
.blog-list-summary strong { color: #1573ff; }
.blog-list-clear {
  margin-left: 8px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  border-bottom: 1px dashed #bbb;
  padding-bottom: 1px;
}
.blog-list-clear:hover { color: #1573ff; border-bottom-color: #1573ff; text-decoration: none; }
.blog-list .container-blog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Flex grid: evita i buchi del float di Bootstrap 3 quando le card hanno altezze diverse */
.blog-list .row,
.blog-related .row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 30px;
}
.blog-list .row > [class*="col-"],
.blog-related .row > [class*="col-"] {
  display: flex;
  float: none;
}
.blog-list .row > [class*="col-"] > .blog-card,
.blog-related .row > [class*="col-"] > .blog-card {
  width: 100%;
}

/* Card articolo */
.blog-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}
.blog-card .blog-card-cover {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef;
}
.blog-card .blog-card-body {
  padding: 22px 24px 26px;
}
.blog-card .blog-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 12px;
  color: #222;
}
.blog-card .blog-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: #555;
  margin: 0 0 16px;
}
.blog-card .blog-card-readmore {
  font-weight: 600;
  font-size: 14px;
  color: #1573ff;
}

/* Meta (categoria, data, reading time) */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.blog-meta .blog-category {
  background: #1573ff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.blog-meta .blog-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
}

/* Hero pagina articolo */
.blog-article-hero {
  padding: 110px 20px 40px;
  background: #f5f7f9;
}
.blog-article-hero .container-blog {
  max-width: 860px;
  margin: 0 auto;
}
.blog-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}
.blog-breadcrumb a {
  color: #888;
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  color: #1573ff;
}
.blog-breadcrumb .sep {
  margin: 0 8px;
  color: #ccc;
}
.blog-article-hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin: 14px 0 22px;
  color: #1a1a1a;
}
.blog-article-hero .blog-meta {
  margin-bottom: 30px;
}
.blog-article-hero .blog-cover {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
}
.blog-article-hero .blog-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Wrapper full-width attorno al body articolo (è un <section> per ereditare
   il trattamento di media.css @ >=1490px: max-width 1700, border bianchi laterali). */
.blog-content-wrap {
  background: #fff;
}

/* Body articolo - typography long-form */
.blog-content {
  max-width: 760px;
  margin: 60px auto 80px;
  padding: 0 20px;
  font-size: 17px;
  line-height: 1.75;
  color: #2c2c2c;
}
.blog-content p {
  margin: 0 0 24px;
}
.blog-content h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin: 50px 0 18px;
  color: #1a1a1a;
}
.blog-content h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 36px 0 14px;
  color: #1a1a1a;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 24px;
  padding-left: 26px;
}
.blog-content li {
  margin-bottom: 10px;
}
.blog-content a:not(.button):not(.button-product):not(.btn) {
  color: #1573ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  padding: 1px 4px;
  border-radius: 4px;
  transition: background-color .15s ease, color .15s ease;
}
.blog-content a:not(.button):not(.button-product):not(.btn):hover {
  background-color: #0072cf;
  color: #fff;
  text-decoration: none;
}
.blog-content blockquote {
  margin: 30px 0;
  padding: 18px 24px;
  border-left: 4px solid #1573ff;
  background: #f5f9ff;
  font-size: 18px;
  font-style: italic;
  color: #444;
  border-radius: 4px;
}
.blog-content blockquote p:last-child {
  margin-bottom: 0;
}
.blog-content figure {
  margin: 36px 0;
}
.blog-content figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.blog-content figure figcaption {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}
.blog-content strong { color: #1a1a1a; }

/* CTA fine articolo */
.blog-cta-end {
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #e6e6e6;
}
.blog-cta-end .button-product {
  display: inline-block;
  margin-top: 16px;
}

/* Articoli correlati */
.blog-related {
  background: #f5f7f9;
  padding: 70px 0;
}
.blog-related .container-blog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.blog-related h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 36px;
  text-align: center;
  color: #1a1a1a;
}
.blog-related-empty {
  text-align: center;
  color: #888;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero { padding: 80px 16px 40px; }
  .blog-hero .title { font-size: 32px; }
  .blog-hero .description { font-size: 16px; }
  .blog-list { padding: 50px 0 70px; }
  .blog-card .blog-card-cover { height: 180px; }
  .blog-article-hero { padding: 90px 16px 30px; }
  .blog-article-hero h1 { font-size: 30px; }
  .blog-content { font-size: 16px; margin-top: 40px; }
  .blog-content h2 { font-size: 24px; margin-top: 36px; }
  .blog-content h3 { font-size: 19px; }
  .blog-content blockquote { font-size: 16px; padding: 14px 18px; }
}

/* Tabelle dentro gli articoli del blog (scope: .blog-content) */
.blog-content table {
  width: 100%;
  margin: 32px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
}
.blog-content thead th {
  background: #f5f7f9;
  color: #1a1a1a;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e6e6;
}
.blog-content tbody td {
  padding: 12px 16px;
  vertical-align: top;
  color: #2c2c2c;
  border-bottom: 1px solid #eee;
}
.blog-content tbody tr:last-child td { border-bottom: 0; }
.blog-content tbody tr:hover { background: #fafbfc; }

@media (max-width: 768px) {
  .blog-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .blog-content thead th,
  .blog-content tbody td {
    padding: 10px 12px;
    font-size: 14px;
  }
}
