/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ============================================================
   Hero Slider — Banc dels Aliments de Girona
   Afegir al final de style.css del child tema
   ============================================================ */

/* ── Base ── */
#heroSlider.hs-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 500px !important;
    overflow: hidden !important;
    background: #000 !important;
}
#heroSlider .hs-track {
    position: relative;
    width: 100%;
    height: 100%;
}
#heroSlider .hs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
#heroSlider .hs-slide--active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Fons imatge ── */
#heroSlider .hs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 6s ease;
}
#heroSlider .hs-slide--active .hs-bg {
    transform: scale(1);
}

/* ── Fons vídeo ── */
#heroSlider .hs-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Capa fosca ── */
#heroSlider .hs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay-opacity, 0.45));
}

/* ── Contingut ── */
#heroSlider .hs-content {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 20px 40px !important;
}

/* ── Títol ── */
#heroSlider .hs-title {
    font-size: 55px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
    line-height: 1.15 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

/* ── Subtítol ── */
#heroSlider .hs-subtitle {
    font-size: 25px !important;
    color: #ffffff !important;
    margin: 0 0 28px !important;
    max-width: 680px !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35) !important;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

/* ── Botó ── */
#heroSlider .hs-btn {
    display: inline-block !important;
    padding: 14px 36px !important;
    background: #00CC82 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.7s, transform 0.7s ease 0.7s, background 0.2s !important;
}
#heroSlider .hs-btn:hover {
    background: #00a86b !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ── Animació d'entrada ── */
#heroSlider .hs-slide--active .hs-title,
#heroSlider .hs-slide--active .hs-subtitle,
#heroSlider .hs-slide--active .hs-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Fletxes ── */
#heroSlider .hs-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 20px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    line-height: 1 !important;
}
#heroSlider .hs-arrow:hover,
#heroSlider .hs-arrow:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: none !important;
}
#heroSlider .hs-arrow--prev { left: 20px !important; right: auto !important; }
#heroSlider .hs-arrow--next { right: 20px !important; left: auto !important; }

/* ── Punts indicadors ── */
#heroSlider .hs-dots {
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 10 !important;
}
#heroSlider .hs-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s !important;
}
#heroSlider .hs-dot--active {
    background: #0066E8 !important;
    background-color: #0066E8 !important;
    transform: scale(1.25) !important;
}

/* ── Responsiu mòbil ── */
@media (max-width: 768px) {
    #heroSlider.hs-wrapper {
        height: 70vh !important;
        min-height: 400px !important;
    }
    #heroSlider .hs-content {
        padding: 20px 24px !important;
    }
    #heroSlider .hs-title {
        font-size: 44px !important;
    }
    #heroSlider .hs-subtitle {
        font-size: 18px !important;
    }
    #heroSlider .hs-arrow {
        font-size: 11px !important;
    }
    #heroSlider .hs-arrow--prev { left: 10px !important; }
    #heroSlider .hs-arrow--next { right: 10px !important; }
}