@media (max-width: 1120px) {
  .site-header__brand { min-width: 320px; }
  .site-header__brand img { height: 72px; }
  .grid--4, .categories-grid, .convenzioni-grid { grid-template-columns: repeat(3, 1fr); }
  .nav__link { padding-inline: .55rem; font-size: .91rem; }
}
@media (max-width: 940px) {
  .site-header__brand { min-width: 0; }
  .site-header__brand img { height: 62px; }
  :root { --header-h: 82px; }
  .container { width: min(100% - 28px, var(--container)); }
  .nav { position: fixed; z-index: 999; top: 0; right: 0; width: min(88vw, 390px); height: 100svh; padding: 6rem 1.2rem 1.2rem; background: #fff; color: var(--color-ink); box-shadow: -20px 0 50px rgba(8,43,79,.16); display: flex; flex-direction: column; align-items: stretch; gap: .25rem; transform: translateX(105%); transition: transform .32s var(--ease); }
  body.menu-open .nav { transform: translateX(0); }
  .nav__link { padding: .95rem 1rem; border-radius: 16px; }
  .nav__link:hover, .nav__link.is-active { background: var(--color-primary-soft); color: var(--color-primary); }
  .nav__cta { margin: .6rem 0 0; justify-content: center; }
  .menu-toggle { display: inline-flex; z-index: 1001; }
  .split, .grid--2 { grid-template-columns: 1fr; }
  .grid--3, .grid--4, .categories-grid, .convenzioni-grid, .sedi-list { grid-template-columns: repeat(2, 1fr); }
  .counters__panel { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2) { border-right: 0; }
  .counter:nth-child(1), .counter:nth-child(2) { border-bottom: 1px solid var(--color-border); }
  .sedi-layout { grid-template-columns: 1fr; }
  .sede-panel { position: static; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .home-about-panel .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .kicker-row { align-items: start; flex-direction: column; }
}
@media (max-width: 680px) {
  .hero__content { padding-top: 3.8rem; }
  .hero__logo { width: min(390px, 86vw); }
  .actions, .newsletter { flex-direction: column; align-items: stretch; }
  .btn, .newsletter .btn { width: 100%; }
  .section { padding: 3.6rem 0; }
  .grid--3, .grid--4, .categories-grid, .category-teaser, .convenzioni-grid, .sedi-list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .counters { margin-top: -2rem; }
  .counters__panel { border-radius: var(--radius-lg); }
  .counter { padding: 1.2rem .8rem; }
  .page-hero { padding: calc(var(--header-h) + 3rem) 0 3.4rem; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { display: grid; }
  .cookie-banner__inner { grid-template-columns: 1fr; }
  .cookie-banner__actions .btn { width: auto; }
  .feature-strip { grid-template-columns: 1fr; }
  .home-about-panel .feature-strip { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .container { width: min(100% - 22px, var(--container)); }
  .site-header__brand img { height: 52px; }
  .card__body, .news-card__body { padding: 1rem; }
}



@media (max-width: 1100px) {
  .initiative-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .initiative-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .initiative-grid { grid-template-columns: 1fr; }
}


@media (min-width: 1180px) {
  .initiatives-carousel { grid-auto-columns: calc((100% - 3rem) / 4); }
}
@media (max-width: 680px) {
  .carousel-controls { width: 100%; justify-content: flex-start; }
  .initiatives-carousel { grid-auto-columns: minmax(250px, 82vw); }
  .initiative-card--carousel .initiative-card__body { min-height: auto; }
}


@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  .container { width: min(100% - 32px, var(--container)); }
  .kicker-row { align-items: flex-start; }
  .section-title, .section-title p { max-width: 100%; }
  img, video, svg { max-width: 100%; }
}


/* V59: mobile header and hero responsive refinement */
@media (max-width: 940px) {
  .site-header {
    background: rgba(255,255,255,.97);
    color: var(--color-ink);
    box-shadow: 0 10px 30px rgba(8,43,79,.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .site-header::before { opacity: 0; }
  .site-header .site-header__logo--white { display: none; }
  .site-header .site-header__logo--blue { display: block; }
  .site-header .site-header__brand img {
    filter: none;
  }
  .menu-toggle {
    border-color: var(--color-border);
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(8,43,79,.10);
  }
}

@media (max-width: 767px) {
  .hero__content {
    padding-top: calc(var(--header-h) + 2.7rem) !important;
    padding-bottom: 3.6rem;
  }
  .hero h1 {
    max-width: 11.2em;
    margin-inline: auto;
  }
  .hero__stats {
    width: min(100%, 660px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 26px;
  }
  .hero__stats .counter {
    position: relative;
    min-width: 0;
    border-right: 0 !important;
    border-bottom: 0 !important;
    padding: 1rem .35rem 1.05rem;
  }
  .hero__stats .counter:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    right: 0;
    width: 1px;
    background: rgba(255,255,255,.24);
  }
  .hero__stats .counter__number {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.055em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .hero__stats .counter:nth-child(3) .counter__number {
    font-size: clamp(1.65rem, 7.3vw, 2.16rem);
  }
  .hero__stats .counter__label {
    max-width: 7.5ch;
    font-size: clamp(.82rem, 3.45vw, .98rem);
    line-height: 1.22;
  }
}

@media (max-width: 380px) {
  .hero__stats .counter { padding-inline: .22rem; }
  .hero__stats .counter__number { font-size: 1.65rem; }
  .hero__stats .counter:nth-child(3) .counter__number { font-size: 1.5rem; }
  .hero__stats .counter__label { font-size: .78rem; }
}
