:root {
    --primary-teal: #0a254d;
    --dark-navy: #0a254d;
    --light-bg: #F8F9FA;
    --accent-gold: #F9A826;
    --accent-blue: #89a5d9; /* Added for form button */
    --white: #FFFFFF;
    --text-dark: #3F3F3F;
    --text-light: #EAEAEA;
    --font-main: 'Montserrat', sans-serif;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --border-radius: 16px; /* Increased for a softer look */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.7;
}

/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--dark-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s 1s ease-out, visibility 0.5s 1s ease-out;
}
.loader-logo-container {
    position: relative;
    width: 200px;
}
.loader-logo-bg {
    width: 100%;
    display: block;
    filter: brightness(0) invert(1) opacity(0.2);
}
.loader-logo-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('logo.svg');
    background-size: 200px;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    animation: fill-up 1.5s ease-out forwards;
}
#loader.hidden { opacity: 0; visibility: hidden; }

@keyframes fill-up {
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s, top 0.3s;
}
.navbar.scrolled {
    background-color: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-logo img { height: 50px; }
.nav-menu { list-style: none; display: flex; align-items: center; }
.nav-item { margin-left: 2.5rem; }
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--accent-gold); }

.contact-button {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-button:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    transform: translateY(-2px);
}

.navbar:not(.scrolled) .nav-logo img {
    filter: brightness(0) invert(1);
}
.navbar .nav-logo img {
    transition: filter 0.3s ease;
}
.navbar:not(.scrolled) .nav-link {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.navbar:not(.scrolled) .contact-button {
    background-color: var(--white);
    color: var(--dark-navy);
}
.navbar:not(.scrolled) .contact-button:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
    overflow: hidden;
}
.hero-background-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.8); /* Adjusted brightness slightly */
    transform: scale(1.1);
    animation: hero-zoom-in 10s ease-out forwards;
}

@keyframes hero-zoom-in { to { transform: scale(1); } }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
}
.hero-content h1 {
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 4rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 0px 10px rgba(0,0,0,0.9);
}
.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}
.cta-button {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    background-color: var(--white);
    color: var(--dark-navy);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite ease-out;
}
.scroll-down img { width: 20px; filter: invert(0); box-shadow: 0, 0, 0, 20px, rgba(255, 255, 255, 1);}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* General Section Styling */
.content-section, .content-section-dark { padding: 7rem 8%; }
.content-section-dark {
    background-color: var(--dark-navy);
    color: var(--text-light);
}
.section-title {
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}
p { max-width: 650px; font-size: 1.05rem; }

/* About Section Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 5rem;
}
.about-text { text-align: left; }
.about-text p { margin-bottom: 1rem; }
.about-image img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Services Section */
#services .section-title { color: var(--white); text-align: center; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.service-card {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: left;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.service-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
}
.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    background-color: rgba(249, 168, 38, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-icon svg {
    width: 24px;
    height: 24px;
}
.service-card h3 {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* Feature Sections (Rooms, Breakfast) */
.feature-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    align-items: center;
    gap: 1rem;
}
.feature-image {
    grid-column: 1 / 7;
    grid-row: 1;
    z-index: 1;
}
.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.feature-text-box {
    grid-column: 6 / 11;
    grid-row: 1;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 2;
}
.feature-container.reverse .feature-image {
    grid-column: 5 / 11;
}
.feature-container.reverse .feature-text-box {
    grid-column: 1 / 6;
    text-align: right;
}
.feature-text-box .section-title, .feature-text-box p { text-align: left; }
.feature-container.reverse .feature-text-box .section-title,
.feature-container.reverse .feature-text-box p {
    text-align: right;
}

.cta-button-outline {
    background: transparent;
    color: var(--primary-teal);
    padding: 0.8rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-teal);
    display: inline-block;
    margin-top: 1.5rem;
}
.cta-button-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    transform: translateY(-3px);
}

/* Location Section */
#location {
    background-color: #0a254d;
    overflow: hidden;
}
.location-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 5rem;
}
.location-map img {
    width: 100%;
    max-width: 450px;
    transform: scale(1.75);
    z-index: -1;
    filter: invert(0) opacity(1);
}
.location-text { color: var(--text-light); }
.cta-button-outline-light {
    background: transparent;
    color: var(--white);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    display: inline-block;
    margin-top: 1.5rem;
    z-index: 1;
}
.cta-button-outline-light:hover {
    background-color: var(--white);
    color: var(--dark-navy);
}

/* Contact Form */
.info-form input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

#contact { background-color: var(--light-bg); }
#contact .section-title, #contact p { text-align: center; margin-left: auto; margin-right: auto; }
#contact p { max-width: 500px; }
.info-form {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    display: grid;
    gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
#guest-details { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

.info-form input, .info-form textarea, .info-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #DDE2E7;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.info-form select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233F3F3F' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}
.info-form input::placeholder, .info-form textarea::placeholder { color: #909090; }
.info-form input:focus, .info-form textarea:focus, .info-form select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 122, 122, 0.2);
}
.info-form textarea { min-height: 120px; resize: vertical; grid-column: 1 / -1; }
.date-input-wrapper { position: relative; }
.date-input-wrapper::after {
    content: ''; display: block;
    width: 20px; height: 20px;
    background: url('calendario.svg') no-repeat center center / contain;
    filter: invert(0.5);
    position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.form-row-checkbox { display: flex; align-items: center; color: var(--text-dark); gap: 0.75rem;}
.form-row-checkbox input { width: auto; }
.form-row-checkbox a { color: var(--primary-teal); text-decoration: none; }
.form-row-checkbox a:hover { text-decoration: underline; }
#contact .cta-button {
    width: 100%;
    grid-column: 1 / -1;
    color: var(--white);
    background-color: var(--accent-blue);
    font-size: 1.1rem;
    padding: 1.1rem;
}
#contact .cta-button:hover {
    background-color: var(--dark-navy);
    color: var(--white);
}

/* Footer */
footer {
    background-color: #0A1C2E;
    color: rgba(255, 255, 255, 0.7);
}
.footer-container {
    display: flex;
    align-items: center;
    padding: 3rem 6%;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-left {
    flex-shrink: 0;
}
.footer-logo {
    width: 130px;
    filter: brightness(0) invert(1);
    display: block;
}
.footer-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    align-self: stretch;
    margin: 0 3rem;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}
.footer-contact-info p {
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: none;
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
}
.footer-socials a {
    display: block;
    line-height: 0;
}
.footer-socials img {
    height: 24px;
    width: 24px;
    filter: invert(0.8);
    transition: filter 0.3s ease;
}
.footer-socials a:hover img {
    filter: invert(1);
}

.footer-socials svg {
    height: 24px;
    width: 24px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease;
}
.footer-socials a:hover svg {
    fill: var(--white);
}

.footer-bottom {
    background-color: #06121E;
    padding: 1.5rem 6%;
    font-size: 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

/* Responsive Adjustments for smaller screens */
@media (max-width: 900px) {
    .feature-text-box {
        grid-column: 2 / 10;
        margin: 0;
        margin-top: -4rem; /* Overlap image */
    }
    .feature-image { 
        grid-column: 1 / 11;
    }
    .feature-container.reverse .feature-text-box {
        margin: 0;
        margin-top: -4rem;
    }
}

@media (max-width: 768px) {
    .nav-menu { display: none; } /* Basic responsive step, a burger menu would be next */
    .grid-layout { gap: 2rem; }
    .feature-container { grid-template-columns: 1fr; }
    .feature-image, .feature-text-box, .feature-container.reverse .feature-image, .feature-container.reverse .feature-text-box {
        grid-column: 1 / -1;
        margin: 0;
    }
    .feature-text-box { border-radius: 0 0 var(--border-radius) var(--border-radius); }
    .feature-image img { border-radius: var(--border-radius) var(--border-radius) 0 0; }
}

/* --- Camere Page --- */

.nav-link.active {
    color: var(--accent-gold);
    font-weight: 700;
}

#rooms-hero {
    height: 60vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
    overflow: hidden;
}

#rooms-hero .hero-background-image {
    animation: none; /* Disable zoom for this hero */
    transform: scale(1);
    filter: brightness(0.6);
}

#room-list {
    padding-top: 5rem;
}

.room-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.room-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.room-details {
    text-align: left;
}

.room-details .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.room-details p {
    margin-bottom: 2rem;
    max-width: 500px;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.amenities-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary-teal);
}

.room-showcase.reverse .room-image {
    order: 2;
}

.room-showcase.reverse .room-details {
    order: 1;
}

@media(max-width: 768px) {
    .room-showcase.reverse .room-image {
        order: 1;
    }
    .room-showcase.reverse .room-details {
        order: 2;
    }
}

/* --- All Amenities Section (Camere Page) --- */
.all-amenities-section {
    padding: 7rem 0;
    text-align: center;
}

.all-amenities-section .section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 3rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid #DDE2E7;
    border-radius: var(--border-radius);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.amenity-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.amenity-item svg {
    width: 32px;
    height: 32px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.amenity-item span {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

.amenities-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.amenities-footer p {
    font-size: 1.1rem;
    max-width: 400px;
}

.cta-button-outline-gold {
    background: transparent;
    color: var(--accent-gold);
    padding: 0.8rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    display: inline-block;
}

.cta-button-outline-gold:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
    transform: translateY(-3px);
}

/* --- Galleria Page --- */

/* Hero section specific for the gallery page */
#gallery-hero {
    height: 60vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-hero .hero-background-image {
    filter: brightness(0.7);
    animation: none;
    transform: scale(1);
}

/* Ensure main content is a block to prevent layout collapse */
main {
    display: block;
}

/* Gallery section styling */
#gallery {
    padding-top: 4rem; /* Give it space from the hero */
}

.gallery-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 2px solid #DDE2E7;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f0f0f0;
    border-color: var(--dark-navy);
}

.filter-btn.active {
    background-color: var(--dark-navy);
    border-color: var(--dark-navy);
    color: var(--white);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* Lightbox Styles */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 77, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#lightbox-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 8px;
}

#lightbox-close, #lightbox-prev, #lightbox-next {
    position: absolute;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
#lightbox-close:hover, #lightbox-prev:hover, #lightbox-next:hover {
    color: var(--accent-gold);
}

#lightbox-close {
    top: 2rem;
    right: 3rem;
}

#lightbox-prev {
    left: 2rem;
}

#lightbox-next {
    right: 2rem;
}

/* --- Offerte Page --- */

#offers-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#offers-hero .hero-background-image {
    filter: brightness(0.7);
    animation: none;
    transform: scale(1);
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.offer-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.offer-image {
    flex: 0 0 250px;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

.offer-description {
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes button to the bottom */
}

.offer-content .cta-button-outline {
    align-self: flex-start; /* Aligns button to the left */
}

@media (max-width: 768px) {
    #offers-hero .hero-content {
      text-align: center; /* Centers the h1 and p tags */
    }

    #offers-hero h1 {
        font-size: clamp(2.5rem, 10vw, 3rem); /* Consistent mobile font size */
    }

    #offers-hero p {
        font-size: 1rem;
    }

    /* Make the section a container for the arrow */
    #offers-list {
        position: relative;
        overflow: hidden; /* Prevents arrow from sticking out */
    }

    /* This is the main change: from grid to flex carousel */
    .offers-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem; /* Use gap for spacing between cards */
        padding-bottom: 1rem; /* Space for scrollbar if it appears */
        margin: 0;
        max-width: none;
        
        /* Hide the scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .offers-grid::-webkit-scrollbar {
        display: none;
    }

    .offer-card {
        flex-direction: column; /* This is correct, keeps content stacked inside the card */
        flex: 0 0 85%; /* Each card takes up 85% of the screen width */
        scroll-snap-align: center;
    }
    
    .offer-image {
        flex-basis: 200px;
    }
    
    /* The indicator arrow */
    #offers-list::after {
        content: '❯';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to left, var(--light-bg) 40%, transparent 100%);
        pointer-events: none; /* Allows scrolling 'through' the arrow */
        
        /* Styling the arrow character */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 1rem;
        font-size: 2rem;
        color: rgba(0, 0, 0, 0.3);
    }

    #hero h1 {
        font-size: clamp(2.5rem, 10vw, 3rem); /* Adjusts font size smoothly for mobile */
        line-height: 1.2;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    #services .content-section-dark {
        position: relative; /* Needed for the pseudo-element */
    }

    #services .content-section-dark::after {
        content: '❯';
        position: absolute;
        right: 0;
        top: 55%;
        transform: translateY(-50%);
        width: 60px;
        height: 100%;
        background: linear-gradient(to left, var(--dark-navy) 40%, transparent 100%);
        pointer-events: none; /* Allows scrolling through the element */
        
        /* Styling the arrow character */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 1rem;
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.5);
    }

    .gallery-filters {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
        padding-bottom: 1rem; /* Makes space for content below */
    }
    .gallery-filters::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari */
    }

    .filter-btn {
        flex-shrink: 0; /* Prevents buttons from shrinking */
        white-space: nowrap; /* Ensures text doesn't wrap */
    }

    .form-row {
        grid-template-columns: 1fr; /* Stack inputs in a single column */
        gap: 1rem; /* Reduce gap for mobile */
    }

    /* Specific fix for the 4-column guest details row */
    #guest-details {
        grid-template-columns: 1fr 1fr; /* Make it a 2x2 grid on mobile */
    }

    #gallery-hero h1 {
        font-size: clamp(2.2rem, 10vw, 2.8rem); /* Make font smaller */
        text-align: center; /* Ensure it's centered */
    }

    #gallery-hero p {
        font-size: 1rem;
        text-align: center;
    }    
}

/* --- Mobile Navigation --- */

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-navy);
}

.navbar:not(.scrolled) .hamburger .bar {
    background-color: var(--white);
}

body.no-scroll {
    overflow: hidden;
}

/* --- Definitive Mobile Menu --- */
@media (max-width: 900px) {

    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active {
        z-index: 1001; /* Must be on top of the menu */
    }

    .hamburger.active .bar {
        background-color: var(--white); /* Ensures X is white on dark bg */
    }

    .nav-menu {
        /* Core Layout */
        position: fixed;
        top: 0;
        left: 0; /* Keep this at 0 */
        width: 100%;
        height: 100vh;
        background-color: var(--dark-navy);
        z-index: 1000;

        /* Centering the links */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* UPDATED Positioning & Animation */
        transform: translateX(100%); /* CHANGE: Was -100%. This moves it off-screen to the RIGHT. */
        visibility: hidden;
        /* UPDATED Transition for a sleeker feel */
        transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1), visibility 0s 0.5s;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        /* UPDATED Transition */
        transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    }
    
    /* Show the nav-items when the menu is open */
    .nav-menu .nav-item {
        display: block;
        margin: 1.5rem 0;
    }
    
    /* Styling the links inside the mobile menu */
    .nav-menu .nav-link {
        color: var(--white);
        font-size: 1.8rem;
        font-weight: 600;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--accent-gold);
    }

    .nav-link,
    .navbar.scrolled .nav-link {
        color: var(--white);
        font-size: 1.8rem;
        font-weight: 600;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Animate links fading in when menu opens */
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-gold);
    }
    
    .contact-button {
        padding: 1rem 2rem;
        font-size: 1.8rem;
    }
    
    /* Sleek Burger to X animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Mobile Menu Fix & Enhancements --- */

@media (max-width: 900px) {
    /* FIX: Ensure hamburger stays on top when menu is open */
    .hamburger.active {
        z-index: 101; /* Higher than the menu */
    }
    
    /* FIX: Ensure bars are correct color when menu is open */
    .hamburger.active .bar {
        background-color: var(--white);
    }

    /* FIX: Ensure nav menu appears over all other content */
    .nav-menu {
        z-index: 100;
    }
}

/* --- Mobile-Specific Redesigns --- */

@media (max-width: 768px) {
    
    /* Services Section: Becomes a carousel on mobile */
    #services .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem; /* Space for scrollbar if visible */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    /* Hide scrollbar for Chrome, Safari and Opera */
    #services .services-grid::-webkit-scrollbar {
        display: none;
    }

    #services .service-card {
        flex: 0 0 80%; /* Each card takes up 80% of the screen width */
        scroll-snap-align: center;
        margin-right: 1.5rem;
    }

    /* Rooms & Breakfast Sections: Sleek unified card design on mobile */
    .feature-container {
        display: block;
        background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-bottom: 3rem;
    }

    .feature-image, .feature-text-box {
        grid-column: auto; /* Reset grid styles */
        grid-row: auto;
        margin: 0;
    }

    .feature-image img {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        height: 250px; /* Give images a consistent height on mobile */
    }

    .feature-text-box {
        box-shadow: none; /* Shadow is now on the parent container */
        padding: 2rem;
    }

    .feature-text-box .section-title,
    .feature-container.reverse .feature-text-box .section-title {
        font-size: 2rem;
        text-align: left;
    }

    .feature-text-box p,
    .feature-container.reverse .feature-text-box p {
        text-align: left;
    }

    #services {
        position: relative; /* Make the section a positioning context */
        overflow: hidden; /* Prevent the arrow from sticking out */
    }

    #services::after {
        content: '❯';
        position: absolute;
        right: 0;
        top: 60%; /* Position it vertically relative to the cards */
        transform: translateY(-50%);
        width: 60px;
        height: 140px; /* Cover the height of the cards */
        background: linear-gradient(to left, var(--dark-navy) 40%, transparent 100%);
        pointer-events: none;
        
        /* Arrow text styling */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 1rem;
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.4);
    }

    #gallery {
        position: relative; /* Make the section a positioning context */
    }

    .gallery-filters {
        position: relative;
        right: 0; /* Make the filter bar a positioning context */
    }

    .gallery-filters::after {
        content: '❯';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-60%);
        width: 50px;
        height: 100%;
        background: linear-gradient(to left, var(--light-bg) 40%, transparent 100%);
        pointer-events: none;

        /* Arrow text styling */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 0.5rem;
        font-size: 1.5rem;
        color: rgba(0, 0, 0, 0.4);
    }

}

/* --- FINAL RESPONSIVE & BUG FIX IMPLEMENTATION --- */

/* 1. Location Section Mobile Layout Fix */
@media (max-width: 768px) {
    .location-container {
        /* Re-order elements for mobile */
        grid-template-columns: 1fr;
    }
    .location-text {
        order: 1; /* Text comes first */
        text-align: center;
    }
    .location-text .section-title {
        text-align: center;
    }
    .location-map {
        order: 2; /* Map comes second */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 250px;
        filter: invert(1) opacity(0.8);
    }
    .location-map img {
        /* Hide the original img tag on mobile, we use the background */
        display: none;
    }
}


/* 2. Definitive Mobile Menu Fix */
.navbar {
    /* Give the entire navbar the highest base z-index */
    z-index: 1000;
}

@media (max-width: 900px) {
    .nav-menu {
        /* Switch from 'left' to 'transform' for positioning. It's more reliable. */
        transform: translateX(-100%);
        visibility: hidden; /* Completely hide menu when inactive */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s;
        left: auto; /* Unset the 'left' property */
        z-index: 1000; /* Ensure menu is on the correct stacking layer */
    }

    .nav-menu.active {
        /* When active, bring it into view and make it visible */
        transform: translateX(0);
        visibility: visible;
    }

    .hamburger {
        /* Ensure the hamburger icon itself has a z-index */
        z-index: 1001;
    }
    
    .hamburger.active {
        /* When active, it must be on top of the menu it just opened */
        z-index: 1001;
    }
}

/* --- Contatti & Dove Siamo Page --- */

#contact-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact-hero .hero-background-image {
    filter: brightness(0.6);
    animation: none;
    transform: scale(1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Text column is smaller than map column */
    gap: 3rem;
    align-items: center;
}

.contact-info-box h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 1.5rem;
}

.contact-info-box ul {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 2;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

#contact-form-section {
    padding-top: 5rem;
}

/* Responsive adjustments for the contact page */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on tablets and mobile */
    }
    .map-container {
        /* On mobile, map comes first */
        order: 1;
    }
    .contact-info-box {
        order: 2;
    }
}

/* --- Dintorni Page --- */

#surroundings-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#surroundings-hero .hero-background-image {
    filter: brightness(0.7);
    animation: none;
    transform: scale(1);
}

/* On mobile, center hero text */
@media (max-width: 768px) {
    #surroundings-hero .hero-content {
        text-align: center;
    }
}