:root {
  --ink: #17241f;
  --brand: #4b3025;
  --green: #779181;
  --green-dark: #344a3e;
  --blue: #58778a;
  --ochre: #d4932c;
  --paper: #f6f4ee;
  --white: #fff;
  --line: rgba(23, 36, 31, .17);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header { height: 106px; padding: 0 clamp(22px, 4vw, 68px); display: flex; align-items: center; justify-content: space-between; background: rgba(246,244,238,.97); border-bottom: 1px solid rgba(75,48,37,.13); position: absolute; z-index: 5; inset: 0 0 auto; color: var(--ink); }
.brand { display: inline-flex; align-items: center; }
.header-brand { gap: 15px; }
.header-brand .logo-symbol { display: block; width: 58px; height: 63px; flex: 0 0 auto; background: var(--brand); -webkit-mask: url("assets/romagnoli-logo-symbol-hd.png") center / contain no-repeat; mask: url("assets/romagnoli-logo-symbol-hd.png") center / contain no-repeat; }
.logo-wordmark-shell { position: relative; display: block; width: 184px; height: 62px; overflow: hidden; }
.logo-wordmark-shell .logo-wordmark { position: absolute; inset: 0; display: block; background: var(--brand); -webkit-mask: url("assets/romagnoli-logo-wordmark-hd.png") top center / 100% auto no-repeat; mask: url("assets/romagnoli-logo-wordmark-hd.png") top center / 100% auto no-repeat; clip-path: inset(0 0 19% 0); }
.logo-wordmark-shell small { position: absolute; z-index: 1; left: 0; right: 0; bottom: 1px; display: block; color: var(--brand); font: 700 .48rem/1 var(--sans); letter-spacing: .035em; text-align: center; }
nav { display: flex; align-items: center; gap: 28px; font-size: .88rem; font-weight: 650; }
nav a:not(.nav-cta):hover { color: var(--green); }
.nav-cta { padding: 10px 18px; background: var(--brand); color: white; border-radius: 999px; }
.language-toggle { min-width: 44px; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(75,48,37,.35); border-radius: 999px; background: transparent; color: var(--brand); cursor: pointer; font-weight: 800; letter-spacing: .08em; }
.language-toggle:hover { background: rgba(75,48,37,.08); }
.menu-button { display: none; border: 0; background: transparent; color: inherit; font-weight: 700; }

.hero { min-height: 760px; height: 94vh; position: relative; color: white; overflow: hidden; }
.hero > img { height: 100%; object-fit: cover; object-position: center; transform: scale(1.035); animation: hero-visit 24s ease-in-out infinite alternate; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,28,22,.82) 0%, rgba(11,28,22,.37) 48%, rgba(11,28,22,.05) 78%), linear-gradient(0deg, rgba(11,28,22,.5), transparent 35%); }
.hero-copy { position: absolute; left: clamp(24px, 7vw, 112px); top: 48%; transform: translateY(-46%); max-width: 720px; }
.eyebrow { margin: 0 0 18px; font-size: .74rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: var(--green-dark); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
h1 { font-size: clamp(3.3rem, 7vw, 7rem); }
h2 { font-size: clamp(2.45rem, 4.5vw, 4.7rem); }
.hero-intro { max-width: 570px; margin: 28px 0 32px; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ochre); color: var(--ink); }
.button-dark { background: var(--ink); color: white; width: 100%; }
.hero-facts { position: absolute; left: clamp(24px, 7vw, 112px); right: clamp(24px, 5vw, 80px); bottom: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 50px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.28); }
.hero-facts span { max-width: 245px; font-size: .76rem; line-height: 1.45; color: rgba(255,255,255,.78); }
.hero-facts strong { display: block; color: white; font-size: .92rem; }

.section { padding: clamp(78px, 10vw, 150px) clamp(24px, 7vw, 112px); }
.intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(55px, 8vw, 130px); align-items: start; }
.intro h2 { max-width: 900px; }
.intro-text { max-width: 520px; border-left: 1px solid var(--line); padding-left: 36px; }
.intro-text p { margin: 0 0 18px; }

.gallery { padding-top: 30px; }
.section-heading { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading > p { max-width: 320px; margin: 0; color: #58645f; }
.gallery-group + .gallery-group { margin-top: 52px; }
.gallery-group h3 { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--green-dark); font: 400 1.35rem/1.2 var(--serif); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 270px; gap: 16px; }
.photo { grid-column: span 4; position: relative; padding: 0; border: 0; overflow: hidden; background: #ddd; cursor: zoom-in; }
.photo-wide { grid-column: span 8; }
.photo-tall { grid-row: span 2; }
.gallery-grid-four .photo { grid-column: span 6; }
.photo img { height: 100%; object-fit: cover; transform: scale(1.045); animation: room-visit-left 18s ease-in-out infinite alternate; will-change: transform; }
.photo:nth-child(even) img { animation-name: room-visit-right; animation-duration: 21s; }
.photo:nth-child(3n) img { animation-delay: -7s; }
.photo:hover img { animation-play-state: paused; }
.photo span { position: absolute; left: 16px; bottom: 14px; padding: 7px 12px; color: white; background: rgba(20,32,27,.74); border-radius: 999px; font-size: .77rem; }

.details { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 860px; padding: 0; background: white; }
.details-image { overflow: hidden; }
.details-image img { height: 100%; object-fit: cover; transform: scale(1.04); animation: room-visit-right 22s ease-in-out infinite alternate; will-change: transform; }
.details-copy { padding: clamp(58px, 6vw, 100px); align-self: center; }
.details-copy h2 { max-width: 650px; }
.amenity-groups { margin-top: 45px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 38px; }
.amenity-group { border-top: 1px solid var(--line); padding-top: 16px; }
.amenity-heading { display: flex; align-items: baseline; gap: 12px; }
.amenity-heading span { color: var(--ochre); font: 1.08rem var(--serif); }
.amenity-heading strong { font-size: 1.02rem; }
.amenity-group ul { margin: 14px 0 0; padding: 0; list-style: none; color: #66706b; font-size: .88rem; line-height: 1.55; }
.amenity-group li { position: relative; padding-left: 14px; margin: 5px 0; }
.amenity-group li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--ochre); }
.access-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px; background: #f1eee6; border-left: 3px solid var(--ochre); }
.floor-badge { align-self: start; padding: 7px 11px; border: 1px solid rgba(22, 43, 35, .18); color: var(--green); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.access-card strong { display: block; margin-bottom: 7px; font-size: 1.02rem; }
.access-card p { margin: 3px 0; color: #5f6964; font-size: .88rem; line-height: 1.55; }

.booking { background: var(--green-dark); color: white; display: grid; grid-template-columns: 1fr minmax(340px, 480px); gap: clamp(60px, 11vw, 170px); align-items: center; }
.booking-copy h2 { max-width: 730px; }
.booking-copy > p:not(.eyebrow) { max-width: 610px; color: rgba(255,255,255,.76); }
.direct-benefit { display: flex; gap: 15px; margin-top: 36px; }
.direct-benefit span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.direct-benefit p { margin: 0; color: rgba(255,255,255,.72); }
.direct-benefit strong { color: white; }
.contact-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a { min-width: 235px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.27); transition: background .2s ease; }
.contact-links a:hover { background: rgba(255,255,255,.09); }
.contact-links small { display: block; color: rgba(255,255,255,.64); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-links strong { display: block; color: white; font-size: .94rem; }
.booking-card { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 48px); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.booking-card label { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.booking-card input, .booking-card select { width: 100%; min-height: 48px; margin-top: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); text-transform: none; letter-spacing: 0; }
.booking-card .button, .form-note, .form-message { grid-column: 1 / -1; }
.booking-direct-card h3 { margin: 5px 0 28px; max-width: 380px; font: 400 clamp(1.8rem, 3vw, 2.65rem)/1.05 var(--serif); letter-spacing: -.03em; }
.booking-card-kicker { margin: 0; color: var(--green-dark); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.contact-card-copy { margin: 0 0 28px; color: #606a65; }
.contact-card-actions { display: grid; gap: 13px; }
.contact-card-link { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--green-dark); font-size: .88rem; text-align: center; }
.contact-card-link:hover { color: var(--brand); }
.booking-form-card { display: block; }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.booking-fields .guest-field { grid-column: 1 / -1; }
.booking-form-card .button { width: 100%; }
.booking-steps { display: grid; gap: 0; margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.booking-steps li { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.booking-steps li > span:first-child { color: var(--ochre); font: 1rem var(--serif); }
.form-note { margin: 12px 0 0; text-align: center; color: #69716d; font-size: .78rem; }
.form-message { padding: 12px; margin: 0; background: #dfeae3; color: var(--green-dark); font-size: .86rem; }

footer { min-height: 180px; padding: 34px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 38px; border-top: 1px solid rgba(75,48,37,.13); font-size: .8rem; }
footer p { margin: 0; }
.footer-logo-shell { position: relative; display: block; width: 118px; height: 120px; overflow: hidden; }
.footer-logo-art { position: absolute; inset: 0; display: block; background: var(--brand); -webkit-mask: url("assets/romagnoli-logo-full-hd.png") center / contain no-repeat; mask: url("assets/romagnoli-logo-full-hd.png") center / contain no-repeat; clip-path: inset(0 0 8.5% 0); }
.footer-logo-shell small { position: absolute; z-index: 1; left: 0; right: 0; bottom: 1px; display: block; color: var(--brand); font: 700 .38rem/1 var(--sans); letter-spacing: .02em; text-align: center; }
.footer-codes { color: #59635f; line-height: 1.55; }
footer a:not(.brand):hover { text-decoration: underline; }
.cookie-settings-link { margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-banner { position: fixed; z-index: 30; left: 20px; right: 20px; bottom: 20px; max-width: 1040px; margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: #fff; color: var(--ink); border: 1px solid rgba(23,36,31,.14); box-shadow: 0 18px 60px rgba(9,22,17,.22); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 4px; font: 400 1.35rem/1.2 var(--serif); }
.cookie-banner p { max-width: 720px; margin: 0 0 5px; color: #4f5b55; font-size: .88rem; line-height: 1.5; }
.cookie-banner a { color: var(--green-dark); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-button { min-width: 110px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--green-dark); border-radius: 999px; cursor: pointer; font-weight: 750; }
.cookie-reject { background: white; color: var(--green-dark); }
.cookie-accept { background: var(--green-dark); color: white; }

.legal-page { min-height: 100vh; }
.legal-header { min-height: 106px; padding: 20px clamp(22px, 4vw, 68px); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: rgba(246,244,238,.98); border-bottom: 1px solid rgba(75,48,37,.13); }
.legal-actions { display: flex; align-items: center; gap: 18px; }
.legal-back { color: var(--green-dark); font-size: .9rem; font-weight: 700; }
.legal-back:hover { text-decoration: underline; }
.legal-main { padding: clamp(58px, 8vw, 110px) clamp(24px, 7vw, 112px) clamp(80px, 10vw, 140px); }
.legal-hero { max-width: 880px; margin-bottom: 52px; }
.legal-hero h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.legal-hero > p:last-child { max-width: 700px; margin: 24px 0 0; color: #59635f; font-size: 1.05rem; }
.legal-card { max-width: 980px; padding: clamp(30px, 5vw, 72px); background: white; border-top: 4px solid var(--ochre); box-shadow: 0 24px 70px rgba(23,36,31,.08); }
.legal-card section > p:first-child { margin-top: 0; color: #6a746f; font-size: .88rem; }
.legal-card h2 { margin: 46px 0 14px; font-family: var(--serif); font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
.legal-card h2:first-of-type { margin-top: 30px; }
.legal-card p, .legal-card li { color: #46514c; }
.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-owner { padding: 20px 24px; margin: 18px 0 0; background: var(--paper); border-left: 3px solid var(--green); }
.legal-owner p { margin: 2px 0; }
.legal-note { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; }
.legal-footer { min-height: auto; grid-template-columns: 1fr auto; }

.lightbox { width: min(94vw, 1200px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(7,13,10,.9); }
.lightbox img { max-height: 88vh; object-fit: contain; }
.close-lightbox { position: absolute; right: 0; top: -48px; border: 0; background: transparent; color: white; font-size: 2.2rem; cursor: pointer; }

@keyframes hero-visit {
  from { transform: scale(1.035) translate3d(-.35%, 0, 0); }
  to { transform: scale(1.075) translate3d(.55%, -.25%, 0); }
}

@keyframes room-visit-left {
  from { transform: scale(1.045) translate3d(-.55%, .15%, 0); }
  to { transform: scale(1.09) translate3d(.65%, -.3%, 0); }
}

@keyframes room-visit-right {
  from { transform: scale(1.045) translate3d(.55%, 0, 0); }
  to { transform: scale(1.09) translate3d(-.65%, -.3%, 0); }
}

@media (max-width: 900px) {
  .site-header { height: 90px; }
  .header-brand { gap: 10px; }
  .header-brand .logo-symbol { width: 44px; height: 48px; }
  .logo-wordmark-shell { width: 144px; height: 49px; }
  .logo-wordmark-shell .logo-wordmark { width: 144px; }
  .logo-wordmark-shell small { height: 10px; font-size: .4rem; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 90px; left: 0; right: 0; padding: 22px; background: var(--paper); flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  nav a { text-align: center; }
  .language-toggle { width: 100%; }
  .hero { height: 88vh; min-height: 680px; }
  .hero-shade { background: linear-gradient(90deg, rgba(11,28,22,.76), rgba(11,28,22,.2)), linear-gradient(0deg, rgba(11,28,22,.66), transparent 55%); }
  .hero-copy { top: 42%; }
  .hero-facts { left: 24px; right: 24px; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
  .intro, .details, .booking { grid-template-columns: 1fr; }
  .intro { align-items: start; }
  .details-image { height: 560px; }
  .gallery-grid { grid-auto-rows: 230px; }
  .photo, .photo-wide { grid-column: span 6; }
  .booking { gap: 50px; }
  footer { grid-template-columns: 1fr 1fr; gap: 18px 32px; }
}

@media (max-width: 600px) {
  .header-brand .logo-symbol { width: 39px; height: 42px; }
  .header-brand { gap: 9px; }
  .logo-wordmark-shell { width: 125px; height: 43px; }
  .logo-wordmark-shell .logo-wordmark { width: 125px; }
  .logo-wordmark-shell small { height: 9px; font-size: .35rem; }
  .hero { height: 820px; min-height: 820px; }
  h1 { font-size: clamp(3.15rem, 15vw, 4.6rem); }
  h2 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-copy { top: 39%; right: 24px; max-width: calc(100% - 48px); }
  .hero-copy .eyebrow {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: .68rem;
    line-height: 1.35;
    letter-spacing: .14em;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .hero-intro { font-size: 1rem; }
  .hero-facts span { font-size: .7rem; }
  .hero-facts strong { font-size: .82rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -24px; padding-right: 24px; }
  .photo { min-width: 82vw; height: 390px; scroll-snap-align: start; }
  .details-image { height: 430px; }
  .amenity-groups { grid-template-columns: 1fr; }
  .access-card { grid-column: 1; grid-template-columns: 1fr; }
  .booking-card { grid-template-columns: 1fr; }
  .booking-fields { grid-template-columns: 1fr; }
  .booking-fields .guest-field { grid-column: 1; }
  .booking-card label, .booking-card .button, .form-note, .form-message { grid-column: 1; }
  .contact-links { display: grid; }
  footer { grid-template-columns: 1fr; }
  .legal-header { min-height: 90px; }
  .legal-actions { gap: 10px; }
  .legal-back { font-size: .78rem; }
  .legal-main { padding-top: 48px; }
  .legal-card { padding: 28px 22px; }
  .legal-footer { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; grid-template-columns: 1fr; gap: 16px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-button { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .hero > img, .photo img, .details-image img { animation: none !important; transform: none !important; }
}
