/* acf/page-hero — ΜΟΝΟ layout/positioning + CSS vars. Typography → style.css του theme (§HERO).
   Figma 1920: hero 1052, title bottom 916, line 935 (1808×1px), labels 947–966 (bottom 84). */
/* Επιλογές block → modifier classes (ΟΧΙ inline CSS):
   ύψος: .acf-phero--full | --figma | --short · overlay: .acf-phero--ov-0 … --ov-80 (βήμα 5) */
.acf-phero {
    --h: 100svh;
    --overlay: .2;
    --bottom: 84px;       /* απόσταση labels από κάτω άκρη */
    position: relative;
    width: 100%;
    height: var(--h);
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-dark, #504747);
    color: var(--c-white, #FFF);
    margin: 0;
}
.acf-phero--full  { --h: 100svh; }
.acf-phero--figma { --h: 54.6875vw; min-height: 0; }   /* 1920:1050 */
.acf-phero--short { --h: 70svh; }
.acf-phero--ov-0 { --overlay: 0; }
.acf-phero--ov-5 { --overlay: 0.05; }
.acf-phero--ov-10 { --overlay: 0.1; }
.acf-phero--ov-15 { --overlay: 0.15; }
.acf-phero--ov-20 { --overlay: 0.2; }
.acf-phero--ov-25 { --overlay: 0.25; }
.acf-phero--ov-30 { --overlay: 0.3; }
.acf-phero--ov-35 { --overlay: 0.35; }
.acf-phero--ov-40 { --overlay: 0.4; }
.acf-phero--ov-45 { --overlay: 0.45; }
.acf-phero--ov-50 { --overlay: 0.5; }
.acf-phero--ov-55 { --overlay: 0.55; }
.acf-phero--ov-60 { --overlay: 0.6; }
.acf-phero--ov-65 { --overlay: 0.65; }
.acf-phero--ov-70 { --overlay: 0.7; }
.acf-phero--ov-75 { --overlay: 0.75; }
.acf-phero--ov-80 { --overlay: 0.8; }

/* media */
.acf-phero__media,
.acf-phero__media-desktop,
.acf-phero__media-mobile,
.acf-phero__media picture {
    position: absolute;
    inset: 0;
}
.acf-phero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.acf-phero__media-mobile {
    display: none;
}

/* overlay (Figma: #000 20%) */
.acf-phero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay));
    pointer-events: none;
}

/* content: κάτω-αριστερά */
.acf-phero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--bottom);
    z-index: 1;
}
.acf-phero__title {
    max-width: 756px;
    margin: 0;
}
.acf-phero__rule {
    width: 100%;
    height: 1px;
    background: currentColor;
    margin-top: 19px;
    opacity: 1;
}
.acf-phero__labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-top: 12px;
}
.acf-phero__label--right {
    text-align: right;
}
.acf-phero--no-labels {
    --bottom: 87px;
}

/* tablet */
@media (max-width: 1024px) {
    .acf-phero {
        --bottom: 60px;
        min-height: 480px;
    }
    .acf-phero__title {
        max-width: 70%;
    }
}

/* mobile (Figma 360: title 3 γραμμές, γραμμή, labels, bottom ~40) */
@media (max-width: 640px) {
    .acf-phero {
        --bottom: 40px;
        min-height: 520px;
    }
    .acf-phero--figma {
        height: 100svh;
    }
    .acf-phero__title {
        max-width: 100%;
    }
    .acf-phero__rule {
        margin-top: 24px;
    }
    .acf-phero__labels {
        margin-top: 18px;
    }
    .acf-phero__media-mobile {
        display: block;
    }
    .acf-phero__media-mobile + .acf-phero__media-desktop,
    .acf-phero__media-desktop:has(+ .acf-phero__media-mobile) {
        display: none;
    }
}

/* E8 (α) — .acf-phero--sticky (ref gundari.com/gallery, μετρημένο 2026-11-11): το hero μένει ακίνητο και τα επόμενα
   sections (ίδιος parent) ανεβαίνουν από πάνω του με κρεμ φόντο → «το φόντο απλώνεται» του docx. Pure CSS.
   Layout effect → ΔΕΝ απενεργοποιείται με reduced motion. Το header (E1) γίνεται light όταν το επόμενο section φτάσει
   στο header (petrablu-motion.js). ΚΑΝΕΝΑ overflow/height σε ancestor (σπάει το sticky). */
.acf-phero--sticky {
    position: sticky;
    top: 0;
    z-index: 0;
}
.acf-phero--sticky ~ * {
    position: relative;
    z-index: 1;
    background-color: var(--c-cream, #EEEBE4);
}
