/**
 * Pratiko Store - Frontend Article Card Layout Stylesheet
 * 
 * Palette Ufficiale:
 * - Verde Pratiko:   #0E8A42 (rgb(14, 138, 66))
 * - Rosso Accento:   #E30613 (rgb(227, 6, 19))
 * - Nero Ferramenta: #1D1D1B (rgb(29, 29, 27))
 * - Grigio Sfondo:   #F8F9FA (rgb(248, 249, 250))
 * - Grigio Testo:    #495057 (rgb(73, 80, 87))
 *
 * @package PratikoContentCrawler
 */

.pratiko-article-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1D1D1B;
  line-height: 1.7;
  max-width: 960px;
  margin: 0 auto;
  font-size: 16px;
}

.pratiko-article-wrapper p {
  color: #2D3748;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

/* ──────────────────────────────────────────────
   Utility Icone Vettoriali (SVG)
   ────────────────────────────────────────────── */
.pratiko-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.pratiko-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pratiko-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #E8F5E9;
  color: #0E8A42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.pratiko-icon-bubble svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pratiko-icon-bubble.warning {
  background: #FFEBEE;
  color: #E30613;
}

/* ──────────────────────────────────────────────
   1. Hero Product Card (Inizio Articolo)
   ────────────────────────────────────────────── */
.pratiko-hero-card {
  background: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 12px;
  padding: 26px;
  margin: 0 0 35px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}

.pratiko-hero-img {
  flex: 1 1 240px;
  text-align: center;
  background: #F8F9FA;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #EDEDED;
}

.pratiko-hero-img img {
  max-width: 100%;
  max-height: 240px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.pratiko-hero-body {
  flex: 2 1 320px;
}

.pratiko-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  color: #0E8A42;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pratiko-badge svg {
  width: 14px;
  height: 14px;
  stroke: #0E8A42;
}

.pratiko-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #1D1D1B;
  margin: 0 0 12px 0;
  line-height: 1.35;
  text-align: left;
}

/* ──────────────────────────────────────────────
   2. Griglia Specifiche Tecniche
   ────────────────────────────────────────────── */
.pratiko-section-title {
  color: #0E8A42;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  margin: 35px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pratiko-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0 35px 0;
}

.pratiko-spec-card {
  background: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-top: 3px solid #0E8A42;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pratiko-spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.pratiko-spec-label {
  font-size: 11px;
  color: #6C757D;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.pratiko-spec-val {
  font-size: 15px;
  color: #1D1D1B;
  font-weight: 700;
  margin-top: 2px;
}

/* ──────────────────────────────────────────────
   3. Card Vantaggi & Ambiti d'Uso (Griglia 2x2)
   ────────────────────────────────────────────── */
.pratiko-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 16px 0 35px 0;
}

.pratiko-card {
  background: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  text-align: left;
  transition: transform 0.2s ease;
}

.pratiko-card:hover {
  transform: translateY(-2px);
}

.pratiko-card h3 {
  font-size: 17px;
  color: #1D1D1B;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.pratiko-card h3 .pratiko-icon-inline {
  color: #0E8A42;
}

.pratiko-card p {
  margin: 0;
  color: #495057;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────
   4. Callout Box (Esperto Pratiko & Sicurezza)
   ────────────────────────────────────────────── */
.pratiko-expert-box {
  background: #F4FAF6;
  border-left: 5px solid #0E8A42;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(14, 138, 66, 0.08);
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pratiko-expert-box h4 {
  color: #0E8A42;
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
}

.pratiko-warning-box {
  background: #FFF8F8;
  border-left: 5px solid #E30613;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 25px 0;
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pratiko-warning-box h4 {
  color: #E30613;
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
}

/* ──────────────────────────────────────────────
   5. FAQ Cards Modulari
   ────────────────────────────────────────────── */
.pratiko-faq-item {
  background: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pratiko-faq-question {
  font-weight: 700;
  color: #1D1D1B;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.pratiko-faq-question .faq-q-icon {
  color: #0E8A42;
}

.pratiko-faq-answer {
  color: #495057;
  margin: 0;
  font-size: 14px;
  padding-left: 28px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────
   6. Banner Call to Action Finale
   ────────────────────────────────────────────── */
.pratiko-cta-banner {
  background: linear-gradient(135deg, #0E8A42 0%, #085a2b 100%);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: #FFFFFF;
  margin: 40px 0 20px 0;
  box-shadow: 0 6px 20px rgba(14, 138, 66, 0.25);
}

.pratiko-cta-banner h3 {
  color: #FFFFFF !important;
  font-size: 22px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.pratiko-cta-banner p {
  color: #E8F5E9;
  font-size: 15px;
  margin-bottom: 22px;
}

.pratiko-cta-btn {
  background: #E30613;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.4);
}

.pratiko-cta-btn svg {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pratiko-cta-btn:hover {
  background: #be040f;
  transform: translateY(-2px);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.5);
}

/* ──────────────────────────────────────────────
   Responsive Media Queries
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pratiko-hero-card {
    flex-direction: column;
    padding: 20px;
    gap: 18px;
  }
  .pratiko-hero-img {
    width: 100%;
  }
  .pratiko-specs-grid {
    grid-template-columns: 1fr;
  }
  .pratiko-cards-grid {
    grid-template-columns: 1fr;
  }
  .pratiko-expert-box, .pratiko-warning-box {
    flex-direction: column;
    gap: 12px;
  }
  .pratiko-faq-answer {
    padding-left: 0;
  }
}

/* ──────────────────────────────────────────────
   7. Compatibilità Temi WordPress (Salient / Flatsome / Astra)
   Neutralizza l'immagine in evidenza sgranata usata come sfondo testata
   ────────────────────────────────────────────── */
.single-post #page-header-bg,
.single-post .page-header-bg {
  background-image: none !important;
  background-color: #1D1D1B !important;
  min-height: 180px !important;
}

.single-post #page-header-bg .page-header-bg-image,
.single-post #page-header-bg .page-header-bg-image-wrap,
.single-post #page-header-bg .bg-image-wrap,
.single-post .page-title-bg {
  display: none !important;
  background-image: none !important;
}

.single-post #page-header-bg h1,
.single-post #page-header-bg .heading-title,
.single-post #page-header-bg .entry-title {
  color: #FFFFFF !important;
  text-shadow: none !important;
}

.single-post #page-header-bg #single-below-header,
.single-post #page-header-bg #single-below-header span,
.single-post #page-header-bg #single-below-header a {
  color: rgba(255, 255, 255, 0.85) !important;
}
