/* WordPress Admin Bar offset & anchor scroll clearance */
:root { --admin-offset: 0px; }
body.admin-bar { --admin-offset: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar { --admin-offset: 46px; }
}
body.admin-bar .hdr { top: var(--admin-offset); }
body.admin-bar .cpanel { top: var(--admin-offset); }

#top { scroll-margin-top: 0; }
section[id], article[id] { scroll-margin-top: calc(2rem + var(--admin-offset)); }
#consulting { scroll-margin-top: calc(2.25rem + var(--admin-offset)); }
#wine { scroll-margin-top: calc(2.25rem + var(--admin-offset)); }
#aosta { scroll-margin-top: var(--admin-offset); }
#contact { scroll-margin-top: calc(4.5rem + var(--admin-offset)); }

/* Balanced Hero & Cyrillic Spectral optical sizing */
.hero h1 { max-width: 20ch; }
html[lang^="ru"] .display { font-weight: 300; letter-spacing: -0.02em; }
html[lang^="ru"] .display em { font-style: italic; font-weight: 300; }
html[lang^="ru"] .hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 5.6rem);
  line-height: 1.04;
  max-width: none;
}
@media (min-width: 1001px) and (max-width: 1260px) {
  html[lang^="ru"] .hero h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  }
}
@media (min-width: 721px) {
  html[lang^="ru"] .hero h1 .ln { white-space: nowrap; }
}
html[lang^="ru"] .p-head h1 {
  font-size: clamp(2.8rem, 6.6vw, 6.4rem);
  line-height: 1.03;
}
html[lang^="ru"] .chapter h2,
html[lang^="ru"] .contact h2,
html[lang^="ru"] .rq h2,
html[lang^="ru"] .sec-head h2,
html[lang^="ru"] .exp-body h2 {
  font-size: clamp(2.4rem, 5.4vw, 5.25rem);
  line-height: 1.04;
}

/* Unlimited Table Sections (.alpina-tbl-section) — shared across Home and Inner pages */
.alpina-tbl-section { padding-block: clamp(3rem, 6vw, 5rem); }
.alpina-tbl-section .sec-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.alpina-tbl-section .sec-head h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.alpina-tbl-section .sec-head h2 em { color: var(--pine); }
.alpina-tbl-section .sec-head p { max-width: 24rem; color: var(--muted); }
.alpina-tbl-section .grp { margin-bottom: clamp(3rem, 6vw, 5rem); }
.alpina-tbl-section .grp:last-child { margin-bottom: 0; }
.alpina-tbl-section .grp-t { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pine); font-weight: 500; }
.alpina-tbl-section .grp-t i { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.alpina-tbl-section .svc { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.alpina-tbl-section .svc li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2.5vw, 2.5rem) clamp(1.5rem, 2.5vw, 2.25rem) 0; border-bottom: 1px solid var(--line); }
.alpina-tbl-section .svc li:nth-child(even) { padding-left: clamp(1rem, 2.5vw, 2.5rem); border-left: 1px solid var(--line); }
.alpina-tbl-section .svc .k { font-family: var(--serif); font-style: italic; color: var(--pine); font-size: 1.1rem; line-height: 1.6; }
.alpina-tbl-section .svc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.15; margin-bottom: .5rem; }
.alpina-tbl-section .svc p { color: var(--muted); font-size: .95rem; max-width: 34rem; }
.alpina-tbl-section .svc--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.alpina-tbl-section .svc--3 li,
.alpina-tbl-section .svc--3 li:nth-child(even) { padding-left: 0; border-left: 0; }
.alpina-tbl-section .svc--3 li:not(:nth-child(3n+1)) { padding-left: clamp(1rem, 2.5vw, 2.5rem); border-left: 1px solid var(--line); }

@media (max-width: 1000px) {
  .alpina-tbl-section .svc--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alpina-tbl-section .svc--3 li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .alpina-tbl-section .svc--3 li:nth-child(even) { padding-left: clamp(1rem, 2.5vw, 2.5rem); border-left: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .alpina-tbl-section .sec-head { flex-direction: column; align-items: start; }
  .alpina-tbl-section .svc,
  .alpina-tbl-section .svc--3 { grid-template-columns: 1fr; }
  .alpina-tbl-section .svc li,
  .alpina-tbl-section .svc li:nth-child(even),
  .alpina-tbl-section .svc--3 li,
  .alpina-tbl-section .svc--3 li:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* Rich text vertical rhythm & paragraph spacing classes */
.rich-text > * + * { margin-top: 0; }
.rich-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.15rem; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text p.lede { color: var(--ink); font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 1.4rem; }
.rich-text p.lede em { font-style: italic; color: var(--pine); }
.rich-text p.quote { color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; padding-left: 1.5rem; border-left: 2px solid var(--ochre); margin-block: 1.5rem; }
.rich-text h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-top: 1.5rem; margin-bottom: .75rem; color: var(--ink); }
.rich-text h4 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-top: 1.25rem; margin-bottom: .5rem; color: var(--ink); }
.rich-text a:not(.btn) { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:not(.btn):hover { color: var(--ink); }

/* Controllable paragraph spacing via TinyMCE format selector */
.rich-text p.sp-sm, p.sp-sm { margin-bottom: .65rem !important; }
.rich-text p.sp-md, p.sp-md { margin-bottom: 1.5rem !important; }
.rich-text p.sp-lg, p.sp-lg { margin-bottom: 2.5rem !important; }
.rich-text p.sp-xl, p.sp-xl { margin-bottom: 3.75rem !important; }
.alpina-spacer-md { height: 1.5rem; width: 100%; display: block; }
.alpina-spacer-lg { height: 3rem; width: 100%; display: block; }

/* Flexible .check bullet list */
ul.check { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--line); margin-block: 1.25rem; padding: 0; }
ul.check.check--1col { grid-template-columns: 1fr; }
ul.check li { position: relative; padding: .9rem 0 .9rem 1.85rem; border-bottom: 1px solid var(--line); font-size: .95rem; display: block; color: var(--muted); }
ul.check li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .55rem; height: .55rem; border-radius: 50%; border: 1px solid var(--pine); margin: 0; }
ul.check li b, ul.check li strong { display: block; font-weight: 500; color: var(--ink); }
ul.check li span { color: var(--muted); font-size: .88rem; }

/* Standard bullet lists inside rich text */
.rich-text ul:not(.check):not(.areas):not(.svc):not(.chips):not(.for) { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: .6rem; }
.rich-text ul:not(.check):not(.areas):not(.svc):not(.chips):not(.for) li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: 1.02rem; }
.rich-text ul:not(.check):not(.areas):not(.svc):not(.chips):not(.for) li::before { content: ""; position: absolute; left: 0; top: .58em; width: .45rem; height: .45rem; border-radius: 50%; border: 1.5px solid var(--pine); }
.rich-text ul:not(.check):not(.areas):not(.svc):not(.chips):not(.for) li strong,
.rich-text ul:not(.check):not(.areas):not(.svc):not(.chips):not(.for) li b { color: var(--ink); font-weight: 500; }

/* Numbered editorial list inside rich text */
.rich-text ol.num-list { list-style: none; counter-reset: nl; padding: 0; margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--line); }
.rich-text ol.num-list li { counter-increment: nl; display: grid; grid-template-columns: 2.25rem 1fr; gap: .5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
.rich-text ol.num-list li::before { content: counter(nl, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--pine); font-size: 1.05rem; }
.rich-text ol.num-list li strong,
.rich-text ol.num-list li b { color: var(--ink); font-weight: 500; }

/* Default page fallback container */
.page-default-body { padding-block: clamp(3rem, 6vw, 5.5rem); max-width: 52rem; }

/* Contact form inline feedback */
.form-msg { margin-top: 1rem; font-size: .95rem; line-height: 1.5; display: none; }
.form-msg.is-ok { display: block; color: var(--pine); font-weight: 500; }
.form-msg.is-err { display: block; color: #9c2b2b; font-weight: 500; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  ul.check { grid-template-columns: 1fr; }
}

/* Video caption contrast + home rich-text spacing parity */
.video { color: var(--paper); }
.c-note.rich-text p,
.food .lead.rich-text p { margin: 0; }

/* Sticky footer layout + clean 404 header rule */
body { min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > footer { margin-top: auto; }
.p-head--404 { grid-template-columns: auto minmax(0, 1fr); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .p-head--404 { grid-template-columns: 1fr; } }

/* Legal footer row + clean default WP page styling (Privacy Policy) */
.ftr-legal { flex: 1 0 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-top: 1rem; margin-top: .25rem; border-top: 1px solid var(--line); font-size: .75rem; }
footer:not(.wrap) .ftr-legal { border-top-color: rgba(241,244,245,.12); }
.ftr-legal .ftr-priv { text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.ftr-legal .ftr-priv:hover { opacity: 1; }
.p-head--page { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.page-default-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; margin: 2rem 0 1rem; color: var(--ink); }
.page-default-body h2:first-child { margin-top: 0; }
.page-default-body h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; margin: 2rem 0 .65rem; color: var(--ink); }
.page-default-body p { color: var(--muted); margin-bottom: 1rem; }
.page-default-body a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
