/**
 * Úvod – stránka úvodu
 * page-uvod.php
 *
 * Hero slider dědí strukturu kontakt hero, ale přidává kolotoč.
 * Sekce 2 a 3 dědí styly z o-nas.css (sp-onas-intro, sp-onas-degustace).
 */


/* ═══════════════════════════════════════════════════════
   SEKCE 0 – HERO SLIDER
   ═══════════════════════════════════════════════════════ */
.sp-uvod-hero-wrap {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.sp-slider {
    position: relative;
    width: 100%;
    min-height: 340px;
    height: auto;
    overflow: hidden;
}

/* Jednotlivé slidy */
.sp-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.sp-slide--active {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
}

/* Tmavý překryv */
.sp-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.55) 100%
    );
}

/* Obsah slidu */
.sp-slide__content {
    position: relative;
    z-index: 2;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.sp-slide__title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.sp-slide__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.92);
    margin: 0 0 2rem;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.sp-slide__btn {
    font-size: 16px;
    background-color: var(--sp-green);
    border: none;
    color: #fff;
    padding: 0.6em 1.8em;
    border-radius: 0;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.sp-slide__btn:hover {
    background-color: var(--sp-green-dark);
    color: #fff;
}

/* Šipky */
.sp-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.35);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
    padding: 0;
}

.sp-slider__arrow:hover {
    background: rgba(0,0,0,0.6);
}

.sp-slider__arrow--prev { left: 1.5rem; }
.sp-slider__arrow--next { right: 1.5rem; }

/* Tečky */
.sp-slider__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.6rem;
}

.sp-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.sp-slider__dot--active,
.sp-slider__dot:hover {
    background: #fff;
}

#main-content > div > div.et_pb_bottom_inside_divider.sp-divider-hero-bottom{
background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSI1MHB4IiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0ZGRkZGRiI+PHBhdGggZD0iTTcyNS4yOSAxMDEuMkMzMjUuMjIgMTIyLjQ4IDAgMCAwIDB2MTQwaDEyODBWMHMtMTU0LjY0IDc5LjkyLTU1NC43MSAxMDEuMnoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNNTU2LjQ1IDExOS43NEM5NTMuNDEgMTQwIDEyODAgMTQgMTI4MCAxNHYxMjZIMFYwczE1OS41IDk5LjQ4IDU1Ni40NSAxMTkuNzR6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTY0MCAxNDBjMzUzLjQ2IDAgNjQwLTE0MCA2NDAtMTM5djE0MEgwVjBzMjg2LjU0IDE0MCA2NDAgMTQweiIvPjwvZz48L3N2Zz4=);
    background-size: 100% 50px;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    z-index: 10;
    transform: scale(1, 1);
    pointer-events: none;
    display: block;
}



/* ═══════════════════════════════════════════════════════
   SEKCE 1 – NEJPRODÁVANĚJŠÍ PRODUKTY
   ═══════════════════════════════════════════════════════ */
.sp-uvod-products {
    background: #ffffff;
    padding: 60px 0;


    background-size: initial;
    background-repeat: no-repeat;
    background-position: right 0px bottom 0px;    
    background-image: url('../img/wine-1.png');
}

.sp-uvod-products__row {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-uvod-products__heading {
    color: var(--sp-blue);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem;
}

.sp-uvod-products__grid {
    width: 100%;
}

/* WooCommerce grid override pro 4 sloupce */
.sp-uvod-products__grid ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .sp-uvod-products__grid ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sp-uvod-products__grid ul.products {
        grid-template-columns: 1fr;
    }
}

.sp-uvod-products__cta-wrap {
    text-align: center;
    margin-top: 2rem;
}

.sp-uvod-products__cta {
    font-size: 16px;
    background-color: var(--sp-blue);
    border: none;
    color: #fff;
    padding: 0.6em 1.8em;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sp-uvod-products__cta:hover {
    background-color: var(--sp-blue-dark);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════
   SEKCE 2 – O FIRMĚ (text + foto)
   Dědí logiku sp-onas-intro
   ═══════════════════════════════════════════════════════ */
.sp-uvod-intro {
    background: #fff;
    padding: 60px 0;
}

.sp-uvod-intro__row {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-uvod-intro__left,
.sp-uvod-intro__right {
    flex: 1 1 50%;
}

.sp-uvod-intro__text h3 {
    color: var(--sp-blue);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-uvod-intro__text h4 {
    color: var(--sp-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sp-uvod-intro__right .et_pb_image_wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .sp-uvod-intro__row {
        flex-direction: column;
    }
    .sp-uvod-intro__left,
    .sp-uvod-intro__right {
        flex: 1 1 100%;
    }
}


/* ═══════════════════════════════════════════════════════
   SEKCE 3 – VINICE (foto + text, tmavé pozadí)
   Dědí logiku sp-onas-degustace
   ═══════════════════════════════════════════════════════ */
.sp-uvod-vinice {
    background-color: #fff;    
    background-image: url('../img/menu_bg-2-.jpg');    
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

.sp-uvod-vinice__row {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-uvod-vinice__photo-col,
.sp-uvod-vinice__text-col {
    flex: 1 1 50%;
}

.sp-uvod-vinice__photo-col .et_pb_image_wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.sp-uvod-vinice__text h3 {
    color: var(--sp-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.sp-uvod-vinice__text p {
    color: var(--sp-text);
}

.sp-uvod-vinice__btn {
    font-size: 16px;
    background-color: var(--sp-green);
    border: none;
    color: #fff;
    padding: 0.3em 1em;
    font-weight: 700;
    display: inline-block;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sp-uvod-vinice__btn:hover {
    background-color: var(--sp-green-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .sp-uvod-vinice__row {
        flex-direction: column;
    }
    .sp-uvod-vinice__photo-col,
    .sp-uvod-vinice__text-col {
        flex: 1 1 100%;
    }
}


/* ═══════════════════════════════════════════════════════
   SEKCE 2 – AKTUÁLNÍ INFORMACE (post slider)
   Tmavé pozadí (stejný styl jako Divi et_pb_section_2 na originálu)
   ═══════════════════════════════════════════════════════ */
.sp-uvod-news {
    background: #e6e6e6;
    padding: 50px 0 60px;

background-size: initial;
    background-position: left bottom 0px;
    background-repeat: no-repeat;
    background-image: url('../img/leaves-1.png');
}

    

.sp-uvod-news__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-uvod-news__heading {
    text-align: center;
    color: var(--sp-blue);   
    font-weight: 700;
    margin: 0 0 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,0.15);
font-size: 1.4rem;
    margin-bottom: 1rem;


}

.sp-uvod-news__empty {
    color: rgba(255,255,255,0.6);
    text-align: center;
}

/* Post slider */
.sp-post-slider {
    position: relative;
}

.sp-post-slider__track {
    position: relative;
}

.sp-post-slide {
    display: none;
}

.sp-post-slide--active {
    display: block;
}

.sp-post-slide__body {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--sp-blue);
    border-radius: 2px;
    padding: 28px 30px;
}

/* Text (levá část) */
.sp-post-slide__text {
    flex: 1 1 0;
    min-width: 0;
}

.sp-post-slide__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.sp-post-slide__title a {
    color: #fff;
    text-decoration: none;
}

.sp-post-slide__title a:hover {
    color: var(--sp-green);
}

.sp-post-slide__excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.sp-post-slide__excerpt p {
    margin: 0;
}

.sp-post-slide__btn {
    font-size: 14px;
    background-color: var(--sp-green);
    border: none;
    color: #fff;
    padding: 0.35em 1.1em;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sp-post-slide__btn:hover {
    background-color: var(--sp-green-dark);
    color: #fff;
}

/* Foto (pravá část) */
.sp-post-slide__img {
    flex: 0 0 260px;
    width: 260px;
}

.sp-post-slide__img img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

/* Tečky post slideru */
.sp-post-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.sp-post-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.sp-post-slider__dot--active,
.sp-post-slider__dot:hover {
    background: #fff;
    border-color: #fff;
}

@media (max-width: 640px) {
    .sp-post-slide__body {
        flex-direction: column;
        padding: 20px;
    }
    .sp-post-slide__img {
        flex: none;
        width: 100%;
    }
    .sp-post-slide__img img {
        height: 200px;
    }
}

#aktualni-informace > div > div > div > article > div img,
#aktualni-informace > div > div > div > article > div{
 border-radius: 0 0 50px 0;   
}


/* ═══════════════════════════════════════════════════════
   SEKCE 3 – ŠÁPARA INTRO
   Bílé pozadí, nadpis vycentrovaný, foto 2/5 + text 3/5
   ═══════════════════════════════════════════════════════ */
.sp-uvod-intro {
    background: #fff;
    padding: 60px 0;
}

.sp-uvod-intro__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-uvod-intro__heading {
    text-align: center;
    color: var(--sp-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sp-border);
}

.sp-uvod-intro__row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Foto: 2/5 šířky */
.sp-uvod-intro__photo {
    flex: 0 0 calc(40% - 20px);
    width: calc(40% - 20px);
}

.sp-uvod-intro__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    border-radius: 0 0 0 50px;
}

.sp-uvod-intro__photo-link {
    display: block;
}

/* Text: 3/5 šířky */
.sp-uvod-intro__text {
    flex: 1 1 0;
    min-width: 0;
}

.sp-uvod-intro__text h4 {
    color: var(--sp-blue);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.sp-uvod-intro__text p {
    color: var(--sp-text);
    margin-bottom: 0.75rem;
}

.sp-uvod-intro__text a {
    color: var(--sp-blue);
}

.sp-uvod-intro__text a:hover {
    color: var(--sp-link-hover);
}

@media (max-width: 768px) {
    .sp-uvod-intro__row {
        flex-direction: column;
    }
    .sp-uvod-intro__photo {
        flex: none;
        width: 100%;
    }
}
