/* Sosness brand: Nunito (titoli), Nunito Sans (testi); #107478 verde, #FBD03B giallo, #1D1D1B nero, #FFFFFF bianco */
:root {
  --teal: #107478;
  --teal-dark: #0C5A5D;
  --teal-soft: #E4F1F1;
  --yellow: #FBD03B;
  --yellow-soft: #FEF6D8;
  --black: #1D1D1B;
  --white: #FFFFFF;
  --muted: #55595A;
  --line: #DCE3E3;
  --title: "Nunito", "Nunito Sans", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--title); font-weight: 800; line-height: 1.05; margin: 0; }

/* Brand patterns as backgrounds, softened so text stays readable */
.bg-pattern-light {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    url("/img/pattern-bianco.png");
  background-size: auto, 90px 92px;
}
.bg-pattern-teal {
  background-color: var(--teal);
  background-image:
    linear-gradient(rgba(12, 90, 93, 0.93), rgba(12, 90, 93, 0.93)),
    url("/img/pattern-verde.png");
  background-size: auto, 90px 92px;
}
.bg-pattern-yellow {
  background-color: var(--yellow);
  background-image: url("/img/pattern-giallo.png");
  background-size: 60px 61px;
}

/* Header */
.top-wrap { background: var(--white); border-bottom: 1px solid var(--line); }
.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }
.top-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.top-nav a {
  text-decoration: none;
  font-family: var(--title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--yellow);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.top-nav a:hover, .top-nav a:focus-visible { background: var(--teal); color: var(--white); }

/* Shop link */
.cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-family: var(--title);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 9px 20px;
  border-radius: 999px;
}
.cta:hover { background: var(--teal-dark); }
.cta-inline { margin-top: 12px; font-size: 1rem; padding: 7px 16px; }

/* Leaderboard */
.band { padding: 0 0 56px; }
.board {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 0;
}
.board-head { max-width: 760px; }
.board-head h2 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--teal);
}
.board-lede { margin: 12px 0 0; color: var(--muted); font-size: 1.15rem; font-family: var(--title); font-weight: 500; }

.controls {
  margin: 28px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}
.gara-switch {
  display: inline-flex;
  background: var(--teal);
  border-radius: 999px;
  padding: 4px;
}
.gara-switch button {
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--title);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 9px 20px;
  border-radius: 999px;
}
.gara-switch button[aria-selected="true"] { background: var(--yellow); color: var(--black); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips button {
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}
.cat-chips button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--white); }

/* Podium: the top three, large */
.podium { display: grid; gap: 10px; transition: opacity 0.2s; }
.podium.is-fetching, .ranking.is-fetching { opacity: 0.5; }
.pod {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--line);
  border-left: 8px solid var(--teal);
  border-radius: 8px 18px 18px 8px;
  padding: 16px 22px 16px 16px;
}
.pod:first-child { border-color: var(--yellow); border-left-color: var(--yellow); background: var(--yellow-soft); padding-top: 22px; padding-bottom: 22px; }
.pod-rank {
  font-family: var(--title);
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--teal);
  text-align: center;
}
.pod:first-child .pod-rank { font-size: 3.6rem; }
.pod-name { font-family: var(--title); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.pod:first-child .pod-name { font-size: 2rem; }
.pod-meta { color: var(--muted); font-size: 0.95rem; }
.pod-points { text-align: right; }
.pod-points strong {
  display: block;
  font-family: var(--title);
  font-weight: 900;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.pod:first-child .pod-points strong { font-size: 3rem; color: var(--black); }
.pod-points span { color: var(--muted); font-size: 0.85rem; }

/* The rest of the ranking */
.ranking {
  list-style: none;
  margin: 10px 0 0;
  padding: 4px 0;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 18px;
  transition: opacity 0.2s;
}
.ranking:empty { display: none; }
.row {
  display: grid;
  grid-template-columns: 64px 1fr minmax(90px, 220px) 64px;
  align-items: center;
  gap: 16px;
  padding: 12px 22px 12px 16px;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row-rank { font-family: var(--title); font-weight: 800; font-size: 1.35rem; color: var(--muted); text-align: center; }
.row-name { font-weight: 700; }
.row-meta { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.row-bar { height: 8px; background: var(--teal-soft); border-radius: 4px; overflow: hidden; }
.row-bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.row-points { font-family: var(--title); font-weight: 800; font-size: 1.35rem; text-align: right; font-variant-numeric: tabular-nums; }

.board-status { color: var(--muted); margin: 18px 0 0; }
.board-status:empty { display: none; }
.board-status button {
  margin-left: 8px;
  border: 2px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
}
.cat-tag {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: 3px;
}

/* Counter band on the teal pattern, ECG trace in yellow */
.pulse-band {
  position: relative;
  color: var(--white);
  padding: 60px 20px;
  overflow: hidden;
}
.pulse-band { display: flex; flex-direction: column; align-items: center; }
.pulse-band .counter { order: 1; width: 100%; }
.ecg { order: 2; position: relative; display: block; width: min(760px, 100%); height: 56px; margin: 22px auto 0; opacity: 1; }
.ecg path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: trace 2.4s ease-out 0.3s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ecg path { animation: none; stroke-dashoffset: 0; } }
.counter { position: relative; max-width: var(--wrap); margin: 0 auto; text-align: center; }
.counter-value {
  margin: 0;
  font-family: var(--title);
  font-weight: 900;
  font-size: clamp(4rem, 13vw, 8.5rem);
  line-height: 0.95;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.counter-label { margin: 10px 0 0; font-size: 1.25rem; font-family: var(--title); font-weight: 700; color: var(--white); }

/* Section titles */
.openday-head h1, .steps h2, .manifesto h2, .green h2, .pillars h2, .audience h2, .plans h2, .founder h2, .services h2, .classroom h2, .board-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); color: var(--teal); }

/* Open day */
.openday { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 8px; }
.openday-head h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-style: italic; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 1.15rem; font-family: var(--title); font-weight: 500; max-width: 62ch; }
.openday-head p { margin: 12px 0 0; color: var(--muted); max-width: 60ch; }
.openday-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.od {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.od-date {
  background: var(--yellow);
  color: var(--black);
  border-radius: 12px;
  text-align: center;
  padding: 8px 4px;
  align-self: start;
}
.od-day { display: block; font-family: var(--title); font-weight: 900; font-size: 2.3rem; line-height: 1; }
.od-month { display: block; font-size: 0.85rem; font-weight: 700; }
.od-place { font-family: var(--title); font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: var(--teal); }
.od-meta { color: var(--muted); font-size: 0.95rem; margin: 2px 0 0; }
.od-labs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.od-labs span { font-size: 0.8rem; font-weight: 700; background: var(--teal-soft); color: var(--teal-dark); border-radius: 4px; padding: 2px 8px; }

.labs-title { font-size: 1.8rem; margin-top: 48px; }
.labs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.lab { border-top: 4px solid var(--yellow); padding-top: 14px; }
.lab h3 { font-size: 1.5rem; color: var(--teal); }
.lab-who { margin: 4px 0 0; font-weight: 700; font-family: var(--title); font-style: italic; }
.lab p:last-child { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }
.openday-note { margin: 28px 0 0; font-weight: 700; }
.openday-note a { color: var(--teal); }

/* Yellow pattern strip between sections */
.strip {
  height: 46px;
  border-top: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
}
.strip.bg-pattern-yellow {
  background-color: var(--yellow);
  background-image: url("/img/striscia-giallo.png");
  background-size: 78px 40px;
  background-repeat: repeat-x;
  background-position: center center;
}

/* Steps */
.steps { max-width: var(--wrap); margin: 0 auto; padding: 72px 20px 24px; }
.step-list {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step-list li { counter-increment: step; border-top: 4px solid var(--teal); padding-top: 14px; }
.step-list li::before {
  content: counter(step);
  display: block;
  font-family: var(--title);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 8px;
}
.step-list h3 { font-size: 1.35rem; }
.step-list p { margin: 8px 0 0; color: var(--muted); }
.safety {
  margin: 32px 0 0;
  padding: 14px 18px;
  background: var(--yellow-soft);
  border-left: 6px solid var(--yellow);
  border-radius: 6px;
  font-weight: 700;
  max-width: 720px;
}

/* Manifesto */
.manifesto {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 20px 72px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.manifesto h2 { font-style: italic; }
.manifesto-body p { margin: 0 0 16px; font-size: 1.2rem; max-width: 60ch; }
.manifesto-body p:last-child { font-weight: 800; font-family: var(--title); color: var(--teal); }

/* Footer on the teal pattern */
.foot-wrap { color: var(--white); }
.foot-wrap.bg-pattern-teal { background-color: var(--black); background-image: none; border-top: 4px solid var(--yellow); }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 40px; font-size: 0.9rem; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--yellow); font-weight: 700; }

@media (max-width: 860px) {
  .step-list { grid-template-columns: 1fr 1fr; }
  .manifesto { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .top-nav { display: none; }
  .brand img { height: 40px; }
  .cta { font-size: 0.95rem; padding: 7px 14px; }
  .board { padding-top: 28px; }
  .controls { flex-direction: column; align-items: stretch; }
  .gara-switch { display: flex; }
  .gara-switch button { flex: 1; font-size: 1rem; padding: 8px 10px; }
  .pod { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 14px 14px 14px 10px; }
  .pod-rank { font-size: 2.1rem; }
  .pod:first-child .pod-rank { font-size: 2.6rem; }
  .pod-name { font-size: 1.3rem; }
  .pod:first-child .pod-name { font-size: 1.55rem; }
  .pod-points strong { font-size: 1.8rem; }
  .pod:first-child .pod-points strong { font-size: 2.2rem; }
  .row { grid-template-columns: 44px 1fr 56px; gap: 10px; padding: 12px 14px 12px 10px; }
  .row-bar { display: none; }
  .labs { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
}

/* Nav: current page */
.top-nav a[aria-current="page"] { background: var(--teal); color: var(--white); }
.cta-big { font-size: 1.2rem; padding: 12px 26px; }
.cta-yellow { background: var(--yellow); color: var(--black); }
.cta-yellow:hover { background: #F2C11F; }

/* Sosness Green */
.green {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.green-media img { width: 100%; height: auto; display: block; border-radius: 22px; border: 6px solid var(--yellow); }
.green-claim { margin: 10px 0 0; font-family: var(--title); font-weight: 700; font-style: italic; font-size: 1.25rem; color: var(--black); }
.green-body > p { max-width: 58ch; }
.green-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.green-list li { padding-left: 28px; position: relative; }
.green-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--teal); }
.green-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 8px; }
.price { font-family: var(--title); font-weight: 900; font-size: 2.4rem; color: var(--teal); line-height: 1; }
.price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.green-app { color: var(--muted); font-size: 0.95rem; }
.green-app a { color: var(--teal); font-weight: 700; }

/* Challenge buttons (from the shop) */
.gare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 32px; }
.gare:empty { display: none; }
.gara-card {
  display: grid;
  gap: 6px;
  text-decoration: none;
  background: var(--teal);
  color: var(--white);
  border-radius: 18px;
  padding: 20px 22px;
}
.gara-card:hover { background: var(--teal-dark); }
.gara-name { font-family: var(--title); font-weight: 900; font-size: 1.6rem; }
.gara-desc { color: #D7ECEC; }
.gara-go { justify-self: start; margin-top: 6px; background: var(--yellow); color: var(--black); font-family: var(--title); font-weight: 800; border-radius: 999px; padding: 7px 16px; }

/* Plans page */
.page-hero { max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 0; }
.page-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-style: italic; color: var(--teal); max-width: 16ch; }
.page-hero .cta { margin-top: 26px; }
.pillars, .audience, .plans { max-width: var(--wrap); margin: 0 auto; padding: 64px 20px 8px; }
.pillar-list { list-style: none; counter-reset: p; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pillar-list li { counter-increment: p; border-top: 4px solid var(--yellow); padding-top: 12px; }
.pillar-list li::before { content: counter(p); font-family: var(--title); font-weight: 900; font-size: 2rem; color: var(--teal); display: block; line-height: 1; margin-bottom: 6px; }
.pillar-list h3 { font-size: 1.25rem; }
.pillar-list p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.audience-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.audience-list li { font-family: var(--title); font-weight: 800; font-size: 1.15rem; background: var(--teal-soft); color: var(--teal-dark); border-radius: 999px; padding: 10px 20px; }
.plans { padding-bottom: 56px; }
.plans-gare { padding-top: 0; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.plan-featured { border: 3px solid var(--yellow); box-shadow: 0 0 0 6px var(--yellow-soft); }
.plan-badge { position: absolute; top: 12px; left: 12px; background: var(--yellow); color: var(--black); font-family: var(--title); font-weight: 800; font-size: 0.85rem; border-radius: 999px; padding: 5px 12px; }
.plan-media img, .plan-noimg { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--teal-soft); }
.plan-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; flex: 1; }
.plan-body h3 { font-size: 1.6rem; color: var(--teal); }
.plan-sub { margin: 0; font-family: var(--title); font-weight: 700; font-style: italic; }
.plan-desc { margin: 4px 0 0; color: var(--muted); flex: 1; }
.plan-price { margin: 10px 0 6px; font-family: var(--title); font-weight: 900; font-size: 2rem; line-height: 1; }
.plan-price small { font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.plan .cta { align-self: flex-start; }
.free-title { margin: 0; font-family: var(--title); font-weight: 900; font-style: italic; font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--yellow); line-height: 1.05; }
.store-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; }

/* About page */
.about-hero { max-width: var(--wrap); margin: 0 auto; padding: 48px 20px 0; display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.about-logo { width: 100%; height: auto; background: var(--white); border-radius: 22px; padding: 18px; border: 2px solid var(--line); }
.about-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-style: italic; color: var(--teal); }
.founder, .classroom { max-width: var(--wrap); margin: 0 auto; padding: 72px 20px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.founder-media img { width: 100%; height: auto; display: block; border-radius: 22px; border: 6px solid var(--teal); }
.founder-body p, .classroom-body p { max-width: 58ch; }
.services { max-width: var(--wrap); margin: 0 auto; padding: 64px 20px 72px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
.service-grid article { border-top: 4px solid var(--teal); padding-top: 14px; }
.service-grid h3 { font-size: 1.3rem; color: var(--teal); }
.service-grid p { margin: 8px 0 0; color: var(--muted); }
.classroom { grid-template-columns: 1.1fr 0.9fr; }
.classroom-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: end; }
.classroom-media img { width: 100%; height: auto; display: block; border-radius: 18px; }
.about-contacts { margin-top: 20px; line-height: 1.7; }
.about-contacts a { color: var(--teal); font-weight: 700; }

@media (max-width: 1000px) {
  .top { flex-wrap: wrap; }
  .top-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 8px; padding-bottom: 6px; }
  .pillar-list { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .green, .founder, .classroom, .about-hero { grid-template-columns: 1fr; gap: 24px; }
  .about-logo { max-width: 260px; }
}
@media (max-width: 600px) {
  .top-nav { display: flex; }
  .pillar-list, .service-grid { grid-template-columns: 1fr; }
}

/* Rete Sosness: Italy map */
.rete { margin: 56px 0 0; }
.rete-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); color: var(--teal); }
.rete-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 24px; }
.rete-map { background: var(--white); border: 2px solid var(--line); border-radius: 22px; padding: 12px; }
.rete-map svg { display: block; width: 100%; height: auto; max-height: 620px; }
.it-shape { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.6; stroke-linejoin: round; }
.pin { cursor: pointer; outline: none; }
.pin-dot { stroke-width: 3; transition: r 0.15s ease; }
.pin-on .pin-dot { fill: var(--teal); stroke: var(--white); }
.pin-od .pin-dot { fill: var(--yellow); stroke: var(--teal); }
.pin-hq .pin-dot { fill: var(--black); stroke: var(--yellow); }
.pin-soon .pin-dot { fill: var(--white); stroke: var(--teal); stroke-dasharray: 3 3; }
.pin.is-active .pin-dot, .pin:focus-visible .pin-dot { r: 13; }
.pin-pulse { fill: none; stroke: var(--yellow); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { opacity: 0.9; transform: scale(0.8); } to { opacity: 0; transform: scale(2); } }
@media (prefers-reduced-motion: reduce) { .pin-pulse { animation: none; opacity: 0.6; } }
.rete-legend { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: var(--muted); }
.rete-legend li { display: flex; align-items: center; gap: 8px; }
.pin-key { width: 16px; height: 16px; border-radius: 50%; border: 3px solid; flex: none; box-sizing: border-box; }
.key-hq { background: var(--black); border-color: var(--yellow); }
.key-on { background: var(--teal); border-color: var(--teal-soft); }
.key-od { background: var(--yellow); border-color: var(--teal); }
.key-soon { background: var(--white); border-color: var(--teal); border-style: dashed; }
.sedi-list { list-style: none; padding: 0; margin: 0 0 20px; background: var(--white); border: 2px solid var(--line); border-radius: 18px; }
.sede { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); transition: background-color 0.15s ease; }
.sede:last-child { border-bottom: 0; }
.sede.is-active { background: var(--yellow-soft); }
.sede-txt strong { font-family: var(--title); font-weight: 800; }
.sede-od { display: block; font-size: 0.85rem; font-weight: 700; color: var(--teal); }
.sede-map { font-weight: 700; font-size: 0.9rem; color: var(--teal); }
@media (max-width: 760px) {
  .rete-grid { grid-template-columns: 1fr; }
}

/* About page: yellow pattern frame behind Victoria, numbers, classroom photo */
.founder-media.bg-pattern-yellow { padding: 22px; border-radius: 30px; }
.founder-media.bg-pattern-yellow img { border: 6px solid var(--white); }
.numbers { max-width: var(--wrap); margin: 0 auto; padding: 0 20px 64px; }
.number-list { list-style: none; margin: 0; padding: 26px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; background: var(--teal-soft); border-radius: 22px; text-align: center; }
.number-list strong { display: block; font-family: var(--title); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3rem); color: var(--teal); line-height: 1; }
.number-list span { display: block; margin-top: 6px; font-weight: 700; color: var(--black); }
.text-link { color: var(--teal); font-weight: 700; }
.classroom-media { grid-template-columns: 1.5fr 1fr; align-items: center; }
.classroom-photo { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; border: 6px solid var(--teal); }

/* Map: smaller */
.rete-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
.rete-map svg { max-height: 440px; max-width: 380px; margin: 0 auto; }
@media (max-width: 760px) {
  .number-list { grid-template-columns: repeat(2, 1fr); }
  .rete-grid { grid-template-columns: 1fr; }
  .rete-map svg { max-height: 360px; }
}

/* Section banners */
.section-banner { margin: 0 0 32px; }
.section-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--yellow); }
.section-banner-solo { max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 0; }
.section-banner-solo + .green { padding-top: 40px; }
@media (max-width: 600px) { .section-banner img { border-radius: 14px; } }


/* Responsive images guard */
img { max-width: 100%; height: auto; }
.section-banner { max-width: 900px; margin: 0 auto 32px; }
.section-banner-solo { max-width: 940px; }
@media (max-width: 600px) { .section-banner { margin-bottom: 22px; } .section-banner-solo { padding: 24px 16px 0; } }


/* Footer: navigation buttons and social icons */
.foot { padding-top: 34px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.foot-nav a {
  text-decoration: none;
  font-family: var(--title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--yellow);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.foot-nav a:hover, .foot-nav a:focus-visible { background: var(--teal); color: var(--white); }
.foot-nav a.foot-shop { background: var(--teal); color: var(--white); }
.foot-nav a.foot-shop:hover { background: var(--yellow); color: var(--black); }
.foot-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; }
.foot-social:empty { display: none; }
.foot-social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.foot-social a:hover, .foot-social a:focus-visible { background: var(--yellow); color: var(--black); }
.foot-social svg { display: block; }

/* Lab photos */
.openday-head .lede + .lede { margin-top: 10px; }
.lab { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 22px; align-content: start; }
.lab > :not(.lab-photo) { grid-column: 2; }
.lab-photo { grid-column: 1; grid-row: 1 / span 4; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--yellow); margin: 8px 0 0 7px; }
@media (max-width: 600px) { .lab { grid-template-columns: 110px minmax(0, 1fr); column-gap: 16px; } .lab-photo { width: 110px; height: 110px; } }


/* Venues: where Sosness can go */
.venues { margin: 28px 0 8px; }
.venues-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--black); font-style: italic; }
.venue-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.venue-list li { background: var(--white); border: 2px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 16px; padding: 14px 16px 16px; display: grid; gap: 4px; transition: border-color 0.18s ease; }
.venue-list li:hover { border-color: var(--teal); border-top-color: var(--teal); }
.venue-list strong { font-family: var(--title); font-weight: 900; font-size: 1.15rem; color: var(--teal); }
.venue-list span { color: var(--muted); font-size: 0.95rem; }
.venues-hook { margin: 20px 0 16px; max-width: 70ch; font-size: 1.1rem; }
.venues-hook strong { color: var(--teal); font-family: var(--title); }
.venues + .rete-grid { margin-top: 36px; }

/* About: clickable Win Win logo */
.about-logo-link { display: block; border-radius: 22px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.about-logo-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--yellow); }
.about-cta { margin-top: 22px; }


/* Premi */
.prize-cats{margin-top:20px}
.prizes-soon{max-width:720px;margin:24px auto 0;padding:32px 24px;text-align:center;background:#fff;border:3px solid #FBD03B;border-radius:24px;box-shadow:8px 8px 0 #107478}
.prizes-soon .free-title{color:#107478;margin:0 0 10px}
.prizes-soon p{margin:0 0 14px}
.prizes-soon .store-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:18px 0 0}
.prizes-note{max-width:720px;margin:24px auto 0;text-align:center;font-size:.95rem;color:#1D1D1B;opacity:.8}


/* Hero fisso in testa a ogni pagina */
.site-hero{background:#1D1D1B;line-height:0}
.site-hero a{display:block}
.site-hero img{width:100%;height:clamp(170px,34vw,500px);object-fit:cover;object-position:50% 36%}


/* Header senza logo, Iscriviti in nav, strisce dimezzate */
.top-wrap { border-bottom: 0; }
.top { justify-content: center; padding: 10px 20px; }
.top-nav { justify-content: safe center; }
.top-nav a.nav-cta { background: var(--teal); color: var(--white); }
.top-nav a.nav-cta:hover, .top-nav a.nav-cta:focus-visible { background: #0c5a5d; color: var(--white); }
.strip.strip-half { height: 23px; border-top: 2px solid var(--teal); border-bottom: 2px solid var(--teal); }
.strip.strip-half.bg-pattern-yellow { background-color: var(--white); background-image: url("/img/striscia-bianco.png"); background-repeat: repeat-x; background-position: center center; }
.strip.strip-half.bg-pattern-yellow { background-size: 39px 20px; }
@media (max-width: 720px) {
  .top { padding: 8px 12px; }
  .top-nav { padding-bottom: 2px; }
}


/* Barra bottoni con sfondo pagina */
.top-wrap {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    url("/img/pattern-bianco.png");
  background-size: auto, 90px 92px;
}

/* Spazio sotto la fascia */
.top { padding-top: 40px; padding-bottom: 20px; }
@media (max-width: 720px) { .top { padding-top: 26px; padding-bottom: 14px; } }

/* Hero desktop: banner sottile a tutta larghezza, logo intero */
@media (min-width: 721px) {
  .site-hero {
    --hb: clamp(220px, 15vw, 300px);
    --hi: calc(var(--hb) * 2.35);
    --wi: calc(var(--hi) * 16 / 9);
    --top: calc(var(--hb) / 2 - var(--hi) * 0.47);
    position: relative;
    height: var(--hb);
    overflow: hidden;
  }
  .site-hero a { position: static; }
  .site-hero img {
    position: absolute;
    left: 50%;
    top: var(--top);
    height: var(--hi);
    width: var(--wi) !important;
    max-width: none !important;
    transform: translateX(-50%);
    object-fit: fill;
  }
  .site-hero::before, .site-hero::after {
    content: "";
    position: absolute;
    top: var(--top);
    height: var(--hi);
    width: calc(50% - var(--wi) / 2 + 2px);
    background: url("https://static.wixstatic.com/media/4a4b3e_7a11ef7530d94597a721bbdee6122984~mv2.png/v1/fill/w_1600,h_900,al_c,q_80/sosness-hero-side.webp") left center / 500% 100% no-repeat;
    transform: scaleX(-1);
    pointer-events: none;
  }
  .site-hero::before { left: 0; }
  .site-hero::after { right: 0; background-position: right center; }
}

/* Lightbox */
img.lab-photo.zoomable { cursor: zoom-in; transition: transform .2s ease; }
img.lab-photo.zoomable:hover, img.lab-photo.zoomable:focus-visible { transform: scale(1.04); outline: none; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(29,29,27,.86); }
dialog.lightbox img { display: block; max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: 18px; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--yellow); }
.lightbox-cap { color: var(--white); text-align: center; margin: 14px 0 0; font-family: var(--title); font-weight: 700; }
.lightbox-close { position: absolute; top: -18px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--black); font-size: 28px; line-height: 1; cursor: pointer; font-weight: 800; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: var(--teal); color: var(--white); }

/* Upload video */
.upload-box { max-width: 720px; margin: 28px auto 8px; padding: 28px 24px; text-align: center; background: var(--white); border: 3px solid var(--yellow); border-radius: 24px; box-shadow: 8px 8px 0 var(--teal); }
.upload-box h3 { margin: 0 0 8px; color: var(--teal); }
.upload-box p { margin: 0 0 16px; }
.upload-box .cta { display: inline-block; }
.upload-box .cta.is-off { background: #c9d6d6; color: var(--black); cursor: default; pointer-events: none; }
.upload-hint { font-size: .92rem; opacity: .8; margin: 12px 0 0 !important; }

/* Green con video */
.green.green-video-layout { grid-template-columns: 1.25fr 0.75fr; }
.green-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; border: 6px solid var(--yellow); box-shadow: 0 0 0 4px #fff, 0 14px 30px rgba(16,116,120,.18); background: var(--teal); }
@media (max-width: 760px) {
  .green.green-video-layout { grid-template-columns: 1fr; }
  .green-video { max-width: 420px; width: 100%; margin: 0 auto; }
}


/* Green: video sotto i testi */
.green-film { grid-column: 1 / -1; width: 100%; max-width: 960px; margin: 8px auto 0; }
.green-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; border: 6px solid var(--yellow); box-shadow: 0 0 0 4px #fff, 0 14px 30px rgba(16,116,120,.18); background: var(--teal); }
@media (max-width: 760px) { .green-film { margin-top: 4px; } .green-film video { border-width: 4px; border-radius: 16px; } }

/* Sosness Green: nutrition counter band */
.green-nutri { grid-column: 1 / -1; width: 100%; margin: 28px 0 0; padding: 36px 32px; border-radius: 22px; color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; }
.green-nutri h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--yellow); }
.green-nutri p { margin: 12px 0 0; max-width: 46ch; }
.nutri-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.nutri-stats li { border-top: 3px solid var(--yellow); padding-top: 10px; }
.nutri-num { display: block; font-family: var(--title); font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.nutri-label { display: block; margin-top: 6px; font-family: var(--title); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
@media (max-width: 760px) { .green-nutri { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; } }
