/* ==========================================================================
   Rete Servizi Lombardia — Sistema di design "Cartografia Minimale"
   ========================================================================== */

:root {
  /* Colore */
  --bg:            #f4f8fa;
  --surface:       #ffffff;
  --ink:           #10395e;
  --ink-soft:      #4a6e8c;
  --ink-faint:     #8ba4b8;
  --accent:        #3fd0c9;
  --accent-deep:   #17a49d;
  --accent-wash:   #e4f6f5;
  --rule:          rgba(16, 57, 94, 0.14);
  --rule-soft:     rgba(16, 57, 94, 0.07);
  --dot:           rgba(16, 57, 94, 0.20);

  /* Marchio ufficiale */
  --brand-green:   #03864E;
  --brand-green-2: #2CA28D;
  --brand-blue:    #0F4C81;

  /* Mappa */
  --map-on:        var(--brand-blue);
  --map-on-hi:     #1C63A3;
  --map-off:       #DDE3E8;
  --map-link:      #C6D0DA;
  --map-node:      #6B7280;
  --map-hq:        #A8234D;

  /* Tipografia */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Ritmo */
  --shell:         1320px;
  --gutter:        24px;
  --header-h:      100px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 112px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 118px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 64px; }
}
@media (min-width: 1280px) {
  :root { --header-h: 136px; }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--accent); color: #06283f; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule-top { border-top: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
}
.eyebrow--accent { color: var(--accent-deep); }
.eyebrow--faint  { color: var(--ink-faint); }

.display {
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.2;
  font-size: clamp(1.75rem, 1.15rem + 1.7vw, 2.7rem);
  color: var(--ink);
  text-wrap: balance;
}

.title {
  font-weight: 300;
  letter-spacing: -0.014em;
  line-height: 1.2;
  font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.5rem);
  color: var(--ink);
  text-wrap: balance;
}

.subtitle {
  font-weight: 400;
  letter-spacing: -0.006em;
  line-height: 1.35;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--ink);
}

.lede {
  font-size: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 58ch;
}

.body-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.numeral {
  font-weight: 200;
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.15rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}

/* --------------------------------------------------------------------------
   Griglia di coordinate (motivo cartografico di fondo)
   -------------------------------------------------------------------------- */

.coordfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
@media (min-width: 768px) { .coordfield { display: block; } }

.coordfield__h,
.coordfield__v {
  position: absolute;
  opacity: 0.9;
}

.coordfield__h {
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right, var(--dot) 0 1.5px, transparent 1.5px 7px
  );
}

.coordfield__v {
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: repeating-linear-gradient(
    to bottom, var(--dot) 0 1.5px, transparent 1.5px 7px
  );
}

.coord-label {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  display: none;
}
@media (min-width: 1024px) { .coord-label { display: block; } }

/* --------------------------------------------------------------------------
   Marchio
   -------------------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

/* Logo ufficiale — Horizontal Variation.
   Dimensionato solo in altezza: proporzioni e margini del marchio invariati.
   Sotto i ~390px la formula lo adatta alla larghezza residua (gutter + menu). */
.brand__logo {
  display: block;
  width: auto;
  height: clamp(58px, calc(29vw - 34px), 88px);
  transition: opacity 0.3s var(--ease);
}
.brand:hover .brand__logo { opacity: 0.72; }

@media (min-width: 768px)  { .brand__logo { height: 98px; } }
@media (min-width: 1024px) { .brand__logo { height: 108px; } }
@media (min-width: 1280px) { .brand__logo { height: 126px; } }

.brand--inline .brand__logo { height: 44px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  display: none;
  margin-inline: auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 30px);
}

.nav__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease);
}
.nav__link:hover { color: var(--accent-deep); }
.nav__link:hover::after { transform: scaleX(1); background: var(--accent-deep); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__reserved {
  display: none;
  font-size: 0.875rem;
  color: var(--ink);
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.header__reserved svg { width: 13px; height: 13px; flex: none; }
.header__reserved:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

@media (min-width: 1024px) {
  .nav, .header__reserved { display: flex; }
}

/* Burger */
.burger {
  margin-left: auto;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid var(--rule);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.burger:hover { border-color: var(--ink); }
.burger__box { width: 18px; height: 11px; position: relative; }
.burger__box i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.burger__box i:nth-child(1) { top: 0; }
.burger__box i:nth-child(2) { top: 5px; }
.burger__box i:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (min-width: 1024px) { .burger { display: none; } }

/* Drawer mobile */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 8px var(--gutter) 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1.32rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.drawer__link span:first-child {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.drawer__link[aria-current="page"] { color: var(--accent-deep); }
.drawer__foot { margin-top: 30px; }

body.is-locked { overflow: hidden; }

@media (min-width: 1024px) { .drawer { display: none; } }

/* --------------------------------------------------------------------------
   Pulsanti
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 26px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: #06333a; border-color: var(--accent); }
.btn:hover::before { transform: scaleX(1); }
.btn__arrow { width: 20px; height: 10px; transition: transform 0.42s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: #06333a; border-color: var(--accent); }

.btn--ghost {
  border-color: var(--rule);
  color: var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; border-color: var(--ink); }

/* Call to action principale — colori del marchio ufficiale */
.btn--brand {
  padding: 15px 30px;
  min-height: 52px;
  border-radius: 6px;
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}
.btn--brand::before { background: #026C40; }
.btn--brand:hover { color: #fff; border-color: #026C40; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.textlink:hover { color: var(--ink); gap: 14px; }
.textlink svg { width: 16px; height: 8px; }

/* --------------------------------------------------------------------------
   Hero — Home
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(64px, 7vw, 82px) clamp(46px, 6vw, 68px);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(30px, 4vw, 40px);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; padding-block: clamp(76px, 8.9vw, 128px) 56px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(24px, 2.6vw, 48px);
  }
  /* Il titolo parte in alto, la mappa resta centrata sulla colonna */
  .hero__copy { align-self: start; }
}

.hero__copy { position: relative; z-index: 2; }

/* Titolo Hero: nessuna interruzione forzata. Il browser distribuisce
   naturalmente le parole e bilancia le righe, mantenendo una lettura fluida. */
.hero__display {
  max-width: 31ch;
  font-size: clamp(1.75rem, 1.22rem + 1.35vw, 2.45rem);
  line-height: 1.24;
  text-align: left;
  text-wrap: balance;
  hyphens: none;
}
.hero__cta { margin-top: clamp(28px, 3vw, 38px); }

.hero__map {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero__map { max-width: 660px; margin-left: auto; width: 100%; }
}

/* --------------------------------------------------------------------------
   Mappa interattiva delle province
   -------------------------------------------------------------------------- */

.lombardia {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Province */
.lombardia__shapes path {
  fill: var(--map-off);
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linejoin: round;
  transition: fill 0.3s var(--ease);
}
.lombardia__shapes .prov--covered path { fill: var(--map-on); }

/* Solo le province coperte sono interattive */
.lombardia__shapes .prov--covered { cursor: pointer; outline: none; }
.lombardia__shapes .prov--covered:hover path,
.lombardia__shapes .prov--covered:focus-visible path {
  fill: var(--map-on-hi);
}
.lombardia__shapes .prov--covered:focus-visible path {
  stroke: var(--accent-deep);
  stroke-width: 3.4;
}

/* Rete di collegamento */
.lombardia__links path {
  fill: none;
  stroke: var(--map-link);
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* Nodi */
.lombardia__nodes .node { fill: var(--map-node); }
.lombardia__nodes .node--covered { fill: #fff; }
.lombardia__nodes .node--hq {
  fill: var(--map-hq);
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 2px 5px rgba(168, 35, 77, 0.28));
}

/* Legenda */
.maplegend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: clamp(14px, 1.6vw, 20px);
  list-style: none;
}
.maplegend__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.maplegend__item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--map-off);
}
.maplegend__item--on::before { background: var(--map-on); }
.maplegend__item--hq::before { background: var(--map-hq); }
.maplegend__item--hq a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.maplegend__item--hq a span {
  color: var(--brand-blue);
  font-size: 0.76rem;
  white-space: nowrap;
}
.maplegend__item--hq a:hover {
  color: var(--map-hq);
  border-color: rgba(168, 35, 77, 0.35);
}

/* --------------------------------------------------------------------------
   Aree di intervento — due colonne
   -------------------------------------------------------------------------- */

.pillars {
  padding-block: clamp(48px, 6vw, 86px);
}

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 3.4vw, 46px);
}

@media (min-width: 720px) {
  .pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 52px);
  }
}

.pillar { position: relative; }

@media (min-width: 1024px) {
  .pillar { padding-left: clamp(20px, 2.2vw, 34px); border-left: 1px solid var(--rule-soft); }
  .pillar:first-of-type { border-left: 0; padding-left: 0; }
}

.pillar__label { margin-bottom: 14px; }
.pillar__text { max-width: 40ch; }

/* --------------------------------------------------------------------------
   Striscia contatto
   -------------------------------------------------------------------------- */

.contactstrip { padding-block: clamp(26px, 3vw, 34px); }

.contactstrip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.contactstrip__icon { width: 22px; height: 16px; color: var(--ink); flex: none; }


/* --------------------------------------------------------------------------
   Header — accesso rapido Supremo
   -------------------------------------------------------------------------- */
.header-supremo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(42, 157, 216, 0.34);
  background: #fff;
  color: #2A9DD8;
  box-shadow: 0 8px 22px rgba(15, 76, 129, 0.08);
  white-space: nowrap;
}
.header-supremo:hover {
  border-color: #2A9DD8;
  background: rgba(42, 157, 216, 0.05);
}
.header-supremo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .header-supremo span { display: none; }
  .header-supremo {
    width: 48px;
    padding: 0;
  }
  .header-supremo img {
    width: 26px;
    height: 26px;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(26px, 3vw, 34px) clamp(30px, 3.6vw, 44px);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(16px, 2vw, 30px);
}
.footer-nav a {
  font-size: 0.83rem;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.site-footer__legal {
  margin-top: clamp(22px, 2.6vw, 30px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.73rem;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Intestazione pagine interne
   -------------------------------------------------------------------------- */

.pagehead {
  position: relative;
  padding-block: clamp(46px, 6vw, 84px) clamp(38px, 4.6vw, 62px);
}

.pagehead__inner {
  position: relative;
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .pagehead__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; }
}

.pagehead__eyebrow { margin-bottom: clamp(18px, 2vw, 26px); }
.pagehead__lede { padding-bottom: 6px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.breadcrumb a { transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb span[aria-hidden] { color: var(--rule); }


/* --------------------------------------------------------------------------
   Home — cooperative fondatrici nella Hero
   -------------------------------------------------------------------------- */
.hero__eyebrow { margin-bottom: 12px; }
.hero__intro {
  margin-top: clamp(14px, 1.8vw, 20px);
  max-width: 56ch;
}
.hero-founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 620px;
}
.hero-founder {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 105px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow: 0 12px 26px rgba(15, 76, 129, 0.06);
}
.hero-founder__logo-wrap {
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-founder__logo {
  display: block;
  width: 100%;
  max-width: 104px;
  max-height: 74px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-founder__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.hero-founder__meta strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-founder__status {
  color: var(--ink-faint);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}
.hero-founder__link {
  width: fit-content;
  color: var(--brand-blue);
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(15,76,129,0.28);
}
.hero-founder__link:hover { color: var(--brand-green); }
@media (max-width: 620px) {
  .hero-founders { grid-template-columns: 1fr; }
  .hero-founder { grid-template-columns: 100px minmax(0, 1fr); }
}
.about-mission {
  max-width: 80ch;
  margin-bottom: clamp(26px, 3vw, 40px);
}

/* --------------------------------------------------------------------------
   Sezioni generiche
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(46px, 5.6vw, 82px); }
.section--tight { padding-block: clamp(36px, 4.2vw, 60px); }

.section__head {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: 1fr;
  margin-bottom: clamp(30px, 3.6vw, 52px);
}
@media (min-width: 1024px) {
  .section__head {
    grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 3vw, 48px);
  }
}
.section__head-copy { max-width: 62ch; }

/* Elenco numerato (servizi, adesione) */
.entrylist { border-top: 1px solid var(--rule); }

.entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px clamp(24px, 3vw, 48px);
  padding-block: clamp(26px, 3vw, 38px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.4s var(--ease);
}
@media (min-width: 860px) {
  .entry { grid-template-columns: minmax(90px, 0.24fr) minmax(0, 0.86fr) minmax(0, 1.2fr); align-items: start; }
}
.entry:hover { background: rgba(255, 255, 255, 0.6); }
.entry__num {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.entry__title { font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.3rem); font-weight: 400; letter-spacing: -0.012em; line-height: 1.35; }
.entry__text { max-width: 56ch; }

/* Card sobrie */
.cardgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
@media (min-width: 700px) { .cardgrid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .cardgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cardgrid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg);
  padding: clamp(24px, 2.8vw, 38px);
  transition: background 0.4s var(--ease);
}
.card:hover { background: var(--surface); }
.card__icon { width: 30px; height: 30px; color: var(--accent-deep); margin-bottom: clamp(18px, 2vw, 26px); }
.card__title { font-size: 1.02rem; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 10px; }
.card__text { max-width: 42ch; }

/* Dati / indicatori */
.factgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 3vw, 44px);
}
@media (min-width: 900px) { .factgrid { grid-template-columns: repeat(4, 1fr); } }

.fact { border-top: 1px solid var(--rule); padding-top: 18px; }
.fact__value {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  font-weight: 200;
  letter-spacing: -0.028em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fact__label {
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* Blocco prosa */
.prose p + p { margin-top: 1.15em; }
.prose { max-width: 62ch; }

/* Due colonne testo */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3vw, 56px);
}
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Stato vuoto (Area Download)
   -------------------------------------------------------------------------- */

.emptystate {
  border: 1px dashed var(--rule);
  background: rgba(255, 255, 255, 0.5);
  padding: clamp(40px, 6vw, 78px) clamp(24px, 4vw, 56px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.emptystate__icon { width: 44px; height: 44px; color: var(--ink-faint); }
.emptystate__title { font-size: 1.12rem; font-weight: 400; letter-spacing: -0.01em; }
.emptystate__text { max-width: 46ch; }

.doclist { border-top: 1px solid var(--rule); }
.doclist__head {
  display: none;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (min-width: 860px) {
  .doclist__head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 120px 120px; gap: 24px; }
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form { display: grid; gap: clamp(20px, 2.2vw, 26px); }

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.2vw, 26px);
}
@media (min-width: 700px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 8px; }

.field__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.field__label .req { color: var(--accent-deep); }

.field__control {
  width: 100%;
  min-height: 48px;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
  appearance: none;
}
textarea.field__control { min-height: 130px; resize: vertical; line-height: 1.7; }
.field__control::placeholder { color: var(--ink-faint); }
.field__control:hover { border-bottom-color: var(--ink-faint); }
.field__control:focus { outline: none; border-bottom-color: var(--accent-deep); }
.field__control:disabled { color: var(--ink-faint); cursor: not-allowed; }

.field.is-invalid .field__control { border-bottom-color: #c4553d; }
.field__error {
  font-size: 0.72rem;
  color: #c4553d;
  letter-spacing: 0.02em;
  min-height: 0;
  display: none;
}
.field.is-invalid .field__error { display: block; }

.checkfield {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 44px;
  padding-top: 2px;
}
.checkfield input {
  appearance: none;
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  border: 1px solid var(--rule);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.checkfield input:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4L9.6 3.9' fill='none' stroke='%2306333a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}
.checkfield input:hover { border-color: var(--ink-faint); }
.checkfield.is-invalid input { border-color: #c4553d; }
.checkfield .field__error { flex-basis: 100%; margin-top: 2px; }

.form__note { font-size: 0.73rem; color: var(--ink-faint); line-height: 1.7; }

.form__status {
  display: none;
  border-left: 2px solid var(--accent);
  background: var(--accent-wash);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.7;
}
.form__status.is-visible { display: block; }

/* Riquadro accesso Area Riservata */
.loginpanel {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: clamp(28px, 3.6vw, 46px);
}
.loginpanel__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(22px, 2.6vw, 30px);
}
.loginpanel__badge i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: block;
  flex: none;
}

/* Elenco contatti */
.infolist { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.infoitem {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 600px) { .infoitem { grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr); align-items: baseline; } }
.infoitem__key {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.infoitem__val { font-size: 0.93rem; color: var(--ink); line-height: 1.7; }
.infoitem__val a { border-bottom: 1px solid var(--rule); transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.infoitem__val a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* Riquadro mappa secondaria */
.mapframe {
  position: relative;
  padding: clamp(14px, 1.8vw, 26px);
  border: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, 0.45);
}
.mapframe__inner {
  position: relative;
  aspect-ratio: 66 / 60;
  overflow: hidden;
}
.mapframe img {
  position: absolute;
  left: -29.2%;
  top: -22.8%;
  width: 153.8%;
  height: auto;
  max-width: none;
  mix-blend-mode: multiply;
}

/* CTA di chiusura */
.closing { padding-block: clamp(48px, 6vw, 86px); }
.closing__inner {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) { .closing__inner { grid-template-columns: minmax(0, 1.15fr) auto; } }

/* --------------------------------------------------------------------------
   Rivelazione allo scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-s  { margin-top: clamp(16px, 1.8vw, 22px); }
.mt-m  { margin-top: clamp(24px, 2.8vw, 34px); }
.mt-l  { margin-top: clamp(34px, 4vw, 52px); }
 


/* ==========================================================================
   Ritocchi finali — maggiore ritmo visivo e pagina Servizi
   ========================================================================== */

/* Profondità discreta, coerente con la palette ufficiale */
.pagehead {
  background:
    radial-gradient(circle at 88% 18%, rgba(44, 162, 141, 0.10), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(228, 246, 245, 0.34));
  border-bottom: 1px solid var(--rule-soft);
}

/* Alternanza lieve delle sezioni interne: più ritmo senza perdere sobrietà */
main > section.section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.58);
}

/* Titoletti di sezione più riconoscibili */
.section__head > .eyebrow,
.section__head > div > .eyebrow {
  position: relative;
  padding-top: 14px;
}
.section__head > .eyebrow::before,
.section__head > div > .eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-2));
  border-radius: 999px;
}

/* Pagina Servizi: sottotitolo centrato nella griglia e più leggibile */
.services-intro {
  text-align: center;
  justify-items: center;
  grid-template-columns: 1fr !important;
  max-width: 880px;
  margin-inline: auto;
}
.services-intro .section__head-copy {
  max-width: 760px;
  margin-inline: auto;
}
.services-intro .subtitle {
  text-wrap: balance;
  color: var(--ink-soft);
}
.services-intro > .eyebrow::before {
  left: 50%;
  transform: translateX(-50%);
}

/* Elenco servizi: righe più distinte, senza trasformarle in card commerciali */
.entrylist {
  border-top-color: rgba(15, 76, 129, 0.20);
}
.entry {
  position: relative;
  padding-inline: clamp(16px, 2vw, 28px);
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.30);
}
.entry:nth-child(even) {
  background: rgba(228, 246, 245, 0.32);
}
.entry:hover {
  background: rgba(255, 255, 255, 0.88);
  border-left-color: var(--brand-green-2);
}
.entry__num {
  color: var(--brand-green-2);
  font-weight: 500;
}
.entry__title {
  color: var(--brand-blue);
}

/* Card: un po' più di profondità e colore, sempre istituzionale */
.cardgrid {
  gap: 14px;
  background: transparent;
  border: 0;
}
.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 76, 129, 0.10);
  border-top: 3px solid rgba(44, 162, 141, 0.50);
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.06);
}
.card:hover {
  background: #fff;
  border-top-color: var(--brand-green);
  box-shadow: 0 18px 42px rgba(15, 76, 129, 0.10);
  transform: translateY(-2px);
}
.card__icon { color: var(--brand-green-2); }
.card__title { color: var(--brand-blue); }

/* Contatti, download e pannelli: superfici più definite */
.emptystate,
.loginpanel,
.mapframe {
  box-shadow: 0 16px 38px rgba(15, 76, 129, 0.06);
}

/* Footer più conclusivo, senza diventare scuro o pesante */
.site-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(228, 246, 245, 0.55));
}

/* Colori link e focus coerenti con il marchio */
.textlink,
.infoitem__val a:hover,
.breadcrumb a:hover,
.nav__link:hover,
.header__reserved:hover {
  color: var(--brand-green-2);
}

@media (max-width: 767px) {
  .services-intro { text-align: left; justify-items: start; }
  .services-intro > .eyebrow::before { left: 0; transform: none; }
  .entry { padding-inline: 12px; }
}

/* ========================================================================== 
   Versione 13 — maggiore identità cromatica e Accesso HeMa prioritario
   ========================================================================== */

/* Palette più presente, sempre coerente con il marchio RSL */
:root {
  --bg:            #eef5f8;
  --surface:       #ffffff;
  --ink:           #0f3f6d;
  --ink-soft:      #365f7f;
  --ink-faint:     #708da4;
  --accent:        #38b9a8;
  --accent-deep:   #168b7e;
  --accent-wash:   #d9f0eb;
  --rule:          rgba(15, 76, 129, 0.20);
  --rule-soft:     rgba(15, 76, 129, 0.10);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(44, 162, 141, 0.08), transparent 24rem),
    var(--bg);
}

/* Header più solido e call to action HeMa immediatamente riconoscibile */
.site-header {
  background: color-mix(in srgb, #ffffff 94%, transparent);
  border-bottom-color: rgba(15, 76, 129, 0.12);
  box-shadow: 0 8px 26px rgba(15, 76, 129, 0.05);
}

.header__reserved {
  min-height: 46px;
  padding: 11px 18px;
  border: 2px solid var(--brand-blue);
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.16);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.header__reserved svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}
.header__reserved:hover {
  color: #ffffff;
  background: var(--brand-green);
  border-color: var(--brand-green);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(3, 134, 78, 0.22);
}
.header__reserved:focus-visible {
  outline: 3px solid rgba(44, 162, 141, 0.35);
  outline-offset: 3px;
}

/* Hero e intestazioni più vive */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(44, 162, 141, 0.15), transparent 26rem),
    linear-gradient(135deg, #ffffff 0%, #edf7f5 52%, #e7f1f7 100%);
  border-bottom: 1px solid rgba(15, 76, 129, 0.13);
}

.pagehead {
  background:
    radial-gradient(circle at 86% 18%, rgba(44, 162, 141, 0.20), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #e9f6f2 52%, #e6f0f7 100%);
}

/* Alternanza più leggibile tra le sezioni */
main > section.section:nth-of-type(even) {
  background: #ffffff;
}
main > section.section:nth-of-type(odd) {
  background: rgba(232, 244, 247, 0.72);
}

/* Evita che il primo blocco subito dopo il pagehead risulti troppo carico */
.pagehead + .section {
  background: #ffffff !important;
}

/* Card e righe con maggiore contrasto cromatico */
.card {
  border-color: rgba(15, 76, 129, 0.16);
  border-top-color: var(--brand-green-2);
  box-shadow: 0 16px 38px rgba(15, 76, 129, 0.09);
}
.card:hover {
  border-top-color: var(--brand-green);
  box-shadow: 0 20px 46px rgba(15, 76, 129, 0.14);
}

.entry {
  background: rgba(255, 255, 255, 0.70);
}
.entry:nth-child(even) {
  background: rgba(217, 240, 235, 0.62);
}
.entry:hover {
  background: #ffffff;
}

/* Pulsanti principali più netti */
.btn--brand {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-2));
  border-color: var(--brand-green);
  box-shadow: 0 10px 22px rgba(3, 134, 78, 0.18);
}
.btn--brand:hover {
  box-shadow: 0 14px 28px rgba(3, 134, 78, 0.26);
}

/* Mappa più contrastata */
.prov--covered path,
.prov--covered {
  filter: drop-shadow(0 5px 8px rgba(15, 76, 129, 0.16));
}

/* Footer più conclusivo */
.site-footer {
  background: linear-gradient(180deg, #e8f3f5 0%, #dbece9 100%);
  border-top: 1px solid rgba(15, 76, 129, 0.16);
}

/* Mobile: accesso HeMa ben visibile anche nel drawer */
.drawer__foot .btn {
  width: 100%;
  min-height: 54px;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
}
.drawer__foot .btn::before { background: var(--brand-green); }
.drawer__foot .btn:hover { color: #ffffff; border-color: var(--brand-green); }

@media (max-width: 1100px) and (min-width: 1024px) {
  .header__reserved {
    padding-inline: 14px;
    font-size: 0.86rem;
  }
}


/* --------------------------------------------------------------------------
   Contatti — geolocalizzazione della sede
   -------------------------------------------------------------------------- */
.location-card {
  border: 1px solid rgba(15, 76, 129, 0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(44,162,141,0.08));
  box-shadow: 0 18px 44px rgba(15, 76, 129, 0.11);
  padding: clamp(22px, 3vw, 34px);
}
.location-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.location-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(3, 134, 78, 0.22);
}
.location-card__icon svg { width: 28px; height: 28px; }
.location-card__title {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
}
.location-card__text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}
.location-card__map {
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, 0.16);
  min-height: 310px;
  background: #e9eef2;
}
.location-card__map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.location-card__cta {
  margin-top: 18px;
  width: fit-content;
}
@media (max-width: 640px) {
  .location-card__head { grid-template-columns: 1fr; }
  .location-card__map iframe { height: 300px; }
}


/* --------------------------------------------------------------------------
   V23 — ottimizzazione mobile
   Interventi esclusivamente sotto 760px: desktop invariato.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  /* Header: prima riga pulita, seconda riga per accessi rapidi */
  .site-header__inner,
  .header__inner,
  .nav-wrap {
    row-gap: 10px;
  }

  .brand,
  .site-brand,
  .header__brand {
    max-width: min(72vw, 340px);
  }

  .brand img,
  .site-brand img,
  .header__brand img,
  .brand__logo {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  /* Rende visibile e ordinato il gruppo CTA mobile */
  .nav__actions,
  .header-actions,
  .header__actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    order: 3;
  }

  .nav__cta,
  .header-supremo {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    justify-content: center;
    font-size: 0.86rem;
    border-radius: 8px;
  }

  .header-supremo {
    display: inline-flex !important;
    color: #2A9DD8;
    background: #fff;
    border: 1px solid rgba(42, 157, 216, 0.38);
  }

  .header-supremo span {
    display: inline !important;
  }

  .header-supremo img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
  }

  /* Hero più compatta */
  .hero {
    padding-block: 42px 38px;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__display {
    font-size: clamp(2.15rem, 7.9vw, 3.05rem);
    line-height: 1.08;
    max-width: 100%;
  }

  .hero__intro {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero__cta {
    margin-top: 22px;
  }

  /* Cooperative fondatrici: card più snelle */
  .hero-founders {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
    max-width: 100%;
  }

  .hero-founder {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .hero-founder__logo-wrap {
    height: 66px;
  }

  .hero-founder__logo {
    max-width: 88px;
    max-height: 64px;
  }

  .hero-founder__meta strong {
    font-size: 0.9rem;
  }

  .hero-founder__status,
  .hero-founder__link {
    font-size: 0.76rem;
  }

  /* Mappa e legenda: evita compressioni eccessive */
  .hero__map {
    margin-top: 6px;
  }

  .maplegend {
    gap: 8px 16px;
  }

  .maplegend__item {
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .hero__display {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .hero-founder {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .nav__actions,
  .header-actions,
  .header__actions {
    gap: 8px;
  }

  .nav__cta,
  .header-supremo {
    min-height: 42px;
    font-size: 0.82rem;
  }
}


/* --------------------------------------------------------------------------
   V24 — correzione definitiva header mobile
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    width: 100%;
  }

  .site-header__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px;
    grid-template-areas:
      "brand burger"
      "hema supremo";
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    max-width: 100% !important;
    overflow: hidden;
  }

  .brand__logo {
    display: block;
    width: auto !important;
    height: 64px !important;
    max-width: 100% !important;
    object-fit: contain;
  }

  .burger {
    grid-area: burger;
    margin-left: 0 !important;
    justify-self: end;
    width: 46px;
    height: 46px;
  }

  .nav {
    display: none !important;
  }

  .header__reserved {
    grid-area: hema;
    display: inline-flex !important;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(15, 76, 129, 0.28);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-blue);
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.06);
  }

  .header__reserved svg {
    width: 15px;
    height: 15px;
  }

  .header-supremo {
    grid-area: supremo;
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px !important;
    border-radius: 8px;
    white-space: nowrap;
  }

  .header-supremo span {
    display: inline !important;
  }

  .header-supremo img {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
  }
}

@media (max-width: 390px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) 44px;
    column-gap: 8px;
    row-gap: 8px;
  }

  .brand__logo {
    height: 58px !important;
  }

  .burger {
    width: 44px;
    height: 44px;
  }

  .header__reserved,
  .header-supremo {
    min-height: 42px;
    font-size: 0.8rem;
    padding-inline: 8px !important;
  }
}


/* --------------------------------------------------------------------------
   V25 — pulsanti mobile HeMa / Supremo
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "brand burger"
      "hema supremo" !important;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .burger {
    grid-area: burger;
    justify-self: end;
  }

  .header__reserved {
    grid-area: hema;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;
    padding: 0 12px !important;
    justify-content: center;
    background: var(--brand-blue) !important;
    border: 1px solid var(--brand-blue) !important;
    color: #fff !important;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.14);
    font-weight: 600;
    white-space: nowrap;
  }

  .header__reserved svg {
    color: #fff !important;
    stroke: currentColor;
  }

  .header-supremo {
    grid-area: supremo;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;
    padding: 0 12px !important;
    justify-content: center;
    background: #fff !important;
    border: 1px solid rgba(42, 157, 216, 0.48) !important;
    color: #2A9DD8 !important;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.07);
    white-space: nowrap;
    overflow: visible !important;
  }

  .header-supremo span {
    display: inline !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .header-supremo img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
}

@media (max-width: 390px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .header__reserved,
  .header-supremo {
    font-size: 0.78rem;
    min-height: 44px;
    padding-inline: 8px !important;
  }
}
