:root {
  --bg: #f1eae1;
  --bg-soft: #f7f2eb;
  --surface: #fbf8f3;
  --ink: #24211e;
  --muted: #746c64;
  --accent: #7b3038;
  --accent-dark: #562129;
  --olive: #69705a;
  --sand: #c7aa83;
  --line: rgba(36, 33, 30, .16);
  --line-strong: rgba(36, 33, 30, .28);
  --shadow: 0 30px 80px rgba(47, 37, 29, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1280px, calc(100vw - 64px));
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(123, 48, 56, .18); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10000; transform: translateY(-150%); padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; }
.skip-link:focus { transform: translateY(0); }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-watermark { position: fixed; z-index: 0; top: 4vh; right: -8vw; width: min(70vw, 850px); height: min(92vh, 960px); pointer-events: none; opacity: var(--watermark-opacity); overflow: hidden; mix-blend-mode: multiply; }
.site-watermark img { width: 100%; height: 100%; object-fit: contain; transform: translate(var(--watermark-x), var(--watermark-y)) scale(var(--watermark-scale)) rotate(var(--watermark-rotation)); transform-origin: center; filter: grayscale(1) contrast(1.15); }
.site-header, main, .site-footer { position: relative; z-index: 1; }

.preview-bar { position: relative; z-index: 200; display: flex; justify-content: center; gap: 8px; padding: 8px 20px; background: var(--accent); color: #fff; font-size: .82rem; letter-spacing: .04em; }
.preview-bar a { text-decoration: underline; }

 .site-header { position: sticky; z-index: 120; top: 0; width: 100%; height: var(--header-h); margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 8px 26px rgba(42,32,25,.04); transition: height .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { height: 72px; background: var(--bg); box-shadow: 0 10px 30px rgba(42,32,25,.08); }
.site-header__inner { width: var(--shell); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { position: relative; display: block; width: 48px; height: 48px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.brand-mark img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: contain; transform: translate(var(--header-logo-x), var(--header-logo-y)) scale(var(--header-logo-scale)) rotate(var(--header-logo-rotation)); transform-origin: center; filter: grayscale(1) contrast(1.2); }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; }
.brand-wordmark small { margin-top: 6px; color: var(--muted); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 38px; color: var(--muted); font-size: .9rem; font-weight: 620; letter-spacing: .01em; transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .25s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-highlighted { min-height: 40px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); }
.nav-link.is-highlighted::after { display: none; }
.nav-link.is-highlighted:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 4px 0; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 90; inset: 0; display: flex; visibility: hidden; opacity: 0; flex-direction: column; justify-content: center; padding: 120px max(24px, 7vw) 38px; background: var(--ink); color: var(--bg-soft); transition: opacity .3s ease, visibility .3s ease; }
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.18); }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--serif); font-size: clamp(2rem, 8vw, 4.5rem); line-height: 1.1; }
.mobile-nav-link.is-highlighted { color: #dfb4b8; }
.mobile-nav-link span { font-family: var(--sans); font-size: 1.1rem; }
.mobile-menu__footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 28px; color: rgba(255,255,255,.56); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.eyebrow, .editorial-kicker, .footer-eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .035em; transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-dark); }
.button--outline { border-color: var(--line-strong); background: rgba(255,255,255,.25); }
.button--outline:hover { border-color: var(--ink); }
.button--text { padding-inline: 6px; color: var(--ink); }
.text-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.text-arrow span { transition: transform .2s ease; }
a:hover .text-arrow span, .text-arrow:hover span { transform: translate(3px, -3px); }

.home-hero { width: var(--shell); min-height: calc(100svh - var(--header-h)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: clamp(54px, 8vw, 120px); padding: 70px 0 96px; }
.home-hero__copy { position: relative; z-index: 2; max-width: 720px; }
.home-hero h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(3.6rem, 7vw, var(--hero-title-max)); font-weight: 500; letter-spacing: -.055em; line-height: .94; }
.hero-lead { max-width: 620px; margin: 32px 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; }
.hero-portrait-wrap { position: relative; width: min(44vw, 560px); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; }
.hero-portrait-circle { position: relative; z-index: 2; width: 78%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(251,248,243,.75); box-shadow: var(--shadow); }
.hero-portrait-circle::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 70px rgba(90, 67, 50, .08); pointer-events: none; }
.hero-portrait-circle img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: contain; transform: translate(var(--hero-portrait-x), var(--hero-portrait-y)) scale(var(--hero-portrait-scale)) rotate(var(--hero-portrait-rotation)); transform-origin: center; filter: grayscale(1) contrast(1.15); }
.hero-orbit { position: absolute; border: 1px solid rgba(123,48,56,.25); border-radius: 50%; }
.hero-orbit--one { inset: 3%; animation: orbitPulse 8s ease-in-out infinite; }
.hero-orbit--two { inset: 13% -3%; border-color: rgba(105,112,90,.25); animation: orbitPulse 10s ease-in-out infinite reverse; }
.hero-signature { position: absolute; z-index: 3; right: 2%; bottom: 10%; padding: 8px 16px; background: var(--bg); color: var(--accent); font-family: var(--serif); font-size: 2rem; }
@keyframes orbitPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }

.page-content--home { width: 100%; }
.editorial-intro { width: var(--shell); margin: 0 auto; padding: clamp(90px, 12vw, 170px) 0; display: grid; grid-template-columns: minmax(180px,.38fr) minmax(0,1fr); gap: 30px 8vw; border-top: 1px solid var(--line); }
.editorial-intro .editorial-kicker { grid-column: 1; }
.editorial-intro h2 { grid-column: 2; margin: 0; max-width: 900px; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.03; }
.editorial-copy { grid-column: 2; max-width: 660px; margin: 20px 0 0; color: var(--muted); font-size: 1.15rem; }
.feature-links { width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-link { position: relative; min-height: 430px; padding: clamp(32px, 4vw, 58px); display: flex; flex-direction: column; border-right: 1px solid var(--line); overflow: hidden; transition: background .3s ease, color .3s ease; }
.feature-link:last-child { border-right: 0; }
.feature-link::after { content: ""; position: absolute; width: 180px; aspect-ratio: 1; right: -90px; bottom: -100px; border: 1px solid currentColor; border-radius: 50%; opacity: .18; transition: transform .45s ease; }
.feature-link:hover { background: var(--ink); color: var(--bg-soft); }
.feature-link:hover::after { transform: translate(-25px,-30px) scale(1.2); }
.feature-link__eyebrow { color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.feature-link h3 { margin: 28px 0 18px; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 4.2rem); font-weight: 500; letter-spacing: -.04em; }
.feature-link p { margin: 0; color: var(--muted); transition: color .3s ease; }
.feature-link:hover p { color: rgba(255,255,255,.65); }
.feature-link .text-arrow { margin-top: auto; padding-top: 32px; }
.latest-bandi { padding: clamp(100px, 12vw, 170px) 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 48px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.bandi-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.bando-preview { min-height: 330px; padding: 32px 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.bando-preview:first-child { border-left: 1px solid var(--line); }
.bando-preview:hover { background: var(--surface); transform: translateY(-4px); }
.bando-preview__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.bando-preview h3 { margin: 38px 0 18px; font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.15; }
.bando-preview p { margin: 0; color: var(--muted); }
.bando-preview .text-arrow { margin-top: auto; padding-top: 30px; }

.page-hero { min-height: 62vh; padding: clamp(100px, 12vw, 170px) 0 clamp(70px, 9vw, 120px); display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1000px; margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, var(--page-title-max)); font-weight: 500; letter-spacing: -.055em; line-height: .96; }
.page-lead { max-width: 820px; margin: 30px 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.42; }
.page-content { padding: clamp(80px, 10vw, 150px) 0; }
.page-content > :first-child { margin-top: 0; }
.page-content > :last-child { margin-bottom: 0; }
.prose-grid { display: grid; grid-template-columns: minmax(130px,.28fr) minmax(0,1fr); gap: clamp(30px, 8vw, 120px); }
.prose-grid__aside p { margin: 0; color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.prose-grid__content { max-width: 850px; }
.prose-grid__content h2 { margin: 0 0 40px; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
.prose-grid__content p { margin: 0 0 28px; color: var(--muted); font-size: 1.12rem; }
.values-grid { margin-top: clamp(90px, 12vw, 150px); display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid article { min-height: 290px; padding: 38px; border-right: 1px solid var(--line); }
.values-grid article:last-child { border-right: 0; }
.values-grid h3 { margin: 0 0 70px; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }
.values-grid p { margin: 0; color: var(--muted); }
.statement-stack { border-top: 1px solid var(--line); }
.statement { display: grid; grid-template-columns: minmax(120px,.3fr) minmax(0,1fr); gap: 50px; padding: clamp(52px, 7vw, 90px) 0; border-bottom: 1px solid var(--line); }
.statement__label { margin: 4px 0 0; color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.statement h2 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(2.2rem, 4.2vw, 4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.statement div p { max-width: 740px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.governance { display: grid; gap: clamp(90px, 12vw, 150px); }
.governance-group > header { display: grid; grid-template-columns: .36fr 1fr; gap: 40px; align-items: start; margin-bottom: 38px; }
.governance-group > header h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.people-list { display: grid; grid-template-columns: repeat(2,1fr); margin-left: 36%; border-top: 1px solid var(--line); }
.person { min-height: 140px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.person:nth-child(odd) { padding-right: 34px; border-right: 1px solid var(--line); }
.person:nth-child(even) { padding-left: 34px; }
.person h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.person p { margin: 10px 0 0; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.governance-group--compact .people-list { grid-template-columns: 1fr; }
.governance-group--compact .person { border-right: 0; padding-left: 0; }
.rich-prose h2, .rich-prose h3, .rich-prose h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
.rich-prose h2 { font-size: clamp(2rem,4vw,3.5rem); }
.rich-prose h3 { font-size: 1.8rem; }
.rich-prose p, .rich-prose li { color: var(--muted); }
.rich-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich-prose blockquote { margin: 40px 0; padding: 26px 34px; border-left: 2px solid var(--accent); background: rgba(255,255,255,.28); font-family: var(--serif); font-size: 1.4rem; }
.rich-prose table { width: 100%; border-collapse: collapse; margin: 35px 0; }
.rich-prose th, .rich-prose td { padding: 14px; border: 1px solid var(--line); text-align: left; }

.document-section { padding: 0 0 clamp(90px, 12vw, 150px); }
.document-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.document-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.8rem); font-weight: 500; }
.document-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdf-frame { height: min(78vh, 920px); min-height: 540px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(37,30,25,.08); }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }

.page-hero--bandi { min-height: 56vh; }
.bandi-section { padding: 0 0 clamp(100px,12vw,160px); }
.filter-bar { display: flex; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.filter-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: .8rem; font-weight: 700; }
.filter-button span { color: var(--muted); font-size: .68rem; }
.filter-button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-button.is-active span { color: rgba(255,255,255,.65); }
.bandi-list { border-top: 1px solid var(--line); }
.bando-row { display: grid; grid-template-columns: 210px minmax(0,1fr) 56px; gap: clamp(24px,5vw,70px); align-items: start; padding: 46px 0; border-bottom: 1px solid var(--line); transition: opacity .25s ease, transform .25s ease; }
.bando-row[hidden] { display: none; }
.bando-row__date { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--muted); font-size: .8rem; }
.status-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status-chip--open { background: rgba(105,112,90,.14); color: #4e5640; }
.status-chip--closed { background: rgba(36,33,30,.08); color: var(--muted); }
.bando-row__body .editorial-kicker { margin-bottom: 12px; }
.bando-row h2 { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.8rem,3.3vw,3rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.bando-row h2 a:hover { color: var(--accent); }
.bando-row__body > p:last-child { max-width: 760px; margin: 0; color: var(--muted); }
.round-arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .2s ease, color .2s ease, transform .2s ease; }
.round-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(8deg); }
.empty-state { padding: 40px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.empty-state.is-hidden { display: none; }

.bando-detail { padding: clamp(70px,8vw,120px) 0 clamp(100px,12vw,160px); }
.back-link { display: inline-flex; margin-bottom: 70px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.back-link:hover { color: var(--accent); }
.bando-detail__header { max-width: 1020px; }
.bando-detail__meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bando-detail h1 { margin: 30px 0 0; font-family: var(--serif); font-size: clamp(3rem,6vw,var(--page-title-max)); font-weight: 500; letter-spacing: -.052em; line-height: .98; }
.bando-dates { display: flex; gap: 70px; margin: 50px 0 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bando-dates div { display: grid; gap: 4px; }
.bando-dates dt { color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bando-dates dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.bando-detail > .rich-prose { max-width: 850px; margin: clamp(65px,8vw,110px) 0; font-size: 1.08rem; }
.attachments-section { margin-top: clamp(80px,10vw,140px); }
.attachments-section .section-heading > p { color: var(--muted); }
.document-accordions { border-top: 1px solid var(--line); }
.document-accordion { border-bottom: 1px solid var(--line); }
.document-accordion summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.document-accordion summary::-webkit-details-marker { display: none; }
.document-accordion summary > div { display: flex; align-items: center; gap: 28px; }
.document-index { color: var(--accent); font-family: var(--serif); font-size: 1.1rem; }
.document-accordion h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem,2.5vw,2.1rem); font-weight: 500; }
.document-accordion summary p { margin: 5px 0 0; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.accordion-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; transition: transform .25s ease, background .2s ease; }
.document-accordion[open] .accordion-arrow { transform: rotate(180deg); background: var(--ink); color: #fff; }
.document-accordion__content { padding: 4px 0 36px 56px; }
.pdf-frame--accordion { height: min(72vh,780px); margin-top: 24px; }
.attachment-note { color: var(--muted); }

.error-page { min-height: 75vh; padding: 150px 0; display: flex; flex-direction: column; justify-content: center; }
.error-page h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem,7vw,6rem); font-weight: 500; }
.error-page .button { align-self: flex-start; margin-top: 34px; }

.site-footer { width: 100%; margin: 0; padding: 0; background: #211e1b; color: #f1eae1; overflow: hidden; border-top: 0; }
.footer-shell { position: relative; width: var(--shell); margin-inline: auto; padding: clamp(64px,8vw,100px) 0 28px; }
.footer-mark { position: absolute; right: -3%; top: 5%; width: min(30vw,360px); aspect-ratio: 1; opacity: .035; pointer-events: none; }
.footer-mark img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) invert(.88); }
.footer-main { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(50px,8vw,120px); }
.footer-copy { max-width: 470px; }
.footer-eyebrow { color: #d2a2a5; }
.footer-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem,3.2vw,var(--footer-title-max)); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.footer-copy > p:last-child { max-width: 520px; margin: 22px 0 0; color: rgba(241,234,225,.66); }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: clamp(28px,4vw,64px); align-items: start; }
.footer-column h3 { position: relative; margin: 0 0 22px; padding-bottom: 10px; color: rgba(241,234,225,.54); font-size: .72rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.footer-column h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 99px; background: var(--accent); }
.footer-column nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column a, .footer-column span { color: rgba(241,234,225,.72); font-size: .9rem; line-height: 1.45; }
.footer-column a:hover { color: #fff; }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; margin-top: 62px; padding-top: 22px; border-top: 1px solid rgba(241,234,225,.14); color: rgba(241,234,225,.48); font-size: .68rem; letter-spacing: .05em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@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; } }

@media (max-width: 1060px) {
  :root { --shell: min(100% - 48px, 940px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; z-index: 100; }
  .home-hero { grid-template-columns: 1fr .8fr; gap: 30px; }
  .hero-portrait-wrap { width: min(42vw,460px); }
  .feature-link { min-height: 390px; padding: 34px 28px; }
  .people-list { margin-left: 0; }
  .governance-group > header { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --shell: calc(100vw - 32px); --header-h: 78px; }
  .site-header__inner { gap: 16px; }
  .site-header.is-scrolled { height: 68px; }
  .brand-mark { width: 43px; height: 43px; }
  .brand-wordmark small { display: none; }
  .site-watermark { width: 110vw; right: -38vw; opacity: calc(var(--watermark-opacity) * .72); }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding: 64px 0 85px; }
  .home-hero__copy { order: 2; }
  .hero-portrait-wrap { order: 1; width: min(84vw,470px); justify-self: center; }
  .hero-portrait-circle { width: 76%; }
  .home-hero h1 { font-size: clamp(3.35rem,15vw,var(--hero-title-max)); }
  .hero-signature { right: 5%; bottom: 7%; font-size: 1.6rem; }
  .editorial-intro { grid-template-columns: 1fr; }
  .editorial-intro .editorial-kicker, .editorial-intro h2, .editorial-copy { grid-column: 1; }
  .feature-links { grid-template-columns: 1fr; }
  .feature-link { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-link:last-child { border-bottom: 0; }
  .bandi-preview-grid { grid-template-columns: 1fr; }
  .bando-preview, .bando-preview:first-child { min-height: 280px; border-left: 1px solid var(--line); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .page-hero { min-height: 54vh; }
  .prose-grid, .statement { grid-template-columns: 1fr; gap: 24px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .values-grid article:last-child { border-bottom: 0; }
  .values-grid h3 { margin-bottom: 45px; }
  .people-list { grid-template-columns: 1fr; }
  .person, .person:nth-child(odd), .person:nth-child(even) { min-height: 118px; padding: 24px 0; border-right: 0; }
  .document-header { align-items: flex-start; flex-direction: column; }
  .document-actions { width: 100%; }
  .document-actions .button { flex: 1; }
  .pdf-frame { min-height: 480px; height: 68vh; border-radius: 12px; }
  .bando-row { grid-template-columns: 1fr 48px; gap: 22px; }
  .bando-row__date { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .bando-row__body { grid-column: 1; }
  .round-arrow { grid-column: 2; grid-row: 2; align-self: center; width: 46px; height: 46px; }
  .bando-dates { gap: 35px; }
  .document-accordion summary > div { gap: 14px; }
  .document-accordion__content { padding-left: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 50px; }
  .footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 480px) {
  .footer-columns { grid-template-columns: 1fr; }
  :root { --shell: calc(100vw - 24px); }
  .brand-wordmark strong { font-size: 1.35rem; }
  .home-hero { padding-top: 44px; }
  .hero-portrait-wrap { width: 94vw; margin-left: calc((var(--shell) - 94vw)/2); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .page-hero h1 { font-size: clamp(3rem,16vw,var(--page-title-max)); }
  .filter-bar { overflow-x: auto; scrollbar-width: none; }
  .filter-button { flex: 0 0 auto; }
  .bando-dates { flex-direction: column; gap: 20px; }
  .document-actions { flex-direction: column; }
  .document-actions .button { width: 100%; }
  .pdf-frame { height: 62vh; min-height: 420px; }
  .document-index { display: none; }
  .document-accordion summary > div { min-width: 0; }
  .document-accordion h3 { overflow-wrap: anywhere; }
  .footer-meta { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}


/* 2026-08 layout refinements */
.page-hero-band{position:relative;background:var(--bg);border-bottom:1px solid var(--line)}
.page-hero-band .page-hero{border-bottom:0}
.page-content-band{position:relative;background:var(--surface);border-bottom:1px solid var(--line)}
.page-content-band .page-content{padding-top:clamp(72px,9vw,130px);padding-bottom:clamp(72px,9vw,130px)}
/* Translate percentages relative to the artwork itself, so admin preview and public rendering match at every size. */
.brand-mark img{transform:translate(var(--header-logo-x),var(--header-logo-y)) scale(var(--header-logo-scale)) rotate(var(--header-logo-rotation))}
.hero-portrait-circle img{transform:translate(var(--hero-portrait-x),var(--hero-portrait-y)) scale(var(--hero-portrait-scale)) rotate(var(--hero-portrait-rotation))}
.document-section{width:min(var(--shell),1100px);margin-inline:auto}
.pdf-frame{width:100%;height:clamp(520px,76vh,900px);min-height:0}
.pdf-frame iframe{display:block;width:100%;height:100%}
@media(max-width:720px){.pdf-frame{height:72svh;min-height:430px;border-radius:12px}.document-header{align-items:flex-start;flex-direction:column}.document-actions{width:100%}.document-actions .button{flex:1}.page-hero h1{overflow-wrap:anywhere;hyphens:auto}.page-lead,.prose-grid__content p,.statement div p{overflow-wrap:anywhere}}
@media(max-width:440px){.pdf-frame{height:68svh;min-height:380px}.document-actions{display:grid;grid-template-columns:1fr}.document-actions .button{width:100%}}

/* Bandi: filters + chronological sorting */
.bandi-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding:22px 0}
.bandi-toolbar .filter-bar{padding:0;border:0;flex:1}
.bandi-sort{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.78rem;white-space:nowrap}
.bandi-sort span{font-weight:650}
.bandi-sort select{min-height:42px;padding:0 38px 0 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font:inherit}
.bando-date-pair{display:grid;gap:4px}
.bando-date-pair span{font-size:.68rem;font-weight:700;letter-spacing:.045em;color:var(--accent)}
.bando-date-pair time{font-size:.82rem;color:var(--muted)}
@media(max-width:860px){.bandi-toolbar{align-items:stretch;flex-direction:column}.bandi-sort{justify-content:space-between}.bandi-sort select{width:min(100%,310px)}}
@media(max-width:560px){.bandi-sort{align-items:stretch;flex-direction:column}.bandi-sort select{width:100%}.bando-row__date{align-items:flex-start;flex-direction:column}}

/* Aggiornamento 4: stati bandi, testata e ritmo pagine */
.status-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.status-chip--open{background:#e2eadc;color:#496044;border:1px solid rgba(73,96,68,.18)}
.status-chip--closed{background:#f2dedb;color:#8a3f38;border:1px solid rgba(138,63,56,.18)}
.status-chip--expiring{background:#f4e8b9;color:#735c18;border:1px solid rgba(115,92,24,.18)}
.page-hero{min-height:44vh;padding-top:clamp(72px,7vw,104px);padding-bottom:clamp(56px,6vw,86px)}
.page-hero--bandi{min-height:44vh}
.brand-wordmark strong{font-size:1.18rem;line-height:1.05;letter-spacing:-.015em}
.brand-wordmark small{margin-top:4px;font-size:.68rem;letter-spacing:.08em;text-transform:none}
@media(max-width:720px){.page-hero{min-height:40vh;padding-top:54px;padding-bottom:54px}.status-chips{gap:6px}}
/* Titoli interni più vicini alla navigazione */
.page-hero{min-height:38vh;padding-top:clamp(54px,5vw,78px);padding-bottom:clamp(48px,5vw,72px)}
.page-hero--bandi{min-height:38vh}
@media(max-width:720px){.page-hero{min-height:36vh;padding-top:42px;padding-bottom:48px}}

/* Aggiornamento 5: hover, bandi e selettore lingua */
.feature-link:hover .feature-link__eyebrow{color:#e3aeb2}
.bando-preview{position:relative;overflow:hidden;transition:background .3s ease,transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.bando-preview::after{content:"";position:absolute;right:-90px;bottom:-110px;width:170px;aspect-ratio:1;border:1px solid rgba(123,48,56,.24);border-radius:50%;transition:transform .4s ease,opacity .3s ease;opacity:0}
.bando-preview:hover{background:#f5e9e5;border-color:rgba(123,48,56,.34);transform:none;box-shadow:none}
.bando-preview:hover::after{opacity:1;transform:translate(-24px,-26px) scale(1.08)}
.bando-preview:hover h3{color:var(--accent)}
.header-actions{display:flex;align-items:center;gap:18px}
.language-switch{position:relative;z-index:150}
.language-switch__button{display:flex;align-items:center;gap:7px;height:42px;padding:4px 9px 4px 4px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);cursor:pointer;color:var(--ink);font-size:.67rem;font-weight:800;letter-spacing:.06em}
.language-switch__button img{width:32px;height:32px;border-radius:50%}
.language-switch__menu{position:absolute;top:calc(100% + 10px);right:0;min-width:150px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 45px rgba(42,32,25,.14);opacity:0;visibility:hidden;transform:translateY(-4px);transition:.2s ease}
.language-switch.is-open .language-switch__menu{opacity:1;visibility:visible;transform:none}
.language-switch__menu a{display:block;padding:9px 11px;border-radius:9px;font-size:.8rem;color:var(--muted)}
.language-switch__menu a:hover,.language-switch__menu a.is-active{background:var(--bg);color:var(--ink)}
@media(max-width:1060px){.desktop-nav{display:none}.header-actions{gap:10px}}
@media(max-width:480px){.language-switch__button span{display:none}.language-switch__button{width:42px;padding:4px;justify-content:center}}

/* Aggiornamento 8: la card Bandi resta ferma; si anima soltanto il decoro interno. */
.latest-bandi .bando-preview,
.latest-bandi .bando-preview:hover,
.latest-bandi .bando-preview:focus,
.latest-bandi .bando-preview:focus-visible {
  transform: none !important;
  translate: none !important;
  transition-property: background-color, border-color, color, box-shadow !important;
}
.latest-bandi .bando-preview::after {
  transform: translate(0, 0) scale(1);
  transition: transform .4s ease, opacity .3s ease;
}
.latest-bandi .bando-preview:hover::after,
.latest-bandi .bando-preview:focus-visible::after {
  opacity: 1;
  transform: translate(-24px, -26px) scale(1.08);
}

/* v22: visualizzatore PDF multipagina con frame stabile e scroll interno. */
.pdf-viewer{width:100%;max-width:100%;height:var(--pdf-frame-height,clamp(620px,125vh,1320px));min-height:420px;margin-top:24px;padding:clamp(8px,1.5vw,18px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:18px;background:#e9e5df;box-shadow:0 20px 50px rgba(37,30,25,.08);position:relative}
.pdf-viewer__status{padding:28px 18px;color:var(--muted);text-align:center;font-size:.86rem}
.pdf-viewer__status.is-error{color:#8c3337}
.pdf-viewer__pages{width:100%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:clamp(10px,1.6vw,20px);overflow:visible;touch-action:pan-x pan-y pinch-zoom}
.pdf-page{width:100%;min-width:0;display:flex;justify-content:center;overflow:visible;background:#fff;box-shadow:0 4px 18px rgba(20,18,16,.08);flex:0 0 auto}
.pdf-page-canvas{display:block;max-width:100%;height:auto!important;background:#fff}
.pdf-viewer--accordion{margin-top:24px}
@media(max-width:720px){.pdf-viewer{height:var(--pdf-frame-height,clamp(500px,110vh,900px));min-height:360px;padding:6px;border-radius:12px;scrollbar-gutter:auto}.pdf-viewer__pages{gap:8px}.pdf-page{box-shadow:0 2px 10px rgba(20,18,16,.07)}}

/* v19: collegamento discreto all'area privata nel testo del footer. */
.hidden-admin-link,
.hidden-admin-link:visited,
.hidden-admin-link:hover,
.hidden-admin-link:active {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: none;
  cursor: text;
}
