/* ================================================
   ESPRESSIMO HERO WIDGET Proto V1
   ================================================ */

.elementor-widget-espressimo_hero_proto_v1 {
    width: 100%;
}

.elementor-widget-espressimo_hero_proto_v1 .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ------------------------------------------------
   HERO WRAPPER
   ------------------------------------------------ */
.esp-hero {
    padding: 15px;
}

/* ------------------------------------------------
   TOP BAR
   ------------------------------------------------ */
.esp-hero__topbar {
    text-align: center;
    padding: 2px 0;
    margin-bottom: 15px;
}

.esp-hero__topbar-text {
    color: #fff;
    margin: 0;
}

.esp-hero__topbar-brand {
    font-weight: bold;
}

/* ------------------------------------------------
   HERO CARD
   ------------------------------------------------ */
.esp-hero__card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    width: 100%;
    height: 70vh;
}

/* ------------------------------------------------
   SLIDES
   ------------------------------------------------ */
.esp-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.esp-hero__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.esp-hero__bg {
    position: absolute;
    inset: 0;
    /* !important so the theme's global `img { height:auto !important }` can't stop the
       slide from filling the card — keeps it full-cover in every view. */
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.esp-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.esp-hero__gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 65%;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ------------------------------------------------
   CONTENT
   ------------------------------------------------ */
.esp-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 64px;
    direction: rtl;
}

.esp-hero__text {
    max-width: 580px;
}

.esp-hero__heading {
    color: #fff;
    margin: 0 0 16px 0;
    text-shadow: rgba(0, 0, 0, 0.3) 0px 2px 12px;
}

.esp-hero__subtext {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
}

.esp-hero__btn,
.esp-hero__btn:visited,
.esp-hero__btn:focus {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    transition: opacity 0.2s;
    cursor: pointer;
    box-shadow: none !important;
}

.esp-hero__btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* ------------------------------------------------
   SLIDE DOTS
   ------------------------------------------------ */
.esp-hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.esp-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.esp-hero__dot--active {
    background: #fff;
    transform: scale(1.25);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .esp-hero__card {
        height: 60vh;
    }
    .esp-hero__content {
        padding: 0 32px;
    }
    .esp-hero__text {
        max-width: 480px;
    }
    .esp-hero__bg {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .esp-hero {
        padding: 12px;
    }
    /* Item 4 — hide the promo top-bar text on mobile. */
    .esp-hero__topbar {
        display: none;
    }
    /* Item 5 — shorter hero image (50vh) with the titles + button pinned to the bottom. */
    .esp-hero__card {
        height: 50vh;
        border-radius: 16px;
    }
    .esp-hero__content {
        padding: 0 20px 44px;
        justify-content: center;
        align-items: flex-end;
        text-align: center;
    }
    .esp-hero__text {
        max-width: 100%;
    }
    /* Item 6 — larger fluid type on mobile. !important to override the Elementor
       Style-tab font size (mobile only). */
    .esp-hero__heading {
        font-size: clamp(30px, 9vw, 46px) !important;
        line-height: 1.12 !important;
    }
    .esp-hero__subtext {
        font-size: clamp(15px, 4.2vw, 20px) !important;
        margin: 0 0 22px 0;
    }
    .esp-hero__btn {
        font-size: clamp(16px, 4.6vw, 21px) !important;
        padding: 13px 26px !important;
    }
    .esp-hero__gradient {
        width: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    }
}


/* Prev / next arrows (client 2026-10-19). */
.esp-hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%; padding: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 249, 242, .18) !important; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .55) !important; cursor: pointer;
    transition: background .2s, color .2s;
}
.esp-hero__arrow:hover, .esp-hero__arrow:focus-visible { background: #fff9f2 !important; color: #522c25 !important; }
.esp-hero__arrow--prev { right: 16px; }
.esp-hero__arrow--next { left: 16px; }
@media (min-width: 768px) { .esp-hero__content { padding-left: 88px; padding-right: 88px; } }
@media (max-width: 767px) {
    .esp-hero__arrow { width: 36px; height: 36px; top: auto; bottom: 14px; transform: none; }
    .esp-hero__arrow svg { width: 18px; height: 18px; }
}

.esp-hero__arrow { border-radius: 50% !important; min-height: 0 !important; line-height: 1 !important; }
@media (max-width: 767px) { .esp-hero__arrow { bottom: 11px; } }
.esp-hero__arrow { width: 48px !important; height: 48px !important; }
@media (max-width: 767px) { .esp-hero__arrow { width: 36px !important; height: 36px !important; } }
/* Arrows sit at the dots row on every screen: mid-height on desktop they hid behind the floating cart button. */
.esp-hero__arrow { top: auto !important; bottom: 12px !important; transform: none !important; }
@media (min-width: 768px) { .esp-hero__arrow { width: 44px !important; height: 44px !important; bottom: 10px !important; } .esp-hero__arrow--prev { right: 24px; } .esp-hero__arrow--next { left: 24px; } }

/* Arrows at mid-height of the banner (client 2026-10-19). On desktop the left arrow sits
   right of the floating cart button (0-79px), which is also at mid-height of the screen. */
.esp-hero__arrow { top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; }
@media (min-width: 768px) { .esp-hero__arrow--next { left: 96px !important; } .esp-hero__arrow--prev { right: 24px !important; } }
@media (max-width: 767px) {
    .esp-hero__arrow--next { left: 10px !important; } .esp-hero__arrow--prev { right: 10px !important; }
    .esp-hero__content { padding-left: 52px !important; padding-right: 52px !important; }
}

@media (min-width: 768px) { .esp-hero__arrow--next { left: 24px !important; } }
