/* ========================================
   TRAIL BIKE - Cleaned CSS
   ======================================== */

/* =========================
   RESET / BASE
============================== */
html, body {
    font-family: 'Open Sans', sans-serif;
    font-size: 100%;
    color: #6c6c6c;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden !important;
    overflow-y: scroll;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-weight: 700;
    font-size: 4.5em;
    margin-bottom: 20px;
}

h2 {
    font-weight: 300;
    font-size: 4.5em;
}

h4 {
    font-weight: 300;
    font-size: 1.88em;
}

h5 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
}

h6 {
    font-size: 0.9em;
    font-weight: 400;
}

p {
    font-size: 14px;
    line-height: 2;
}

a {
    text-decoration: none;
    color: #009900;
    transition: all 0.3s;
}

    a:hover {
        color: #6c6c6c;
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   BUTTONS
============================== */
.btn {
    border-radius: 0;
    transition: all 0.3s;
}

    .btn:focus, .btn.active {
        box-shadow: none;
    }

.btn-trans {
    text-transform: uppercase;
    border: 2px solid #6c6c6c;
    color: #6c6c6c;
    font-weight: 700;
}

    .btn-trans:hover {
        color: #009900;
        border-color: #009900;
    }

.btn-fill {
    color: #fff;
    text-transform: uppercase;
    background: #009900;
    border: 2px solid #009900;
    border-radius: 3px;
}

    .btn-fill:hover {
        background: #fe704c;
        border-color: #fe704c;
        color: #fff;
    }

/* =========================
   NAVBAR
============================== */
.navbar {
    transition: all 0.3s;
    background: #fff;
    margin-bottom: 0;
    border-color: rgba(0,0,0,0.06);
}

.navbar-brand {
    height: 80px;
    padding: 20px 0;
}

.navbar-nav > li > a {
    text-transform: uppercase;
    color: #3b3738;
    transition: all 0.3s;
    display: block;
}

    .navbar-nav > li > a:hover, .navbar-nav > li > a:focus {
        color: #009900;
        background: none;
    }

.navbar-toggle {
    background: #3b3738;
    border-color: #3b3738;
    margin: 33px 33px 33px 0;
}

    .navbar-toggle .icon-bar {
        background: #fff;
    }

/* =========================
   PRELOADER
============================== */
.pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .pre-loader .spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid #009900;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================
   CAROUSEL / SLIDER
============================== */
.slider {
    position: relative;
    height: 100vh;
}

    .slider img {
        height: 100%;
        object-fit: cover;
    }

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

    .slider-content .btn-trans {
        border: 2px solid #fff;
        color: #fff;
        padding: 10px 25px;
        margin-top: 15px;
        display: inline-block;
        transition: 0.3s;
    }

        .slider-content .btn-trans:hover {
            background: #fff;
            color: #009900;
        }

/* =========================
   SECTIONS
============================== */
section {
    padding: 60px 0;
}

    section h2 {
        color: #009900;
        margin-bottom: 20px;
    }

.about-us p, .bike-trail p, .events p {
    margin-bottom: 15px;
}

.about-us .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-us .col-md-4 {
    padding-right: 30px;
    margin-bottom: 20px;
}

.about-us .col-md-8 {
    padding-left: 15px;
}

.about-us .owl-carousel .item img {
    width: auto; /* Imatge natural */
    max-width: 100%;
    height: auto;
    object-fit: unset;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

/* =========================
   GALLERY
============================== */
.gallery-items .item {
    padding: 15px;
    position: relative;
}

    .gallery-items .item img {
        width: auto; /* Manté mida natural */
        max-width: 100%;
        height: auto;
        object-fit: unset;
        border-radius: 5px;
        display: block;
        margin: 0 auto;
    }

    .gallery-items .item i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        color: #fff;
        opacity: 0;
        transition: 0.3s;
    }

    .gallery-items .item:hover i {
        opacity: 1;
    }

/* =========================
   OWL CAROUSEL CONTROLS
============================== */
.owl-carousel .owl-nav button.owl-prev, .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px 15px;
    color: #fff;
    border-radius: 50%;
}

.owl-carousel .owl-nav button.owl-prev {
    left: 10px;
}

.owl-carousel .owl-nav button.owl-next {
    right: 10px;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.owl-carousel .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #009900;
    margin: 5px;
    border-radius: 50%;
}

/* =========================
   FOOTER
============================== */
.footer {
    background: #222;
    color: #fff;
    padding: 30px 0;
}

    .footer a {
        color: #fff;
        margin: 0 10px;
    }

.footer-bottom {
    background: #262526;
    position: relative;
    width: 100%;
    padding: 100px 0;
}

    .footer-bottom .social-icon ul li {
        display: inline-block;
        margin-right: 20px;
        font-size: 12px;
        font-weight: 700;
    }

        .footer-bottom .social-icon ul li a {
            color: #fff;
        }

        .footer-bottom .social-icon ul li:hover .fa {
            color: #009900;
            background: #fff;
        }

    .footer-bottom .social-icon .fa {
        height: 30px;
        width: 30px;
        line-height: 30px;
        font-size: 15px;
        border-radius: 50%;
        background: #009900;
        text-align: center;
        color: #fff;
        margin-right: 10px;
    }

/* =========================
   SOCIAL FIXED
============================== */
.social-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .social-fixed a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        background: #009900;
        color: #fff;
        border-radius: 50%;
        font-size: 24px;
        text-decoration: none;
        transition: transform 0.2s, background 0.2s;
    }

        .social-fixed a:hover {
            transform: scale(1.1);
            background: #006600;
        }

/* =========================
   MAP RESPONSIVE
============================== */
.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

    .map-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* =========================
   RESPONSIVE
============================== */
@media (max-width:767px) {
    .about-us .col-md-4, .about-us .col-md-8 {
        padding: 0;
        text-align: center;
    }

    .about-us .col-md-4 {
        margin-bottom: 20px;
    }

    .slider-content {
        padding: 15px;
        font-size: 14px;
    }

    .owl-carousel .owl-nav button.owl-prev, .owl-carousel .owl-nav button.owl-next {
        padding: 8px 12px;
    }
}

/* =========================
   VEURE CAROUSEL NATURAL
============================== */
/* CONTENIDOR GENERAL */
.home {
    position: relative;
    overflow: hidden;
}

/* ITEM DEL SLIDER (CLAU) */
.home-carousel .item {
    position: relative; /* IMPORTANTÍSSIM */
    width: 100%;
}

/* IMATGE NATURAL (SENSE RETALL) */
.home-carousel img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset !important;
}

/* TEXT SOBRE LA IMATGE */
.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.35);
    padding: 20px;
    border-radius: 10px;
    max-width: 85%;
    z-index: 10;
}

    .slider-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 10px;
        font-weight: 700;
    }

    .slider-content p {
        font-size: 1.1rem;
        line-height: 1.4;
    }

/* BOTONS OWL */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px 15px;
    color: #fff;
    border-radius: 50%;
    z-index: 20;
}
    