/* HartaMediu 1.5.5 - layout and functional repair */
:root{--hm-ink:#10201d;--hm-green:#0b4a3e;--hm-green-2:#137565;--hm-mint:#dff3ec;--hm-line:#cbdcd6;--hm-soft:#f5f8f7;--hm-white:#fff;--hm-shadow:0 10px 28px rgba(12,56,47,.08)}
html,body{min-height:100%;}
body{margin:0;color:var(--hm-ink);background:#f7faf8;font-family:Inter,Montserrat,Arial,sans-serif;}
.hm-v155-header{position:relative;z-index:1100;height:64px;display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(260px,1fr);align-items:center;gap:18px;padding:0 20px;background:#fff;border-bottom:1px solid var(--hm-line);box-sizing:border-box}
.hm-v155-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--hm-green);font-weight:800;font-size:20px;white-space:nowrap}.hm-v155-brand img{display:block;width:38px;height:38px;object-fit:contain}.hm-v155-brand span{line-height:1}
.hm-v155-nav{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid var(--hm-line);border-radius:999px;background:var(--hm-soft)}
.hm-v155-nav a{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border-radius:999px;text-decoration:none;color:#53635f;font-size:14px;font-weight:700;transition:background .16s,color .16s,box-shadow .16s}
.hm-v155-nav a:hover,.hm-v155-nav a:focus-visible{background:#fff;color:var(--hm-green);outline:none;box-shadow:0 2px 8px rgba(12,56,47,.08)}
.hm-v155-nav a[aria-current="page"],.hm-v155-nav a.is-active{background:#fff;color:var(--hm-green);box-shadow:0 2px 8px rgba(12,56,47,.10)}
.hm-v155-nav a[aria-current="page"]::after{content:"";position:absolute;bottom:4px;width:18px;height:2px;border-radius:2px;background:var(--hm-green-2)}.hm-v155-nav a{position:relative}
.hm-v155-tools{justify-self:end;display:flex;align-items:center;gap:8px}.hm-v155-tool{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid var(--hm-line);border-radius:12px;background:#fff;color:var(--hm-green);font:700 14px/1 Inter,Arial,sans-serif;text-decoration:none;cursor:pointer}.hm-v155-tool:hover,.hm-v155-tool:focus-visible{border-color:#8fb8ab;background:#f4fbf8;outline:none}.hm-v155-tool.is-primary{background:var(--hm-green);border-color:var(--hm-green);color:#fff}.hm-v155-tool svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.hm-v155-badge{min-width:20px;height:20px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--hm-green);color:#fff;font-size:11px;box-sizing:border-box}.hm-v155-tool.is-primary .hm-v155-badge{background:#fff;color:var(--hm-green)}
/* The map must never collapse. */
#map,.map,.map-container,.map-canvas,[data-map],#mainMap,#site-map{min-height:520px!important;height:calc(100vh - 64px)!important;visibility:visible!important;opacity:1!important;background:#e7efe9;position:relative;z-index:1}
.hm-v155-map-error{position:absolute;inset:20px auto auto 20px;z-index:1000;max-width:420px;padding:14px 16px;background:#fff;border:1px solid #dfc4c4;border-radius:12px;box-shadow:var(--hm-shadow);color:#6b2424;font-size:14px}
.hm-v155-results{display:grid;gap:12px}.hm-v155-result-card{padding:16px;border:1px solid var(--hm-line);border-radius:16px;background:#fff}.hm-v155-result-card h3{margin:0 0 8px;font-size:16px}.hm-v155-result-card p{margin:4px 0;color:#5e6c68}.hm-v155-distance-options,.distance-options,.distante-afisate{font-size:13px!important}.hm-v155-distance-options label,.distance-options label,.distante-afisate label{font-size:13px!important;line-height:1.25!important}
.hm-v155-territorial{max-width:1160px;margin:0 auto;padding:36px 22px 64px}.hm-v155-breadcrumb{margin-bottom:18px;color:#6a7874;font-size:14px}.hm-v155-breadcrumb a{color:var(--hm-green-2);font-weight:700;text-decoration:none}.hm-v155-hero,.hm-v155-section{background:#fff;border:1px solid var(--hm-line);border-radius:20px;box-shadow:var(--hm-shadow)}.hm-v155-hero{padding:32px;margin-bottom:18px;background:linear-gradient(135deg,#fff 0%,#edf8f4 100%)}.hm-v155-hero h1{margin:0 0 10px;color:var(--hm-ink)!important;font-size:clamp(30px,4vw,50px);line-height:1.05}.hm-v155-hero p{margin:0;color:#5d6d68;font-size:17px}.hm-v155-section{padding:26px;margin-top:18px}.hm-v155-section h2{margin:0 0 18px;color:var(--hm-green);font-size:24px}.hm-v155-section h3{margin:20px 0 10px;color:var(--hm-green);font-size:18px}.hm-v155-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.hm-v155-stat{min-height:104px;padding:17px;border:1px solid var(--hm-line);border-radius:15px;background:#f9fbfa}.hm-v155-stat small{display:block;margin-bottom:8px;color:#71817c;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.hm-v155-stat strong{display:block;color:var(--hm-ink);font-size:20px}.hm-v155-stat span{display:block;margin-top:5px;color:#65746f;font-size:13px}.hm-v155-table{width:100%;border-collapse:collapse}.hm-v155-table th,.hm-v155-table td{padding:12px 10px;border-bottom:1px solid #e2ebe7;text-align:left;vertical-align:top}.hm-v155-table th{width:42%;color:#52635e;font-size:13px}.hm-v155-empty{padding:14px;border-radius:12px;background:#f6f8f7;color:#65736f}.hm-v155-source{margin-top:14px;color:#77847f;font-size:12px}.hm-v155-links{display:flex;flex-wrap:wrap;gap:9px}.hm-v155-links a{display:inline-flex;padding:9px 12px;border:1px solid var(--hm-line);border-radius:999px;color:var(--hm-green);font-weight:700;text-decoration:none}.hm-v155-links a:hover{background:var(--hm-mint)}.hm-v155-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:22px 24px;border-radius:18px;background:var(--hm-green);color:#fff}.hm-v155-cta h2{margin:0 0 5px;color:#fff}.hm-v155-cta p{margin:0;color:#cfe4dd}.hm-v155-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 17px;border-radius:11px;background:#fff;color:var(--hm-green);font-weight:800;text-decoration:none;white-space:nowrap}
.hm-v155-footer{background:#083b32;color:#fff;border-top:1px solid rgba(255,255,255,.14)}.hm-v155-footer-inner{max-width:1500px;margin:0 auto;padding:30px 28px 18px;display:grid;grid-template-columns:1.15fr .8fr 1fr 1.1fr;gap:32px;align-items:start}.hm-v155-footer-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.hm-v155-footer-brand img{width:42px;height:42px;object-fit:contain}.hm-v155-footer-brand strong{display:block;font-size:17px}.hm-v155-footer-brand span{display:block;margin-top:3px;color:#bdd2cb;font-size:12px}.hm-v155-footer-title{margin:0 0 10px;color:#bdd2cb;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.hm-v155-footer-links{display:flex;flex-wrap:wrap;gap:8px}.hm-v155-footer-links a,.hm-v155-ogaus{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.32);border-radius:10px;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:700;background:rgba(255,255,255,.04)}.hm-v155-footer-links a:hover,.hm-v155-ogaus:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.6)}.hm-v155-ogaus img{display:block;max-width:130px;max-height:44px;object-fit:contain}.hm-v155-footer-bottom{max-width:1500px;margin:0 auto;padding:13px 28px 16px;border-top:1px solid rgba(255,255,255,.16);color:#a9c2ba;text-align:center;font-size:12px}
.hm-v155-modal[hidden]{display:none!important}.hm-v155-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(8,40,34,.55)}.hm-v155-modal-card{width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:24px;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.25)}.hm-v155-modal-close{float:right;border:0;background:transparent;font-size:28px;cursor:pointer;color:#31524a}
/* Never render copied control SVGs as territorial content. */
.hm-v155-territorial .leaflet-control,.hm-v155-territorial iframe[hidden],.hm-v155-territorial svg[data-hm-artifact],.hm-v155-territorial .hm-v154-generated{display:none!important}.hm-v155-territorial .hm-v155-section>svg:only-of-type{display:none!important}
body>.guide-header,body>.legacy-header,body>header:not(.hm-v155-header){display:none!important}body>.legacy-footer,body>footer:not(.hm-v155-footer){display:none!important}
@media(max-width:1180px){.hm-v155-header{grid-template-columns:auto 1fr auto}.hm-v155-nav{justify-self:center;overflow-x:auto;max-width:100%}.hm-v155-nav a{padding:0 11px}.hm-v155-tool .hm-label{display:none}.hm-v155-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.hm-v155-header{height:auto;min-height:60px;grid-template-columns:1fr auto;padding:8px 12px;gap:8px}.hm-v155-brand span{font-size:17px}.hm-v155-nav{grid-column:1/-1;grid-row:2;justify-self:stretch;justify-content:flex-start;border-radius:14px;overflow-x:auto}.hm-v155-nav a{flex:0 0 auto;min-height:36px;font-size:13px}.hm-v155-tools{position:static!important;inset:auto!important}.hm-v155-tool{position:static!important;min-height:40px;padding:0 10px}.hm-v155-tool[data-hm-locations],.hm-v155-tool[data-hm-layers]{display:none}#map,.map,.map-container,.map-canvas,[data-map],#mainMap,#site-map{height:56vh!important;min-height:380px!important}.hm-v155-territorial{padding:24px 14px 46px}.hm-v155-hero,.hm-v155-section{padding:21px}.hm-v155-grid{grid-template-columns:1fr}.hm-v155-cta{align-items:flex-start;flex-direction:column}.hm-v155-footer-inner{grid-template-columns:1fr;gap:22px;padding:26px 18px 16px}.hm-v155-footer-bottom{padding:13px 18px 16px;text-align:left}}

/* 1.5.5 compatibility with the proven homepage engine */
.hm-v155-header .header-tools{width:auto!important;position:relative!important;inset:auto!important}.hm-v155-header .header-secondary>span:not(.hm-v155-badge){min-width:0;height:auto;padding:0;background:transparent;color:inherit;font-size:inherit}.hm-v155-header svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.hm-v155-brand .brand-word{font-size:20px}.hm-v155-brand .brand-word>span{color:#229175}.hm-v155-footer-inner>div{min-width:0}.hm-v155-footer-links a{overflow-wrap:anywhere;text-align:center}.hm-v155-ogaus{padding:5px 12px;background:#fff!important}.hm-v155-ogaus img{width:auto;max-width:130px;height:38px}.hm-v155-territorial .hm-v155-links>span{display:inline-flex;padding:9px 12px;border:1px solid var(--hm-line);border-radius:999px;color:var(--hm-green);font-weight:700;background:#fff}
@media(max-width:820px){.hm-v155-header .hm-v155-tools{display:flex!important;width:auto!important}.hm-v155-header .hm-v155-nav{order:3}.hm-v155-header{position:relative!important;top:auto!important}.hm-v155-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hm-v155-footer-links a{width:100%;box-sizing:border-box}}

/* r2: the map panel must have measurable dimensions before Leaflet starts. */
.map-app > .map-stage,
.map-stage {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(100vh - 64px) !important;
    height: calc(100vh - 64px) !important;
    position: relative !important;
    overflow: hidden !important;
}
.map-stage > #map {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}
@media (max-width: 820px) {
    .map-app > .map-stage,
    .map-stage {
        min-height: 420px !important;
        height: 58svh !important;
    }
}
