/* Trame Familiari · Condivisione articoli v1.1.0 · Nessuna risorsa esterna */
.tf-share {
  --tf-share-green: #1F5014;
  --tf-share-sage: #CBDDD1;
  --tf-share-cream: #E8E4D3;
  --tf-share-ink: #2F3B40;
  box-sizing: border-box;
  clear: both;
  max-width: 840px;
  margin: 48px auto 30px;
  padding: clamp(19px, 3vw, 30px);
  color: var(--tf-share-ink);
  background: #faf9f4;
  border: 1px solid rgba(31, 80, 20, .16);
  border-radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  box-shadow: 0 12px 36px rgba(47, 59, 64, .04);
}
.tf-share *, .tf-share *::before, .tf-share *::after { box-sizing: border-box; }
.tf-share__heading-row { display: flex; align-items: center; gap: 12px; }
.tf-share__line { height: 1px; flex: 1; min-width: 14px; background: var(--tf-share-sage); }
.tf-share .tf-share__heading {
  flex: 0 1 auto;
  margin: 0;
  color: var(--tf-share-green);
  font: 600 clamp(1.12rem, 2.8vw, 1.38rem)/1.3 Georgia, "Times New Roman", serif;
  text-align: center;
  letter-spacing: -.01em;
}
.tf-share .tf-share__intro {
  margin: 10px 0 22px;
  color: var(--tf-share-ink);
  font-size: .89rem;
  line-height: 1.6;
  text-align: center;
}
.tf-share__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tf-share .tf-share__action,
.site-main .tf-share a.tf-share__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(31, 80, 20, .21);
  border-radius: 999px;
  background: #fff;
  color: var(--tf-share-green);
  cursor: pointer;
  font: 600 13.5px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.tf-share .tf-share__action:hover,
.site-main .tf-share a.tf-share__action:hover {
  background: var(--tf-share-sage);
  border-color: var(--tf-share-green);
  color: var(--tf-share-green);
  transform: translateY(-1px);
  text-decoration: none;
}
.tf-share .tf-share__action:focus-visible,
.site-main .tf-share a.tf-share__action:focus-visible {
  outline: 3px solid #C55D38;
  outline-offset: 3px;
}
.tf-share .tf-share__action--native { color: #fff; background: var(--tf-share-green); border-color: var(--tf-share-green); }
.tf-share .tf-share__action--native:hover { color: var(--tf-share-green); background: var(--tf-share-sage); }
.tf-share__action svg { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
.tf-share .tf-share__action[hidden] { display: none !important; }
.tf-share__status { display: block; min-height: 0; font-size: .82rem; text-align: center; color: var(--tf-share-green); }
.tf-share__status:not(:empty) { padding-top: 13px; }
@media (max-width: 500px) {
  .tf-share { margin: 34px auto 26px; padding: 20px 15px; border-radius: 16px; }
  .tf-share__actions { justify-content: center; gap: 8px; }
  .tf-share .tf-share__action,
  .site-main .tf-share a.tf-share__action { min-height: 43px; padding: 10px 12px; font-size: 12.5px; }
  .tf-share__line { min-width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-share .tf-share__action { transition: none; }
  .tf-share .tf-share__action:hover { transform: none; }
}

/* Instagram: pannello leggero, senza librerie o tracker esterni. */
.tf-share__instagram-panel[hidden],
.tf-share__ig-preview[hidden],
.tf-share__ig-progress[hidden] { display: none !important; }
.tf-share__instagram-panel {
  margin-top: 22px;
  padding: clamp(16px, 3vw, 24px);
  background: #fff;
  border: 1px solid #CBDDD1;
  border-radius: 16px;
}
.tf-share__ig-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tf-share .tf-share__ig-title {
  margin: 0;
  font: 600 clamp(1.07rem, 2.8vw, 1.24rem)/1.4 Georgia, "Times New Roman", serif;
  color: #1F5014;
}
.tf-share .tf-share__ig-close {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 36px; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; border: 1px solid #CBDDD1;
  background: #faf9f4; color: #1F5014; cursor: pointer;
  font-size: 25px; line-height: 1;
}
.tf-share .tf-share__ig-help,
.tf-share .tf-share__ig-note {
  margin: 10px 0 16px;
  color: #2F3B40; font-size: .9rem; line-height: 1.65;
}
.tf-share__ig-formats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tf-share .tf-share__ig-format {
  border: 1px solid #CBDDD1; background: #f8f6ef; color: #1F5014;
  border-radius: 10px; min-height: 42px; padding: 9px 15px;
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.tf-share .tf-share__ig-format[aria-pressed="true"] {
  background: #1F5014; color: #fff; border-color: #1F5014;
}
.tf-share__ig-preview-wrap {
  min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #E8E4D3; border-radius: 14px;
}
.tf-share__ig-preview { display: block; max-height: 330px; max-width: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 6px 24px rgba(47,59,64,.15); }
.tf-share__ig-progress { font-size: 14px; color: #1F5014; text-align: center; }
.tf-share__ig-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.tf-share .tf-share__ig-main,
.tf-share .tf-share__ig-secondary {
  border-radius: 10px; border: 1px solid #1F5014; min-height: 45px;
  padding: 10px 14px; cursor: pointer; font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.tf-share .tf-share__ig-main { background: #1F5014; color: #fff; }
.tf-share .tf-share__ig-secondary { background: #fff; color: #1F5014; }
.tf-share .tf-share__ig-main:disabled,
.tf-share .tf-share__ig-secondary:disabled { opacity: .55; cursor: not-allowed; }
.tf-share .tf-share__ig-note {
  margin: 18px 0 5px; padding-left: 12px;
  border-left: 3px solid #CBDDD1; font-size: .82rem;
}
.tf-share__ig-status { display: block; min-height: 0; font-size: .82rem; color: #1F5014; line-height: 1.5; }
.tf-share__ig-status:not(:empty) { padding-top: 12px; }
.tf-share .tf-share__ig-close:focus-visible,
.tf-share .tf-share__ig-format:focus-visible,
.tf-share .tf-share__ig-main:focus-visible,
.tf-share .tf-share__ig-secondary:focus-visible {
  outline: 3px solid #C55D38; outline-offset: 2px;
}
@media (max-width: 540px) {
  .tf-share__ig-actions { flex-direction: column; }
  .tf-share .tf-share__ig-main,
  .tf-share .tf-share__ig-secondary { width: 100%; }
  .tf-share__ig-preview { max-height: 285px; }
}
