:root {
            --navy: #0e2d3d;
            --navy-deep: #092434;
            --paper: #fbf7ef;
            --cream: #f1e7d9;
            --terracotta: #c86f4b;
            --terracotta-dark: #a9583b;
            --gold: #c6a15c;
            --ink: #403a35;
            --muted: #766c63;
            --white: #fffaf2;
            --line: rgba(94, 77, 59, 0.17);
            --shadow: 0 18px 45px rgba(34, 25, 18, 0.16);
            --serif: "Playfair Display", Georgia, serif;
            --sans: "Poppins", Arial, sans-serif;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            color: var(--ink);
            background:
                linear-gradient(90deg, rgba(129, 102, 71, 0.035) 1px, transparent 1px),
                linear-gradient(180deg, rgba(129, 102, 71, 0.028) 1px, transparent 1px),
                var(--paper);
            background-size: 34px 34px;
            font-family: var(--sans);
            line-height: 1.6;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        img {
            display: block;
            max-width: 100%;
        }

        button,
        input,
        select,
        textarea {
            font: inherit;
        }

        .container {
            width: min(1110px, calc(100% - 44px));
            margin: 0 auto;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0 28px;
            border: 1px solid transparent;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            cursor: pointer;
            transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
        }

        .btn:hover,
        .btn:focus-visible {
            transform: translateY(-3px);
        }

        .btn-primary {
            color: var(--white);
            background: var(--terracotta);
            box-shadow: 0 10px 22px rgba(160, 82, 52, 0.26);
        }

        .btn-primary:hover,
        .btn-primary:focus-visible {
            background: var(--terracotta-dark);
        }

        .btn-outline {
            color: var(--terracotta);
            background: rgba(255, 250, 242, 0.72);
            border-color: rgba(201, 111, 75, 0.44);
        }

        .section-kicker {
            margin: 0 0 12px;
            color: var(--terracotta);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.18em;
            line-height: 1;
            text-transform: uppercase;
        }

        .section-title {
            margin: 0;
            color: var(--ink);
            font-family: var(--serif);
            font-size: clamp(34px, 5vw, 52px);
            font-weight: 500;
            line-height: 1.06;
        }

        .site-header {
            position: absolute;
            inset: 0 0 auto;
            z-index: 10;
            height: 94px;
            color: var(--white);
        }

        .nav-shell {
            width: min(1500px, calc(100% - 70px));
            height: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 245px 1fr 150px;
            align-items: center;
            gap: 24px;
            opacity: 0;
            animation: navDrop 680ms ease forwards;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            gap: 13px;
            color: var(--gold);
        }

        .brand-mark {
            width: 61px;
            height: 61px;
            flex: 0 0 61px;
        }

        .brand-mark svg {
            width: 100%;
            height: 100%;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.1;
            stroke-linecap: round;
            stroke-linejoin: round;
            transform-origin: center;
            animation: logoFloat 7s ease-in-out infinite;
        }

        .brand-copy {
            display: grid;
            gap: 1px;
            font-family: var(--serif);
            line-height: 1;
            text-transform: uppercase;
        }

        .brand-copy span {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.18em;
        }

        .brand-copy strong {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: 0.13em;
        }

        .brand-copy em {
            font-size: 15px;
            font-style: normal;
            font-weight: 700;
            letter-spacing: 0.25em;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 29px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .nav-menu li,
        .header-cta {
            opacity: 0;
            animation: navItemRise 520ms ease forwards;
        }

        .nav-menu li:nth-child(1) { animation-delay: 90ms; }
        .nav-menu li:nth-child(2) { animation-delay: 145ms; }
        .nav-menu li:nth-child(3) { animation-delay: 200ms; }
        .nav-menu li:nth-child(4) { animation-delay: 255ms; }
        .nav-menu li:nth-child(5) { animation-delay: 310ms; }
        .header-cta { animation-delay: 365ms; }

        .nav-menu a {
            position: relative;
            display: inline-flex;
            color: rgba(255, 250, 242, 0.9);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .nav-menu a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -13px;
            height: 2px;
            opacity: 0;
            background: var(--gold);
            transform: scaleX(0);
            transform-origin: left;
            transition: opacity 180ms ease, transform 230ms ease;
        }

        .nav-menu a:hover::after,
        .nav-menu a:focus-visible::after,
        .nav-menu .active a::after {
            opacity: 1;
            transform: scaleX(1);
        }

        .nav-toggle {
            display: none;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            gap: 5px;
            flex-direction: column;
            border: 1px solid rgba(198, 161, 92, 0.44);
            border-radius: 999px;
            color: var(--gold);
            background: rgba(9, 36, 52, 0.78);
            cursor: pointer;
            transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
        }

        .nav-toggle:hover,
        .nav-toggle:focus-visible {
            transform: translateY(-1px);
            border-color: var(--gold);
            background: rgba(9, 36, 52, 0.94);
        }

        .nav-toggle span {
            width: 18px;
            height: 2px;
            border-radius: 999px;
            background: currentColor;
            transition: transform 180ms ease, opacity 180ms ease;
        }

        .nav-toggle.is-open span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .nav-toggle.is-open span:nth-child(2) {
            opacity: 0;
        }

        .nav-toggle.is-open span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .header-cta {
            min-height: 46px;
            padding: 0 25px;
            border-radius: 999px;
            font-size: 11px;
            justify-self: end;
        }

        .hero {
            position: relative;
            min-height: 610px;
            color: var(--white);
            background-image:
                linear-gradient(90deg, rgba(8, 13, 17, 0.78) 0%, rgba(8, 13, 17, 0.54) 42%, rgba(8, 13, 17, 0.16) 100%),
                linear-gradient(180deg, rgba(7, 10, 12, 0.22), rgba(7, 10, 12, 0.68)),
                var(--room-hero-image, url("../images/camera1.jpg"));
            background-position: center var(--room-hero-position, 50%);
            background-size: cover;
            animation: heroDrift 16s ease-in-out infinite alternate;
        }

        .hero-inner {
            min-height: 610px;
            display: grid;
            grid-template-columns: minmax(0, 680px) minmax(300px, 390px);
            gap: 42px;
            align-items: end;
            padding: 140px 0 58px;
        }

        .breadcrumb {
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
            margin-bottom: 24px;
            color: rgba(255, 250, 242, 0.72);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .breadcrumb a {
            color: rgba(255, 250, 242, 0.88);
        }

        .hero h1 {
            margin: 0 0 22px;
            font-family: var(--serif);
            font-size: clamp(48px, 7vw, 76px);
            font-weight: 500;
            line-height: 1.02;
            text-shadow: 0 5px 24px rgba(0, 0, 0, 0.42);
        }

        .hero p {
            width: min(590px, 100%);
            margin: 0 0 30px;
            color: rgba(255, 250, 242, 0.9);
            font-size: 16px;
            font-weight: 600;
            line-height: 1.8;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .hero-card {
            padding: 27px;
            color: var(--white);
            border: 1px solid rgba(198, 161, 92, 0.34);
            border-radius: 8px;
            background: rgba(9, 36, 52, 0.72);
            box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(12px);
        }

        .hero-card .price {
            margin: 0 0 18px;
            color: var(--gold);
            font-family: var(--serif);
            font-size: 36px;
            font-weight: 600;
            line-height: 1;
        }

        .hero-card .price span {
            color: rgba(255, 250, 242, 0.68);
            font-family: var(--sans);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .hero-facts {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .hero-facts li {
            padding-top: 13px;
            border-top: 1px solid rgba(255, 250, 242, 0.15);
        }

        .hero-facts strong {
            display: block;
            color: var(--white);
            font-size: 14px;
        }

        .hero-facts span {
            display: block;
            color: rgba(255, 250, 242, 0.62);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .detail-section {
            padding: 72px 0;
        }

        .detail-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
            gap: 42px;
            align-items: start;
        }

        .content-card,
        .booking-card,
        .mini-card {
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 250, 242, 0.86);
            box-shadow: 0 14px 34px rgba(57, 42, 26, 0.08);
        }

        .content-card {
            padding: 34px;
        }

        .content-card h2,
        .booking-card h2 {
            margin: 0 0 16px;
            font-family: var(--serif);
            font-size: 38px;
            font-weight: 500;
            line-height: 1.08;
        }

        .content-card p {
            margin: 0 0 26px;
            color: var(--muted);
            font-size: 15px;
            line-height: 1.9;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
            margin: 0 0 32px;
            padding: 0;
            list-style: none;
        }

        .feature-grid li {
            padding: 16px;
            border: 1px solid rgba(198, 161, 92, 0.26);
            border-radius: 7px;
            color: #5d5147;
            background: rgba(241, 231, 217, 0.62);
            font-size: 13px;
            font-weight: 700;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 14px;
        }

        .gallery-grid img {
            width: 100%;
            height: 260px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 10px 26px rgba(57, 42, 26, 0.12);
            transition: transform 650ms ease, filter 650ms ease;
        }

        .gallery-grid img:hover {
            transform: scale(1.02);
            filter: saturate(1.04);
        }

        .booking-card {
            position: sticky;
            top: 24px;
            padding: 28px;
        }

        .booking-card h2 {
            font-size: 34px;
        }

        .booking-card p {
            margin: 0 0 22px;
            color: var(--muted);
            font-size: 14px;
        }

        .booking-direct-link {
            width: 100%;
            margin: 4px 0 14px;
        }
        .small-note {
            color: var(--muted);
            font-size: 11px;
            line-height: 1.55;
        }

        .services-band {
            padding: 58px 0;
            color: var(--white);
            background:
                radial-gradient(circle at 20% 20%, rgba(255, 250, 242, 0.08), transparent 24rem),
                var(--navy-deep);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            background: rgba(198, 161, 92, 0.24);
        }

        .mini-card {
            min-height: 155px;
            padding: 27px;
            color: var(--white);
            background: rgba(255, 250, 242, 0.08);
            box-shadow: none;
        }

        .mini-card strong {
            display: block;
            margin-bottom: 8px;
            color: var(--gold);
            font-family: var(--serif);
            font-size: 28px;
            font-weight: 600;
        }

        .mini-card p {
            margin: 0;
            color: rgba(255, 250, 242, 0.78);
            font-size: 14px;
            line-height: 1.7;
        }

        .related-section {
            padding: 70px 0;
            background: var(--cream);
        }

        .related-head {
            display: flex;
            justify-content: space-between;
            gap: 24px;
            align-items: end;
            margin-bottom: 24px;
        }

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

        .related-card {
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 250, 242, 0.8);
            box-shadow: 0 12px 30px rgba(57, 42, 26, 0.08);
            transition: transform 220ms ease, box-shadow 220ms ease;
        }

        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 18px 38px rgba(57, 42, 26, 0.15);
        }

        .related-card img {
            width: 100%;
            height: 142px;
            object-fit: cover;
        }

        .related-card div {
            padding: 16px;
        }

        .related-card h3 {
            margin: 0 0 6px;
            font-family: var(--serif);
            font-size: 24px;
            font-weight: 500;
            line-height: 1.1;
        }

        .related-card p {
            margin: 0;
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.09em;
            text-transform: uppercase;
        }

        .site-footer {
            padding: 29px 0 21px;
            background: var(--paper);
            border-top: 1px solid rgba(89, 70, 48, 0.12);
        }

        .footer-row {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            align-items: center;
            color: #74695f;
            font-size: 12px;
            font-weight: 500;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 22px;
        }

        .reveal {
            opacity: 0;
            transform: translateY(26px);
            transition: opacity 680ms ease, transform 680ms ease;
            transition-delay: var(--reveal-delay, 0ms);
        }

        .reveal[data-reveal="left"] { transform: translateX(-24px); }
        .reveal[data-reveal="right"] { transform: translateX(24px); }
        .reveal.is-visible { opacity: 1; transform: translate(0, 0); }

        @keyframes heroDrift {
            from { background-position: center var(--room-hero-position, 50%); }
            to { background-position: center var(--room-hero-position-to, 55%); }
        }

        @keyframes navDrop {
            from { opacity: 0; transform: translateY(-18px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes navItemRise {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-3px) rotate(2deg); }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 1ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
                transition-duration: 1ms !important;
            }

            .reveal {
                opacity: 1;
                transform: none;
            }
        }

        @media (max-width: 1050px) {
            .nav-shell {
                width: calc(100% - 38px);
                grid-template-columns: 210px 1fr 130px;
            }

            .nav-menu {
                gap: 17px;
            }

            .nav-menu a {
                font-size: 10px;
            }

            .hero-inner,
            .detail-layout,
            .services-grid,
            .related-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 760px) {
            .site-header {
                height: auto;
                padding: 18px 0;
            }

            .nav-shell {
                display: flex;
                align-items: center;
                justify-content: space-between;
                position: relative;
                width: calc(100% - 32px);
            }

            .nav-menu {
                position: absolute;
                top: calc(100% + 12px);
                left: 0;
                right: 0;
                display: flex;
                flex-direction: column;
                gap: 0;
                padding: 10px;
                border: 1px solid rgba(198, 161, 92, 0.24);
                border-radius: 8px;
                background: rgba(9, 36, 52, 0.96);
                box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
                z-index: 40;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transform: translateY(-8px);
                transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
            }

            .nav-menu.is-open {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: translateY(0);
            }

            .nav-menu li {
                width: 100%;
                opacity: 1;
                animation: none;
            }

            .nav-menu a {
                width: 100%;
                justify-content: center;
                padding: 13px 12px;
                color: rgba(255, 250, 242, 0.94);
                font-size: 12px;
            }

            .nav-menu a::after {
                display: none;
            }

            .nav-toggle {
                display: inline-flex;
            }

            .brand-mark {
                width: 52px;
                height: 52px;
                flex-basis: 52px;
            }

            .brand-copy strong {
                font-size: 18px;
            }

            .header-cta {
                display: none;
            }

            .hero,
            .hero-inner {
                min-height: 560px;
            }

            .hero-inner,
            .detail-layout,
            .feature-grid,
            .gallery-grid,
            .services-grid,
            .related-grid {
                grid-template-columns: 1fr;
            }

            .content-card,
            .booking-card {
                padding: 24px;
            }

            .booking-card {
                position: static;
            }

            .hero-actions,
            .related-head,
            .footer-row {
                align-items: stretch;
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }
        }

.hero.room-hero-camera-singola-1 { --room-hero-image: url("../images/camera1.jpg"); --room-hero-position: 58%; --room-hero-position-to: 62%; }
.hero.room-hero-camera-singola-2 { --room-hero-image: url("../images/camera2.jpg"); --room-hero-position: 46%; --room-hero-position-to: 52%; }
.hero.room-hero-camera-singola-3 { --room-hero-image: url("../images/camera3.jpg"); --room-hero-position: 54%; --room-hero-position-to: 58%; }
.hero.room-hero-mini-appartamento { --room-hero-image: url("../images/appartamento.jpg"); --room-hero-position: 52%; --room-hero-position-to: 57%; }
.hero.room-hero-cucina-comune { --room-hero-image: url("../images/cucina.jpg"); --room-hero-position: 50%; --room-hero-position-to: 55%; }

.brand-logo-img {
    display: block;
    width: 268px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-brand .brand-logo-img {
    width: 220px;
}

@media (max-width: 780px) {
    .brand-logo-img {
        width: 176px;
    }

    .footer-brand .brand-logo-img {
        width: 158px;
    }
}
