/* CAMERE PAGE - specifico */

/* PAGE HERO */
.page-hero {
    height: 60vh;
    min-height: 460px; max-height: 640px;
    width: 100%;
    background: url('../../foto/camere/header.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding-bottom: 40px;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 75%),
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 40%, rgba(13,13,13,0.95) 100%);
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(180deg, transparent, var(--dark));
    pointer-events: none;
}
.page-hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 0 20px;
}
.page-hero-content .hero-subtitle {
    font-size: clamp(0.65rem, 0.3vw + 0.55rem, 0.8rem);
    letter-spacing: 8px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 18px;
    display: inline-block; position: relative;
}
.page-hero-content .hero-subtitle::before,
.page-hero-content .hero-subtitle::after {
    content: ''; position: absolute; top: 50%;
    width: 40px; height: 1px; background: var(--gold); opacity: 0.6;
}
.page-hero-content .hero-subtitle::before { right: 100%; margin-right: 18px; }
.page-hero-content .hero-subtitle::after { left: 100%; margin-left: 18px; }
.page-hero h1, .page-hero h2 {
    font-family: var(--font-title);
    font-size: var(--fs-page-h1);
    color: #fff;
    text-shadow: 0 3px 12px rgba(0,0,0,0.45);
    line-height: 1.1; font-weight: 400; letter-spacing: 4px;
}

/* INTRO - piu compatto con anteprima visuale */
.intro-section {
    max-width: 1100px; margin: 0 auto;
    padding: 70px 40px 50px; text-align: center;
    position: relative;
}
.intro-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2);
    color: var(--gold); margin-bottom: 24px;
}
.intro-section p {
    font-size: var(--fs-body); color: var(--text-muted);
    line-height: 1.9; max-width: 720px; margin: 0 auto;
}
.gold-line {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 28px auto;
}

/* Mini preview strip: anteprime delle 4 dimore sotto l'intro */
.rooms-preview {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-top: 50px; max-width: 1000px;
    margin-left: auto; margin-right: auto;
}
.rooms-preview a {
    position: relative; display: block;
    aspect-ratio: 4/3; overflow: hidden;
    border: 1px solid rgba(197,160,89,0.2);
    transition: all 0.5s cubic-bezier(.2,.8,.2,1);
}
.rooms-preview a::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85));
    z-index: 1; transition: opacity 0.4s;
}
.rooms-preview a img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.rooms-preview a span {
    position: absolute; bottom: 12px; left: 14px; z-index: 2;
    color: #fff; font-family: var(--font-title);
    font-size: 0.85rem; letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.rooms-preview a:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--gold);
    transform: translateY(-4px);
}
.rooms-preview a:hover img { transform: scale(1.1); }
.rooms-preview a:hover::before { opacity: 0.5; }

/* ROOM SECTIONS */
.room-section {
    display: flex; min-height: 85vh; align-items: stretch;
    border-top: 1px solid #1a1a1a;
}
.room-section:nth-child(even) { flex-direction: row-reverse; }

.room-gallery {
    flex: 1.2; position: relative; overflow: hidden;
    min-height: 600px;
}
.room-gallery img.main-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.6s ease, transform 0.8s ease;
    cursor: zoom-in;
}
.room-gallery img.main-img.fading { opacity: 0; }
.room-gallery:hover img.main-img { transform: scale(1.04); }

.room-thumbs {
    position: absolute; bottom: 20px; left: 20px;
    display: flex; gap: 10px; z-index: 3;
    flex-wrap: wrap; max-width: calc(100% - 40px);
}
.room-thumbs img {
    width: 70px; height: 70px; object-fit: cover;
    border: 2px solid transparent; cursor: pointer;
    opacity: 0.75; transition: 0.3s;
}
.room-thumbs img:hover, .room-thumbs img.active {
    border-color: var(--gold); opacity: 1;
}

.gallery-zoom {
    position: absolute; top: 20px; right: 20px; z-index: 3;
    background: rgba(0,0,0,0.6); color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.95rem;
    transition: 0.3s;
}
.gallery-zoom:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

.room-info {
    flex: 0.8; padding: 80px 60px;
    display: flex; flex-direction: column; justify-content: center;
}
.room-label {
    font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 15px; display: block;
}
.room-info h2 {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 2vw + 0.8rem, 2.8rem);
    color: #fff; margin-bottom: 25px; line-height: 1.1;
}
.room-info p {
    color: #aaa; line-height: 1.9;
    font-size: var(--fs-body); margin-bottom: 30px;
}
.room-features {
    display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px;
}
.feature-item {
    display: flex; align-items: center; gap: 10px;
    color: #ccc; font-size: 0.9rem;
}
.feature-item i { color: var(--gold); font-size: 1rem; }

.btn-book-room {
    display: inline-block; padding: 15px 40px; background: var(--gold);
    color: var(--dark); text-transform: uppercase; letter-spacing: 2px;
    font-weight: 700; font-size: 0.85rem;
    align-self: flex-start;
    transition: all 0.3s ease;
}
.btn-book-room:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197,160,89,0.25);
}

/* AMENITIES */
.amenities-section {
    padding: 100px 40px; text-align: center;
    background: var(--light-dark); border-top: 1px solid #222;
}
.amenities-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2);
    color: var(--gold); margin-bottom: 15px;
}
.amenities-section > p { color: #888; margin-bottom: 50px; font-size: 1rem; }
.amenities-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 40px; max-width: 1000px; margin: 0 auto;
}
.amenity { text-align: center; transition: transform 0.3s ease; }
.amenity:hover { transform: translateY(-3px); }
.amenity i {
    font-size: 1.8rem; color: var(--gold);
    margin-bottom: 12px; display: block;
}
.amenity span {
    color: #ccc; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
}

/* CTA */
.cta-section {
    padding: 100px 40px; text-align: center;
    background: url('../../Esterno%20di%20notte.jpg') no-repeat center center/cover;
    position: relative;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
}
.cta-content { position: relative; z-index: 2; }
.cta-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2);
    color: #fff; margin-bottom: 20px;
}
.cta-section p {
    color: #ccc; font-size: var(--fs-body);
    margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .room-info { padding: 70px 45px; }
}

@media (max-width: 900px) {
    .page-hero { height: 50vh; min-height: 380px; }
    .page-hero h1, .page-hero h2 { letter-spacing: 2px; }
    .page-hero-content .hero-subtitle { letter-spacing: 5px; }
    .page-hero-content .hero-subtitle::before,
    .page-hero-content .hero-subtitle::after { width: 20px; }
    .intro-section { padding: 50px 20px 30px; }
    .rooms-preview { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .room-section { flex-direction: column !important; min-height: auto; }
    .room-gallery { min-height: 350px; }
    .room-info { padding: 50px 25px; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .cta-section { padding: 80px 20px; }
}

@media (max-width: 480px) {
    .room-thumbs img { width: 56px; height: 56px; }
    .room-info { padding: 40px 18px; }
    .room-features { gap: 14px; }
    .amenities-grid { gap: 24px; }
}
