/*
 * ATMA – strona główna. Tylko to, czego nie da się ustawić kontrolkami Elementora
 * (kolory, fonty, odstępy, promienie – w widżetach; tu: stany, wyrównania wysokości, drobne ozdobniki).
 */

/* Akapity w blokach strony głównej bez dolnego marginesu ostatniego akapitu (odstępy ustawia widżet). */
.atma-flush p:last-child { margin-bottom: 0; }

/* ---------- 1. Hero ---------- */
/* Górny gradient pod biały nagłówek (dolny gradient to natywna nakładka tła sekcji – film zostaje widoczny). */
.atma-hero::after {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 300px; pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 100%);
}
.atma-hero > .e-con, .atma-hero > .elementor-widget { z-index: 1; }
.atma-hero-title .elementor-heading-title { text-wrap: balance; }
/* Przycisk dźwięku widać tylko wtedy, gdy w tle sekcji jest ustawiony film (Styl → Tło → Wideo).
   Dwie ikony = dwa stany; skrypt w widżecie HTML przełącza klasę .is-unmuted. */
.atma-hero:not(:has(> .elementor-background-video-container)) .atma-hero-sound { display: none; }
.atma-hero .atma-hero-sound__off,
.atma-hero.is-unmuted .atma-hero-sound__on { display: none; }
.atma-hero.is-unmuted .atma-hero-sound__off { display: block; }
.atma-hero-sound .elementor-icon { background: rgba(19, 19, 19, .45); border-width: 1px; transition: color .25s, border-color .25s, background-color .25s; }
.atma-hero-sound .elementor-icon:hover { background: rgba(19, 19, 19, .75); }
.atma-hero-js { display: none; }
/* Strzałka „przewiń”: wyśrodkowana, z delikatnym ruchem. */
.atma-hero-cue { transform: translateX(-50%); }
.atma-hero-cue .elementor-icon { padding: 12px; }
@media (prefers-reduced-motion: no-preference) {
	.atma-hero-cue .elementor-icon svg { animation: atma-cue 2.2s ease-in-out infinite; }
	@keyframes atma-cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
}

/* ---------- Przyciski CTA (widżet Przycisk z klasą .atma-btn) ---------- */
.atma-btn .elementor-button { transition: background-color .25s, border-color .25s, color .25s; }
.atma-btn .elementor-button-icon svg { transition: transform .25s; }
@media (min-width: 768px) { .atma-btn .elementor-button { white-space: nowrap; } }
.atma-btn .elementor-button:hover .elementor-button-icon svg,
.atma-btn .elementor-button:focus-visible .elementor-button-icon svg { transform: translateX(4px); }
.atma-btn .elementor-button:focus-visible,
.atma-hero a:focus-visible,
.atma-news a:focus-visible { outline: 2px solid #54A6A0; outline-offset: 3px; }
.atma-btn--outline-dark .elementor-button:focus-visible { outline-color: #fff; }

/* ---------- 2. Dwie ścieżki ---------- */
.atma-path { transition: border-color .25s, transform .25s; }
.atma-path:hover { border-color: rgba(84, 166, 160, .55); }
.atma-path__img img { display: block; }
@media (min-width: 768px) {
	/* Równe karty: tytuł zawsze rezerwuje dwie linie (drugi tytuł jest długi). */
	.atma-path__title .elementor-heading-title { min-height: 2.4em; text-wrap: balance; }
}

/* ---------- 3. Historie i opinie ---------- */
.atma-story .elementor-custom-embed-play svg { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); transition: transform .25s; }
.atma-story .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play svg { transform: scale(1.08); }
/* Karty opinii: równa wysokość, cudzysłów, podpis przy dolnej krawędzi. */
.atma-reviews .swiper-wrapper { align-items: stretch; }
.atma-reviews .swiper-slide { height: auto; display: flex; }
.atma-reviews .elementor-testimonial { display: flex; flex-direction: column; width: 100%; }
.atma-reviews .elementor-testimonial__content { flex: 1 1 auto; }
.atma-reviews .elementor-testimonial__content::before {
	content: "\201D"; display: block; height: 30px; margin-bottom: 8px;
	font: 700 64px/1 Montserrat, sans-serif; color: #54A6A0;
}
.atma-reviews .elementor-testimonial__text { font-style: normal; }
.atma-reviews .swiper { padding-bottom: 44px; }
.atma-reviews .swiper-pagination { bottom: 0; }

/* ---------- 4. Aktualności ---------- */
.atma-news .elementor-post { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; transition: border-color .25s; }
.atma-news .elementor-post__text { display: flex; flex-direction: column; flex: 1 1 auto; }
.atma-news .elementor-post__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.atma-news .elementor-post__title a { transition: color .25s; }
.atma-news .elementor-post:hover .elementor-post__title a { color: #54A6A0; }
.atma-news .elementor-post__thumbnail img { transition: transform .5s; }
.atma-news .elementor-post:hover .elementor-post__thumbnail img { transform: scale(1.04); }
.atma-news .elementor-post__read-more { margin-top: auto; align-self: flex-start; }
.atma-news .elementor-post__read-more::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .25s; }
.atma-news .elementor-post__read-more:hover::after { transform: translateX(4px); }

/* ---------- 5. Zespół ---------- */
@media (min-width: 768px) {
	/* Zdjęcie wypełnia wysokość kolumny z opisem. */
	.atma-team-media .atma-team-photo, .atma-team-media .atma-team-photo img { height: 100%; }
	.atma-team-media .atma-team-photo img { min-height: 460px; }
}
/* Tablet: dwie kolumny wpisów – trzeci wpis (osierocony w drugim rzędzie) jest ukryty; całość pod „Wszystkie wpisy”. */
@media (min-width: 768px) and (max-width: 1024px) { .atma-news .elementor-post:nth-child(n+3) { display: none; } }
.atma-news .elementor-post__title { overflow-wrap: anywhere; }
