/* === GALLERIE RISTORANTE PRO (come versione precedente) === */

.ristorante-gallery-pro {
    margin-bottom:30px;
}
.ristorante-gallery-pro .rgp-title {
    font-size:1.5rem;
    margin-bottom:15px;
    text-align:left;
}
.ristorante-gallery-pro .rgp-wrapper {
    display:grid;
    grid-gap:12px;
}
.ristorante-gallery-pro.layout-grid .rgp-wrapper {
    grid-template-columns:repeat(4, 1fr);
}
.ristorante-gallery-pro.layout-masonry .rgp-wrapper {
    column-count:4;
    column-gap:12px;
}
.ristorante-gallery-pro.layout-masonry .rgp-item {
    break-inside:avoid;
    margin-bottom:12px;
}
.ristorante-gallery-pro.layout-fullwidth .rgp-wrapper {
    grid-template-columns:repeat(2, 1fr);
}
@media (max-width:1024px){
    .ristorante-gallery-pro.layout-grid .rgp-wrapper,
    .ristorante-gallery-pro.layout-fullwidth .rgp-wrapper {
        grid-template-columns:repeat(3, 1fr);
    }
    .ristorante-gallery-pro.layout-masonry .rgp-wrapper {
        column-count:3;
    }
}
@media (max-width:768px){
    .ristorante-gallery-pro.layout-grid .rgp-wrapper,
    .ristorante-gallery-pro.layout-fullwidth .rgp-wrapper {
        grid-template-columns:repeat(2, 1fr);
    }
    .ristorante-gallery-pro.layout-masonry .rgp-wrapper {
        column-count:2;
    }
}
.ristorante-gallery-pro .rgp-item {
    position:relative;
    overflow:hidden;
    border-radius:12px;
}
.ristorante-gallery-pro .rgp-item img {
    width:100%;
    height:auto;
    display:block;
    object-fit:cover;
    transition:transform .35s ease, filter .35s ease;
}
.ristorante-gallery-pro .rgp-item .rgp-zoom-icon {
    position:absolute;
    bottom:10px;
    right:10px;
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(0,0,0,0.7);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:16px;
    opacity:0;
    transform:translateY(10px);
    transition:opacity .25s ease, transform .25s ease;
}
.ristorante-gallery-pro .rgp-item:hover img {
    transform:scale(1.07);
    filter:brightness(0.9);
}
.ristorante-gallery-pro .rgp-item:hover .rgp-zoom-icon {
    opacity:1;
    transform:translateY(0);
}

/* Lightbox */
#rgp-overlay {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(6,6,8,0.96);
    z-index:999999;
    text-align:center;
}
#rgp-overlay-inner {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
}
#rgp-overlay img {
    max-width:92%;
    max-height:92%;
    border-radius:12px;
    box-shadow:0 18px 50px rgba(0,0,0,0.75);
    opacity:0;
    transform:translateY(15px) scale(0.97);
    transition:opacity .25s ease, transform .25s ease;
}
#rgp-overlay.open img {
    opacity:1;
    transform:translateY(0) scale(1);
}
#rgp-overlay .rgp-close {
    position:absolute;
    top:18px;
    right:24px;
    font-size:28px;
    color:#fff;
    cursor:pointer;
    font-weight:bold;
}

/* === OFFERTE - CARD GRID === */

.htp-offerte-empty {
    text-align:center;
    margin:60px 0;
}
.htp-offerte-empty p {
    font-family:'Alata', sans-serif;
    font-size:34px;
    margin:0;
}
@media (max-width:1024px){
    .htp-offerte-empty p {
        font-size:30px;
    }
}
@media (max-width:768px){
    .htp-offerte-empty p {
        font-size:30px;
    }
}

.htp-offerte-grid {
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
}
@media (max-width:1024px){
    .htp-offerte-grid {
        grid-template-columns:repeat(3, 1fr);
    }
}
@media (max-width:768px){
    .htp-offerte-grid {
        grid-template-columns:1fr;
    }
}

.htp-offerta-card {
    background:#ffffff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    display:flex;
    flex-direction:column;
    height:100%;
}
.htp-offerta-image img {
    width:100%;
    height:250px;
    max-height:250px;
    object-fit:cover;
    display:block;
}
.htp-offerta-body {
    padding:24px 24px 28px;
    display:flex;
    flex-direction:column;
    flex:1;
}
.htp-offerta-title {
    font-family:'Alata', sans-serif;
    font-size:30px;
    margin:0 0 10px;
    color:#1e2a36;
}
.htp-offerta-excerpt p {
    font-family:'Outfit', sans-serif;
    font-size:1.5rem;
    line-height:1.6;
    margin:0;
    color:#333;
}
@media (max-width:1024px){
    .htp-offerta-excerpt p {
        font-size:1.3rem;
    }
}
@media (max-width:768px){
    .htp-offerta-excerpt p {
        font-size:1.2rem;
    }
}
.htp-offerta-footer {
    margin-top:auto;
    padding-top:20px;
}
.htp-offerta-button {
    display:inline-block;
    padding:10px 34px;
    border-radius:999px;
    background:#7a5b27;
    color:#fff;
    font-family:'Alata', sans-serif;
    font-size:14px;
    letter-spacing:2px;
    text-transform:uppercase;
    text-decoration:none;
    text-align:center;
    border:none;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.htp-offerta-button:hover {
    background:#5e441b;
    transform:translateY(-1px);
    box-shadow:0 6px 18px rgba(0,0,0,0.18);
}

/* === SLIDER OFFERTE (3 colonne desktop/tablet, 1 mobile) === */

.htp-offerte-slider-wrapper {
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
}
.htp-offerte-slider-track {
    overflow:hidden;
    width:100%;
}
.htp-offerte-slider-track-inner {
    display:flex;
    transition:transform .35s ease;
    gap:20px;
}
.htp-offerte-slider-track-inner .htp-offerta-card {
    flex:0 0 calc(33.333% - 13.4px);
}

.htp-offerte-slider-prev,
.htp-offerte-slider-next {
    background:transparent;
    border:none;
    font-size:32px;
    cursor:pointer;
    line-height:1;
    padding:8px 6px;
    color:#555;
    transition:color .2s ease, transform .2s ease;
}
.htp-offerte-slider-prev:hover,
.htp-offerte-slider-next:hover {
    color:#000;
    transform:scale(1.05);
}

@media (max-width:1024px){
    .htp-offerte-slider-track-inner .htp-offerta-card {
        flex:0 0 calc(33.333% - 13.4px);
    }
}
@media (max-width:768px){
    .htp-offerte-slider-wrapper {
        gap:4px;
    }
    .htp-offerte-slider-track-inner {
        gap:16px;
    }
    .htp-offerte-slider-track-inner .htp-offerta-card {
        flex:0 0 100%;
    }
}
