/* =========================================================
   ROOM HERO
========================================================= */

.room-hero{
    position:relative;
    min-height:100svh;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.room-hero-media,
.room-hero-media picture{
    position:absolute;
    inset:0;
}

.room-hero-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.room-hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            rgba(8,8,8,.88) 0%,
            rgba(8,8,8,.72) 38%,
            rgba(8,8,8,.35) 100%
        );
}

.room-hero-content{
    position:relative;
    z-index:2;
    width:min(720px,90%);
    margin-inline:auto;
    padding:9rem 0 5rem;
}

.room-hero .section-kicker{
    margin-bottom:1rem;
}

.room-hero h1{
    margin:0;
    font-size:clamp(3.5rem,8vw,6.5rem);
    line-height:.95;
}

.room-hero-intro{
    max-width:620px;
    margin:2rem 0 2.5rem;
    font-size:1.2rem;
    line-height:1.8;
    color:var(--color-text-secondary);
}

.room-hero-actions{
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
}

@media (max-width:768px){

    .room-hero{
        min-height:85svh;
    }

    .room-hero-content{
        width:90%;
        padding-top:8rem;
    }

    .room-hero h1{
        font-size:3.4rem;
    }

    .room-hero-intro{
        font-size:1rem;
        line-height:1.7;
    }

    .room-hero-actions{
        flex-direction:column;
    }

    .room-hero-actions .btn{
        width:100%;
        justify-content:center;
    }

}

/* =========================================================
   ROOM GLOBAL
========================================================= */

.room-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.room-intro,
.room-features,
.room-specs,
.room-gallery {
    position: relative;
}

/* =========================================================
   ROOM INTRO
========================================================= */

.room-intro {
    padding: 120px 0;
    background: #080808;
}

.room-intro .room-container {
    max-width: 980px;
}

.room-intro h2 {
    max-width: 760px;
    margin: 14px 0 34px;
    font-size: clamp(2.2rem, 4.5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.room-intro-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.room-intro-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* =========================================================
   ROOM FEATURES
========================================================= */

.room-features {
    padding: 120px 0;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 62, 50, 0.08),
            transparent 38%
        ),
        #0d0d0d;
}

.room-features h2 {
    max-width: 760px;
    margin: 14px 0 52px;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.room-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.room-feature-card {
    min-height: 260px;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
}

.room-feature-card h3 {
    margin: 0 0 18px;
    font-size: 1.45rem;
    line-height: 1.15;
}

.room-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
}

/* =========================================================
   ROOM SPECS
========================================================= */

.room-specs {
    padding: 110px 0;
    background: #080808;
}

.room-specs h2 {
    margin: 14px 0 50px;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.room-specs-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.room-spec {
    min-height: 150px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.room-spec:last-child {
    border-right: 0;
}

.room-spec span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.room-spec strong {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.1;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
    .room-intro-content {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .room-features-grid {
        grid-template-columns: 1fr;
    }

    .room-specs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-spec {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .room-spec:nth-child(2n) {
        border-right: 0;
    }

    .room-spec:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }
}

@media (max-width: 768px) {
    .room-container {
        width: min(100% - 32px, 1180px);
    }

    .room-intro,
    .room-features,
    .room-specs {
        padding: 78px 0;
    }

    .room-intro h2,
    .room-features h2,
    .room-specs h2 {
        margin-bottom: 34px;
    }

    .room-feature-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .room-specs-grid {
        grid-template-columns: 1fr;
    }

    .room-spec,
    .room-spec:nth-child(2n),
    .room-spec:last-child {
        grid-column: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .room-spec:last-child {
        border-bottom: 0;
    }
}

/* =========================================================
   ROOM GALLERY
========================================================= */

.room-gallery {
    padding: 110px 0 130px;
    background: #0b0b0b;
}

.room-gallery-heading {
    max-width: 760px;
    margin-bottom: 52px;
}

.room-gallery-heading h2 {
    margin: 12px 0 18px;
}

.room-gallery-heading > p:last-child {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.room-gallery-layout {
    display: grid;
    gap: 24px;
}

.room-gallery-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.room-gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: #151515;
}

.room-gallery-item-large {
    aspect-ratio: 16 / 9;
}

.room-gallery-pair .room-gallery-item {
    aspect-ratio: 4 / 5;
}

.room-gallery-item-wide {
    aspect-ratio: 16 / 9;
}

.room-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 900ms cubic-bezier(0.2, 0.65, 0.3, 1),
        filter 900ms ease;
}

.room-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.03) 45%,
            rgba(0, 0, 0, 0.22) 100%
        );
}

@media (hover: hover) and (pointer: fine) {
    .room-gallery-item:hover img {
        transform: scale(1.035);
        filter: brightness(1.04);
    }
}

@media (max-width: 768px) {
    .room-gallery {
        padding: 78px 0 90px;
    }

    .room-gallery-heading {
        margin-bottom: 34px;
    }

    .room-gallery-layout,
    .room-gallery-pair {
        gap: 14px;
    }

    .room-gallery-pair {
        grid-template-columns: 1fr;
    }

    .room-gallery-item-large,
    .room-gallery-item-wide {
        aspect-ratio: 4 / 3;
    }

    .room-gallery-pair .room-gallery-item {
        aspect-ratio: 4 / 5;
    }
}

/* =========================================================
   ROOM GALLERY MOTION
========================================================= */

.room-gallery-item {
    opacity: 0;
    transform: translateY(42px);
    transition:
        opacity 850ms ease,
        transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.room-gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.room-gallery-item img {
    transform: scale(1.04);
    will-change: transform;
}

.room-gallery-item.is-visible img {
    transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
    .room-gallery-item:hover img {
        transform: scale(1.035);
    }

    .room-gallery-item::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background:
            radial-gradient(
                circle at center,
                transparent 38%,
                rgba(0, 0, 0, 0.18) 100%
            );
        opacity: 0;
        transition: opacity 500ms ease;
        pointer-events: none;
    }

    .room-gallery-item:hover::before {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .room-gallery-item,
    .room-gallery-item img {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   ROOM FINAL CTA
========================================================= */

.room-final-cta {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
    text-align: center;
    background:
        radial-gradient(circle at center,
            rgba(170,35,25,.12),
            transparent 55%),
        linear-gradient(180deg,#0b0b0b 0%,#050505 100%);
}

.room-final-cta::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.015),
            transparent 18%,
            transparent 82%,
            rgba(255,255,255,.02)
        );
    pointer-events:none;
}

.room-final-cta .section-kicker{
    justify-content:center;
}

.room-final-cta h2{
    max-width:900px;
    margin:18px auto 26px;
    font-size:clamp(2.5rem,5vw,5rem);
    line-height:.95;
    letter-spacing:-.05em;
}

.room-final-cta-text{
    max-width:620px;
    margin:0 auto 50px;
    color:rgba(255,255,255,.68);
    font-size:1.15rem;
    line-height:1.8;
}

.room-final-button{
    min-width:240px;
    padding:18px 42px;
    font-size:1rem;
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

@media (hover:hover){

.room-final-button:hover{

    transform:translateY(-3px);

    box-shadow:
        0 20px 45px rgba(0,0,0,.45);

}

}

@media(max-width:768px){

.room-final-cta{

    padding:90px 0;

}

.room-final-cta-text{

    margin-bottom:38px;

}

}


/* =========================================================
   RELATED ROOMS
========================================================= */

.related-rooms {
    padding: 120px 0 130px;
    overflow: hidden;
    background: #090909;
}

.related-rooms-heading {
    max-width: 760px;
    margin-bottom: 52px;
}

.related-rooms-heading h2 {
    margin: 14px 0 18px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.related-rooms-heading > p:last-child {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.related-rooms-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.related-room-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111;
    transition:
        transform 350ms ease,
        border-color 350ms ease,
        box-shadow 350ms ease;
}

.related-room-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #181818;
}

.related-room-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.related-room-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 40%,
            rgba(0, 0, 0, 0.48) 100%
        );
    pointer-events: none;
}

.related-room-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(10, 10, 10, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.related-room-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 20px;
}

.related-room-content h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.05;
}

.related-room-content > p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
    line-height: 1.65;
}

.related-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: auto;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.74rem;
    font-weight: 600;
}

.related-room-link {
    color: var(--accent-color);
    font-size: 0.84rem;
    font-weight: 700;
}

.related-rooms-swipe-hint {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .related-room-card:hover {
        transform: translateY(-7px);
        border-color: rgba(255, 255, 255, 0.16);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
    }

    .related-room-card:hover .related-room-media img {
        transform: scale(1.045);
    }
}

/* Desktop più stretto e tablet */

@media (max-width: 1200px) {
    .related-rooms-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .related-rooms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: carousel orizzontale */

@media (max-width: 640px) {
    .related-rooms {
        padding: 82px 0 92px;
    }

    .related-rooms-heading {
        margin-bottom: 34px;
    }

    .related-rooms-grid {
        display: flex;
        gap: 14px;
        width: auto;
        margin-right: calc((100vw - 100%) * -1);
        padding-right: 32px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .related-rooms-grid::-webkit-scrollbar {
        display: none;
    }

    .related-room-card {
        flex: 0 0 min(82vw, 330px);
        scroll-snap-align: start;
    }

    .related-room-media {
        aspect-ratio: 4 / 5;
    }

    .related-rooms-swipe-hint {
        display: block;
        margin: 18px 0 0;
        color: rgba(255, 255, 255, 0.42);
        font-size: 0.76rem;
        letter-spacing: 0.04em;
    }
}