/* Area Gym — paginile sălilor și ale antrenorilor (hero cu emblema LED, galerie, butoane „Devino membru”). Se încarcă după style.css (functions.php), doar pe paginile care îl folosesc. */

/* hero-ul paginilor de sală: emblema plutește încet, cu halou turcoaz */
@keyframes agEmblemFloat { 50% { transform: translateY(-10px); } }
.elementor .ag-hero-emblem { animation: agEmblemFloat 6s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(61, 240, 225, .6)) drop-shadow(0 0 26px rgba(0, 209, 193, .75)) drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); }
@media (prefers-reduced-motion: reduce) { .elementor .ag-hero-emblem { animation: none; } }
/* hero-ul paginilor de sală: emblema mare, luminată din spate ca de o bandă LED turcoaz (ag-sala-logo).
   ag-sl-led = lumina difuză (blur pe container, nu pe stratul mascat — altfel conturul iese tăios),
   ag-sl-rim = conturul LED, ascuțit, puțin mai mare decât emblema; ::after = luciul care trece peste emblemă. */
@keyframes agLedOn { 0%, 100% { opacity: 1; } 3% { opacity: .35; } 5% { opacity: 1; } 7% { opacity: .5; } 9% { opacity: 1; } 50% { opacity: .82; } }
@keyframes agLedBreath { 50% { transform: scale(1.14); opacity: .75; } }
@keyframes agSlShine { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -20% 0; } }
.elementor .ag-sala-logo { position: relative; isolation: isolate; aspect-ratio: 125 / 160; animation: agEmblemFloat 6s ease-in-out infinite; }
.elementor .ag-sala-logo .ag-hero-emblem { position: relative; z-index: 2; display: block; width: 100%; height: auto; animation: none; filter: none !important; }
/* crom: fața emblemei e metal lucios (gradient mascat peste PNG), fără umbre */
.elementor .ag-sala-logo::before { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(165deg, #FFFFFF 0%, #E9F1F1 22%, #A9B9B9 44%, #F7FCFC 54%, #C9D5D5 72%, #FFFFFF 100%); -webkit-mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; }
.elementor .ag-sl-led { position: absolute; z-index: 0; inset: -10%; filter: blur(16px); animation: agLedOn 7s ease-in-out infinite; pointer-events: none; }
.elementor .ag-sl-led-in { position: absolute; inset: 9%; background: #00D1C1; -webkit-mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; transform: scale(1.12); animation: agLedBreath 7s ease-in-out infinite; }
.elementor .ag-sl-rim { position: absolute; z-index: 1; inset: 0; background: #3DF0E1; -webkit-mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; transform: scale(1.045); animation: agLedOn 7s ease-in-out infinite; pointer-events: none; }
.elementor .ag-sala-logo::after { content: ""; position: absolute; z-index: 4; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .55) 46%, #FFFFFF 50%, rgba(160, 255, 248, .6) 54%, transparent 60%) 120% 0 / 260% 100% no-repeat; -webkit-mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; animation: agSlShine 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .elementor .ag-sala-logo, .elementor .ag-sala-logo::after, .elementor .ag-sl-led, .elementor .ag-sl-led-in, .elementor .ag-sl-rim { animation: none; } }
/* paginile de sală cu poză în hero: header-ul plutește peste poză, ca pe prima pagină (altfel stă pe o bandă neagră).
   margin-bottom negativ = înălțimea zonei header-ului (capsula + spațiul de sus); capsula rămâne glass. */
body:has(.ag-sala-logo) .elementor-location-header { margin-bottom: -104px; }
body:has(.ag-sala-logo) .ag-header { background-color: rgba(12, 16, 18, .55) !important; }
@media (max-width: 1024px) { body:has(.ag-sala-logo) .elementor-location-header { margin-bottom: -96px; } }
@media (max-width: 767px) { body:has(.ag-sala-logo) .elementor-location-header { margin-bottom: -74px; } }
/* pe mobil (critica Impeccable): în hero „Devino membru” rămâne pe toată lățimea, iar butoanele secundare stau două pe un rând,
   fără cerc (grila compactă de facilități ag-feat-compact e în style.css, o folosește și prima pagină) */
@media (max-width: 767px) {
	.elementor .ag-hero-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; width: 100%; }
	.elementor .ag-hero-actions > .ag-cta-primary { grid-column: 1 / -1; }
	.elementor .ag-hero-actions > .ag-cta:not(.ag-cta-primary) { width: auto !important; min-width: 0; min-height: 48px; height: 48px; padding: 0 12px !important; justify-content: center !important; }
	.elementor .ag-hero-actions > .ag-cta:not(.ag-cta-primary) .ag-cta-ico { display: none; }
	.elementor .ag-hero-actions > .ag-cta:not(.ag-cta-primary) .ag-cta-text { font-size: 14px; text-align: center; }
	.elementor .ag-hero-actions > .ag-cta:nth-child(2):last-child { grid-column: 1 / -1; } /* un singur buton secundar: pe toată lățimea */
}
/* pastila cu nota din hero: zonă de click mai mare și contur vizibil la tastatură */
.elementor .ag-price-rating a { display: inline-block; padding: 6px 2px; }
.elementor .ag-price-rating a:focus-visible { outline: 2px solid #3DF0E1; outline-offset: 4px; border-radius: 999px; }
/* galeria sălii: pozele se deschid mari (assets/js/galerie.js) */
.elementor .ag-galerie img { object-position: 50% 14%; cursor: zoom-in; transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .3s; }
.elementor .ag-galerie img:hover { transform: scale(1.025); filter: brightness(1.08); }
.elementor .ag-galerie img:focus-visible { outline: 2px solid #3DF0E1; outline-offset: 3px; }
dialog.ag-lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
dialog.ag-lb::backdrop { background: rgba(0, 0, 0, .94); }
.ag-lb-fig { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 64px 88px; }
.ag-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; opacity: 0; transform: scale(.98); transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1); }
.ag-lb-img.is-in { opacity: 1; transform: none; }
/* !important: stilul de buton al kit-ului (.elementor-kit-4 button) le făcea pătrate */
dialog.ag-lb .ag-lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; min-height: 0 !important; border-radius: 50% !important; display: grid; place-items: center; padding: 0 !important; margin: 0 !important; cursor: pointer; color: #fff !important; background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .18) !important; box-shadow: none !important; transition: background .2s, border-color .2s, color .2s; }
dialog.ag-lb .ag-lb-btn:hover, dialog.ag-lb .ag-lb-btn:focus { background: rgba(0, 209, 193, .16) !important; border-color: #3DF0E1 !important; color: #3DF0E1 !important; }
.ag-lb-btn:focus-visible { outline: 2px solid #3DF0E1; outline-offset: 3px; }
.ag-lb-btn svg { width: 22px; height: 22px; }
.ag-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.ag-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.ag-lb-x { right: 20px; top: 20px; }
.ag-lb-count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; font: 600 13px/1 Montserrat, sans-serif; letter-spacing: .08em; color: #C9D3D2; }
@media (max-width: 767px) {
  .ag-lb-fig { padding: 70px 10px 90px; }
  .ag-lb-prev, .ag-lb-next { top: auto; bottom: 14px; transform: none; width: 48px; height: 48px; }
  .ag-lb-prev { left: 16px; } .ag-lb-next { right: 16px; }
  .ag-lb-count { bottom: 30px; }
}
/* butoanele „Devino membru” cu clasa ag-cta-emb: în cercul negru stă emblema Area Gym (turcoaz), nu chevronul; celelalte butoane păstrează săgeata */
.elementor .ag-cta-emb .ag-cta-ico { position: relative; }
.elementor .ag-cta-emb .ag-cta-svg { visibility: hidden; }
.elementor .ag-cta-emb .ag-cta-ico::after { content: ""; position: absolute; inset: 22%; background: #00D1C1; -webkit-mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; mask: url("../img/areagym-emblema-alba.png") center / contain no-repeat; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.elementor .ag-cta-emb:hover .ag-cta-ico::after { transform: scale(1.12); }
/* titlul hero-ului de sală: „Area Gym <span>–</span> Baia Mare” se afișează pe două rânduri centrate, fără liniuță
   (liniuța rămâne în text pentru Google și cititoarele de ecran), cu orașul în turcoaz */
.elementor .ag-sala-title { text-align: center !important; color: #00D1C1 !important; }
.elementor .ag-sala-title::first-line { color: #FFFFFF; }
.elementor .ag-sala-title > span { display: block; height: 0; overflow: hidden; font-size: 0; line-height: 0; }

/* cardurile antrenorilor: „Citește mai mult” (assets/js/citeste-mai-mult.js) — textul se scurtează la 6 rânduri pe toate cardurile,
   cu o estompare jos; butonul stă sub text, coboară cu el și devine „Citește mai puțin” */
.elementor .ag-coach-bio.is-clamped { max-height: var(--ag-clamp); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); transition: max-height .4s cubic-bezier(.16, 1, .3, 1); }
.elementor .ag-coach-bio.is-clamped.is-open { max-height: 2000px; -webkit-mask-image: none; mask-image: none; }
.elementor button.ag-more-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff !important; font: 700 14px/1 Montserrat, sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; }
.elementor button.ag-more-btn span { text-decoration: underline; text-decoration-color: rgba(61, 240, 225, .5); text-underline-offset: 4px; }
.elementor button.ag-more-btn svg { width: 14px; height: 14px; color: #3DF0E1; transition: transform .3s; }
.elementor button.ag-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.elementor button.ag-more-btn:hover, .elementor button.ag-more-btn:focus { color: #3DF0E1 !important; background: transparent !important; }
.elementor button.ag-more-btn:focus-visible { outline: 2px solid #3DF0E1; outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .elementor .ag-coach-bio.is-clamped { transition: none; } }

/* acțiunile din cardul antrenorului: telefon/email și „Antrenează-te cu mine” au aceeași lățime (toată lățimea cardului);
   cardurile fără telefon păstrează locul lui gol, ca butoanele să stea la aceeași înălțime pe tot rândul */
.elementor .ag-coach-act > .ag-ft-pill { width: 100% !important; justify-content: center; }
.elementor .ag-coach-act > .ag-cta { width: 100% !important; justify-content: space-between; }
@media (min-width: 768px) { .elementor .ag-coach-act:not(:has(.ag-ft-pill))::before { content: ""; display: block; height: 44px; } }
