:root {
  --petrol: #0d6268;
  --petrol-dark: #073f44;
  --powder: #9bbbc0;
  --ivory: #f6f2ea;
  --paper: #fffdf8;
  --ink: #172b2d;
  --muted: #607274;
  --gold: #b98b4b;
  --line: rgba(13, 98, 104, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 18px clamp(24px, 5vw, 76px); color: #fff; transition: background .35s, box-shadow .35s, min-height .35s; }
.site-header.is-scrolled { min-height: 72px; background: rgba(7, 63, 68, .96); box-shadow: 0 10px 35px rgba(0, 0, 0, .14); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand img { width: 46px; height: 62px; flex: 0 0 46px; object-fit: cover; border-radius: 2px; box-shadow: 0 5px 16px rgba(0, 0, 0, .16); }
.brand span { font-family: var(--serif); font-size: clamp(1.05rem, 1.55vw, 1.38rem); font-weight: 600; letter-spacing: .015em; white-space: nowrap; }
.brand em { color: var(--powder); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); }
.site-nav > a { position: relative; color: rgba(255,255,255,.86); text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.site-nav > a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: #fff; transition: width .25s; }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { width: 100%; }
.site-nav .back-link { padding: 9px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.site-nav .back-link::after { display: none; }
.language-switch { display: flex; align-items: center; gap: 7px; }
.language-switch button { padding: 0; border: 0; color: rgba(255,255,255,.55); background: none; cursor: pointer; font-size: .72rem; font-weight: 600; }
.language-switch button.active { color: #fff; }
.language-switch span { width: 1px; height: 12px; background: rgba(255,255,255,.35); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 5px auto; background: #fff; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 160px clamp(24px, 10vw, 150px) clamp(85px, 12vh, 130px); overflow: hidden; color: #fff; background: var(--petrol-dark) url("../images/palazzo-background.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 34, 37, .88) 0%, rgba(3,34,37,.58) 50%, rgba(3,34,37,.22) 100%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.34), transparent 48%); }
.hero-content { position: relative; z-index: 1; max-width: 890px; }
.eyebrow { margin: 0 0 18px; color: var(--petrol); font-size: .73rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.hero .eyebrow, .visit-section .eyebrow { color: #d6e7e8; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 500; line-height: .98; }
h1 { margin-bottom: 28px; font-size: clamp(4rem, 9vw, 8.8rem); letter-spacing: -.045em; }
h1 span { display: block; margin-left: clamp(0px, 8vw, 120px); color: var(--powder); font-style: italic; font-weight: 400; }
.hero-intro { max-width: 650px; margin: 0 0 34px; color: rgba(255,255,255,.82); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--petrol-dark); background: #fff; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.48); }
.button-light { color: var(--petrol-dark); background: #fff; }
.scroll-cue { position: absolute; z-index: 2; right: clamp(24px, 5vw, 76px); bottom: 55px; width: 34px; height: 54px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 11px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { transform: translate(-50%, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, 22px); opacity: 0; } }

.section { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(90px, 12vw, 170px) clamp(24px, 5vw, 70px); }
.intro-section { display: grid; grid-template-columns: .3fr 1.2fr .75fr; align-items: center; gap: clamp(30px, 7vw, 90px); }
.section-number { align-self: start; color: var(--powder); font-family: var(--serif); font-size: clamp(4rem, 10vw, 9rem); line-height: 1; opacity: .55; }
.section-copy h2, .section-heading h2, .gallery-panel h2, .visit-content h2 { margin-bottom: 30px; font-size: clamp(2.8rem, 5.8vw, 5.5rem); letter-spacing: -.035em; }
.section-copy p:not(.eyebrow), .section-heading > p:last-child, .gallery-panel > p:not(.eyebrow) { color: var(--muted); }
.portrait-card { margin: 0; padding: 16px; background: var(--paper); box-shadow: 0 24px 70px rgba(24, 58, 60, .12); transform: rotate(1.5deg); }
.portrait-card img { width: 100%; }

.spaces-section { max-width: none; padding-inline: clamp(24px, 7vw, 110px); background: var(--paper); }
.section-heading { max-width: 780px; margin-bottom: 65px; }
.section-heading > p:last-child { max-width: 620px; font-size: 1.05rem; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.story-card { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; min-height: 530px; background: var(--ivory); overflow: hidden; }
.story-card-wide { grid-column: 1 / -1; grid-template-columns: minmax(270px, .72fr) 1.28fr; min-height: 580px; }
.story-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-card-photo-pair { display: flex; flex-direction: column; }
.story-card-photo-pair .story-card-media { display: grid; grid-template-columns: 1.45fr 1fr; height: 255px; padding: 0; overflow: hidden; background: var(--powder); }
.story-card-photo-pair .story-card-media img { min-width: 0; }
.story-card-photo-pair > div:last-child { flex: 1; }
.story-card > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 70px); }
.story-card span { color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .18em; }
.story-card h3 { margin: 22px 0; color: var(--petrol-dark); font-size: clamp(2.2rem, 4vw, 4rem); }
.story-card p { margin: 0; color: var(--muted); }

.gallery-story { display: grid; grid-template-columns: 1.2fr .65fr; align-items: center; gap: clamp(40px, 9vw, 130px); }
.gallery-panel { padding: clamp(35px, 6vw, 85px); border-left: 1px solid var(--line); }
.gallery-image { margin: 0; padding: 14px; background: var(--powder); box-shadow: 0 24px 70px rgba(24, 58, 60, .14); }
.gallery-image img { width: 100%; }
.text-link { display: inline-block; margin-top: 22px; color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 6px; font-size: .77rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }

.visit-section { position: relative; min-height: 760px; display: grid; place-items: center; padding: 100px 24px; color: #fff; background: var(--petrol-dark) url("../images/palazzo-background.jpg") center/cover fixed no-repeat; }
.visit-backdrop { position: absolute; inset: 0; background: rgba(3, 49, 52, .82); }
.visit-content { position: relative; z-index: 1; width: min(940px, 100%); text-align: center; }
.visit-content > p:not(.eyebrow) { max-width: 650px; margin: 0 auto 38px; color: rgba(255,255,255,.75); }
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 40px; border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); text-align: left; }
.contact-list a { min-height: 105px; padding: 22px 26px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; transition: background .2s; }
.contact-list a:hover { background: rgba(255,255,255,.08); }
.contact-list span { display: block; margin-bottom: 5px; color: var(--powder); font-size: .67rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.site-footer { min-height: 100px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 70px); padding: 25px; color: rgba(255,255,255,.67); background: #052f32; font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer a { color: rgba(255,255,255,.8); text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .menu-toggle { display: block; cursor: pointer; }
  .site-nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 90px 10vw; background: var(--petrol-dark); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .site-nav.is-open { z-index: -1; opacity: 1; visibility: visible; }
  .site-nav > a { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 400; letter-spacing: 0; text-transform: none; }
  .site-nav .back-link { margin-top: 10px; font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
  .language-switch { margin-top: 12px; }
  .intro-section { grid-template-columns: .2fr 1fr; }
  .portrait-card { grid-column: 2; max-width: 450px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; padding-inline: 20px; }
  .brand { gap: 9px; }
  .brand img { width: 39px; height: 53px; flex-basis: 39px; }
  .brand span { font-size: .98rem; white-space: normal; line-height: 1.05; }
  .hero { min-height: 860px; align-items: center; padding: 125px 24px 80px; }
  h1 { font-size: clamp(3.6rem, 17vw, 5.7rem); }
  h1 span { margin-left: 0; }
  .scroll-cue { display: none; }
  .intro-section { display: block; }
  .section-number { margin-bottom: 25px; font-size: 5rem; }
  .portrait-card { max-width: 380px; margin: 45px auto 0; }
  .story-grid, .gallery-story { grid-template-columns: 1fr; }
  .story-card, .story-card-wide { grid-column: auto; grid-template-columns: 1fr; }
  .story-card img { height: min(115vw, 600px); object-fit: contain; background: var(--powder); }
  .story-card-photo-pair .story-card-media { height: 230px; grid-template-columns: 1.45fr 1fr; }
  .story-card-photo-pair .story-card-media img { height: 100%; object-fit: cover; }
  .gallery-panel { padding-inline: 0; border-left: 0; }
  .gallery-image { max-width: 390px; margin: 0 auto; }
  .contact-list { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 10px; text-align: center; }
  .visit-section { background-attachment: scroll; }
}

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