:root{--g2d-ink:#193045;--g2d-paper:#fffdfa;--g2d-sand:#f6f2e9;--g2d-gold:#aa793d;--g2d-border:#e5ddd0;--g2d-head:#172e40}
.g2d-global-header{background:var(--g2d-head)!important;color:#fff!important}
.g2d-global-header .g2d-wrap{max-width:1160px;margin:auto;padding:0 24px}
.g2d-global-header nav{min-height:78px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:14px 0}
.g2d-global-header .brand{font-size:25px;font-weight:800;text-decoration:none;color:#fff!important;line-height:1.15}
.g2d-global-header .brand small{display:block;color:#dec59e;font-size:12px;font-weight:400}
.g2d-global-header .links{display:flex;gap:18px;flex-wrap:wrap}
.g2d-global-header .links a,.g2d-global-header .lang a{color:#fff!important;text-decoration:none!important}
.g2d-global-header .links a:hover{text-decoration:underline!important}
.g2d-global-header .lang{margin-left:auto;white-space:nowrap}

/* Blocco stemma + cartina: proporzioni allineate alla sezione italiana */
.g2d-city-identity{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;width:100%!important;max-width:760px!important;margin:18px auto 24px!important;align-items:stretch!important}
.g2d-city-panel{height:264px!important;min-height:264px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;box-sizing:border-box!important;padding:16px!important;margin:0!important;background:var(--g2d-sand)!important;border:1px solid var(--g2d-border)!important;border-radius:12px!important}
.g2d-city-panel.g2d-coat img{display:block!important;float:none!important;width:auto!important;height:auto!important;max-width:130px!important;max-height:150px!important;margin:auto!important;object-fit:contain!important;transform:none!important}
.g2d-city-panel.g2d-map img{display:block!important;float:none!important;width:auto!important;height:auto!important;max-width:210px!important;max-height:235px!important;margin:auto!important;object-fit:contain!important;transform:none!important}

/* Germania EN/DE: larghezza e ordine visivo come la pagina italiana */
html[lang="en"] .g2d-city-page .content .wrap>p,
html[lang="de"] .g2d-city-page .content .wrap>p{max-width:760px;margin-left:auto!important;margin-right:auto!important}
html[lang="en"] .g2d-city-page .content .wrap>.navrow,
html[lang="de"] .g2d-city-page .content .wrap>.navrow{max-width:760px;margin-left:auto!important;margin-right:auto!important;justify-content:center!important;gap:16px!important}
html[lang="en"] .g2d-city-page .gallery,
html[lang="de"] .g2d-city-page .gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;max-width:760px!important;margin:30px auto!important}
html[lang="en"] .g2d-city-page .gallery>img,
html[lang="de"] .g2d-city-page .gallery>img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;object-fit:contain!important;box-sizing:border-box!important;transform:none!important}

.g2d-austria-page{margin:0;background:var(--g2d-paper);color:var(--g2d-ink);font:17px/1.6 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.g2d-austria-page *{box-sizing:border-box}
.g2d-austria-page .g2d-page-wrap{max-width:1160px;margin:auto;padding:0 24px}
.g2d-austria-page .g2d-hero{background:var(--g2d-sand);padding:44px 0}
.g2d-austria-page h1{font:700 clamp(38px,5vw,62px)/1.15 Georgia,serif;margin:.25em 0}
.g2d-austria-page .g2d-content{padding:48px 0}
.g2d-austria-page .g2d-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:760px;margin:30px auto}
.g2d-austria-page .g2d-gallery img{width:100%;height:auto;border:0;border-radius:0;background:transparent}
.g2d-austria-page .g2d-navrow{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin:24px auto;max-width:760px}
.g2d-austria-page .g2d-btn{display:inline-block;padding:10px 16px;background:#c3914e;color:#142a38;text-decoration:none;border-radius:7px;font-weight:700}
.g2d-austria-page .g2d-note{border-left:4px solid var(--g2d-gold);background:#f5ede1;padding:14px 20px;margin:24px auto;max-width:760px}
.g2d-austria-page .g2d-page-wrap>p{max-width:760px;margin-left:auto;margin-right:auto}

.g2d-town-index{margin:0;background:var(--g2d-paper);color:var(--g2d-ink);font:17px/1.6 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.g2d-town-index .g2d-page-wrap{max-width:1160px;margin:auto;padding:48px 24px}
.g2d-town-index h1{font:700 clamp(36px,5vw,58px)/1.1 Georgia,serif}
.g2d-town-index .g2d-towns{columns:4 210px;column-gap:28px}
.g2d-town-index .g2d-towns a{display:block;padding:5px 0;color:#193045;text-decoration:none;break-inside:avoid}
.g2d-town-index .g2d-towns a:hover{text-decoration:underline}

@media(max-width:780px){.g2d-global-header .lang{margin-left:0}}
@media(max-width:720px){
 .g2d-city-identity{grid-template-columns:1fr!important;max-width:390px!important}
 .g2d-city-panel{height:250px!important;min-height:250px!important}
 .g2d-city-panel.g2d-coat img{max-width:120px!important;max-height:140px!important}
 .g2d-city-panel.g2d-map img{max-width:205px!important;max-height:220px!important}
 html[lang="en"] .g2d-city-page .gallery,html[lang="de"] .g2d-city-page .gallery,.g2d-austria-page .g2d-gallery{grid-template-columns:1fr!important;max-width:390px!important}
}
