/**
 * Andrea Michielan — Sitewide UX refinement / 2026-11-23
 * Post-component refinements for the eight page compositors only.
 * No copy, URLs, templates, content or CPT queries are changed here.
 * This is deliberately non-destructive: selectors remain inside .am-site.
 */

/* Better line breaks, sizing and keyboard navigation throughout all eight pages. */
.am-site :where(h1,h2,h3,h4){ text-wrap:balance; }
.am-site :where(p,li,blockquote){ overflow-wrap:break-word; }
.am-site :where(section,article,div){ min-width:0; }
.am-site :where([id]){ scroll-margin-top:104px; }
.am-site :is(a[href],button,[role="button"],summary):focus-visible{
  outline:3px solid var(--am-ds-focus,#126B6B) !important;
  outline-offset:4px !important;
}
.am-site .am-section--dark :is(a[href],button,[role="button"]):focus-visible{
  outline-color:var(--am-ds-sand,#D2B48C) !important;
}
.am-site :where(img,picture,svg,video){ max-inline-size:100%; }

/* CTAs: reliable WCAG-sized contrast for white text and softer interaction. */
.am-site :is(
  .am-home-hero-v3__btn,
  .am-why-work-v3__btn,
  .am-paths-hero-v2__btn,
  .am-path-block__btn
){ background-color:var(--am-ds-primary,#126B6B); color:#fff; }
.am-site :is(
  .am-home-hero-v3__btn,
  .am-why-work-v3__btn,
  .am-paths-hero-v2__btn,
  .am-path-block__btn
):is(:hover,:focus-visible){ background-color:var(--am-ds-primary-hover,#0E5555); color:#fff; }

/* Keep the four paths visually distinct through content/photos, not unrelated brand colors. */
.am-site--home .am-path-card--yoga::before {
  background:linear-gradient(180deg,rgba(16,42,40,.10) 0%,rgba(16,42,40,.78) 100%);
}
.am-site--home .am-path-card--abilita::before {
  background:linear-gradient(180deg,rgba(27,138,138,.10) 0%,rgba(18,107,107,.80) 100%);
}
.am-site--home .am-path-card--intensivo::before {
  background:linear-gradient(180deg,rgba(210,180,140,.08) 0%,rgba(16,42,40,.80) 100%);
}

/* Photography: honor hover and keyboard-focus feedback without extra scroll animations. */
@media(hover:hover) and (pointer:fine) {
  .am-site--home .am-path-card:is(:hover,:focus-visible) .am-path-card__bg img {
    transform:scale(1.065);
  }
  .am-site--paths .am-path-block:hover .am-path-block__media img {
    transform:scale(1.065);
  }
}
/* Do not hide contact accordion focus; the original page CSS removed its outline. */
.am-site--contact .am-contact-faq__question:focus-visible {
  outline:3px solid var(--am-ds-primary,#126B6B) !important;
  outline-offset:3px !important;
  border-radius:8px;
}

/* Gallery: no transform conflict with scroll-parallax. Keep smooth editorial hover. */
.am-site--flow .am-yoga-gallery__item { opacity:1; transform:none; }
.am-site--flow .am-yoga-gallery__item img {
  transform:scale(1.035);
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
  will-change:auto;
}
@media(hover:hover) and (pointer:fine) {
  .am-site--flow .am-yoga-gallery__item:hover img { transform:scale(1.085); }
}

@media(max-width:767px){
  .am-site :where([id]){ scroll-margin-top:84px; }
  .am-site :where(h1,h2,h3,h4){ text-wrap:pretty; }
  .am-site :where(a[href],button){ -webkit-tap-highlight-color:rgba(27,138,138,.14); }
  .am-site :where(.am-container){ min-width:0; }
  /* Avoid accidental horizontal scrolling from decoration and fixed-width imagery. */
  .am-site :where(img,video){ max-width:100%; }
  .am-site--home .am-reviews-flow-v2__google{max-width:100%;}
  /* Contact social cards: the source used grid-column on a flex child;
     make the arrow truly align to the right on mobile. */
  .am-site--contact .am-contact-social__item {
    display:grid;
    grid-template-columns:minmax(0,1fr) 30px;
    align-items:center;
    gap:12px;
  }
  .am-site--contact .am-contact-social__top { display:block; }
  .am-site--contact .am-contact-social__bottom {
    grid-column:2;grid-row:1;display:flex;justify-content:flex-end;
  }
}
@media(prefers-reduced-motion:reduce){
  .am-site :where(html,body,[id]){scroll-behavior:auto!important}
  .am-site--flow .am-yoga-gallery__item img{transition:none!important;transform:scale(1.035)!important}
  .am-site--home .am-path-card__bg img,
  .am-site--paths .am-path-block__media img{transition:none!important}
}

/* Answers remain readable while the optional controller is unavailable. */
.am-site [data-am-start-closed]:not(.am-accordion--ready) [data-am-accordion-panel] {
  max-height:none; grid-template-rows:1fr; visibility:visible; opacity:1;
}

@media (max-width:767px) {
  .am-site--contact .am-contact-hero { padding-block:clamp(56px,13vw,86px); }
  .am-site--contact .am-contact-hero__action { min-height:44px; margin-top:24px; font-size:12px; }
  .am-site--about .am-about-hero-v2, .am-site--paths .am-paths-hero-v2 {
    padding-block-start:clamp(48px,12vw,76px);
  }
  .am-site--about .am-about-hero-v2__media, .am-site--about .am-about-hero-v2__media img,
  .am-site--paths .am-paths-hero-v2__media, .am-site--paths .am-paths-hero-v2__media img {
    min-height:clamp(320px,108vw,460px);
  }
}
