:root {
  --ink: #071a2c;
  --ink-2: #0b263e;
  --ink-3: #12344e;
  --copper: #c89563;
  --copper-light: #e1b887;
  --ivory: #f4efe7;
  --paper: #ece6dc;
  --white: #fbfaf8;
  --text: #183044;
  --muted: #6d777c;
  --line: rgba(17, 47, 69, .18);
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { color: var(--white); background: var(--copper); }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000;
  transform: translateY(-200%); padding: .75rem 1rem;
  background: var(--white); color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 96px; padding: 0 var(--pad);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  color: var(--white); transition: background .35s ease, height .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  height: 96px; background: rgba(7, 26, 44, .94);
  box-shadow: 0 12px 35px rgba(2, 15, 27, .18); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand-name { font-size: .8rem; letter-spacing: .34em; font-weight: 600; }
.brand-mark {
  position: relative; width: 32px; height: 38px; display: inline-block;
  border: 1px solid rgba(200, 149, 99, .85); border-bottom: none; border-radius: 18px 18px 0 0;
}
.brand-mark span {
  position: absolute; inset: 7px 7px 0; border: 1px solid var(--copper);
  border-bottom: none; border-radius: 12px 12px 0 0;
}
.nav { display: flex; justify-content: center; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.4rem); }
.nav a { position: relative; text-decoration: none; font-size: .79rem; letter-spacing: .08em; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 1px; background: var(--copper-light); transition: right .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.header-cta, .menu-toggle { color: inherit; background: transparent; }
.header-cta { border: 1px solid rgba(255,255,255,.45); padding: .65rem 1.15rem; cursor: pointer; }
.header-cta:hover { color: var(--ink); background: var(--white); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-logo { display: block; width: 112px; height: 82px; }
.header-logo img { width: 100%; height: 100%; object-fit: contain; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .25s ease; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url("./assets/soglia-hero.png") center / cover no-repeat; transform: scale(1.015); animation: breathe 16s ease-in-out infinite alternate; }
.hero-shade { background: linear-gradient(90deg, rgba(4,20,34,.98) 0%, rgba(4,20,34,.9) 34%, rgba(4,20,34,.35) 67%, rgba(4,20,34,.08) 100%), linear-gradient(0deg, rgba(4,20,34,.52), transparent 40%); }
.hero-content { position: relative; z-index: 2; width: min(720px, 66vw); padding: 9rem var(--pad) 7rem; }
.eyebrow { margin: 0 0 1.35rem; color: var(--copper-light); font-size: .73rem; font-weight: 650; text-transform: uppercase; letter-spacing: .22em; }
.eyebrow span { display: inline-block; width: 32px; height: 1px; margin: 0 .75rem .2rem; background: currentColor; }
.eyebrow.dark { color: #997047; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; }
h1 { margin-bottom: 1.75rem; font-size: clamp(3.6rem, 7.3vw, 7.2rem); letter-spacing: -.045em; }
h1 em, h2 em, h3 em { color: var(--copper-light); font-weight: 400; }
.hero-copy { max-width: 640px; margin-bottom: 2.2rem; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.45vw, 1.18rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.35rem;
  border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none;
  font-size: .78rem; font-weight: 650; letter-spacing: .08em; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }
.button-primary { color: var(--ink); background: var(--copper-light); }
.button-primary:hover { background: var(--white); }
.text-link { color: var(--white); text-underline-offset: .38rem; text-decoration-color: rgba(255,255,255,.55); font-size: .82rem; letter-spacing: .06em; }
.text-link span { display: inline-block; margin-left: .45rem; color: var(--copper-light); }
.hero-quote { position: absolute; z-index: 2; right: var(--pad); bottom: 3.8rem; width: min(440px, 34vw); margin: 0; padding: 1.35rem 1.5rem 1.25rem 1.7rem; border-left: 2px solid var(--copper); background: transparent; }
.hero-quote p { margin-bottom: .8rem; color: rgba(255,255,255,.98); font-family: var(--display); font-size: clamp(1.3rem, 1.65vw, 1.7rem); line-height: 1.38; text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.hero-quote cite { color: var(--copper-light); font-size: .75rem; font-style: normal; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue { position: absolute; z-index: 2; left: var(--pad); bottom: 1.55rem; display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.55); text-decoration: none; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue span { width: 36px; height: 1px; background: var(--copper); }

.section { padding: clamp(5.5rem, 10vw, 10rem) var(--pad); }
.section-intro { max-width: 790px; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-intro h2, .tariffs-heading h2, .about-copy h2, .contact-copy h2 { margin-bottom: 1.6rem; font-size: clamp(3rem, 6.3vw, 6rem); letter-spacing: -.045em; }
.section-intro > p:last-child { max-width: 610px; color: var(--muted); font-size: 1.05rem; }
.manifesto { background: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(3rem, 8vw, 8rem); }
.manifesto-copy { max-width: 540px; }
.lead { font-family: var(--display); font-size: clamp(1.55rem, 2.8vw, 2.25rem); line-height: 1.3; }
.manifesto-copy p:last-child { color: var(--muted); }
.principles { border-top: 1px solid var(--line); }
.principles article { display: grid; grid-template-columns: 54px minmax(155px, .75fr) 1fr; align-items: baseline; gap: 1.2rem; padding: 1.55rem 0; border-bottom: 1px solid var(--line); }
.principles span { color: #9b7b5e; font-size: .67rem; letter-spacing: .12em; }
.principles h3 { margin: 0; font-size: 1.4rem; }
.principles p { margin: 0; color: var(--muted); font-size: .9rem; }

.services { color: var(--white); background: var(--ink); }
.section-intro.light > p:last-child { color: rgba(255,255,255,.58); }
.service-stack { border-top: 1px solid rgba(255,255,255,.14); }
.service-card { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(230px, .55fr); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(3rem, 6vw, 5.2rem) 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.service-card-alt { background: rgba(255,255,255,.025); }
.service-number { color: var(--copper); font-size: .7rem; letter-spacing: .16em; }
.service-kicker { margin-bottom: 1.1rem; color: var(--copper-light); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.service-main h3 { margin-bottom: 1.5rem; font-size: clamp(2.6rem, 5vw, 4.8rem); letter-spacing: -.04em; }
.service-main > p { max-width: 680px; color: rgba(255,255,255,.67); }
.service-facts { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.service-facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.service-facts span { color: rgba(255,255,255,.5); }
.service-facts strong { font-weight: 500; text-align: right; }
.service-price { align-self: center; display: flex; flex-direction: column; align-items: flex-start; }
.service-price > span { color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.service-price > strong { margin: .25rem 0 0; font-family: var(--display); font-size: clamp(3.5rem, 5.8vw, 5.4rem); font-weight: 400; line-height: 1; }
.service-price small { margin-bottom: 2rem; color: rgba(255,255,255,.45); }
.button-outline { width: 100%; color: var(--white); border-color: rgba(255,255,255,.4); background: transparent; }
.button-outline:hover { color: var(--ink); background: var(--white); }

.tariffs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 9rem); background: var(--ivory); }
.tariffs-heading { position: sticky; top: 120px; align-self: start; }
.tariffs-heading p:last-child { max-width: 460px; color: var(--muted); }
.tariff-list { border-top: 1px solid var(--line); }
.tariff-list article { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.tariff-list div { display: grid; }
.tariff-list div span { font-family: var(--display); font-size: 1.25rem; }
.tariff-list small { color: var(--muted); }
.tariff-list article > strong { font-family: var(--display); font-size: 1.7rem; font-weight: 400; }
.tariff-note { margin: 1.5rem 0 0; color: var(--muted); font-size: .83rem; }

.process { background: var(--white); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: #a9784f; font-family: var(--display); font-size: 2rem; }
.process-list h3 { margin-bottom: .45rem; font-size: 2rem; }
.process-list p { max-width: 620px; margin: 0; color: var(--muted); }
.process-action { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; }
.process-action p { margin: 0; color: var(--muted); font-size: .8rem; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--ink-3); }

.about { position: relative; min-height: 760px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; overflow: hidden; color: var(--white); background: var(--ink-2); }
.about::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 24% 50%, rgba(200,149,99,.13), transparent 27%), linear-gradient(110deg, transparent 0 44%, rgba(255,255,255,.025) 44% 45%, transparent 45%); }
.about-mark { position: relative; width: min(32vw, 420px); aspect-ratio: 1; justify-self: center; border: 1px solid rgba(200,149,99,.25); border-radius: 50%; }
.about-mark::before, .about-mark::after, .about-mark span { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 1px solid rgba(200,149,99,.66); border-bottom: none; border-radius: 50% 50% 0 0; }
.about-mark::before { bottom: 16%; width: 54%; height: 62%; }
.about-mark::after { bottom: 16%; width: 34%; height: 44%; }
.about-mark span { bottom: 16%; width: 18%; height: 28%; }
.about-copy { position: relative; max-width: 680px; }
.about-copy > p:not(.eyebrow) { color: rgba(255,255,255,.66); }
.about-copy .lead { color: var(--white) !important; }
.about-bio { color: rgba(255,255,255,.7); }
.about-bio p { margin-bottom: 1rem; }
.about-bio p:last-child { margin-bottom: 0; }
.signature { margin-top: 2.5rem; color: var(--copper-light); font-family: var(--display); font-size: 1.8rem; }
.signature span { display: block; color: rgba(255,255,255,.4); font-family: var(--sans); font-size: .63rem; letter-spacing: .18em; text-transform: uppercase; }

.posture { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 9vw, 9rem); align-items: start; background: var(--ivory); }
.posture-heading h2 { margin-bottom: 0; font-size: clamp(3.2rem, 6.5vw, 6.4rem); letter-spacing: -.045em; }
.posture-copy { max-width: 660px; padding-top: 2.1rem; }
.posture-copy .lead { color: var(--ink); }
.posture-copy > p:not(.lead) { color: var(--muted); }
.text-link-dark { color: var(--ink); text-decoration-color: rgba(7,26,44,.4); }
.text-link-dark span { color: #986942; }

.insights { background: var(--paper); }
.insight-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.insight-card { min-height: 310px; display: flex; flex-direction: column; padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, transform .25s ease; }
.insight-card:hover, .insight-card:focus-visible { color: var(--white); background: var(--ink); transform: translateY(-4px); }
.insight-card > span { color: #9a7758; font-size: .67rem; letter-spacing: .14em; }
.insight-card div { margin-top: auto; }
.insight-card p { margin-bottom: .45rem; font-family: var(--display); font-size: 1.8rem; line-height: 1.08; }
.insight-card small { display: block; color: var(--muted); line-height: 1.5; }
.insight-card:hover small, .insight-card:focus-visible small { color: rgba(255,255,255,.65); }
.insight-card b { margin-top: 1.4rem; color: #986942; font-size: .75rem; font-weight: 650; letter-spacing: .08em; }

.documents { background: var(--paper); }
.document-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.document-list .document-card { min-height: 230px; display: flex; flex-direction: column; padding: 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .25s ease, color .25s ease; }
.document-list .document-card:hover, .document-list .document-card:focus-visible { color: var(--white); background: var(--ink); }
.document-list span { color: #9a7758; font-size: .67rem; }
.document-list p { margin: auto 0 .25rem; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.document-list small { color: var(--muted); }
.document-list b { margin-top: 1.2rem; color: var(--copper); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.document-list .document-card:hover small, .document-list .document-card:focus-visible small { color: rgba(255,255,255,.66); }

.contact { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; color: var(--white); background: #051525; }
.contact-logo-wrap { position: relative; overflow: hidden; width: min(72%, 420px); aspect-ratio: 1.18; justify-self: center; background: transparent; }
.contact-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.contact-copy p { max-width: 660px; color: rgba(255,255,255,.62); }
.contact-details { display: flex; gap: 2rem; margin: 2rem 0; color: var(--copper-light); font-size: .9rem; }
.contact-details a { text-underline-offset: .3rem; }

.site-footer { padding: 4rem var(--pad) 2rem; color: rgba(255,255,255,.68); background: #030e19; }
.footer-top { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 3rem; align-items: start; padding-bottom: 3rem; }
.footer-logo { display: block; width: min(220px, 100%); }
.footer-logo img { width: 100%; height: auto; }
.footer-top > p { max-width: 380px; font-size: .88rem; }
.footer-top nav { justify-self: end; display: flex; gap: 1.5rem; }
.footer-top nav a { font-size: .78rem; text-underline-offset: .3rem; }
.legal { max-width: 1120px; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.62); font-size: .72rem; line-height: 1.7; }
.legal a { color: inherit; text-underline-offset: .2rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1rem; color: rgba(255,255,255,.35); font-size: .68rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem 1rem; }
.footer-bottom a { text-underline-offset: .25rem; }

.booking-dialog { width: min(700px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: clamp(1.5rem, 5vw, 4.5rem); border: 0; color: var(--text); background: var(--ivory); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.booking-dialog::backdrop { background: rgba(3, 14, 25, .82); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 1rem; top: .7rem; width: 44px; height: 44px; border: 0; color: var(--ink); background: transparent; font-size: 2rem; cursor: pointer; }
.dialog-copy h2 { margin-bottom: .8rem; font-size: clamp(2.5rem, 6vw, 4.4rem); }
.dialog-copy > p:last-child { color: var(--muted); }
.booking-dialog form { display: grid; gap: 1.15rem; margin-top: 2rem; }
.booking-dialog label:not(.radio-card):not(.consent) { display: grid; gap: .4rem; font-size: .72rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.booking-dialog input, .booking-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: .85rem; color: var(--text); background: rgba(255,255,255,.5); }
.booking-dialog textarea { resize: vertical; }
.booking-dialog fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0; padding: 0; border: 0; }
.booking-dialog legend { margin-bottom: .45rem; font-size: .72rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.radio-card { position: relative; display: block; }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card span { display: grid; padding: 1rem; border: 1px solid var(--line); cursor: pointer; }
.radio-card small { color: var(--muted); }
.radio-card input:checked + span { border-color: var(--copper); background: rgba(200,149,99,.1); }
.radio-card input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: .7rem; align-items: start; color: var(--muted); font-size: .75rem; }
.consent input { margin-top: .25rem; }
.consent a { text-underline-offset: .2rem; }
.button-full { width: 100%; }
.form-note { margin: -.3rem 0 0; text-align: center; color: var(--muted); font-size: .7rem; }
.spam-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
[data-form-status][data-state="success"] { color: #2e6b52; }
[data-form-status][data-state="error"] { color: #9a342c; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes breathe { from { transform: scale(1.015); } to { transform: scale(1.045); } }

@media (max-width: 980px) {
  .site-header, .site-header.scrolled { height: 82px; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { justify-self: end; }
  .header-logo { width: 88px; height: 68px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; justify-content: stretch; gap: 0; padding: 1rem var(--pad) 1.5rem; background: rgba(7,26,44,.98); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-content { width: 78vw; }
  .manifesto-grid, .tariffs, .about, .posture, .contact { grid-template-columns: 1fr; }
  .tariffs-heading { position: static; }
  .service-card { grid-template-columns: 50px minmax(0, 1fr); }
  .service-price { grid-column: 2; }
  .document-list { grid-template-columns: repeat(2, 1fr); }
  .insight-list { grid-template-columns: 1fr; }
  .insight-card { min-height: 220px; }
  .about-mark { width: min(58vw, 360px); }
  .contact-logo-wrap { width: min(68vw, 300px); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top nav { justify-self: start; }
}

/* Pagine informative e documenti */
.legal-page { background: var(--white); }
.legal-header { position: static; height: 92px; color: var(--white); background: var(--ink); }
.legal-header .nav { justify-content: flex-end; }
.legal-shell { width: min(1120px, calc(100% - 2 * var(--pad))); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.legal-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; padding-bottom: clamp(2.8rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-bottom: 1.2rem; color: var(--ink); font-size: clamp(3.25rem, 7vw, 6.4rem); }
.legal-hero .lead { margin-bottom: 0; color: var(--muted); font-family: var(--sans); font-size: 1.05rem; line-height: 1.7; }
.legal-meta { padding: 1.25rem; border-left: 2px solid var(--copper); background: var(--ivory); }
.legal-meta p { margin: 0 0 .7rem; color: var(--muted); font-size: .82rem; }
.legal-meta p:last-child { margin-bottom: 0; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); padding-top: clamp(3rem, 6vw, 5rem); }
.legal-toc { position: sticky; top: 1.5rem; align-self: start; }
.legal-toc p { margin-bottom: .7rem; color: #997047; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .84rem; }
.legal-toc a:hover { color: var(--ink); }
.legal-content { max-width: 780px; }
.legal-content section { scroll-margin-top: 1.5rem; padding: 0 0 2.8rem; margin-bottom: 2.8rem; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin-bottom: 1.15rem; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; }
.legal-content h3 { margin: 1.6rem 0 .7rem; color: var(--ink); font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.legal-content p, .legal-content li { color: #435665; }
.legal-content ul, .legal-content ol { padding-left: 1.25rem; }
.legal-content li { margin-bottom: .55rem; }
.legal-content a { color: #80552f; text-underline-offset: .2rem; }
.principle-number { margin-bottom: .5rem; color: #997047 !important; font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.source-list a { overflow-wrap: anywhere; }
.legal-callout { padding: 1.25rem 1.4rem; border-left: 3px solid var(--copper); background: var(--ivory); }
.legal-callout strong { color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; }
.legal-table th, .legal-table td { padding: .9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--ink); background: var(--paper); }
.document-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.signature-box { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.signature-line { min-height: 86px; padding-top: 3rem; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: .75rem; }
.contact-form { display: grid; gap: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label:not(.consent), .contact-form fieldset { display: grid; gap: .45rem; margin: 0; color: var(--ink); font-size: .8rem; font-weight: 650; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: .85rem; border: 1px solid var(--line); border-radius: 0; color: var(--text); background: var(--white); font: inherit; font-weight: 400; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form fieldset { padding: 1.1rem; border: 1px solid var(--line); }
.contact-form legend { padding: 0 .35rem; }
.contact-form .choice-row { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; }
.contact-form .choice-row label { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
.contact-form .choice-row input { width: auto; }

@media (max-width: 820px) {
  .legal-header { height: 82px; }
  .legal-header .nav { display: none; }
  .legal-hero, .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc a { display: inline-block; margin-right: 1rem; }
  .form-grid, .signature-box { grid-template-columns: 1fr; }
}

@media print {
  .legal-header, .site-footer, .legal-toc, .document-actions, .skip-link { display: none !important; }
  body, .legal-page { color: #000; background: #fff; }
  .legal-shell { width: 100%; padding: 0; }
  .legal-hero { grid-template-columns: 1fr; padding-bottom: 1.5rem; }
  .legal-hero h1 { font-size: 2.5rem; }
  .legal-layout { display: block; padding-top: 1.5rem; }
  .legal-content { max-width: none; }
  .legal-content section { break-inside: avoid; margin-bottom: 1.3rem; padding-bottom: 1.3rem; }
  .contact-form input, .contact-form textarea, .contact-form select { background: #fff; }
  a { color: #000 !important; text-decoration: none; }
}

@media (max-width: 640px) {
  .site-header, .site-header.scrolled { height: 82px; }
  .site-header { gap: .6rem; }
  .header-logo { width: 82px; height: 66px; }
  .hero { min-height: 850px; align-items: flex-end; }
  .hero-media { background-position: 68% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,20,34,.99) 0%, rgba(4,20,34,.88) 52%, rgba(4,20,34,.18) 100%); }
  .hero-content { width: 100%; padding-top: 8rem; padding-bottom: 7rem; }
  h1 { font-size: clamp(3.25rem, 15vw, 5.2rem); }
  .hero-copy { font-size: 1rem; }
  .hero { min-height: 1040px; align-items: flex-start; }
  .hero-quote { left: var(--pad); right: var(--pad); bottom: 3.25rem; width: auto; padding: 1.05rem 1.1rem 1rem 1.25rem; }
  .hero-quote p { font-size: 1.16rem; }
  .hero-quote cite { font-size: .67rem; }
  .scroll-cue { display: none; }
  .section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .section-intro h2, .tariffs-heading h2, .about-copy h2, .contact-copy h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .manifesto-grid { gap: 2rem; }
  .principles article { grid-template-columns: 38px 1fr; }
  .principles p { grid-column: 2; }
  .service-card { grid-template-columns: 1fr; gap: 1rem; }
  .service-number, .service-price { grid-column: 1; }
  .service-price { margin-top: 1rem; }
  .service-price > strong { font-size: 4rem; }
  .process-list li { grid-template-columns: 54px 1fr; }
  .process-action { align-items: flex-start; flex-direction: column; }
  .document-list { grid-template-columns: 1fr; }
  .document-list .document-card { min-height: 170px; }
  .about { min-height: auto; }
  .about-mark { width: 70vw; }
  .contact-details { flex-direction: column; gap: .4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top nav { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .booking-dialog fieldset { grid-template-columns: 1fr; }
}

@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; }
}
