/**
 * promuovere-agriturismo.css — Pagina /blog/2017/11/come-promuovere-un-agriturismo/
 * Stile coerente con la hub /blog/aprire-un-agriturismo/
 * Mobile first, palette teal/grigio
 */

/* ===== HERO ===== */
.pa-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 60%, #fef9c3 100%);
  border: 1px solid #ccfbf1;
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .pa-hero { padding: 2.5rem 2rem; }
}
.pa-hero .pa-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #0d9488;
  background: #fff;
  border: 1px solid #ccfbf1;
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: .85rem;
}
.pa-hero h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 .65rem;
}
@media (min-width: 768px) { .pa-hero h1 { font-size: 2rem; } }
.pa-hero .pa-lead {
  font-size: 1rem;
  color: #475569;
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 1rem;
}
.pa-hero .pa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  font-size: .82rem;
  color: #475569;
}
.pa-hero .pa-meta i {
  color: #0d9488;
  margin-right: .35rem;
}
.pa-hero .pa-hero-img {
  border-radius: .75rem;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(15,118,110,.12);
}

/* ===== STAT BOX ===== */
.pa-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .pa-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.pa-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1rem .9rem;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pa-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.pa-stat .pa-stat-num {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0d9488;
  line-height: 1.1;
  margin-bottom: .15rem;
}
.pa-stat .pa-stat-lbl {
  font-size: .78rem;
  color: #475569;
  line-height: 1.3;
}

/* ===== TOC STICKY ===== */
.pa-toc {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 992px) {
  .pa-toc-sticky {
    position: sticky;
    top: 80px;
  }
}
.pa-toc h2 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #475569;
  margin: 0 0 .65rem;
}
.pa-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pa-toc;
  column-count: 1;
}
@media (min-width: 768px) and (max-width: 991px) {
  .pa-toc ol { column-count: 2; column-gap: 1.5rem; }
}
.pa-toc ol li {
  counter-increment: pa-toc;
  font-size: .88rem;
  padding: .25rem 0 .25rem 1.7rem;
  position: relative;
  break-inside: avoid;
  line-height: 1.4;
}
.pa-toc ol li::before {
  content: counter(pa-toc);
  position: absolute;
  left: 0;
  top: .3rem;
  width: 1.3rem;
  height: 1.3rem;
  background: #fff;
  border: 1px solid #ccfbf1;
  color: #0d9488;
  font-weight: 700;
  font-size: .72rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pa-toc a {
  color: #1f2937;
  text-decoration: none;
  transition: color .15s;
}
.pa-toc a:hover { color: #0d9488; text-decoration: underline; }

/* ===== ENTRY CONTENT — STYLING H2/H3 ===== */
.pa-content {
  background: #fff;
}
.pa-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.2rem 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #ccfbf1;
  scroll-margin-top: 80px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .pa-content h2 { font-size: 1.55rem; }
}
.pa-content h2:first-child { margin-top: 0; }

.pa-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d9488;
  margin: 1.4rem 0 .6rem;
  line-height: 1.4;
}
.pa-content p {
  color: #374151;
  line-height: 1.7;
  margin: 0 0 .9rem;
}
.pa-content p.lead {
  font-size: 1.05rem;
  color: #1f2937;
  background: #f0fdfa;
  border-left: 4px solid #0d9488;
  border-radius: .5rem;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}
.pa-content ul, .pa-content ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}
.pa-content ul li,
.pa-content ol li {
  color: #374151;
  line-height: 1.65;
  margin-bottom: .4rem;
}
.pa-content strong { color: #0f172a; }
.pa-content a {
  color: #0d9488;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.pa-content a:hover { color: #0f766e; }
.pa-content img {
  border-radius: .75rem;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.pa-content blockquote {
  border-left: 4px solid #14b8a6;
  background: #f0fdfa;
  padding: .9rem 1.15rem;
  margin: 1rem 0;
  border-radius: .5rem;
  font-style: italic;
  color: #1f2937;
}
.pa-content code {
  background: #f3f4f6;
  border-radius: .25rem;
  padding: .1rem .35rem;
  font-size: .9em;
  color: #be185d;
}
.pa-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
  font-size: .9rem;
}
.pa-content table th,
.pa-content table td {
  padding: .65rem .85rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.pa-content table thead th {
  background: #f0fdfa;
  font-weight: 700;
  color: #0f172a;
}

/* ===== FAQ ENHANCEMENT (h3 dopo "Domande frequenti" diventa accordion) ===== */
/* Stile applicato dal JS che converte H3 dopo #faq in details/summary */
.pa-faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  margin-bottom: .65rem;
  overflow: hidden;
}
.pa-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: #0f172a;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pa-faq-item summary::-webkit-details-marker { display: none; }
.pa-faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: #0d9488;
  font-weight: 400;
  transition: transform .2s;
  line-height: 1;
  flex-shrink: 0;
}
.pa-faq-item[open] summary::after { transform: rotate(45deg); }
.pa-faq-item[open] summary { border-bottom: 1px solid #e5e7eb; }
.pa-faq-body {
  padding: 0 1.15rem 1rem;
  color: #374151;
  line-height: 1.6;
  font-size: .92rem;
}
.pa-faq-body p:last-child { margin-bottom: 0; }

/* ===== CTA FINALE ===== */
.pa-cta-final {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0 1rem;
}
@media (min-width: 768px) { .pa-cta-final { padding: 2.5rem 2rem; } }
.pa-cta-final h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .65rem;
  border-bottom: 0;
}
.pa-cta-final p {
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  margin: 0 auto 1.25rem;
  max-width: 540px;
  line-height: 1.5;
}
.pa-cta-final .pa-btn {
  display: inline-block;
  background: #fff;
  color: #0d9488;
  font-weight: 700;
  padding: .7rem 1.5rem;
  border-radius: .55rem;
  text-decoration: none;
  font-size: .95rem;
  transition: transform .15s ease;
}
.pa-cta-final .pa-btn:hover { transform: translateY(-2px); color: #0f766e; text-decoration: none; }

/* ===== CORRELATI ===== */
.pa-related {
  background: #f8fafc;
  border-radius: .75rem;
  padding: 1.15rem 1.2rem;
  margin: 1.5rem 0;
}
.pa-related h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #475569;
  margin: 0 0 .65rem;
}
.pa-related ul { list-style: none; padding: 0; margin: 0; }
.pa-related li {
  padding: .4rem 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: .9rem;
}
.pa-related li:last-child { border-bottom: none; }
.pa-related a {
  color: #1f2937;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pa-related a:hover { color: #0d9488; text-decoration: underline; }
.pa-related a i { color: #0d9488; }
