.portada-regala{
    line-height: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.background-regals{
    height: 60vh;
    background: #fff var(--backgroundImage02) center;
    background-position: top;
    z-index: -1;
    position: absolute; 
    width: 100%;
    padding-top: 50px;
    margin-top:-40px;
}

.grid-regals {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 60px; 
    padding: 0 10% 5% 10%;
    margin: 0 auto;
    position: relative;
    background-repeat: no-repeat;
    background-size: 80% 100%; 
    background-position: center;
}

.grid-regals .element-qf:last-child {
    border:none;
}
.route_offers_index .intro-casaments {
    padding: 150px 20% 5% 20%;
    margin-top:-40px;
}

.ofertes-regals{
    background-image:
    url("../img/algaRegalsOfertesPromos-VJKoWS_.jpg");
    background-size: cover;
    background-position: center;
}

.gastronomia-content .card h3{
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: var(--sectionTitleFontSize);
    color: #D1C198;
    margin:0;
    line-height: 1;
    padding-top: 25px;
}

.gastronomia-content .card a{
    margin-bottom: 5%;
}

#regals-ofertes{
    margin: -200px auto 5% auto; gap: 40px;
}



/********************************* RESPONSIVE *********************************/

@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1400px)
  and (-webkit-min-device-pixel-ratio: 2) {

    .portada-button{
        display: none;
    }
    
    .booking-box {
    width: 90vw;

    }

    .booking-field {
    width: 100%;
    padding: 0 10px 10px 10px !important;
    }

    .booking-btn {
        width: 100%;
        margin-top: 10px;

    }

    .booking-box{
        display: flex;
        width: 90vw;
    }

    .background-regals {
        height: 550px;
    }
    .grid-regals {
        padding: 250px 10% 5% 10%;
    }

    .card img {
        width: 25vw;
    }
}





  /* TABLET FINS A 1024px */

  @media screen and (max-width: 1024px) {
    
    .portada-button{
        display: block;
    }

    .booking-box {
        display: none;
    
    }


    .background-regals {
        height: 650px;
        
        h2{
            padding: 0 5% 3% 5%;
        }
    }

    .grid-regals {
        grid-template-columns: repeat(1, 1fr);
        padding: 350px 10% 5% 10%;

    }

    #regals-ofertes {
        margin: -100px auto 5% auto;
        gap: 20px;
    }

    .gastronomia-section {
        background-image: url("../img/algaRegalsOfertesPromos-VJKoWS_.jpg");
        background-size: 300%;
        background-position: top center;
        background-repeat: no-repeat;
        padding: 50px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ofertes-regals{
    background-image: none;
    }
    #regals-ofertes{
        flex-direction: column;
        gap: 100px;
    }
    .card img {
    width: 100%;
    }
  }

@media screen and (max-width: 768px) {
    .grid-regals {
        padding: 20px 10% 5% 10%;
}
}

/* --- MÒBIL (Per defecte i fins a 600px aprox) */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {

    .portada-button{
        display: block;
    }

    .grid-regals {
        grid-template-columns: repeat(1, 1fr);
        padding: 150px 30px;

    }

    .background-regals {
        height: 750px;
        
        h2{
            padding: 0 5% 3% 5%;
        }
    }

    .bottom-qf {
        justify-content: start;
    }

    #regals-ofertes{
        margin:  0 auto 5% auto; 
        gap: 40px;
    }

    #regals-ofertes .tercera-imatge{
        display: block;
    }
    .ofertes-regals{
        background-image: none;
    }

    .gastronomia-header h2 {
        text-align: center;
    }

    .darrer-qf{
        border-bottom: none;
    }

  }


/* === LIGHTBOX === */

.lightbox-trigger {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 40px;
}

.lightbox-trigger img {
    transition: transform 0.3s ease;
}

.lightbox-trigger:hover img {
    transform: scale(1.03);
}

.lightbox-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: 40px;
}

.lightbox-trigger:hover::after {
    opacity: 1;
}

.alga-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.alga-lightbox.is-active {
    opacity: 1;
    pointer-events: all;
}

.alga-lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

.alga-lightbox-close,
.alga-lightbox-prev,
.alga-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.alga-lightbox-close:hover,
.alga-lightbox-prev:hover,
.alga-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.alga-lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    line-height: 1;
}

.alga-lightbox-prev,
.alga-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2rem;
}

.alga-lightbox-prev { left: 16px; }
.alga-lightbox-next { right: 16px; }

.alga-lightbox-prev.hidden,
.alga-lightbox-next.hidden {
    display: none;
}
    

