/* ============================================================
   Belle Parole – Pillar Page styles
   Wklej do style.css child theme
   ============================================================ */

/* ── Belle Parole brand ── */
:root {
    --bp-green:      #00934A;
    --bp-green-dark: #007038;
    --bp-red:        #E6272D;
    --bp-dark:       #1D1D1B;
    --bp-text:       #272726;
    --bp-mid:        #555553;
    --bp-bg:         #F5FAF7;
    --bp-white:      #ffffff;
    --bp-border:     #D6EAE0;
    --bp-radius:     10px;
    --bp-font-head:  "ff-speak-web", "Red Hat Text", sans-serif;
    --bp-font-body:  "Red Hat Text", sans-serif;
}
.bp-pillar * { box-sizing: border-box; }

/* ANIMACJE – fade-in przy wejściu w viewport */
@keyframes bp-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bp-card,
.bp-faq details {
    opacity: 1;
}
.bp-pillar {
    font-family: var(--bp-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--bp-text);
    -webkit-font-smoothing: antialiased;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}
/* HERO IMAGE */
.bp-hero-img {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    min-height: 380px;
    overflow: hidden;
}
.bp-hero-img > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}
/* NAKŁADKA INTRO na hero */
.bp-hero-intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 30px 48px;
    width: 88%;
    max-width: 820px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    font-size: 1rem;
    line-height: 1.6;
    z-index: 10;
}
.bp-hero-intro p {
    font-size: 1rem !important;
    color: #272726 !important;
    margin: 0 0 10px !important;
    line-height: 1.65 !important;
}
.bp-hero-intro p:last-child { margin-bottom: 0 !important; }
@media (max-width: 780px) {
    .bp-hero-img { min-height: 440px; }
    .bp-hero-intro { padding: 20px 24px; width: 92%; border-radius: 12px; }
}
/* INTRO – fallback gdy brak hero image */
.bp-intro {
    text-align: center;
    padding: 8px 0 36px;
    border-bottom: 2px solid var(--bp-border);
    margin-bottom: 40px;
}
.bp-intro p { font-size: 1rem; color: var(--bp-mid); max-width: 740px; margin: 0 auto 12px; }
/* CTA BANNER */
.bp-cta-banner {
    background: var(--bp-green);
    color: #fff;
    text-align: center;
    padding: 24px 28px;
    border-radius: var(--bp-radius);
    width: 60%;
    margin: 0 auto 48px;
}
.bp-cta-banner__headline { margin: 0 0 6px; font-size: 1.3rem; font-weight: 600; opacity: .97; }
.bp-cta-banner__subtext  { margin: 0 0 20px; font-size: 1rem; opacity: .82; }
.bp-cta-banner a {
    display: inline-block;
    background: var(--bp-white);
    color: var(--bp-green);
    font-family: var(--bp-font-head);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background .2s, color .2s;
}
.bp-cta-banner a:link,
.bp-cta-banner a:visited { color: var(--bp-green) !important; }
.bp-cta-banner a:hover,
.bp-cta-banner a:active { background: #01C765 !important; color: #fff !important; }
/* SPIS TREŚCI */
.bp-toc {
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-left: 4px solid var(--bp-green);
    border-radius: var(--bp-radius);
    padding: 24px 32px;
    margin-bottom: 52px;
}
.bp-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.bp-toc h2 {
    font-family: var(--bp-font-head);
    font-weight: 600;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--bp-green);
    margin: 0;
}
.bp-toc__toggle {
    flex-shrink: 0;
    display: inline-block;
    background: var(--bp-green);
    color: #fff;
    border: none;
    font-family: var(--bp-font-head);
    font-weight: 600;
    font-size: .82rem;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .2s;
    white-space: nowrap;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.bp-toc__toggle:hover,
.bp-toc__toggle:focus,
.bp-toc__toggle:active,
.bp-toc__toggle:focus-visible,
.bp-toc__toggle:focus-within { 
    background: #01C765 !important;
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: #fff !important;
}
.bp-toc__list { transition: max-height .35s ease, opacity .3s ease; overflow: visible; }
.bp-toc__list.bp-toc--hidden { max-height: 0 !important; opacity: 0; overflow: hidden; }
.bp-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc-counter;
    column-count: 2;
    column-gap: 48px;
}
@media (max-width: 600px) { .bp-toc ol { column-count: 1; } }
.bp-toc li {
    margin-bottom: 6px;
    padding-left: 2.4em;
    position: relative;
    counter-increment: toc-counter;
    break-inside: avoid;
}
.bp-toc li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    min-width: 2em;
    color: var(--bp-dark);
    font-size: 1rem;
}
.bp-toc a { color: var(--bp-dark); text-decoration: none; font-size: 1rem; }
.bp-toc a:hover { color: var(--bp-green); text-decoration: underline; }
/* KARTY */
.bp-articles { display: flex; flex-direction: column; gap: 28px; }
.bp-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    overflow: hidden;
    background: var(--bp-white);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: box-shadow .25s, transform .2s;
    scroll-margin-top: 60px;
    position: relative;   /* dla pseudo-linka na cały box */
    cursor: pointer;
}
.bp-card:hover { box-shadow: 0 6px 24px rgba(0,147,74,.15); transform: translateY(-2px); }
/* niewidoczny link rozciągnięty na cały box */
.bp-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}
/* przyciski ponad linkiem */
.bp-card__cta a,
.bp-card__phrases span { position: relative; z-index: 2; }
/* obrazek zawsze po lewej, tekst po prawej */
.bp-card.bp-card--even { grid-template-columns: 340px 1fr; }
.bp-card.bp-card--even .bp-card__img  { order: unset; }
.bp-card.bp-card--even .bp-card__body { order: unset; }
.bp-card__img {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    background: var(--bp-bg);
    align-self: stretch;
}
.bp-card__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    position: absolute;
    inset: 0;
    max-width: none !important;
    max-height: none !important;
    transition: transform .45s ease;
}

.bp-card:hover .bp-card__img img { transform: scale(1.05); }
.bp-card__img--no-img::after {
    content: '🇮🇹';
    font-size: 3rem;
    opacity: .3;
}
.bp-card__body { padding: 28px 32px; display: flex; flex-direction: column; }
.bp-card__body h2 {
    font-family: var(--bp-font-head);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--bp-dark);
    margin: 0 0 10px;
    line-height: 1.3;
}
.bp-card__body p { font-size: 1rem; color: var(--bp-mid); line-height: 1.65; margin: 0 0 16px; }
.bp-card__phrases { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.bp-card__phrases span {
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: 20px;
    padding: 4px 13px;
    font-size: .9rem;
    color: var(--bp-dark);
    font-style: italic;
}
.bp-card__cta { margin-top: auto; display: flex; justify-content: flex-end; }
.bp-card__cta a,
.bp-card__cta a:link,
.bp-card__cta a:visited,
.bp-card__cta a:active,
.bp-card__cta a:hover,
body .bp-card__cta a,
body .bp-card__cta a:link,
body .bp-card__cta a:visited,
body .bp-card__cta a:active,
body .bp-card__cta a:hover,
.elementor .bp-card__cta a,
.elementor .bp-card__cta a:link,
.elementor .bp-card__cta a:visited {
    display: inline-block;
    background: var(--bp-green) !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 11px 26px;
    border-radius: 6px;
    font-family: var(--bp-font-head);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .02em;
    transition: background .2s, color .2s;
}
body .bp-card__cta a:hover,
.elementor .bp-card__cta a:hover { background: #01C765 !important; color: #fff !important; }
@media (max-width: 780px) {
    .bp-card, .bp-card.bp-card--even { grid-template-columns: 1fr; }
    .bp-card.bp-card--even .bp-card__img,
    .bp-card.bp-card--even .bp-card__body { order: unset; }
    .bp-card__img { min-height: 200px; }
    .bp-card__body { padding: 20px 18px; }
    .bp-toc { padding: 18px 20px; }
    .bp-toc ol { padding-left: 32px; column-gap: 32px; }
    .bp-cta-banner { width: 100%; }

    /* wymuszenie rodzin fontów na mobile – nadpisuje WP/Elementor body */
    .bp-pillar,
    .bp-intro p,
    .bp-cta-banner__headline,
    .bp-cta-banner__subtext,
    .bp-card__body p,
    .bp-card__phrases span,
    .bp-toc a,
    .bp-faq__answer,
    .bp-faq__answer p { font-family: "Red Hat Text", sans-serif !important; }

    .bp-cta-banner a,
    .bp-toc h2,
    .bp-card__body h2,
    .bp-card__cta a,
    .bp-faq > h2,
    .bp-faq summary,
    .bp-toc__toggle { font-family: "ff-speak-web", "Red Hat Text", sans-serif !important; }
}
/* FAQ */
.bp-faq { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--bp-border); }
.bp-faq > h2 {
    font-family: var(--bp-font-head);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--bp-dark);
    text-align: center;
    margin-bottom: 16px;
}
.bp-faq details {
    border-radius: 8px;
    margin-bottom: 10px;
    background: transparent;
    border: none;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.bp-faq summary {
    font-family: var(--bp-font-head);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: #ffffff;
    background: #636262;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 8px;
    transition: background .2s, border-radius .15s;
}
.bp-faq details[open] summary {
    border-radius: 8px 8px 0 0;
}
.bp-faq summary:hover { background: #525151; }
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after {
    content: '\002B';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    line-height: 1;
}
.bp-faq details[open] summary::after {
    content: '\2212';
}
.bp-faq details p:empty { display: none; }
.bp-faq__answer {
    padding: 20px 24px;
    font-size: 1rem;
    color: #272726;
    line-height: 1.75;
    background: #F2F2F2;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height .35s ease, padding .3s ease, opacity .3s ease;
    opacity: 0;
}
.bp-faq details[open] .bp-faq__answer {
    max-height: 600px;
    padding-top: 20px;
    padding-bottom: 20px;
    opacity: 1;
}
.bp-faq__answer p { margin: 0 0 10px; }
.bp-faq__answer p:last-child { margin-bottom: 0; }
.bp-faq__answer ul, .bp-faq__answer ol { margin: 0 0 10px; padding-left: 20px; }
.bp-faq details p { margin: 0; }

/* Override .elementor-kit-9 a – TYLKO przycisk karty */
.elementor-kit-9 .bp-card__cta a { color: #fff; }