/* =========================================================
   HERO HOME
   Slider homepage - iluminat-ieftin.ro
   ========================================================= */

.home-hero {
    position: relative;
    width: 100%;
    max-width: 740px;

    margin: 12px 0 20px 0;

    background: #111;
    border: 1px solid #e3e3df;
    border-radius: 0px;

    overflow: hidden;

    box-shadow:
        0 2px 5px rgba(0,0,0,.06),
        0 10px 24px rgba(0,0,0,.08);

    box-sizing: border-box;
}


/* neutralizam regula generala "div { margin:auto; } */
.home-hero__viewport,
.home-hero__track,
.home-hero__slide,
.home-hero__dots {
    margin: 0;
}


/* viewport */
.home-hero__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}


/* banda care se deplaseaza */
.home-hero__track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    width: 100%;

    -webkit-transition: -webkit-transform .65s cubic-bezier(.22,.61,.36,1);
    transition: transform .65s cubic-bezier(.22,.61,.36,1);

    will-change: transform;
}


/* slide individual */
.home-hero__slide {
    position: relative;

    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;

    overflow: hidden;
}


/* imagine */
.home-hero__image {
    display: block;

    width: 100%;
    height: 416px;

    margin: 0;

    object-fit: cover;
    object-position: center;

    border: 0;
}


/* mica umbra/gradient in partea de jos;
   face indicatoarele mai usor de vazut */
.home-hero:after {
    content: "";

    position: absolute;
    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    height: 70px;

    pointer-events: none;

    background: -webkit-linear-gradient(
        top,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.20) 100%
    );

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.20) 100%
    );
}


/* ---------------------------------------------------------
   SAGETI
   --------------------------------------------------------- */

.home-hero__arrow {
    position: absolute;
    z-index: 4;

    top: 50%;

    width: 42px;
    height: 56px;

    margin-top: -28px;
    padding: 0;

    border: 0;
    border-radius: 5px;

    color: #fff;

    background: rgba(0,0,0,.38);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 56px;
    text-align: center;

    cursor: pointer;

    opacity: .72;

    -webkit-transition:
        opacity .18s ease,
        background .18s ease,
        -webkit-transform .18s ease;

    transition:
        opacity .18s ease,
        background .18s ease,
        transform .18s ease;
}


.home-hero__arrow--prev {
    left: 12px;
}

.home-hero__arrow--next {
    right: 12px;
}


.home-hero:hover .home-hero__arrow {
    opacity: 1;
}


.home-hero__arrow:hover {
    color: #fff;
    background: rgba(0,0,0,.72);
}


.home-hero__arrow:active {
    -webkit-transform: scale(.94);
    transform: scale(.94);
}


.home-hero__arrow:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   BULINE
   --------------------------------------------------------- */

.home-hero__dots {
    position: absolute;
    z-index: 5;

    left: 50%;
    bottom: 13px;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);

    padding: 6px 9px;

    border-radius: 20px;

    background: rgba(0,0,0,.28);
}


.home-hero__dot {
    display: block;

    width: 9px;
    height: 9px;

    margin: 0 4px;
    padding: 0;

    border: 1px solid rgba(255,255,255,.95);
    border-radius: 50%;

    background: rgba(255,255,255,.35);

    cursor: pointer;

    -webkit-transition:
        width .20s ease,
        border-radius .20s ease,
        background .20s ease;

    transition:
        width .20s ease,
        border-radius .20s ease,
        background .20s ease;
}


.home-hero__dot:hover {
    background: #fff;
}


.home-hero__dot.is-active {
    width: 25px;

    border-radius: 8px;

    background: #fff;
}


/* ---------------------------------------------------------
   ECRANE MAI MICI
   util daca ulterior site-ul devine complet responsive
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .home-hero__image {
        height: 230px;
    }

    .home-hero__arrow {
        width: 38px;
        height: 50px;
        margin-top: -25px;
        line-height: 50px;
    }

}


/* respecta preferinta utilizatorului pentru animatii reduse */
@media (prefers-reduced-motion: reduce) {

    .home-hero__track {
        -webkit-transition: none;
        transition: none;
    }

}