@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Lexend:wght@500;600;700;800&display=swap');

:root {
  --bg: #f1ece2;
  --ink: #18252f;
  --brand: #094365;
  --brand-2: #e30613;
  --accent: #ffed00;
  --panel: #fffdf9;
  --line: #ccd5d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 36%),
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 30%),
    radial-gradient(circle at 84% 88%, color-mix(in srgb, var(--brand) 8%, transparent) 0%, transparent 27%),
    var(--bg);
}

a { color: inherit; }

.site-shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand-wrap {
  flex: 0 0 auto;
}

.brand {
  text-decoration: none;
  display: grid;
  gap: 0.1rem;
}

.brand-logo,
.custom-logo-link.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo img,
.custom-logo {
  display: block;
  height: 96px;
  width: auto;
}

.brand-kicker {
  font-family: 'IBM Plex Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--brand);
  opacity: 0.8;
}

.brand-title {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--brand);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(9, 67, 101, 0.25);
  transition: background 0.18s, box-shadow 0.18s;
}

.menu-toggle:hover {
  background: #073754;
  box-shadow: 0 4px 14px rgba(9, 67, 101, 0.35);
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), opacity 0.18s, width 0.18s;
}

.menu-toggle-bars span:nth-child(3) {
  width: 65%;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  width: 100%;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  width: 100%;
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  color: #2c4a58;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.primary-menu a:hover {
  color: var(--brand);
  background: rgba(9, 67, 101, 0.05);
}

.primary-menu a:hover::after {
  transform: scaleX(1);
}

.primary-menu .menu-item.is-active a,
.primary-menu a[aria-current="page"] {
  color: var(--brand);
  background: rgba(9, 67, 101, 0.07);
  font-weight: 700;
}

.primary-menu .menu-item.is-active a::after,
.primary-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  color: var(--brand);
  background: var(--accent);
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: 0.5rem;
  transition: background 0.18s, transform 0.18s;
}

.header-cta:hover {
  background: #e8d600;
  transform: translateY(-1px);
}

/* --- Desktop dropdown nav --- */
.menu-item--has-children {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-item--has-children > a {
  padding-right: 0.2rem;
}

.sub-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.3rem;
  color: #2c4a58;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}

.sub-menu-toggle:hover {
  color: var(--brand);
  background: rgba(9, 67, 101, 0.06);
}

.sub-menu-toggle svg {
  transition: transform 0.22s ease;
  display: block;
}

.menu-item--has-children.is-open .sub-menu-toggle svg {
  transform: rotate(180deg);
}

/* Gap fix: padding-top creates visual gap but sub-menu element
   starts at top:100% so mouse never leaves the <li> hover area */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 200;
  padding: 8px 0 0.5rem;
  list-style: none;
  margin: 0;
  background: transparent;
}

/* Visual box via ::before so the padding area stays transparent */
.sub-menu::before {
  content: '';
  position: absolute;
  inset: 8px 0 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(9, 67, 101, 0.15), 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(9, 67, 101, 0.1);
  z-index: -1;
}

.menu-item--has-children:hover > .sub-menu,
.menu-item--has-children.is-open > .sub-menu {
  display: block;
}

.sub-menu-item {
  position: relative;
  z-index: 1;
}

.sub-menu-item a {
  display: block;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  color: #2c4a58;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sub-menu-item a:hover,
.sub-menu-item.is-active a,
.sub-menu-item a[aria-current="page"] {
  background: #f0f6fa;
  color: var(--brand);
  font-weight: 600;
}

/* Mobile-only nav elements: hide on desktop */
.nav-backdrop,
.nav-drawer-header,
.nav-mobile-shortcuts,
.nav-main-cta,
.nav-sub-open,
.nav-sub-panel,
.nav-back-btn,
.sub-panel-list {
  display: none;
}

/* Desktop nav-main-panel: transparent wrapper */
.nav-main-panel {
  display: flex;
  align-items: center;
}

.page-section {
  padding: 3rem 0;
}

.hero-block {
  padding: 5.5rem 0 4rem;
  background:
    linear-gradient(126deg, color-mix(in srgb, var(--brand) 30%, #fff) 0%, transparent 56%),
    linear-gradient(318deg, color-mix(in srgb, var(--accent) 26%, #fff) 0%, transparent 52%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.hero-media img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  object-fit: cover;
}

.hero-block h1 {
  margin: 0;
  font-family: 'Lexend', sans-serif;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  /* 0.94 faceva toccare i discendenti della riga sopra; 13ch spezzava il
     titolo in tre righe strettissime. Si tiene il taglio compatto ma leggibile. */
  line-height: 1.02;
  max-width: 18ch;
  text-wrap: balance;
  letter-spacing: 0.01em;
}

.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.home-hero::before {
  width: clamp(220px, 34vw, 520px);
  aspect-ratio: 1 / 1;
  right: clamp(-80px, 2vw, 40px);
  top: -70px;
  border-radius: 32% 68% 62% 38% / 38% 34% 66% 62%;
  background: color-mix(in srgb, var(--brand-2) 26%, #ffffff);
  opacity: 0.44;
}

.home-hero::after {
  width: clamp(300px, 44vw, 620px);
  height: 2px;
  right: -70px;
  bottom: 28px;
  transform: rotate(-8deg);
  box-shadow:
    0 -14px 0 color-mix(in srgb, var(--brand) 26%, transparent),
    0 0 0 color-mix(in srgb, var(--accent) 38%, transparent),
    0 14px 0 color-mix(in srgb, var(--brand-2) 28%, transparent);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--brand);
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(122deg, color-mix(in srgb, var(--brand) 92%, #000), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.88rem 1.28rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 56, 66, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.btn-secondary {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.88rem 1.28rem;
  transition: transform 0.24s ease, background 0.24s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(10, 56, 66, 0.28);
}

.btn-secondary:hover {
  background: #ffffff;
}

.metrics-block,
.events-block,
.cta-block,
.features-block,
.benefits-block,
.faq-block {
  padding: 3.3rem 0;
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.post-grid {
  display: grid;
  gap: 1.4rem;
  /* Max 3 colonne: 360px min garantisce al massimo 3 card su 1240px */
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
}

.metric-card,
.post-card,
.iscrizione-shell,
.cta-inner,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.25;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a6070;
  flex: 1;
}

.info-card .text-link {
  margin-top: 1.1rem;
}

.info-card h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.info-card ol,
.info-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.info-card .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.section-intro {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a6070;
}

.section-label,
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

.section-head h2,
.page-section h2,
.post-card h3,
.compact-card h3,
.info-card h3,
.content-hero h1,
.archive-hero h1 {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.hero-actions,
.section-head.with-link,
.card-topline,
.meta-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-copy {
  max-width: 60ch;
  font-size: 1.1rem;
}

.editorial-split,
.two-column-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr;
}

.section-head {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
}

/* Etichetta sopra al titolo: pochissimo spazio */
.section-head .section-label,
.section-head .card-kicker {
  margin-bottom: 0.3rem;
}

/* Titolo → intro: spazio più respiro */
.section-head h2 {
  margin: 0 0 0.65rem;
}

.section-head .section-intro {
  margin: 0;
}

.with-link {
  justify-content: space-between;
}

.alt-surface {
  border-top: 1px solid var(--line);
}

.benefits-band {
  border-block: 1px solid var(--line);
}

.benefits-list {
  display: grid;
  gap: 0.8rem;
}

.benefits-list p,
.compact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.1rem;
}

.stack-grid {
  display: grid;
  gap: 0.9rem;
}

.compact-card h3,
.content-hero h1,
.archive-hero h1 {
  margin: 0.2rem 0 0;
  font-family: 'Lexend', sans-serif;
}

.rich-grid .post-card h2,
.post-grid .post-card h3,
.info-card h3,
.compact-card h3 {
  margin-top: 0;
}

.chip,
.mini-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #dcebed;
  color: #0f5a5e;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.chip.muted,
.mini-pill {
  background: #f2f1eb;
  color: #4a5d66;
}

.meta-inline {
  color: #425861;
  font-weight: 600;
}

.breadcrumbs {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  font-size: 0.84rem;
  color: #49606b;
}

.breadcrumbs a {
  color: #0b486d;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.content-layout {
  display: grid;
  gap: 0.75rem;
}

.content-hero {
  display: grid;
  gap: 0.7rem;
}

.detail-main,
.detail-aside {
  min-width: 0;
}

/* --- Back-link in archive-hero single pages --- */
.archive-hero a.back-crumb {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 0.55rem;
  transition: opacity 0.15s;
}
.archive-hero a.back-crumb:hover { opacity: 0.55; }

/* --- Uscita hero: meta strip (data + comprensorio + tipo) --- */
.uscita-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  margin-top: 1rem;
}
.uscita-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #4a6070;
}
.uscita-meta-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--brand);
  opacity: 0.75;
}
.uscita-meta-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 40px;
  padding: 0.2em 0.75em;
}

/* --- Copertina full-width tra hero e contenuto --- */
.uscita-cover-wrap {
  padding-bottom: 0;
}
.uscita-cover-img {
  display: block;
  width: 100%;
  height: clamp(240px, 42vw, 580px);
  object-fit: cover;
  border-radius: 20px;
}

/* --- Fact-sheet info-card --- */
.fact-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1rem 1.4rem 1.25rem;
  list-style: none;
}
.fact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-row:first-child { padding-top: 0; }
.fact-row:last-child  { border-bottom: none; padding-bottom: 0; }
.fact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--brand);
  opacity: 0.7;
  margin-top: 0.55rem;
}
.fact-icon svg { width: 100%; height: 100%; }
.fact-body { display: flex; flex-direction: column; gap: 0.08rem; }
.fact-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a9daa;
}
.fact-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

/* --- uscita-card: info-card con header brand --- */
.uscita-card {
  padding: 0;
  overflow: hidden;
}
.uscita-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.uscita-card-header svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.uscita-card-cta {
  padding: 0 1.4rem 1.25rem;
}
.uscita-card-cta .btn-primary {
  display: block;
  text-align: center;
}
.event-cta-inline {
  margin-top: 1.75rem;
}

/* --- Sidebar sticky sul desktop --- */
@media (min-width: 901px) {
  .detail-aside {
    align-self: start;
    position: sticky;
    top: 5.5rem;
  }
}

/* --- Grid full-width quando non c'è il sidebar --- */
.detail-grid--full {
  grid-template-columns: 1fr;
}
.detail-grid--full .detail-main {
  max-width: 72ch;
}

.feature-media {
  margin-bottom: 1.75rem;
}
.feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
}

.post-card-media {
  display: block;
  margin: -1.4rem -1.4rem 1rem;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.post-card-media img {
  display: block;
  width: 100%;
  height: clamp(180px, 25vw, 230px);
  object-fit: cover;
}

.media-slot {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(170px, 22vw, 230px);
  background:
    linear-gradient(135deg, #eef5f9 0%, #deebf2 100%);
  color: #486371;
  border: 1px dashed #b7cad7;
  border-radius: 16px 16px 0 0;
}

.media-slot span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card-media > .media-slot {
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.media-slot--portrait {
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 10px;
}

/* ── Page / archive header ─────────────────────────────────────
   Bianco netto + bordo sottile. Il gradiente è solo sulla home.
   ───────────────────────────────────────────────────────────── */
.archive-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.archive-hero.page-section {
  padding-top: 3.25rem;
  padding-bottom: 2.75rem;
}

.archive-hero.page-section + .page-section {
  padding-top: 2.5rem;
}

/* Sovrascrive lo stile base: niente pillola, solo testo uppercase */
.archive-hero .section-label {
  background: none;
  color: var(--brand);
  padding: 0;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.75;
}

.archive-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  color: var(--brand);
  margin: 0;
  max-width: 26ch;
  line-height: 1.08;
}

.archive-hero .archive-intro-compact {
  margin-top: 0.7rem;
}

.archive-hero .hero-actions {
  margin-top: 1.5rem;
  gap: 0.75rem;
}

.archive-intro-compact {
  margin: 0.65rem 0 0;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a6070;
}

.archive-hero .meta-inline-group {
  margin-top: 0.75rem;
}

.archive-hero-card {
  margin-top: 1.4rem;
}

.archive-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--bg) 75%, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}

.archive-filter-bar label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

.archive-filter-bar select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: color-mix(in srgb, var(--bg) 40%, #fff);
}

.archive-filter-actions {
  display: flex;
  gap: 0.55rem;
  align-items: end;
}

.front-page-content {
  padding-top: 0;
}

.legacy-content-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(238, 247, 244, 0.7));
}

.legacy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.legacy-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem;
}

.legacy-card h3 {
  margin: 0;
}

.legacy-card ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.legacy-card li a {
  text-decoration: none;
  color: #1a3340;
}

.legacy-card li a:hover {
  text-decoration: underline;
}

.info-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.info-card h3,
.benefit-card h3,
.faq-item summary {
  font-family: 'Lexend', sans-serif;
}

.text-link {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.benefits-grid .benefit-card {
  background: linear-gradient(180deg, #fff, #f5f8fb);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-answer {
  padding-top: 0.75rem;
}

/* ── FAQ page: gruppi per categoria ── */
.faq-page-wrap {
  display: grid;
  gap: 2.5rem;
}

.faq-group-title {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
}

.metric-value {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
}

.metric-label { margin: 0.2rem 0 0; }

.cta-block {
  border-top: none;
  border-bottom: none;
}

.form-notice {
  margin: 0 0 1rem;
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 600;
}

.form-notice.success { background: #e4f8ef; color: #0f7544; }
.form-notice.error { background: #fcedea; color: #9a3521; }

.sciclub-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.sciclub-form-grid label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.sciclub-form-grid input,
.sciclub-form-grid select,
.sciclub-form-grid textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid #c7d4dc;
  border-radius: 10px;
  font: inherit;
}

.sciclub-form-grid .full { grid-column: 1 / -1; }
.sciclub-form-grid .check { display: flex; align-items: center; gap: 0.6rem; }
.sciclub-form-grid .check input { width: auto; }


.site-footer {
  margin-top: 0;
  color: #c8dde5;
  background: #0c1f28;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding: 3rem 0 2.2rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer ul.footer-social {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #c8dde5;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-social a:hover {
  color: #0c1f28;
  background: #ffffff;
  transform: translateY(-2px);
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-brand-name {
  margin: 0 0 0.1rem;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.footer-brand-type {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

.footer-brand-desc {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #adc8d4;
}

.footer-contact {
  margin: 0;
  font-size: 0.88rem;
}

.footer-legal-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #adc8d4;
  margin-bottom: 0.85rem;
}

.footer-legal-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.65rem;
  margin: 0;
  font-size: 0.85rem;
}

.footer-legal-dl dt {
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  align-self: center;
}

.footer-legal-dl dd {
  margin: 0;
  color: #c8dde5;
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: 1.2rem;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-faq {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0 1.5rem;
}

.footer-faq-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
}

.meteo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2.5rem;
  align-items: start;
}

.meteo-iframe-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.meteo-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: none;
}

.meteo-source {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: #6b8491;
}

.meteo-link-group {
  margin-bottom: 1.5rem;
}

.meteo-link-group h2 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.meteo-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.meteo-link-list li {
  border-bottom: 1px solid var(--line);
}

.meteo-link-list li:last-child {
  border-bottom: none;
}

.meteo-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.14s;
}

.meteo-link-list a::after {
  content: '↗';
  font-size: 0.8rem;
  color: #9ab0bc;
  flex-shrink: 0;
}

.meteo-link-list a:hover {
  background: #f4f8fc;
  color: var(--brand);
}

@media (max-width: 800px) {
  .meteo-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── ARPAV bollettino ─────────────────────────────────── */

.arpav-block {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 0.9rem;
  background: #fff;
}

.arpav-header {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.arpav-update {
  color: #6b8491;
  font-size: 0.78rem;
}

.arpav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
}

.arpav-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.6rem;
  background: #f8fafb;
  text-align: center;
}

.arpav-card-icon {
  display: block;
  margin: 0 auto 0.3rem;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.arpav-card-data {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  line-height: 1.3;
}

.arpav-card-cielo {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.3;
}

.arpav-card-temp {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  color: #3b6e8a;
  font-weight: 600;
}

.arpav-card-prob {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  color: #557a8a;
}

.arpav-card-neve {
  margin: 0;
  font-size: 0.7rem;
  color: #6b8491;
}

.arpav-source {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: #6b8491;
}

/* ─── Footer FAQ (legacy remnant) ─────────────────────── */

.footer-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 2rem;
}

.footer-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 1.4rem 0.65rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  position: relative;
  line-height: 1.4;
}

.footer-faq-item summary::-webkit-details-marker { display: none; }

.footer-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}

.footer-faq-item[open] summary {
  color: #ffffff;
}

.footer-faq-item[open] summary::after {
  content: '−';
}

.footer-faq-answer {
  padding: 0 0 0.75rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

.footer-faq-answer p { margin: 0; }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-legal-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.sciclub-pagination {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sciclub-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: #1a2f40;
  background: #ffffff;
  font-weight: 700;
}

.sciclub-pagination .page-numbers.current {
  background: #094365;
  border-color: #094365;
  color: #ffffff;
}

.sciclub-pagination .prev,
.sciclub-pagination .next {
  padding-inline: 1rem;
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Custom editable blocks (sciclub/sezione-*)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sciclub-sezione { background: #ffffff; }
.sciclub-sezione--light { background: var(--surface); }
.sciclub-sezione--dark {
  background: var(--brand);
  color: rgba(255,255,255,0.9);
}
.sciclub-sezione--dark .sciclub-sezione-h2 { color: #ffffff; }
.sciclub-sezione--dark .sciclub-sezione-body { color: rgba(255,255,255,0.8); }
.section-label--light { color: rgba(255,255,255,0.65); }

.sciclub-sezione-testo { max-width: 760px; }

.sciclub-sezione-h2 {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.sciclub-sezione-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}
.sciclub-sezione-body p { margin: 0 0 0.8rem; }
.sciclub-sezione-body p:last-child { margin-bottom: 0; }

.sciclub-sezione-ti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.sciclub-sezione-ti--reverse { direction: rtl; }
.sciclub-sezione-ti--reverse > * { direction: ltr; }
.sciclub-sezione-ti-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 32px rgba(9, 67, 101, 0.14);
}

@media (max-width: 780px) {
  .sciclub-sezione-ti { grid-template-columns: 1fr; gap: 2rem; }
  .sciclub-sezione-ti--reverse { direction: ltr; }
}

.sciclub-download-card { background: var(--surface); }
.sciclub-download-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  flex-wrap: wrap;
}
.sciclub-download-icon {
  flex-shrink: 0;
  color: var(--brand);
  background: var(--surface);
  border-radius: 12px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sciclub-download-body { flex: 1 1 200px; }
.sciclub-download-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.3rem;
}
.sciclub-download-desc { font-size: 0.92rem; color: var(--ink-muted); margin: 0; }
.sciclub-download-btn { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

@media (max-width: 600px) {
  .sciclub-download-inner { flex-direction: column; align-items: flex-start; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.home .metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.home .metric-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand) 18%, var(--line));
  background:
    linear-gradient(180deg, #ffffff 0%, #f6faf9 100%);
}

body.home .metric-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
}

body.home .post-card,
body.home .info-card,
body.home .compact-card,
body.home .benefits-list p,
body.home .cta-inner {
  box-shadow: 0 14px 30px rgba(18, 39, 49, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.home .post-card:hover,
body.home .info-card:hover,
body.home .compact-card:hover,
body.home .benefits-list p:hover,
body.home .cta-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 39, 49, 0.12);
}

body.home .features-block,
body.home .events-block,
body.home .benefits-block,
body.home .cta-block {
  position: relative;
}

body.home .features-block::before,
body.home .events-block::before,
body.home .benefits-block::before,
body.home .cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 96%, rgba(15, 53, 60, 0.08) 100%);
  background-size: 100% 34px;
  opacity: 0.2;
  pointer-events: none;
}

body.home .home-hero .kicker,
body.home .home-hero h1,
body.home .home-hero .hero-copy,
body.home .home-hero .hero-actions {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Sport energico: contrasto alto e ritmo più marcato sulla home */
body.home {
  --ink: #081b2c;
  --brand: #094365;
  --brand-2: #e30613;
  --accent: #ffed00;
  background:
    radial-gradient(circle at 10% 12%, rgba(9, 67, 101, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(227, 6, 19, 0.18) 0%, transparent 24%),
    linear-gradient(160deg, #f3f9ff 0%, #fff7f7 52%, #fffce8 100%);
}

body.home .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

body.home .home-hero {
  padding-top: 6.2rem;
  padding-bottom: 4.6rem;
  background:
    linear-gradient(110deg, rgba(9, 67, 101, 0.2) 0%, rgba(9, 67, 101, 0) 52%),
    linear-gradient(300deg, rgba(227, 6, 19, 0.14) 0%, rgba(227, 6, 19, 0) 46%),
    linear-gradient(180deg, #f4fbff 0%, #fffdf0 100%);
}

body.home .home-hero::before {
  opacity: 0.62;
  border: 3px solid color-mix(in srgb, var(--brand-2) 36%, #fff);
}

body.home .home-hero::after {
  box-shadow:
    0 -16px 0 color-mix(in srgb, var(--brand) 38%, transparent),
    0 0 0 color-mix(in srgb, var(--accent) 50%, transparent),
    0 16px 0 color-mix(in srgb, var(--brand-2) 38%, transparent);
}

body.home .home-hero h1 {
  font-size: clamp(2.2rem, 6.2vw, 4.8rem);
  letter-spacing: 0;
  text-wrap: balance;
}

body.home .kicker {
  color: var(--brand);
}

body.home .hero-copy {
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  max-width: 58ch;
  color: #1a2e3e;
}

nav .btn-primary {
  background: linear-gradient(95deg, #094365 0%, #0f5c88 45%, #e30613 100%);
  box-shadow: 0 14px 28px rgba(0, 71, 117, 0.28);
}

body.home .btn-secondary {
  border: 2px solid color-mix(in srgb, var(--brand) 30%, #9db8c8);
  color: #0d2d49;
}

body.home .metrics-block {
  padding-top: 2.2rem;
}

body.home .metrics-grid {
  gap: 1.1rem;
}

body.home .metric-card {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--brand) 22%, #c7d5dd);
  border-radius: 16px;
  transform: translateY(0);
}

body.home .metric-card:nth-child(odd) {
  transform: translateY(-8px);
}

body.home .metric-card .metric-value {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
}

body.home .features-block,
body.home .events-block,
body.home .benefits-block,
body.home .cta-block,
body.home .page-section.alt-surface {
  border-top: 1px solid color-mix(in srgb, var(--brand) 20%, #d2dde3);
}

body.home .section-label {
  color: #094365;
}

body.home .post-card,
body.home .info-card,
body.home .compact-card,
body.home .benefits-list p,
body.home .cta-inner {
  border-width: 2px;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(14, 43, 59, 0.08);
}

body.home .post-card:hover,
body.home .info-card:hover,
body.home .compact-card:hover,
body.home .benefits-list p:hover,
body.home .cta-inner:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 40px rgba(12, 39, 55, 0.16);
}

body.home .post-grid,
body.home .info-grid,
body.home .stack-grid {
  gap: 1.15rem;
}

body.home .section-head.with-link {
  padding-bottom: 0.7rem;
  border-bottom: 2px dashed color-mix(in srgb, var(--brand-2) 36%, #b8c7ce);
}

body.home .text-link {
  color: #094365;
}

body.home .text-link:hover {
  color: #072f48;
}

body.home .benefits-band {
  background:
    linear-gradient(100deg, rgba(9, 67, 101, 0.08), rgba(255, 237, 0, 0.14));
}

body.home .cta-block {
  background:
    linear-gradient(130deg, rgba(9, 67, 101, 0.28), rgba(227, 6, 19, 0.2)),
    linear-gradient(320deg, rgba(255, 237, 0, 0.2), rgba(255, 255, 255, 0.55));
}

body.home .cta-inner {
  border-color: color-mix(in srgb, var(--brand) 20%, #c1d0d8);
}

body.home .hero-actions .btn-primary,
body.home .hero-actions .btn-secondary {
  min-width: min(320px, 100%);
  justify-content: center;
  text-align: center;
}

body.home .hero-actions {
  gap: 0.9rem;
}

@media (max-width: 900px) {
  body.home .home-hero {
    padding-top: 4.4rem;
    padding-bottom: 3.2rem;
  }

  body.home .home-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
    line-height: 1.02;
  }

  body.home .metric-card:nth-child(odd) {
    transform: none;
  }

  body.home .section-head.with-link {
    border-bottom-width: 1px;
  }
}

@media (max-width: 1100px) {
  body.home .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 1rem;
    z-index: 55;
  }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0.15rem;
  }

  .primary-menu a {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
  }

  .primary-menu a::after {
    display: none;
  }

  .primary-menu .menu-item.is-active a,
  .primary-menu a[aria-current="page"] {
    background: rgba(9, 67, 101, 0.08);
  }

  .header-cta {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
  }

  /* Mobile dropdown */
  .menu-item--has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-item--has-children > a {
    flex: 1;
  }

  .sub-menu-toggle {
    padding: 0.65rem 0.7rem;
  }

  .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(9, 67, 101, 0.05);
    border-radius: 8px;
    margin: 0.3rem 0 0.3rem 0.5rem;
    padding: 0.3rem 0;
    width: 100%;
    flex-basis: 100%;
  }

  .menu-item--has-children.is-open > .sub-menu {
    display: block;
  }

  /* On mobile, don't show dropdown on hover — only on .is-open */
  .menu-item--has-children:hover > .sub-menu,
  .menu-item--has-children:focus-within > .sub-menu {
    display: none;
  }

  .menu-item--has-children.is-open > .sub-menu {
    display: block;
  }

  .sub-menu-item a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .header-inner {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .sciclub-form-grid {
    grid-template-columns: 1fr;
  }

  .sciclub-inner-grid .col-1,
  .sciclub-inner-grid .col-2,
  .sciclub-inner-grid .col-3,
  .sciclub-inner-grid .col-4 {
    grid-column: 1 / -1;
  }

  .sciclub-inner-grid {
    grid-template-columns: 1fr;
  }

  .form-fieldset-pair {
    grid-template-columns: 1fr;
  }

  .editorial-split,
  .tesseramento-grid,
  .two-column-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-block {
    padding-top: 4.6rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  body.home .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Temi sezione home - basi */
.benefits-grid .benefit-card {
  background-image: none;
}

body {
  background-color: #f8fafc;
}

.site-shell {
  width: min(1240px, calc(100% - 3rem));
}

.page-section,
.metrics-block,
.events-block,
.cta-block,
.features-block,
.benefits-block,
.faq-block {
  padding: 4.4rem 0;
}

.hero-block {
  background-color: #eef4f8;
  border-bottom: 1px solid var(--line);
}

.home-hero::before,
.home-hero::after,
body.home .features-block::before,
body.home .events-block::before,
body.home .benefits-block::before,
body.home .cta-block::before {
  display: none;
}

.hero-grid {
  gap: 1.9rem;
}

.hero-copy {
  max-width: 64ch;
  line-height: 1.6;
}

.editorial-split,
.two-column-grid,
.detail-grid {
  gap: 2rem;
}

.section-head {
  gap: 0.95rem;
  margin-bottom: 2rem;
}

.metrics-grid,
.post-grid,
.info-grid,
.legacy-grid,
.stack-grid {
  gap: 1.4rem;
}

.metric-card,
.post-card,
.iscrizione-shell,
.cta-inner,
.info-card,
.faq-item,
.compact-card,
.legacy-card,
.benefits-list p {
  padding: 1.4rem;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--brand) 70%, #001926);
  box-shadow: none;
}

.btn-primary:hover {
  box-shadow: none;
}

.header-cta {
  background: linear-gradient(110deg, #094365 0%, #d4000c 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(9, 67, 101, 0.28);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.header-cta:hover {
  background: linear-gradient(110deg, #0a5078 0%, #e8000f 100%);
  box-shadow: 0 6px 18px rgba(9, 67, 101, 0.38);
  transform: translateY(-1px);
}

body.home .section-head.with-link {
  border-bottom: 1px solid var(--line);
}

/* Social buttons gialli */
@media (max-width: 900px) {
  .uscite-board-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .uscite-board-arrow {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .hero-media {
    order: -1;
  }

  .site-shell {
    width: min(1240px, calc(100% - 1.5rem));
  }

  .page-section,
  .metrics-block,
  .events-block,
  .cta-block,
  .features-block,
  .benefits-block,
  .faq-block {
    padding: 3rem 0;
  }
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }

  .primary-nav {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    z-index: auto !important;
  }

  .primary-menu {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 0 !important;
  }

  .primary-menu a {
    width: auto !important;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero-media {
    order: 0 !important;
  }
}

/* ============================================================
   HOME PAGE — REDESIGN
   Alternanza chiaro/scuro, grid corretti, cards con personalità
   ============================================================ */

/* --- HERO: azzurro ghiaccio con decorazioni cristallo --- */
body.home .hero-block {
  background-color: #e2f3fb;
  background-image:
    radial-gradient(ellipse 65% 70% at 80% 20%, rgba(186, 230, 253, 0.85) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 10% 85%, rgba(224, 244, 255, 0.7) 0%, transparent 55%),
    linear-gradient(160deg, #f0faff 0%, #daf1fb 50%, #c8e9f8 100%);
  border-bottom: 1px solid rgba(147, 210, 240, 0.4);
  position: relative;
  overflow: hidden;
}

/* Decorazione ghiaccio – blob sinistra bassa */
body.home .hero-block::before {
  content: '';
  position: absolute;
  pointer-events: none;
  width: clamp(200px, 32vw, 480px);
  aspect-ratio: 1 / 1;
  left: -90px;
  bottom: -80px;
  border-radius: 38% 62% 48% 52% / 52% 40% 60% 48%;
  background: rgba(125, 211, 252, 0.22);
  filter: blur(28px);
  z-index: 0;
}

/* Decorazione ghiaccio – cristallo destra alta */
body.home .hero-block::after {
  content: '';
  position: absolute;
  pointer-events: none;
  width: clamp(120px, 18vw, 280px);
  aspect-ratio: 1 / 1;
  right: 6%;
  top: -40px;
  border-radius: 28% 72% 52% 48% / 48% 36% 64% 52%;
  background: rgba(56, 189, 248, 0.15);
  filter: blur(18px);
  z-index: 0;
}

body.home .hero-block .site-shell {
  position: relative;
  z-index: 1;
}

/* Testo scuro su fondo chiaro */
body.home .hero-block h1 {
  color: #072d47;
}

body.home .hero-block .kicker {
  color: #0b4f77;
}

body.home .hero-block .hero-copy {
  color: #1e3a4a;
}

/* Ripristina pulsante col gradiente blu→rosso */
body.home .hero-block .btn-primary {
  background: linear-gradient(110deg, #094365 0%, #0f6494 50%, #d4000c 100%);
  border: none;
  box-shadow: 0 8px 22px rgba(9, 67, 101, 0.32);
  color: #ffffff;
}

body.home .hero-block .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(9, 67, 101, 0.42);
}

/* Pulsante secondario su sfondo chiaro */
body.home .hero-block .btn-secondary {
  border: 2px solid rgba(9, 67, 101, 0.35);
  color: #094365;
  background: rgba(255,255,255,0.75);
}

body.home .hero-block .btn-secondary:hover {
  background: rgba(255,255,255,0.95);
  border-color: #094365;
}

body.home .hero-media {
  border-color: rgba(147, 210, 240, 0.5);
  box-shadow: 0 16px 40px rgba(7, 45, 71, 0.12);
}

/* --- METRICS: sfondo bianco con accenti --- */
body.home .metrics-block {
  background: #ffffff;
}

body.home .metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.home .metric-card {
  background: #f4f9fc;
  border: 2px solid color-mix(in srgb, var(--brand) 20%, #d8e7ef);
  border-top: 4px solid var(--brand);
  border-radius: 16px;
  text-align: center;
  padding: 1.8rem 1.2rem;
}

body.home .metric-card .metric-value {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  color: var(--brand);
}

body.home .metric-card .metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a6a7a;
}

/* --- FEATURES: sfondo tinto, 2 colonne per card più grandi --- */
body.home .features-block {
  background-color: #f0f6fa;
  background-image: none;
}

body.home .features-block .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

body.home .features-block .info-card {
  background: #ffffff;
  border: 1px solid #d8e7ef;
  border-left: 5px solid var(--brand);
  border-radius: 16px;
  padding: 1.8rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

body.home .features-block .info-card:hover {
  box-shadow: 0 10px 28px rgba(7,45,71,0.12);
  transform: translateY(-4px);
}

body.home .features-block .info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* --- BENEFITS: sfondo navy leggero, 3 colonne --- */
body.home .benefits-block {
  background-color: #072d47;
  background-image:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(9,110,168,0.22) 0%, transparent 60%);
}

body.home .benefits-block .section-label,
body.home .benefits-block .section-head h2,
body.home .benefits-block .section-intro {
  color: #ffffff;
}

body.home .benefits-block .section-label {
  color: rgba(255,255,255,0.55);
}

body.home .benefits-block .info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

body.home .benefits-block .info-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 3px solid #e30613;
  border-radius: 14px;
  color: #ffffff;
  transition: background 0.2s, transform 0.2s;
}

body.home .benefits-block .info-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

body.home .benefits-block .info-card h3 {
  color: #ffffff;
  font-size: 1rem;
}

body.home .benefits-block .info-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* --- EVENTS: sfondo bianco, 3 card per riga --- */
body.home .events-block {
  background: #ffffff;
}

body.home .events-block .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- CTA globale (fuori home): brand solido --- */
.cta-block {
  background: var(--brand);
}
.cta-block .section-label {
  color: rgba(255,255,255,0.75);
  background: none;
  padding: 0;
  border-radius: 0;
}
.cta-block .cta-inner {
  border-color: rgba(255,255,255,0.12);
  background: transparent;
}
.cta-block h2,
.cta-block p {
  color: #ffffff;
}
.cta-block .btn-primary {
  background: #e30613;
  border-color: #b8000e;
  box-shadow: 0 6px 20px rgba(227,6,19,0.4);
}

/* Home CTA: gradiente dark — più ricco */
body.home .cta-block {
  background: linear-gradient(130deg, #072d47 0%, #0d4870 55%, #1a2e3b 100%);
}

/* Il CTA home e' su fondo scuro: le regole chiare di `body.home` (label blu,
   bordo e ombra da card su panel) hanno specificita' maggiore e vanno ripetute
   qui, altrimenti il kicker resta blu su blu e non si legge. */
body.home .cta-block .section-label {
  color: rgba(255, 255, 255, 0.75);
}

body.home .cta-block .cta-inner {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

body.home .cta-block .cta-inner:hover {
  box-shadow: none;
  transform: none;
}

/* --- RESPONSIVE GRIGLIE HOME --- */
@media (max-width: 1100px) {
  body.home .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.home .events-block .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.home .metrics-grid,
  body.home .features-block .info-grid,
  body.home .benefits-block .info-grid,
  body.home .events-block .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MIGLIORAMENTI GENERALI LAYOUT
   ============================================================ */

/* --- Post card: aspetto migliore anche senza immagine --- */
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
}

.post-card:hover {
  box-shadow: 0 12px 32px rgba(7,45,71,0.14);
  transform: translateY(-4px);
}

.post-card-media {
  display: block;
  overflow: hidden;
  background: #e0eaf0;
  aspect-ratio: 16/9;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

/* Card senza immagine: mostra un'intestazione colorata */
.post-card:not(:has(.post-card-media)) {
  border-top: 4px solid var(--brand);
}

.post-card .card-kicker {
  margin-top: 0.2rem;
}

.post-card h2,
.post-card h3 {
  flex: 1;
  line-height: 1.3;
}

/* When there's a media, add top spacing to kicker after the image */
.post-card-media + .card-kicker,
.post-card-media + p.card-kicker {
  margin-top: 0.6rem;
}


/* --- Pagine interne: migliore tipografia --- */
.content-layout {
  max-width: none;
}

.content-layout h2,
.content-layout h3 {
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: var(--brand);
}

.content-layout ul,
.content-layout ol {
  padding-left: 1.5rem;
  line-height: 1.75;
}

.content-layout ul li,
.content-layout ol li {
  margin-bottom: 0.35rem;
}

/* --- Convenzioni: grid migliore --- */
.archive-convenzioni .post-grid,
body.post-type-archive-convenzione .post-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

/* --- Info card (pagine attività, informazioni utili) --- */
.content-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid #dde8ef;
}

.content-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

/* --- Uscita date badge: più leggibile --- */
.uscita-date-badge {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* --- News archive: sezione intestazione rinforzata --- */
.site-shell.editorial-split h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
}

/* --- Responsive: 2 colonne su tablet, 1 su mobile --- */
@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  }
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* --- page-blocks-wrap: permette ai blocchi ACF full-width di uscire dal content-layout --- */
.page-blocks-wrap > .page-section,
.page-blocks-wrap > section {
  width: 100%;
}

/* --- Consiglio: griglia responsive --- */
@media (max-width: 700px) {
  .consiglio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .consiglio-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Sezioni pagine interne: separatore visivo tra blocchi --- */
.page-blocks-wrap > section + section {
  border-top: 1px solid var(--line);
}

/* ============================================================
   TABELLE NELLE PAGINE DI CONTENUTO
   ============================================================ */

.content-layout table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 1rem 0 1.4rem;
}

.content-layout th,
.wp-block-table th {
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.9rem;
}

.content-layout td,
.wp-block-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #d8e7ef;
  vertical-align: top;
}

.content-layout tr:nth-child(even) td,
.wp-block-table tr:nth-child(even) td {
  background: #f4f9fc;
}

.content-layout .wp-block-table,
.wp-block-table {
  overflow-x: auto;
  display: block;
}

@media (max-width: 600px) {
  .content-layout table,
  .wp-block-table table {
    font-size: 0.85rem;
  }
  .content-layout th,
  .content-layout td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 0.45rem 0.6rem;
  }
}

/* --- Convenzioni archive: card minimal e pulite --- */
body.post-type-archive-convenzione .post-grid.rich-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 1rem;
}

body.post-type-archive-convenzione .post-card {
  padding: 0 0 0.85rem;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

body.post-type-archive-convenzione .post-card-media {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}

body.post-type-archive-convenzione .post-card-media img {
  height: 100%;
}

body.post-type-archive-convenzione .post-card .card-topline {
  padding: 0.72rem 0.95rem 0;
  gap: 0.5rem;
}

body.post-type-archive-convenzione .post-card .convenzione-title-link {
  display: block;
  padding: 0 0.95rem;
  text-decoration: none;
}

body.post-type-archive-convenzione .post-card h2 {
  margin: 0.48rem 0 0;
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  text-decoration: none;
}

body.post-type-archive-convenzione .post-card p {
  margin: 0.45rem 0.95rem 0;
}

body.post-type-archive-convenzione .post-card .chip {
  font-size: 0.74rem;
  padding: 0.28rem 0.58rem;
}

@media (max-width: 740px) {
  body.post-type-archive-convenzione .post-card h2 {
    font-size: clamp(1.25rem, 8vw, 1.85rem);
  }
}

/* ============================================================
   FOOTER AGGIORNATO
   ============================================================ */

.footer-brand-name {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #ffffff;
}

.footer-brand-type {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(231, 242, 240, 0.6);
  margin: 0 0 0.6rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(231, 242, 240, 0.75);
  margin: 0 0 0.8rem;
  max-width: 26ch;
  line-height: 1.5;
}

.footer-contact a {
  font-weight: 600;
  color: #88d4f0;
}

.footer-legal-address {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(231, 242, 240, 0.7);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.footer-legal-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  font-size: 0.85rem;
  color: rgba(231, 242, 240, 0.65);
}

.footer-legal-dl dt { font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(231, 242, 240, 0.5);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-legal-links a {
  color: rgba(231, 242, 240, 0.55);
}

.footer-legal-links a:hover {
  color: rgba(231, 242, 240, 0.9);
  text-decoration: underline;
}

/* ============================================================
   CONVENZIONI ARCHIVE
   ============================================================ */

/* -- Sezione skipass (sfondo scuro) -- */
.conv-section-skipass {
  background: linear-gradient(160deg, #072d47 0%, #0a4f73 100%);
  padding-block: 3.5rem;
}

.conv-section-skipass .section-label--light,
.conv-section-skipass .sciclub-h2-light { color: #fff; }

.conv-section-intro {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  margin: 0.5rem 0 2rem;
  max-width: 56ch;
}

.conv-ski-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.conv-ski-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 1.25rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}

.conv-ski-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

.conv-ski-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.conv-ski-icon {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.55);
  flex-shrink: 0;
}

.conv-ski-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.conv-ski-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.conv-ski-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.conv-ski-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.conv-ski-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.btn-conv-ski {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.18s;
}

.btn-conv-ski:hover { opacity: 0.85; }

@media (max-width: 900px) {
  .conv-ski-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .conv-ski-grid { grid-template-columns: 1fr; }
}

/* -- Sezione partner commerciali -- */
.conv-section-partner {
  padding-block: 3.5rem;
}

.conv-partner-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  font-family: 'Lexend', sans-serif;
  color: var(--ink);
  margin: 0.25rem 0 0.5rem;
}

.conv-section-intro--light { color: #5a7080; }

.conv-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.conv-partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.conv-partner-card:hover {
  box-shadow: 0 8px 24px rgba(7,45,71,0.1);
  transform: translateY(-2px);
}

.conv-partner-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.conv-partner-icon {
  width: 28px;
  height: 28px;
  stroke: var(--brand);
  flex-shrink: 0;
  opacity: 0.6;
}

.conv-vantaggio-badge {
  display: inline-block;
  background: #e8f5f0;
  color: #1a6e5a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.conv-partner-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.conv-partner-desc {
  font-size: 0.875rem;
  color: #4a6270;
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.conv-partner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

@media (max-width: 800px) {
  .conv-partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .conv-partner-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE CONVENZIONE
   ============================================================ */

.convenzione-single {
  max-width: 740px;
}

.convenzione-image {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
}

.convenzione-image img {
  width: 100%;
  height: auto;
  display: block;
}

.convenzione-content {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink);
}

.convenzione-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.convenzione-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   DOCUMENTI ARCHIVE — lista pulita
   ============================================================ */

.documenti-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.doc-row:first-child { border-top: 1px solid var(--line); }

.doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0f5fa;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}

.doc-icon svg { width: 22px; height: 22px; }

.doc-body { min-width: 0; }

.doc-title {
  font-family: 'Lexend', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.3rem;
  line-height: 1.35;
}

.doc-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.doc-meta .chip { font-size: 0.72rem; padding: 0.2rem 0.55rem; }

.doc-excerpt {
  font-size: 0.85rem;
  color: #5a7080;
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.doc-action { flex-shrink: 0; }

.btn-doc-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s;
}

.btn-doc-download:hover { background: #0d6e8a; color: #fff; }

.btn-doc-missing {
  font-size: 0.78rem;
  color: #aaa;
  font-style: italic;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .doc-row {
    grid-template-columns: 40px 1fr;
    row-gap: 0.7rem;
  }
  .doc-action {
    grid-column: 2;
  }
  .doc-icon { width: 36px; height: 36px; }
}

.convenzione-title-link:hover {
  color: var(--brand);
}

/* ==============================================
   MOBILE NAV — OFFCANVAS DRAWER CON PANNELLI
   ============================================== */
@media (max-width: 900px) {

  /* backdrop-filter on the header creates a new containing block for
     position:fixed children, making the drawer only as tall as the header.
     Remove it on mobile so the fixed nav fills the full viewport. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Backdrop overlay */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Drawer: fixed panel from right */
  .primary-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(360px, 92vw) !important;
    background: #eef3f7 !important;
    transform: translateX(110%) !important;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1) !important;
    z-index: 900 !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18) !important;
    border-bottom: none !important;
  }

  .primary-nav.is-open {
    transform: translateX(0) !important;
  }

  /* Hide desktop-only elements */
  .sub-menu-toggle { display: none !important; }
  .sub-menu { display: none !important; }
  .header-cta-desktop { display: none !important; }

  /* Show mobile-only elements */
  .nav-drawer-header { display: flex !important; }
  .nav-mobile-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid #d8e5ee;
    background: #ffffff;
  }

  .nav-mobile-shortcuts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #d7e5ee;
    background: #f5f9fc;
    color: #234556;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .nav-mobile-shortcuts a:hover {
    background: #e9f3fa;
    color: var(--brand);
    border-color: #bfd5e2;
  }

  .nav-main-cta { display: flex !important; }
  .nav-sub-open { display: flex !important; }

  /* Panels system: absolute stacked, slide in/out via transform */
  .nav-main-panel,
  .nav-sub-panel {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #eef3f7;
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
  }

  .nav-main-panel {
    transform: translateX(0);
    z-index: 1;
  }

  .nav-main-panel.slide-out {
    transform: translateX(-30%);
    pointer-events: none;
  }

  .nav-sub-panel {
    transform: translateX(100%);
    z-index: 2;
    pointer-events: none;
  }

  .nav-sub-panel.is-active {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Drawer top bar */
  .nav-drawer-header {
    align-items: center !important;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    background: var(--brand);
    border-bottom: none;
    flex-shrink: 0;
  }

  .nav-drawer-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .nav-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
  }

  .nav-drawer-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
  }

  /* Menu list on mobile — full-width rows */
  .primary-menu {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    flex: 1;
    background: transparent !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    border-top: 1px solid #d8e5ee;
  }

  .primary-menu::before {
    display: none;
  }

  /* Scoped al menu di testata: .menu-item è la classe che WordPress mette su
     ogni voce di ogni menu, footer incluso. */
  .primary-menu .menu-item {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 1px solid #dde8f0;
  }

  .primary-menu .menu-item:first-child {
    border-radius: 0;
  }

  .primary-menu .menu-item:last-child {
    border-radius: 0;
    border-bottom: none;
  }

  .primary-menu .menu-item--has-children {
    position: static;
  }

  .primary-menu .menu-item {
    position: relative;
  }

  .primary-menu .menu-item > a {
    flex: 1;
    padding: 1.1rem 1.4rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    white-space: normal !important;
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s !important;
  }

  .primary-menu .menu-item > a:hover {
    background: #f0f7fc !important;
    color: var(--brand) !important;
  }

  .primary-menu .menu-item.is-active > a,
  .primary-menu .menu-item > a[aria-current="page"] {
    color: var(--brand) !important;
    background: #e6f2fa !important;
    font-weight: 700 !important;
    border-left: 3px solid var(--brand);
    padding-left: calc(1.4rem - 3px) !important;
  }

  .primary-menu .menu-item > a::after {
    display: none !important;
  }

  /* Chevron-right: open sub-panel button */
  .nav-sub-open {
    align-items: center;
    justify-content: center;
    padding: 0 1.1rem;
    width: 52px;
    background: none;
    border: none;
    border-left: 1px solid #dde8f0;
    cursor: pointer;
    color: #94b0c0;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
  }

  .nav-sub-open:hover {
    background: #f0f7fc;
    color: var(--brand);
  }

  /* CTA inside drawer — full width at bottom */
  .nav-main-cta {
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    align-self: stretch !important;
    margin: 1.25rem 1rem 2rem !important;
    padding: 1rem 1.5rem !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    background: linear-gradient(110deg, #094365 0%, #d4000c 100%) !important;
    color: #ffffff !important;
    flex-shrink: 0;
    text-decoration: none !important;
    transition: background 0.18s !important;
    width: auto !important;
  }

  .nav-main-cta:hover {
    background: linear-gradient(110deg, #0a5078 0%, #e8000f 100%) !important;
  }

  /* Sub-panel back button — branded */
  .nav-back-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.25rem;
    background: var(--brand);
    border: none;
    border-bottom: none;
    width: 100%;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    text-align: left;
    transition: background 0.15s;
  }

  .nav-back-btn:hover {
    background: #073754;
    color: #ffffff;
  }

  /* Sub-panel list — card style matching main panel */
  .sub-panel-list {
    display: block !important;
    list-style: none;
    margin: 0.75rem 0.75rem 0 !important;
    padding: 0 !important;
    flex: 1;
    overflow-y: auto;
  }

  .sub-panel-list li {
    background: #ffffff;
    border-bottom: 1px solid #e8eef3;
  }

  .sub-panel-list li:first-child {
    border-radius: 10px 10px 0 0;
  }

  .sub-panel-list li:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: none;
  }

  .sub-panel-list a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
  }

  .sub-panel-list a:hover {
    background: #f4f9fc;
    color: var(--brand);
    font-weight: 600;
  }

  .sub-panel-list a[aria-current="page"] {
    background: #eaf3f9;
    color: var(--brand);
    font-weight: 700;
  }

  .sub-panel-parent-link a {
    color: var(--brand);
    font-weight: 700;
    border-left: 3px solid var(--brand);
  }

  /* header-inner mobile */
  .header-inner {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  /* hide desktop elements that appear in mobile panel too */
  .nav-sub-panel { display: flex !important; }
}

/* ---- Mid-breakpoint nav: prevent cramped items on laptop ---- */
@media (min-width: 901px) and (max-width: 1120px) {
  .primary-menu a {
    font-size: 0.78rem;
    padding: 0.45rem 0.38rem;
  }
  .sub-menu-toggle {
    padding: 0.35rem 0.18rem;
  }
  .header-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    margin-left: 0.2rem;
  }
  .header-inner {
    gap: 0.75rem;
  }
}

/* ---- CF7 form labels ---- */
.form-label,
.cf7-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  width: 100%;
}

.cf7-label .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.35rem;
}

.cf7-req {
  color: #c0001a;
  font-weight: 700;
  font-size: 0.8rem;
}

.cf7-opt {
  color: #7a909a;
  font-weight: 500;
  font-size: 0.79rem;
}

/* CF7 wraps shortcodes in <p> inside form-row — remove margins */
.contact-form-card .form-row > p,
.contact-form .form-row > p {
  margin: 0;
  width: 100%;
}

.form-row--submit {
  margin-top: 0.75rem;
}

/* ---- mini-pill muted variant ---- */
.mini-pill--muted {
  background: #f0f0eb;
  color: #66737a;
}

/* ---- mini-pill uscita (blu) e evento (rosso) ---- */
.mini-pill--uscita {
  background: var(--brand);
  color: #ffffff;
}

.mini-pill--evento {
  background: var(--brand-2);
  color: #ffffff;
}

/* ============================================================
   ATTIVAZIONE SCONTI PAGE
   ============================================================ */

.attivazione-intro {
  margin-bottom: 2.5rem;
}

.attivazione-steps-card {
  background: #f0f6fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem 2rem;
}

.attivazione-section-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 1.1rem;
}

.attivazione-steps {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.attivazione-steps li {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
}

.attivazione-note {
  font-size: 0.88rem;
  color: #5a7080;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.attivazione-block {
  margin-bottom: 2.75rem;
}

.attivazione-block .attivazione-section-title {
  margin-bottom: 0.9rem;
}

/* Download list: reuse .doc-row but with pointer */
.attivazione-block .doc-row {
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  border-radius: 4px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.attivazione-block .doc-row:hover {
  background: #f5f9fc;
}

.doc-download-icon {
  color: var(--brand);
  flex-shrink: 0;
}

/* Comprensori link list */
.comprensori-links {
  display: flex;
  flex-direction: column;
}

.comprensorio-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
  border-radius: 4px;
}

.comprensorio-link-row:last-child {
  border-bottom: 1px solid var(--line);
}

.comprensorio-link-row:hover {
  background: #f5f9fc;
  color: var(--brand);
}

.comprensorio-link-title {
  font-family: 'Lexend', sans-serif;
  font-size: 0.975rem;
  font-weight: 600;
}

.comprensorio-link-row svg {
  color: var(--brand);
  flex-shrink: 0;
}

/* ── Pagina interna — immagine banner ───────────────────────── */
.page-inner-cover {
  margin-top: 2.5rem;
}

.page-inner-cover-img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

/* ============================================================
   SAFEGUARDING — griglia documenti ufficiali
   ============================================================ */

.sg-docs-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--brand);
}

.sg-doc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
}

.sg-doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.05rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.sg-doc-card:hover,
.sg-doc-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(9, 67, 101, 0.12);
  transform: translateY(-2px);
}

.sg-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf1f6;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.sg-doc-icon svg { width: 22px; height: 22px; }

.sg-doc-card:hover .sg-doc-icon,
.sg-doc-card:focus-visible .sg-doc-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.sg-doc-body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.sg-doc-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
}

.sg-doc-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #5a7080;
}

.sg-doc-ext {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: #f2f1eb;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
}

.sg-doc-size::before {
  content: '·';
  margin-right: 0.45rem;
}

.sg-doc-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

.sg-doc-action-text {
  opacity: 0.7;
  transition: opacity 0.18s;
}

.sg-doc-card:hover .sg-doc-action-text,
.sg-doc-card:focus-visible .sg-doc-action-text { opacity: 1; }

@media (max-width: 520px) {
  .sg-doc-grid { grid-template-columns: 1fr; }
  .sg-doc-card { gap: 0.8rem; padding: 0.95rem 1rem; }
  .sg-doc-icon { width: 38px; height: 38px; border-radius: 10px; }
  .sg-doc-icon svg { width: 19px; height: 19px; }
  .sg-doc-action-text { display: none; }
}
