/* Dallago Giancarlo – foglio di stile del sito
   Palette: gesso, calce, sabbia, terra, ocra. Caratteri locali: Fraunces (titoli), Figtree (testo). */

@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(../fonts/figtree-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(../fonts/figtree-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --gesso: #F7F2EB;
  --calce: #EFE6DA;
  --sabbia: #E2D3BF;
  --pietra: #CDBBA4;
  --inchiostro: #2A2420;
  --fumo: #5C5149;
  --terra: #9A4A2B;
  --terra-scura: #7A3820;
  --terra-chiara: #B8613D;
  --ocra: #D9A548;
  --ocra-chiara: #F1DDAF;
  --notte: #241E1A;
  --bianco: #FFFDF9;
  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(42,36,32,.06), 0 10px 30px -12px rgba(42,36,32,.22);
  --wrap: 1180px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--gesso); color: var(--inchiostro);
  font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terra-scura); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ocra); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 500; letter-spacing: -.022em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--fumo); }
.small { font-size: .92rem; }
.kicker { font: 600 .8rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--terra); margin-bottom: 1rem; display: flex; align-items: center; gap: .7em; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--ocra); border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -100px; background: var(--inchiostro); color: #fff; padding: .7rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { top: 1rem; color: #fff; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--terra); background: var(--terra); color: #fff; font: 600 1rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--terra-scura); border-color: var(--terra-scura); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--terra-scura); border-color: var(--pietra); }
.btn-ghost:hover { background: var(--bianco); color: var(--terra-scura); border-color: var(--terra); }
.btn-light { background: var(--bianco); color: var(--terra-scura); border-color: var(--bianco); }
.btn-light:hover { background: var(--ocra-chiara); border-color: var(--ocra-chiara); color: var(--inchiostro); }
.btn-small { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,242,235,.92); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(205,187,164,.55); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--inchiostro); margin-right: auto; }
.logo:hover { color: var(--inchiostro); text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font: 500 1.35rem/1.05 var(--serif); letter-spacing: -.01em; }
.logo-name b { font-weight: 700; }
.logo-tag { font: 600 .68rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .17em; color: var(--fumo); margin-top: .3rem; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; }
.nav ul a { display: block; padding: .6rem .8rem; border-radius: 999px; color: var(--inchiostro); text-decoration: none; font-weight: 500; }
.nav ul a:hover { background: var(--calce); color: var(--terra-scura); }
.nav ul a[aria-current="page"], .nav ul a.is-active { background: var(--calce); color: var(--terra-scura); box-shadow: inset 0 -2px 0 var(--ocra); }
.nav-toggle { display: none; }
html.js .nav-toggle { align-items: center; gap: .55rem; min-height: 46px; padding: .4rem 1rem; border: 1px solid var(--pietra); background: var(--bianco);
  border-radius: 999px; font: 600 .95rem var(--sans); color: var(--inchiostro); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

html.js .nav-many .nav-toggle { display: inline-flex; }
html.js .nav-many .nav { display: none; }
@media (max-width: 1020px) {
  html.js .nav-toggle { display: inline-flex; }
  html.js .nav { display: none; }
}
.site-header { position: sticky; }
html.js .nav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem;
  background: var(--gesso); border-bottom: 1px solid var(--sabbia); padding: 1rem 1.25rem 1.5rem; box-shadow: 0 20px 30px -20px rgba(42,36,32,.3); }
html.js .nav.is-open ul { flex-direction: column; }
html.js .nav.is-open ul a { padding: .85rem 1rem; font-size: 1.08rem; border-radius: 12px; }
html.js .nav.is-open .nav-cta { align-self: flex-start; }
@media (max-width: 1020px) { html:not(.js) .header-in { flex-wrap: wrap; padding-block: .6rem; } html:not(.js) .nav { flex-wrap: wrap; } }

/* Home: apertura */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(217,165,72,.22), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(184,97,61,.12), transparent 60%),
    var(--gesso); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fumo); max-width: 34ch; }
.hero h1 { max-width: 14ch; }
.hero-media { position: relative; padding: 0 0 2.5rem 2.5rem; }
.hero-arch { border-radius: 260px 260px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.6; background: var(--calce); border: 8px solid var(--bianco); }
.hero-arch img, .hero-arch .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-chip { position: absolute; left: 0; bottom: 0; width: 42%; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bianco); box-shadow: var(--shadow); aspect-ratio: 1; }
.hero-chip img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; right: -.5rem; top: 12%; margin: 0; background: var(--inchiostro); color: var(--gesso); border-radius: 999px; padding: .6rem 1.1rem;
  font-size: .9rem; box-shadow: var(--shadow); max-width: 230px; line-height: 1.25; }
.hero-badge span { font: 600 1.15rem var(--serif); color: var(--ocra); }

/* Numeri */
.stats { background: var(--inchiostro); color: var(--gesso); }
.stats-in { list-style: none; margin-block: 0; padding: 2rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stats li { display: flex; flex-direction: column; gap: .3rem; padding-left: 1.2rem; border-left: 2px solid var(--ocra); }
.stats strong { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--serif); color: var(--ocra-chiara); }
.stats span { color: #D9CFC4; font-size: .98rem; }

/* Sezioni */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--calce); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p:last-child { margin-bottom: 0; }

/* Schede lavorazioni */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--bianco); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--inchiostro);
  box-shadow: 0 1px 0 rgba(205,187,164,.7); border: 1px solid rgba(205,187,164,.5); transition: transform .25s, box-shadow .25s; }
.card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--inchiostro); text-decoration: none; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--calce); }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card a:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h2, .card-body h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.card-body p { color: var(--fumo); font-size: 1rem; }
.card-more { margin-top: auto; font-weight: 600; color: var(--terra); font-size: .95rem; }

/* Due colonne */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-media { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 160px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: var(--sabbia); }
.split-media img, .split-media .ph { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.08rem; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.prose li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ocra); box-shadow: 0 0 0 3px var(--ocra-chiara); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }

/* Testata delle pagine interne */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background:
  radial-gradient(900px 380px at 90% 0, rgba(217,165,72,.2), transparent 60%), var(--calce); border-bottom: 1px solid var(--sabbia); }
.page-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero.no-media .page-hero-in { grid-template-columns: 1fr; max-width: 820px; margin-left: max(1.25rem, (100% - var(--wrap)) / 2); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: .3em; }
.subtitle { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fumo); max-width: 46ch; margin: 0; }
.page-hero .actions { margin-top: 1.5rem; }
.page-hero-media { border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4.4; box-shadow: var(--shadow); border: 7px solid var(--bianco); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .92rem; margin-bottom: 1rem; color: var(--fumo); }
.crumbs a { font-weight: 600; }
.intro { font-size: clamp(1.18rem, 1.8vw, 1.38rem); line-height: 1.55; color: var(--inchiostro); font-family: var(--serif); font-weight: 400; }
.intro p { margin-bottom: .8em; }
.block { padding-top: 2.2rem; margin-top: 2.2rem; border-top: 1px solid var(--sabbia); }
.block h2 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); }

/* Galleria */
.gallery { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 1rem; }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--calce); position: relative; }
.gallery img { width: 100%; transition: transform .5s, filter .3s; }
.gallery a:hover img { transform: scale(1.03); filter: saturate(1.08); }
.gallery a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(42,36,32,.08); }

/* Riquadro neutro */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: repeating-linear-gradient(135deg, var(--calce) 0 14px, var(--sabbia) 14px 15px); }
.ph-mark { width: 56px; height: 56px; opacity: .35; }

/* Fascia finale */
.cta { background: linear-gradient(120deg, var(--terra-scura), var(--terra) 55%, var(--terra-chiara)); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(241,221,175,.12); }
.cta-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.8rem, 6vw, 4.2rem) 0; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #FBEFE6; max-width: 52ch; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; }
.cta-phone { color: #fff; font: 600 1.35rem var(--serif); text-decoration: none; border-bottom: 2px solid rgba(241,221,175,.6); }
.cta-phone:hover { color: var(--ocra-chiara); }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact-cards li { background: var(--bianco); border: 1px solid var(--sabbia); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .15rem; }
.ci-label { font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--fumo); }
.ci-value { font: 500 1.25rem/1.35 var(--serif); color: var(--inchiostro); text-decoration: none; overflow-wrap: anywhere; }
a.ci-value:hover { color: var(--terra); text-decoration: underline; }
.form-card { background: var(--bianco); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); border: 1px solid rgba(205,187,164,.5); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .98rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--inchiostro); background: var(--gesso); border: 1.5px solid var(--pietra); border-radius: 12px; padding: .8rem .95rem; min-height: 50px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(217,165,72,.35); background: #fff; }
.field [aria-invalid="true"] { border-color: #A3261B; background: #FFF6F3; }
.field-error { color: #A3261B; font-weight: 600; font-size: .93rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.notice p:last-child { margin: 0; }
.notice-ok { background: #EAF3E6; border: 1px solid #9FC39A; color: #234B1E; }
.notice-error { background: #FFF0EC; border: 1px solid #E3A595; color: #7A1E12; }
.form-card .btn { justify-self: start; }

/* Mappa */
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; background:
  linear-gradient(rgba(239,230,218,.88), rgba(239,230,218,.88)),
  repeating-linear-gradient(0deg, transparent 0 38px, rgba(154,74,43,.12) 38px 39px),
  repeating-linear-gradient(90deg, transparent 0 38px, rgba(154,74,43,.12) 38px 39px), var(--bianco);
  border: 1px solid var(--sabbia); min-height: 360px; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { text-align: center; padding: 2rem; max-width: 520px; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.2rem; }

/* Piè di pagina */
.site-footer { background: var(--notte); color: #D9CFC4; padding-top: 3.8rem; }
.site-footer a { color: #F1E3CE; }
.site-footer a:hover { color: var(--ocra); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.8rem; }
.site-footer .logo { color: var(--gesso); margin-bottom: 1.2rem; }
.site-footer .logo-tag { color: #BFB2A5; }
.footer-title { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--ocra); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid rgba(217,207,196,.18); padding: 1.3rem 0 1.6rem; font-size: .9rem; color: #BFB2A5; }
.footer-bottom p { margin: 0; }

/* Ingrandimento foto */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,16,14,.94); display: grid; place-items: center; }
.lightbox-in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 4.5rem 4.5rem 3.5rem; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #E8DED3; margin: 0; font-size: .95rem; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,253,249,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,253,249,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* Telefono e tablet */
@media (max-width: 900px) {
  .hero-in, .split, .page-hero-in, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; padding-left: 1.5rem; }
  .hero-badge { right: 0; }
  .split-media { order: -1; }
  .page-hero-media { max-width: 520px; border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .wrap { width: min(var(--wrap), 100% - 2rem); }
  .header-in { min-height: 68px; gap: .8rem; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-name { font-size: 1.15rem; }
  .logo-tag { font-size: .6rem; letter-spacing: .12em; }
  html.js .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.js .nav-toggle { position: relative; padding: .4rem .9rem; }
  .stats-in { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.8rem 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: .6rem; }
  .gallery li { margin-bottom: .6rem; }
  .lightbox-in { padding: 4rem .5rem 3.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: .4rem; transform: none; }
  .hero-badge { font-size: .82rem; max-width: 190px; }
  .cards { grid-template-columns: 1fr; }
}
