/* ==========================================================================
   ASSICOMUNALE — Single Post CSS
   Version: 1.0.0 — Enterprise blog single post template (PATCH 21)
   Used by: assicomunale-templates/single-post.php (filter single_template prio 99)
   Stack: design-system tokens + GeneratePress full-width override + ac-blog deps

   Layout: 8/4 grid desktop ≥1280, 12/12 fallback + sticky bottom mobile bar.
   4 conversion touchpoints (sticky sidebar form, inline 3-button card,
   bottom banner full form, mobile sticky Call+WA bar).
   ========================================================================== */


/* ==========================================================================
   0. FULL-WIDTH OVERRIDE (theme GeneratePress wrappers + right-sidebar)
   Body class .ac-single-post added by mu-plugin filter body_class.
   ========================================================================== */
body.ac-single-post #page.grid-container,
body.ac-single-post #page.container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.ac-single-post #content.site-content,
body.ac-single-post .content-area,
body.ac-single-post #primary.content-area,
body.ac-single-post .site-main,
body.ac-single-post #primary.site-main,
body.ac-single-post #main.site-main,
body.ac-single-post .ac-single-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.ac-single-post #right-sidebar,
body.ac-single-post #left-sidebar { display: none !important; }
body.ac-single-post .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.ac-single-post article.post,
body.ac-single-post article.type-post {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.ac-single-post .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}


/* ==========================================================================
   1. HERO POST (featured image + overlay + meta + trust mini-band)
   ========================================================================== */
.ac-single-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  color: #fff;
  overflow: hidden;
  /* v1.2.2 calibrated to image aspect ratio audit (12 articles): dominant 4:3
     (1.33-1.34), some 3:2 (1.50), few 16:9 (1.78). Hero needs to be tall enough
     to show 4:3 source images with minimal crop on desktop while staying
     usable on mobile. Mobile baseline 540px, scales fluid via 56vw, cap 760px. */
  min-height: clamp(540px, 56vw, 760px);
  display: flex;
  align-items: flex-end;
}
@media (min-width: 768px) {
  .ac-single-hero { min-height: clamp(640px, 56vw, 760px); }
}
@media (min-width: 1280px) {
  .ac-single-hero { min-height: 760px; }
}
.ac-single-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* v1.2.2: 50% 35% — slight bias toward upper portion to preserve faces
     in 4:3 source images (which get vertical crop on hero 16:9-ish frame).
     35% (vs 30%) leaves more breathing room at bottom for hero text overlay. */
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: -2;
}
.ac-single-hero__overlay {
  position: absolute;
  inset: 0;
  /* PATCH 24 — match homepage .ac-hero::before exactly:
     linear-gradient(135deg, rgba(107,33,168,0.55) 0%, rgba(30,27,75,0.45) 100%)
     Purple #6B21A8 → midnight-purple #1E1B4B reskin Prima brand. */
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.55) 0%, rgba(30, 27, 75, 0.45) 100%);
  z-index: -1;
}
.ac-single-hero__inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.ac-single-hero__category {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: var(--ac-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ac-accent-500);
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(223,22,84,0.35);
  transition: background 0.2s ease;
}
.ac-single-hero__category:hover,
.ac-single-hero__category:focus { background: var(--ac-accent-700); color: #fff !important; }
.ac-single-hero__title {
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #ffffff !important; /* WCAG AA: theme h1 {color:#0E508B} would yield 1.67:1 — force white = 13.8:1 */
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.ac-single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--ac-text-sm);
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
}
.ac-single-meta__author strong { font-weight: 700; }
.ac-single-meta__sep { color: rgba(255,255,255,0.55); }
.ac-single-trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.ac-trust-mini__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: var(--ac-text-xs);
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.18);
}


/* ==========================================================================
   2. GRID 8/4 (desktop ≥1280) + 12/12 fallback
   ========================================================================== */
.ac-single-grid {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--ac-bg);
}
.ac-single-grid__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1280px) {
  .ac-single-grid__inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 3.5rem;
  }
}


/* ==========================================================================
   3. ARTICLE TYPOGRAPHY (max-width 760px reading width)
   ========================================================================== */
.ac-single-article { min-width: 0; }
.ac-single-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ac-neutral-700);
}
.ac-single-content > p,
.ac-single-content > h2,
.ac-single-content > h3,
.ac-single-content > h4,
.ac-single-content > ul,
.ac-single-content > ol,
.ac-single-content > blockquote,
.ac-single-content > figure,
.ac-single-content > pre,
.ac-single-content > table {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.ac-single-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  /* PATCH 24 — match homepage section H2 reskin Purple Prima color (#6B21A8). */
  color: var(--ac-primary-700);
}
.ac-single-content h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  /* PATCH 24 — uniform brand H3 color */
  color: var(--ac-primary-700);
}
.ac-single-content p { margin-bottom: 1.25rem; }
.ac-single-content a {
  color: var(--ac-primary-600);
  text-decoration: underline;
  text-decoration-color: rgba(0,116,139,0.4);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.ac-single-content a:hover,
.ac-single-content a:focus {
  color: var(--ac-accent-600);
  text-decoration-color: var(--ac-accent-500);
}
.ac-single-content ul,
.ac-single-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.ac-single-content li { margin-bottom: 0.5rem; }
.ac-single-content blockquote {
  border-left: 4px solid var(--ac-primary-500);
  padding-left: 1.25rem;
  margin: 2rem auto;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ac-neutral-600);
}
.ac-single-content img,
.ac-single-content figure {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem auto;
  display: block;
}
.ac-single-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem auto;
}
.ac-single-content th,
.ac-single-content td {
  padding: 0.75rem;
  border: 1px solid var(--ac-border);
  text-align: left;
}
.ac-single-content th {
  background: var(--ac-bg-alt);
  font-weight: 700;
  color: var(--ac-neutral-900);
}


/* ==========================================================================
   4. INLINE CTA CARD (mid-article 3-button)
   ========================================================================== */
.ac-inline-cta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 1.75rem;
  background: linear-gradient(135deg, var(--ac-primary-50) 0%, #fff 100%);
  border: 1px solid var(--ac-primary-200);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,116,139,0.10);
}
.ac-inline-cta__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ac-primary-500);
  color: #fff;
  border-radius: 14px;
  font-size: 1.625rem;
}
.ac-inline-cta__body { flex: 1; min-width: 0; }
.ac-inline-cta__headline {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--ac-neutral-900);
  line-height: 1.3;
}
.ac-inline-cta__sub {
  font-size: 0.9375rem;
  color: var(--ac-neutral-600);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.ac-inline-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
@media (max-width: 639px) {
  .ac-inline-cta {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    padding: 1.25rem;
  }
  .ac-inline-cta__icon { margin: 0 auto; }
  .ac-inline-cta__actions { flex-direction: column; }
  .ac-inline-cta__actions .ac-btn { width: 100%; }
}


/* ==========================================================================
   5. BUTTON SYSTEM
   ========================================================================== */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none !important;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-family: inherit;
}
.ac-btn:hover, .ac-btn:focus-visible { transform: translateY(-1px); outline: none; }
.ac-btn:focus-visible { box-shadow: 0 0 0 3px rgba(0,116,139,0.35); }

.ac-btn--primary {
  background: var(--ac-primary-500); color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,116,139,0.28);
}
.ac-btn--primary:hover { background: var(--ac-primary-700); box-shadow: 0 8px 20px rgba(0,116,139,0.38); }

.ac-btn--phone {
  background: var(--ac-accent-500); color: #fff !important;
  box-shadow: 0 4px 12px rgba(223,22,84,0.30);
}
.ac-btn--phone:hover { background: var(--ac-accent-700); }

.ac-btn--wa {
  /* WCAG AAA: white on #25D366 light WA = 1.98 ✗. #128C7E mid = 4.14 ✗ borderline.
     #075E54 (WA brand "darkest teal") → 7.59:1 ✓ AAA white text. */
  background: #075E54; color: #fff !important;
  box-shadow: 0 4px 12px rgba(7,94,84,0.40);
}
.ac-btn--wa:hover { background: #054640; } /* darker hover state */

.ac-btn--form {
  background: #fff; color: var(--ac-primary-700) !important;
  border-color: var(--ac-primary-500);
}
.ac-btn--form:hover { background: var(--ac-primary-500); color: #fff !important; }

.ac-btn--phone-light, .ac-btn--wa-light {
  background: rgba(255,255,255,0.95); color: var(--ac-neutral-900) !important;
  border: 2px solid rgba(255,255,255,0.6);
}
.ac-btn--phone-light:hover, .ac-btn--wa-light:hover { background: #fff; }

.ac-btn--phone-outline {
  background: transparent; color: var(--ac-accent-700) !important;
  border-color: var(--ac-accent-300);
}
.ac-btn--phone-outline:hover { background: var(--ac-accent-500); color: #fff !important; border-color: var(--ac-accent-500); }

.ac-btn--wa-outline {
  background: transparent; color: #075E54 !important; /* dark green text on white = 8.5:1 AAA */
  border-color: #128C7E;
}
.ac-btn--wa-outline:hover { background: #128C7E; color: #fff !important; border-color: #128C7E; }


/* ==========================================================================
   6. STICKY SIDEBAR (desktop ≥1280)
   ========================================================================== */
.ac-single-sidebar { display: none; }
@media (min-width: 1280px) {
  .ac-single-sidebar { display: block; position: relative; }
}
.ac-single-sidebar__inner {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--ac-border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.07);
}
.ac-single-sidebar__trust { margin-bottom: 1rem; }
.ac-trust-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ac-neutral-100);
}
.ac-trust-trio__item strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ac-primary-700);
  line-height: 1;
}
.ac-trust-trio__item span {
  display: block;
  font-size: 0.6875rem;
  color: var(--ac-neutral-600);
  margin-top: 0.3rem;
  line-height: 1.2;
}
.ac-single-sidebar__alt {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ac-neutral-100);
  text-align: center;
}
.ac-single-sidebar__alt-label {
  font-size: 0.8125rem;
  color: var(--ac-neutral-600);
  margin-bottom: 0.6rem;
}
.ac-single-sidebar__alt-actions {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}


/* ==========================================================================
   7. FORM PREVENTIVO (sticky sidebar + bottom banner)
   ========================================================================== */
.ac-single-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ac-single-form__header {
  margin-bottom: 0.5rem;
  text-align: center;
}
.ac-single-form__headline {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ac-neutral-900);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.ac-single-form__sub {
  font-size: 0.8125rem;
  color: var(--ac-neutral-600);
  margin: 0;
}
.ac-single-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.ac-single-form .ac-input,
.ac-single-form .ac-select {
  padding: 0.7rem 0.85rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--ac-neutral-300);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  width: 100%;
  color: var(--ac-neutral-800);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.ac-single-form .ac-input::placeholder { color: var(--ac-neutral-500); }
.ac-single-form .ac-input:focus,
.ac-single-form .ac-select:focus {
  outline: none;
  border-color: var(--ac-primary-500);
  box-shadow: 0 0 0 3px rgba(0,116,139,0.15);
}
.ac-single-form .ac-select { cursor: pointer; }
.ac-single-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ac-neutral-700);
  line-height: 1.4;
  margin: 0.25rem 0 0;
}
.ac-single-form__privacy input { margin-top: 0.2rem; flex-shrink: 0; }
.ac-single-form__privacy a { color: var(--ac-primary-600); text-decoration: underline; }
.ac-single-form__submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.95rem 1rem;
  font-size: 1rem;
}
.ac-form-message {
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.ac-form-message--success {
  background: var(--ac-success-50);
  color: var(--ac-success-500);
  border: 1px solid var(--ac-success-500);
}
.ac-form-message--error {
  background: var(--ac-error-50);
  color: var(--ac-error-500);
  border: 1px solid var(--ac-error-500);
}


/* ==========================================================================
   8. BOTTOM CTA BANNER (full-form + trust band, gradient bg)
   ========================================================================== */
.ac-single-bottom-cta {
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  max-width: 760px;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--ac-gradient);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(131,52,194,0.25);
  scroll-margin-top: 80px;
}
.ac-single-bottom-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .ac-single-bottom-cta {
    max-width: 1080px;
  }
  .ac-single-bottom-cta__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.ac-single-bottom-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: #ffffff !important; /* WCAG AA: theme h2 {color:#0E508B} would yield 1.37:1 — force white = 6.05:1 */
}
.ac-single-bottom-cta__sub {
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  margin: 0 0 1.25rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.96);
}
.ac-single-bottom-cta__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.ac-trust-bar__item {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255,255,255,0.20);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
}
.ac-single-bottom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ac-single-bottom-cta__form {
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--ac-neutral-700);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}


/* ==========================================================================
   9. AUTHOR BOX (Silvestro Sanna)
   ========================================================================== */
.ac-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 1.75rem;
  background: var(--ac-bg-alt);
  border-radius: 16px;
  border: 1px solid var(--ac-border);
}
.ac-author-box__avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  display: block;
}
.ac-author-box__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ac-neutral-900);
}
.ac-author-box__bio {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ac-neutral-700);
  margin: 0 0 0.75rem;
}
.ac-author-box__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  /* WCAG AA: theme global a {color:#00AEEF} would yield 2.41:1 FAIL.
     Force LinkedIn brand dark blue #0A66C2 → 5.65:1 ✓ AA on bg-alt #f7fafc */
  color: #0A66C2 !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ac-author-box__linkedin:hover,
.ac-author-box__linkedin:focus { color: #084E96 !important; text-decoration: underline; outline: none; }
@media (max-width: 639px) {
  .ac-author-box { flex-direction: column; align-items: center; text-align: center; }
}


/* ==========================================================================
   10. RELATED POSTS (3-col grid same category)
   ========================================================================== */
.ac-single-related {
  background: var(--ac-neutral-50);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.ac-single-related__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.ac-single-related__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--ac-neutral-900);
  letter-spacing: -0.01em;
}
.ac-single-related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 1023px) { .ac-single-related__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .ac-single-related__list { grid-template-columns: 1fr; } }


/* ==========================================================================
   11. MOBILE STICKY BAR (Call+WA, only <1024px)
   ========================================================================== */
.ac-single-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-top: 1px solid var(--ac-border);
  padding: 0.6rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  gap: 0.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.ac-single-mobile-bar.is-hidden { transform: translateY(110%); }
.ac-single-mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  color: #fff !important;
}
.ac-single-mobile-bar__btn--call { background: var(--ac-accent-500); }
/* WCAG AAA: #075E54 WA darkest teal → 7.59:1 ✓ AAA */
.ac-single-mobile-bar__btn--wa { background: #075E54; }
@media (min-width: 1024px) { .ac-single-mobile-bar { display: none; } }


/* ==========================================================================
   12. FLOATING WA (desktop 1024-1279px hybrid)
   ========================================================================== */
.ac-single-floating-wa {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  /* WCAG AAA: WA darkest teal #075E54 → white icon 7.59:1 ✓ AAA */
  background: #075E54;
  color: #fff !important;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(7,94,84,0.55);
  z-index: 99;
  transition: transform 0.18s, box-shadow 0.18s;
}
.ac-single-floating-wa:hover,
.ac-single-floating-wa:focus { transform: scale(1.08); box-shadow: 0 12px 32px rgba(7,94,84,0.65); outline: none; }
.ac-single-floating-wa.is-hidden { display: none !important; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .ac-single-floating-wa { display: flex; }
}


/* ==========================================================================
   12.b FOOTER LOGO OVERRIDE — match homepage behavior (filter:none)
   Default footer.css applies brightness(0) invert(1) on logo (all-white silhouette,
   poor legibility on dark navy footer). Homepage overrides via body.ac-home.
   Extend same override to blog/single/archive bodies for visual consistency.
   ========================================================================== */
body.ac-blog-page .ac-footer__brand img,
body.ac-blog-archive .ac-footer__brand img,
body.ac-single-post .ac-footer__brand img {
  filter: none !important;
  opacity: 1 !important;
}


/* ==========================================================================
   13. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ac-btn,
  .ac-single-floating-wa,
  .ac-single-mobile-bar,
  .ac-single-hero__category {
    transition: none !important;
    transform: none !important;
  }
  .ac-btn:hover,
  .ac-btn:focus-visible {
    transform: none !important;
  }
}
