:root {
  --museum-bg: #F5F3ED;
  --museum-surface: #EAE7DE;
  --museum-elevated: #FFFFFF;
  --museum-primary: #004090;
  --museum-primary-hover: #002F6B;
  --museum-secondary: #06294F;
  --museum-accent: #F3D900;
  --museum-accent-muted: #FBEEA6;
  --museum-green: #239F40;
  --museum-red: #DE3B3B;
  --museum-text: #14213D;
  --museum-text-muted: #4A5568;
  --museum-text-light: #8A93A3;
  --museum-border: #DCD7C9;
  --museum-border-dark: #B7B1A1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  background-color: var(--museum-bg);
  color: var(--museum-text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; }

#app { min-height: 100vh; font-size: 1rem; }
#app.hc {
  --museum-bg: #FFFFFF; --museum-surface: #FFFFFF; --museum-elevated: #FFFFFF;
  --museum-text: #000000; --museum-text-muted: #1a1a1a; --museum-text-light: #333333;
  --museum-border: #000000; --museum-primary: #003377;
  background-color: #fff;
}

.font-display { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Cormorant Garamond', serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.paper-grain {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 64, 144, 0.04) 1px, transparent 0);
  background-size: 22px 22px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

svg.ico { width: 1.4em; height: 1.4em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Animations ---------- */
@keyframes touch-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .82; } }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

.anim-fade { animation: fade-in .6s ease both; }
.anim-up { animation: slide-up .55s ease both; }
.pulse { animation: touch-pulse 2.4s ease-in-out infinite; }
.slow-zoom { animation: slow-zoom 18s ease-in-out infinite alternate; }

.press { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.press:active { transform: scale(.965); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--museum-border-dark); border-radius: 10px; }
::selection { background: var(--museum-accent-muted); color: var(--museum-text); }

/* ========== ATTRACT ========== */
.attract {
  position: fixed; inset: 0; overflow: hidden; cursor: pointer; user-select: none;
  background-color: #06141F;
}
.attract .bg { position: absolute; inset: 0; transition: opacity 2s ease; opacity: 0; }
.attract .bg.active { opacity: 1; }
.attract .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.attract .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,41,.6) 0%, rgba(6,20,41,.4) 40%, rgba(6,20,41,.88) 100%);
}
.attract .content {
  position: relative; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2rem;
}
.attract .tagline { color: #F3D900; margin-bottom: 2rem; }
.attract .logo-card {
  background: #fff; border-radius: 1rem; padding: 2rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
}
.attract .logo-card img { width: 7.8rem; height: auto; margin: 0 auto; }
.attract .subtitle { margin-top: 2.5rem; color: rgba(255,255,255,.9); font-size: 1.5rem; letter-spacing: .02em; }
.attract .touch {
  margin-top: 3.5rem; display: inline-flex; align-items: center; gap: 1rem;
  border: 1px solid rgba(243,217,0,.6); background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px); border-radius: 999px; padding: 1.5rem 2.5rem;
}
.attract .touch .dot { width: .75rem; height: .75rem; border-radius: 50%; background: #F3D900; }
.attract .touch span.label { color: #fff; font-size: 1.15rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.attract .langs { position: absolute; bottom: 2.5rem; left: 0; right: 0; display: flex; justify-content: center; gap: .75rem; }
.attract .caption {
  position: absolute; bottom: 6.5rem; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.85); font-size: 1.15rem; font-style: italic; letter-spacing: .02em;
  padding: 0 2rem; transition: opacity .4s ease; text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.attract .langs button {
  border-radius: 999px; padding: .75rem 1.5rem; font-size: 1rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: rgba(255,255,255,.8);
}
.attract .langs button.active { background: #F3D900; color: #06294F; border-color: #F3D900; }

@media (min-width: 768px) {
  .attract .logo-card { padding: 3rem 4rem; }
  .attract .logo-card img { width: 10.8rem; }
  .attract .subtitle { font-size: 1.875rem; }
  .attract .touch { padding: 1.75rem 3.5rem; }
  .attract .touch span.label { font-size: 1.5rem; }
}

/* ========== KIOSK SHELL ========== */
.kiosk { display: flex; flex-direction: column; min-height: 100vh; }
.header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--museum-border); background: var(--museum-elevated);
}
.header .logo { display: flex; align-items: center; }
.header .logo img { height: 3rem; width: auto; }
.header .nav { display: flex; align-items: center; gap: .5rem; }
.btn-pill {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .75rem 1.25rem; font-size: 1rem; font-weight: 500; border: 1px solid var(--museum-border);
  color: var(--museum-text); background: transparent;
}
.btn-pill.active { background: var(--museum-primary); border-color: var(--museum-primary); color: #fff; }
.btn-pill .txt { display: none; }
.main { flex: 1; }

@media (min-width: 768px) {
  .header { padding: 1rem 2.5rem; }
  .header .logo img { height: 3.5rem; }
  .header .nav { gap: .75rem; }
  .btn-pill { padding: .75rem 1.25rem; }
  .btn-pill .txt { display: inline; }
}

.container { max-width: 1500px; margin: 0 auto; padding: 2.5rem 1.5rem; }
@media (min-width: 768px) { .container { padding: 4rem 3rem; } }

/* ========== HOME / CATEGORY HUB ========== */
.welcome { margin-bottom: 3.5rem; border-left: 4px solid var(--museum-primary); padding-left: 1.5rem; }
.welcome .eyebrow { color: var(--museum-primary); margin-bottom: 1rem; }
.welcome h2 { font-family: 'Playfair Display', serif; font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.75rem; max-width: 56rem; }
.welcome .paras { display: grid; gap: 1.5rem; max-width: 72rem; }
.welcome .paras p { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; line-height: 1.7; color: var(--museum-text-muted); }
.welcome .paras p.lead { font-size: 1.35rem; color: var(--museum-text); }

.hub-head { max-width: 48rem; margin-bottom: 3rem; }
.hub-head .eyebrow { color: var(--museum-primary); margin-bottom: 1rem; }
.hub-head h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; line-height: 1.05; margin-bottom: 1.25rem; }
.hub-head h2 .it { font-style: italic; color: var(--museum-primary); }
.hub-head p { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--museum-text-muted); }

.cat-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.cat-card {
  position: relative; overflow: hidden; border-radius: 2px; text-align: left;
  border: 1px solid var(--museum-border); min-height: 260px; display: block; width: 100%;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform .7s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,41,.15) 0%, rgba(6,20,41,.55) 55%, rgba(6,20,41,.92) 100%); }
.cat-card .body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; }
.cat-card .badge { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; margin-bottom: 1.25rem; }
.cat-card .badge svg { width: 1.75rem; height: 1.75rem; }
.cat-card h3 { font-family: 'Playfair Display', serif; color: #fff; line-height: 1.1; font-size: 1.5rem; }
.cat-card .tag { margin-top: .75rem; color: rgba(255,255,255,.8); font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; }
.cat-card .more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; color: #F3D900; font-weight: 500; }
.cat-card .more svg { transition: transform .3s ease; }
.cat-card:hover .more svg { transform: translateX(4px); }

@media (min-width: 768px) {
  .welcome { margin-bottom: 5rem; padding-left: 2.5rem; }
  .welcome h2 { font-size: 3.75rem; }
  .welcome .paras { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .welcome .paras p { font-size: 1.25rem; }
  .welcome .paras p.lead { grid-column: 1 / -1; font-size: 1.5rem; }
  .hub-head h2 { font-size: 3rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .cat-card h3 { font-size: 1.875rem; }
  .cat-card.featured { grid-column: span 2; min-height: 320px; }
  .cat-card.featured h3 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card.featured { grid-column: span 2; grid-row: span 2; min-height: 560px; }
  .cat-card.featured h3 { font-size: 3rem; }
}

/* ========== GALLERY ========== */
.gal-top { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.gal-title-row { display: flex; align-items: center; gap: 1rem; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1px solid var(--museum-border); color: var(--museum-text); }
.gal-title h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; }
.gal-title .count { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--museum-text-light); }
.search {
  display: flex; align-items: center; gap: .75rem; border-radius: 999px; border: 1px solid var(--museum-border);
  padding: .75rem 1.25rem; background: var(--museum-elevated); width: 100%;
}
.search svg { color: var(--museum-text-light); }
.search input { flex: 1; background: transparent; border: none; outline: none; font-size: 1.1rem; color: var(--museum-text); }
.tabs { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.tab { border-radius: 999px; padding: .75rem 1.5rem; font-size: 1rem; font-weight: 500; border: 1px solid var(--museum-border); color: var(--museum-text-muted); background: var(--museum-elevated); }
.tab.active { background: var(--museum-secondary); border-color: var(--museum-secondary); color: #fff; }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card { text-align: left; border-radius: 2px; overflow: hidden; border: 1px solid var(--museum-border); background: var(--museum-elevated); display: flex; flex-direction: column; width: 100%; }
.card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); transition: transform .7s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .type { position: absolute; top: 1rem; left: 1rem; display: flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .375rem .75rem; background: rgba(6,20,41,.65); backdrop-filter: blur(6px); }
.card .type svg { width: 1rem; height: 1rem; color: #F3D900; }
.card .type span { color: #fff; font-size: .7rem; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; }
.card .playwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card .play { display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(0,64,144,.92); backdrop-filter: blur(4px); transition: transform .3s ease; }
.card:hover .play { transform: scale(1.1); }
.card .play svg { width: 1.75rem; height: 1.75rem; color: #fff; fill: #fff; margin-left: 3px; }
.card .info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card .meta-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.card .year { font-family: 'JetBrains Mono', monospace; font-size: .75rem; padding: .25rem .5rem; border-radius: 4px; background: var(--museum-accent-muted); color: var(--museum-text); }
.card .dur { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--museum-text-light); }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; line-height: 1.15; margin-bottom: .5rem; }
.card .desc { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--museum-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 6rem 0; text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--museum-text-light); }

@media (min-width: 768px) {
  .gal-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { width: 24rem; }
  .gal-title h2 { font-size: 2.25rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ========== DETAIL MODAL ========== */
.overlay-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: stretch; justify-content: center; background: rgba(6,20,41,.78); animation: fade-in .3s ease both; }
.modal { position: relative; width: 100%; max-width: 64rem; max-height: 100%; overflow-y: auto; background: var(--museum-bg); animation: modal-in .35s ease both; }
.modal .close { position: sticky; top: 1rem; float: right; margin: 1rem 1rem 0 0; z-index: 10; display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--museum-secondary); }
.modal .close svg { color: #fff; width: 1.75rem; height: 1.75rem; }
.modal .pad { padding: 1.5rem; }
.modal .cat { color: var(--museum-primary); margin-bottom: 1rem; }
.modal h2 { font-family: 'Playfair Display', serif; font-size: 2rem; line-height: 1.05; margin-bottom: 1.5rem; }
.media { margin-bottom: 2rem; }
.media video, .media .ytwrap, .media .audio-poster, .media .imgviewer { border-radius: 2px; overflow: hidden; }
.media video { width: 100%; background: #000; }
.ytwrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.ytwrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio-poster { position: relative; aspect-ratio: 16/9; }
.audio-poster img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); }
.audio-poster .veil { position: absolute; inset: 0; background: rgba(6,20,41,.4); display: flex; align-items: center; justify-content: center; }
.audio-poster .veil svg { width: 4rem; height: 4rem; color: rgba(255,255,255,.7); }
.pbar { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.pbar .pp { display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--museum-primary); flex-shrink: 0; }
.pbar .pp svg { width: 2rem; height: 2rem; color: #fff; fill: #fff; }
.pbar .track-wrap { flex: 1; }
.pbar .track { height: .75rem; border-radius: 999px; background: var(--museum-border); cursor: pointer; overflow: hidden; }
.pbar .track .fill { height: 100%; border-radius: 999px; background: var(--museum-accent); width: 0%; }
.pbar .times { display: flex; justify-content: space-between; margin-top: .5rem; font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--museum-text-muted); }

.imgviewer { position: relative; background: #06141F; }
.imgviewer .frame { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.imgviewer .frame img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s ease; transform: scale(1); }
.imgviewer .zoom { position: absolute; bottom: 1rem; right: 1rem; display: flex; gap: .5rem; }
.imgviewer .zoom button { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.9); }
.imgviewer .zoom button svg { color: #14213D; width: 1.5rem; height: 1.5rem; }

.meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--museum-border); }
.meta .item { display: flex; align-items: center; gap: .75rem; }
.meta .item svg { color: var(--museum-accent); width: 1.25rem; height: 1.25rem; }
.meta .k { font-family: 'JetBrains Mono', monospace; font-size: .625rem; text-transform: uppercase; color: var(--museum-text-light); }
.meta .v { font-size: 1rem; font-weight: 500; }
.modal .body-text { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; line-height: 1.65; color: var(--museum-text-muted); margin-bottom: 2rem; }
.transcript { border-radius: 2px; padding: 1.5rem; margin-bottom: 2rem; border-left: 4px solid var(--museum-primary); background: var(--museum-surface); }
.transcript .eyebrow { color: var(--museum-primary); margin-bottom: 1rem; }
.transcript p { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; line-height: 1.65; font-style: italic; color: var(--museum-text); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span { border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; font-weight: 500; background: var(--museum-accent-muted); color: var(--museum-text); }

@media (min-width: 768px) {
  .overlay-modal { align-items: center; padding: 2rem; }
  .modal { border-radius: 2px; }
  .modal .pad { padding: 3rem; }
  .modal h2 { font-size: 3rem; }
  .modal .body-text, .transcript p { font-size: 1.5rem; }
}

/* ========== PALAZZO INFO ========== */
.palazzo .hero { position: relative; height: 42vh; min-height: 320px; overflow: hidden; }
.palazzo .hero > img { width: 100%; height: 100%; object-fit: cover; }
.palazzo .hero .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,41,.45) 0%, rgba(6,20,41,.9) 100%); }
.palazzo .hero .inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; max-width: 1500px; margin: 0 auto; width: 100%; }
.palazzo .hero .back { align-self: flex-start; margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.25rem; font-weight: 500; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.palazzo .hero .loc { color: #F3D900; margin-bottom: .75rem; }
.palazzo .hero h2 { font-family: 'Playfair Display', serif; font-size: 2.25rem; color: #fff; line-height: 1.1; }
.palazzo .cols { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 1500px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.palazzo .story p { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; line-height: 1.7; color: var(--museum-text-muted); margin-bottom: 1.5rem; }
.pcards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
.pcard { text-align: left; border-radius: 2px; overflow: hidden; border: 1px solid var(--museum-border); background: var(--museum-elevated); width: 100%; }
.pcard .t { aspect-ratio: 16/10; overflow: hidden; }
.pcard .t img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .7s ease; }
.pcard:hover .t img { transform: scale(1.05); }
.pcard .b { padding: 1.25rem; }
.pcard h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; line-height: 1.1; }
.pcard .y { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-top: .25rem; color: var(--museum-text-muted); }
.side .box { border-radius: 2px; padding: 1.75rem; border: 1px solid var(--museum-border); background: var(--museum-surface); margin-bottom: 2rem; }
.side .box .ttl { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.side .box .ttl svg { color: var(--museum-primary); }
.side .box .ttl .eyebrow { color: var(--museum-text); }
.side .row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--museum-border); }
.side .row:last-child { border-bottom: none; }
.side .row .d { font-weight: 500; }
.side .row .h { color: var(--museum-text-muted); }
.side .addr .a1 { font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.side .addr .a2 { font-size: 1.1rem; color: var(--museum-text-muted); }
.side .addr .top { display: flex; gap: .75rem; align-items: flex-start; }
.side .addr .top svg { color: var(--museum-primary); margin-top: 4px; }
.side .contact { display: flex; align-items: center; gap: .75rem; color: var(--museum-text-muted); margin-bottom: .75rem; }
.side .contact svg { color: var(--museum-accent); }

@media (min-width: 640px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .palazzo .hero .inner { padding: 3rem; }
  .palazzo .hero h2 { font-size: 3.75rem; }
  .palazzo .cols { grid-template-columns: 2fr 1fr; padding: 3.5rem 3rem; }
}

/* ========== MENU SHEET ========== */
.sheet-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(6,20,41,.5); animation: fade-in .25s ease both; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: 90%; max-width: 28rem; background: var(--museum-bg); border-left: 1px solid var(--museum-border); animation: sheet-in .3s ease both; overflow-y: auto; }
.sheet .sh-head { padding: 2rem 2rem 1rem; border-bottom: 1px solid var(--museum-border); display: flex; align-items: center; justify-content: space-between; }
.sheet .sh-head h3 { font-family: 'Playfair Display', serif; font-size: 1.875rem; }
.sheet .sh-body { padding: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.sheet .grp .ghead { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.sheet .grp .ghead svg { color: var(--museum-primary); }
.sheet .grp .ghead .eyebrow { color: var(--museum-text); }
.sheet .lang-row { display: flex; gap: .75rem; }
.sheet .lang-row button { flex: 1; border-radius: 999px; padding: 1rem; font-weight: 500; border: 1px solid var(--museum-border); color: var(--museum-text); }
.sheet .lang-row button.active { background: var(--museum-primary); border-color: var(--museum-primary); color: #fff; }
.sheet .font-row { display: flex; align-items: center; gap: .75rem; }
.sheet .font-row button { flex: 1; height: 3.5rem; border-radius: 999px; border: 1px solid var(--museum-border); color: var(--museum-text); font-weight: 700; font-size: 1.25rem; }
.sheet .font-row .pct { width: 4rem; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--museum-text-muted); }
.sheet .ctoggle { width: 100%; display: flex; align-items: center; justify-content: space-between; border-radius: 999px; padding: 1rem 1.5rem; font-weight: 500; border: 1px solid var(--museum-border); color: var(--museum-text); }
.sheet .ctoggle.active { background: var(--museum-secondary); border-color: var(--museum-secondary); color: #fff; }
.sheet .ctoggle .sw { width: 3rem; height: 1.75rem; border-radius: 999px; position: relative; background: var(--museum-border); transition: background .2s ease; }
.sheet .ctoggle.active .sw { background: var(--museum-accent); }
.sheet .ctoggle .sw .knob { position: absolute; top: 4px; left: 4px; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; transition: left .2s ease; }
.sheet .ctoggle.active .sw .knob { left: 26px; }

/* ========== IDLE ========== */
.idle-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 2rem; background: rgba(6,20,41,.82); animation: fade-in .3s ease both; }
.idle { width: 100%; max-width: 32rem; border-radius: 2px; padding: 2.5rem; text-align: center; background: var(--museum-bg); animation: modal-in .35s ease both; }
.idle .ring { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 50%; margin: 0 auto 1.5rem; background: var(--museum-accent-muted); }
.idle .ring svg { color: var(--museum-primary); width: 2.5rem; height: 2.5rem; }
.idle h3 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: .75rem; }
.idle p { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-bottom: 2rem; color: var(--museum-text-muted); }
.idle p b { color: var(--museum-primary); }
.idle .acts { display: flex; gap: 1rem; }
.idle .acts button { flex: 1; border-radius: 999px; padding: 1.25rem; font-size: 1.1rem; font-weight: 500; }
.idle .acts .stay { background: var(--museum-primary); color: #fff; }
.idle .acts .reset { border: 1px solid var(--museum-border); color: var(--museum-text); }

.hidden { display: none !important; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem; background: var(--museum-secondary); color: #fff;
  border-top: 3px solid var(--museum-accent); box-shadow: 0 -8px 30px rgba(6,20,41,.4);
  animation: slide-up .5s ease both;
}
.cookie-banner .txt { flex: 1 1 340px; max-width: 60rem; font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.9); }
.cookie-banner .txt b { color: #F3D900; }
.cookie-banner .acts { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-banner .acts button { border-radius: 999px; padding: .75rem 1.75rem; font-size: 1rem; font-weight: 600; }
.cookie-banner .acts .accept { background: var(--museum-accent); color: #06294F; }
.cookie-banner .acts .reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; text-align: center; } }

.cookie-fab {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 69;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--museum-secondary); color: #F3D900;
  border: 2px solid var(--museum-accent); box-shadow: 0 6px 20px rgba(6,20,41,.35);
  animation: fade-in .4s ease both; transition: transform .15s ease;
}
.cookie-fab:active { transform: scale(.9); }
.cookie-fab svg { width: 1.6rem; height: 1.6rem; }
