/**
 * aprire-agriturismo.css — Pagina /blog/aprire-un-agriturismo/
 * Palette teal/grigio coerente col portale, mobile first
 */

/* ===== HERO ===== */
.aa-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) {
  .aa-hero { padding: 2.5rem 2rem; }
}
.aa-hero .aa-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;
}
.aa-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 .65rem;
}
@media (min-width: 768px) { .aa-hero h1 { font-size: 2.05rem; } }
.aa-hero .aa-lead {
  font-size: 1rem;
  color: #475569;
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 1rem;
}
.aa-hero .aa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  font-size: .82rem;
  color: #475569;
}
.aa-hero .aa-meta i {
  color: #0d9488;
  margin-right: .35rem;
}
.aa-hero .aa-hero-img {
  border-radius: .75rem;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(15,118,110,.12);
}

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

/* ===== TOC ===== */
.aa-toc {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.aa-toc h2 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #475569;
  margin: 0 0 .65rem;
}
.aa-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: aa-toc-counter;
  column-count: 1;
}
@media (min-width: 768px) { .aa-toc ol { column-count: 2; column-gap: 1.5rem; } }
.aa-toc ol li {
  counter-increment: aa-toc-counter;
  font-size: .9rem;
  padding: .25rem 0 .25rem 1.7rem;
  position: relative;
  break-inside: avoid;
}
.aa-toc ol li::before {
  content: counter(aa-toc-counter);
  position: absolute;
  left: 0;
  top: .25rem;
  width: 1.35rem;
  height: 1.35rem;
  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;
}
.aa-toc a {
  color: #1f2937;
  text-decoration: none;
  transition: color .15s;
}
.aa-toc a:hover { color: #0d9488; text-decoration: underline; }

/* ===== SEZIONI ===== */
.aa-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .85rem;
  padding: 1.25rem 1.15rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 80px;
}
@media (min-width: 768px) {
  .aa-section { padding: 1.75rem 1.6rem; }
}
.aa-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 .85rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  line-height: 1.3;
}
.aa-section h2 .aa-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
}
@media (min-width: 768px) {
  .aa-section h2 { font-size: 1.4rem; }
  .aa-section h2 .aa-num { width: 2.1rem; height: 2.1rem; font-size: .95rem; }
}
.aa-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.1rem 0 .5rem;
}
.aa-section p { color: #374151; line-height: 1.65; margin: 0 0 .75rem; }
.aa-section ul { padding-left: 1.2rem; margin: 0 0 .85rem; }
.aa-section ul li { color: #374151; line-height: 1.6; margin-bottom: .35rem; }
.aa-section strong { color: #0f172a; }
.aa-section a { color: #0d9488; font-weight: 500; }
.aa-section a:hover { color: #0f766e; }

/* ===== BADGE NUOVO ===== */
.aa-badge-new {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .15rem .55rem;
  border-radius: 999px;
  margin-left: .5rem;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ===== CALLOUT (info/warning/tip) ===== */
.aa-callout {
  border-left: 4px solid #0d9488;
  background: #f0fdfa;
  border-radius: .5rem;
  padding: .85rem 1rem;
  margin: 1rem 0;
}
.aa-callout.aa-callout-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.aa-callout.aa-callout-tip {
  border-left-color: #8b5cf6;
  background: #f5f3ff;
}
.aa-callout-title {
  font-weight: 700;
  color: #0f172a;
  font-size: .92rem;
  margin: 0 0 .25rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.aa-callout-title i { color: #0d9488; }
.aa-callout.aa-callout-warning .aa-callout-title i { color: #d97706; }
.aa-callout.aa-callout-tip .aa-callout-title i { color: #7c3aed; }
.aa-callout p { margin: 0; font-size: .9rem; color: #374151; }

/* ===== TABELLA COSTI ===== */
.aa-cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
  margin: 1rem 0;
}
.aa-cost-table th,
.aa-cost-table td {
  padding: .7rem .85rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.aa-cost-table thead th {
  background: #f0fdfa;
  color: #0f172a;
  font-weight: 700;
  font-size: .82rem;
  border-bottom: 2px solid #ccfbf1;
}
.aa-cost-table tbody tr:hover { background: #f9fafb; }
.aa-cost-table tbody tr:last-child td { border-bottom: none; }
.aa-cost-table .aa-cost-total {
  background: #f0fdfa;
  font-weight: 700;
  color: #0f172a;
}
.aa-cost-table .aa-cost-range {
  white-space: nowrap;
  color: #0d9488;
  font-weight: 600;
}

/* ===== STEP LIST (iter burocratico) ===== */
.aa-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: aa-step;
}
.aa-steps li {
  counter-increment: aa-step;
  position: relative;
  padding: .85rem 1rem .85rem 3rem;
  margin-bottom: .65rem;
  background: #f8fafc;
  border-radius: .5rem;
  border-left: 3px solid #0d9488;
}
.aa-steps li::before {
  content: counter(aa-step);
  position: absolute;
  left: .85rem;
  top: .85rem;
  width: 1.65rem;
  height: 1.65rem;
  background: #0d9488;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-steps li strong { color: #0f172a; }
.aa-steps li .aa-step-meta {
  display: block;
  font-size: .78rem;
  color: #64748b;
  margin-top: .15rem;
}

/* ===== GRIGLIA REGIONI ===== */
.aa-regions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .55rem;
  margin: 1rem 0;
}
@media (min-width: 576px) { .aa-regions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .aa-regions { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .aa-regions { grid-template-columns: repeat(5, 1fr); } }
.aa-region-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .55rem;
  font-size: .85rem;
  color: #1f2937;
  text-decoration: none;
  transition: all .15s ease;
}
.aa-region-card:hover {
  border-color: #0d9488;
  background: #f0fdfa;
  color: #0d9488;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13,148,136,.08);
}
.aa-region-card i {
  color: #0d9488;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.aa-faq {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  margin-bottom: .65rem;
  overflow: hidden;
}
.aa-faq 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;
}
.aa-faq summary::-webkit-details-marker { display: none; }
.aa-faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: #0d9488;
  font-weight: 400;
  transition: transform .2s;
  line-height: 1;
}
.aa-faq[open] summary::after { transform: rotate(45deg); }
.aa-faq[open] summary { border-bottom: 1px solid #e5e7eb; }
.aa-faq-body {
  padding: 1rem 1.15rem;
  color: #374151;
  line-height: 1.6;
  font-size: .9rem;
}
.aa-faq-body p:last-child { margin-bottom: 0; }

/* ===== CTA FINALE ===== */
.aa-cta-final {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
@media (min-width: 768px) { .aa-cta-final { padding: 2.5rem 2rem; } }
.aa-cta-final h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .65rem;
}
.aa-cta-final p {
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  margin: 0 auto 1.25rem;
  max-width: 540px;
}
.aa-cta-final .aa-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;
}
.aa-cta-final .aa-btn:hover { transform: translateY(-2px); color: #0f766e; text-decoration: none; }

/* ===== AUTORI / META ARTICOLO ===== */
.aa-update-row {
  font-size: .82rem;
  color: #64748b;
  padding-top: .25rem;
}
.aa-update-row i { color: #0d9488; margin-right: .3rem; }

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