/* Presentation page /<lang>/. Mirrors design/chi-siamo.html. */

.home-section { padding-top: clamp(28px, 5vw, 48px); padding-bottom: 40px; }
.home-kicker {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.home-kicker--why { color: var(--c-kicker-why); }
.home-kicker--mission { color: var(--c-accent); }
.home-kicker--ideas { color: var(--c-olive); }
.home-h2 {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 24ch;
}

/* Hero */
.hero { background: var(--c-hero); color: #FFFFFF; }
.hero__inner {
  padding-top: clamp(44px, 8vw, 72px);
  padding-bottom: clamp(40px, 7vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.hero__text { flex: 1 1 380px; max-width: 470px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-sand); }
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero__lede { margin: 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: rgba(255, 255, 255, 0.85); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-block; font-weight: 700; font-size: 16px; border-radius: 8px; padding: 13px 20px; }
.btn:hover { text-decoration: none; }
.btn--light { background: #FFFFFF; color: #1F2A30; }
.btn--ghost { color: #FFFFFF; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { border-color: #FFFFFF; }
.btn--dark { background: #1F2A30; color: #FFFFFF; align-self: flex-start; }
.hero a:focus-visible, .manifesto a:focus-visible { outline-color: #FFFFFF; }
.manifesto a:focus-visible { outline-color: #1F2A30; }


.hero-flow { flex: 999 1 560px; min-width: 0; display: flex; align-items: center; gap: 18px; }
.hero-noise {
  position: relative;
  flex: 1 1 220px;
  height: 330px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.26);
}
.hero-noise span { position: absolute; }
.hero-noise .n-display { font-family: var(--font-display); letter-spacing: 0.02em; }
.hero-noise .n-italic { font-style: italic; }
.hero-noise .n-bold { font-weight: 700; }
.hero-noise .n-heavy { font-weight: 800; }
.n1 { left: 2%; top: 2%; transform: rotate(-7deg); font-size: 30px; }
.n2 { left: 54%; top: 4%; transform: rotate(5deg); font-size: 14px; }
.n3 { left: 8%; top: 15%; transform: rotate(3deg); font-size: 17px; }
.n4 { left: 66%; top: 16%; transform: rotate(-10deg); font-size: 34px; }
.n5 { left: 30%; top: 26%; transform: rotate(-4deg); font-size: 28px; }
.n6 { left: 0%; top: 37%; transform: rotate(6deg); font-size: 15px; }
.n7 { left: 50%; top: 40%; transform: rotate(-2deg); font-size: 16px; }
.n8 { left: 14%; top: 49%; transform: rotate(-6deg); font-size: 32px; }
.n9 { left: 58%; top: 52%; transform: rotate(8deg); font-size: 18px; }
.n10 { left: 4%; top: 63%; transform: rotate(2deg); font-size: 15px; }
.n11 { left: 62%; top: 66%; transform: rotate(-12deg); font-size: 24px; }
.n12 { left: 26%; top: 74%; transform: rotate(5deg); font-size: 16px; }
.n13 { left: 0%; top: 84%; transform: rotate(-5deg); font-size: 22px; }
.n14 { left: 48%; top: 85%; transform: rotate(3deg); font-size: 14px; }
.n15 { left: 76%; top: 90%; transform: rotate(-8deg); font-size: 13px; }
.n16 { left: 36%; top: 93%; transform: rotate(9deg); font-size: 13px; }
.hero-arrow { flex-shrink: 0; }
/* Miniature front page of the latest edition: printed paper in both themes. --s scales it. */
.frontpage {
  --s: 1;
  --fp-ink: #1F2A30;
  --fp-text: #3B4448;
  --fp-muted: #5E676C;
  --fp-line: #CFCAC0;
  flex: 0 0 calc(290px * var(--s));
  position: relative;
  height: calc(390px * var(--s));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: calc(8px * var(--s));
  padding: calc(14px * var(--s)) calc(16px * var(--s)) 0;
  background: #FBFAF7;
  color: var(--fp-ink);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.frontpage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(56px * var(--s));
  background: linear-gradient(rgba(251, 250, 247, 0), #FBFAF7 85%);
}
.frontpage:hover, .frontpage:focus-visible { transform: rotate(0deg) scale(1.03); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); text-decoration: none; }
.frontpage:focus-visible { outline: 3px solid var(--brand-sand); outline-offset: 4px; }
.frontpage > span, .frontpage span span { display: block; }
.fp__top { display: flex !important; justify-content: space-between; gap: 8px; font: 600 calc(7px * var(--s))/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fp-muted); }
.fp__name { padding: calc(2px * var(--s)) 0 calc(6px * var(--s)); border-top: 2px solid var(--fp-ink); border-bottom: 3px double var(--fp-ink); font: 600 calc(50px * var(--s))/0.95 var(--font-serif); letter-spacing: -0.02em; text-align: center; }
.fp__cat { margin-bottom: calc(3px * var(--s)); font: 700 calc(7.5px * var(--s))/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: #1F5F7A; }
.fp__h1 { margin-bottom: calc(6px * var(--s)); font: 700 calc(19px * var(--s))/1.08 var(--font-serif); letter-spacing: -0.01em; }
.fp__h2 { margin-bottom: calc(3px * var(--s)); font: 700 calc(10.5px * var(--s))/1.15 var(--font-serif); }
.fp__text { font: 400 calc(8px * var(--s))/1.38 var(--font-serif); color: var(--fp-text); text-align: justify; hyphens: auto; }
.fp__text--cols { column-count: 2; column-gap: calc(12px * var(--s)); column-rule: 1px solid var(--fp-line); }
.fp__cols { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: calc(10px * var(--s)); padding-top: calc(8px * var(--s)); border-top: 1px solid var(--fp-ink); }
.fp__item + .fp__item { padding-left: calc(10px * var(--s)); border-left: 1px solid var(--fp-line); }
.frontpage--small { --s: 0.62; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--c-line); }
.frontpage--small:hover, .frontpage--small:focus-visible { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--c-line); }
.frontpage--small:focus-visible { outline-color: var(--c-accent); }
@media (prefers-reduced-motion: reduce) { .frontpage { transition: none; } }

.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--c-track); }
.bar__pos { background: var(--c-pos); }
.bar__neg { background: var(--c-neg); }
.w-8 { width: 8%; } .w-9 { width: 9%; } .w-18 { width: 18%; } .w-52 { width: 52%; } .w-62 { width: 62%; } .w-78 { width: 78%; }

.flag-strip { display: flex; height: 8px; }
.flag-strip span { flex: 1; }
.flag-strip span:nth-child(1) { background: var(--brand-sea); }
.flag-strip span:nth-child(2) { background: var(--brand-olive-light); }
.flag-strip span:nth-child(3) { background: var(--brand-sand); }
.flag-strip span:nth-child(4) { background: var(--c-bg); }

@media (max-width: 720px) {
  .hero-flow { flex-direction: column; align-items: stretch; }
  .hero-arrow { transform: rotate(90deg); align-self: center; }
  .hero-noise { height: 250px; flex-basis: auto; }
  .hero .frontpage { flex: none; align-self: center; width: min(290px, 100%); }
}

/* Today's edition */
.today {
  margin-top: clamp(36px, 6vw, 56px);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.today__head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.today__head h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(30px, 4vw, 40px); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
.today__date { font-size: 14px; color: var(--c-muted); }
.today__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 36px; }
.today__item { padding: 14px 0; border-top: 1px solid var(--c-line); }
.today__item a { display: flex; flex-direction: column; gap: 4px; }
.today__cat { font-size: 13px; font-weight: 700; color: var(--c-accent); letter-spacing: 0.02em; }
.today__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; font-weight: 600; }
.today__more { color: var(--c-accent); font-weight: 700; align-self: flex-start; }

/* Other regions (e.g. Svizzera): small teaser under today's edition */
.others { margin-top: 20px; }
.other { display: flex; flex-wrap: wrap; gap: 28px 36px; align-items: center; padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 36px); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; }
.other .frontpage { margin: 6px 0 6px 4px; }
.other__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.other__text .home-kicker { margin-bottom: 0; }
.other__title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 600 clamp(28px, 3.6vw, 34px)/1.05 var(--font-serif); letter-spacing: -0.015em; }
.other__badge { padding: 4px 10px; border-radius: 999px; background: var(--brand-sand); color: #1F2A30; font: 700 13px/1.2 var(--font-sans); letter-spacing: 0.02em; transform: rotate(-3deg); }
.other__desc { margin: 0; font-size: 16px; line-height: 1.5; color: var(--c-text-2); }
.other__date { margin: 0; font-size: 14px; color: var(--c-muted); }
.other__link { margin-top: 4px; color: var(--c-accent); font-weight: 700; align-self: flex-start; }

/* Why */
.why-grid { display: flex; flex-wrap: wrap; gap: 36px; }
.why-item { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.why-item__n { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; color: var(--c-numeral); line-height: 1; }
.why-item h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.why-item p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--c-muted); }
.strike { color: var(--c-muted); text-decoration-line: line-through; text-decoration-color: var(--c-neg); text-decoration-thickness: 0.09em; }
.correct { color: var(--c-neg); text-decoration: none; }

/* Mission */
.pillars { display: flex; flex-wrap: wrap; gap: 16px; }
.pillar { flex: 1 1 240px; min-width: 0; background: var(--c-surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border-top: 6px solid var(--pillar); }
.pillar:nth-child(1) { --pillar: var(--brand-sea); }
.pillar:nth-child(2) { --pillar: var(--brand-olive-light); }
.pillar:nth-child(3) { --pillar: var(--brand-sand); }
.pillar:nth-child(4) { --pillar: var(--brand-deep); }
.pillar__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pillar p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--c-text-2); }

/* How it works */
.how { background: var(--c-surface); border-radius: 16px; padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.how + .how { margin-top: 16px; }
.how__intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.how__intro h2 { margin: 0; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.how__intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--c-text-2); }
.how__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.5; color: var(--c-text-2); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); flex-shrink: 0; width: 28px; font-weight: 800; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.steps strong { color: var(--c-ink); }
.example { border: 1px solid var(--c-rule-soft); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.example__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; }
.example__row span { color: var(--c-muted); }
.example--chips { flex-direction: row; flex-wrap: wrap; align-items: center; }
.example--chips strong { font-size: 15px; flex-grow: 1; }
.chip { font-size: 13px; background: var(--c-chip-bg); color: var(--c-chip-ink); border-radius: 999px; padding: 4px 10px; font-weight: 600; }

/* In construction: the social platform, kept apart from what is online today */
.social-soon { margin-top: 24px; padding: clamp(40px, 7vw, 64px) 0 clamp(48px, 8vw, 72px); border-top: 2px dashed var(--c-rule-soft); }
.soon-badge { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--c-status-dev-bg); color: var(--c-status-dev-fg); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.social-soon .home-h2 { margin-bottom: 14px; }
.social-soon__lede { margin: 0 0 clamp(24px, 4vw, 36px); max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--c-text-2); }
.social-soon .how { background: transparent; border: 1px dashed var(--c-strong); }

/* Principles */
.principles { display: flex; flex-wrap: wrap; gap: 28px 36px; }
.principle { flex: 1 1 260px; min-width: 0; display: flex; gap: 14px; }
.principle svg { flex-shrink: 0; color: var(--c-ink); }
.principle h3 { margin: 0 0 4px; font-size: 18px; }
.principle p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-muted); }

/* Manifesto band (sand in both themes) */
.manifesto { background: var(--brand-sand); color: var(--on-sand); }
.manifesto__inner { padding-top: clamp(48px, 8vw, 72px); padding-bottom: clamp(48px, 8vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.manifesto__quote { flex: 1 1 300px; min-width: 0; margin: 0; font-size: clamp(29px, 4.6vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.manifesto__side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.manifesto__side p { margin: 0; font-size: 16px; line-height: 1.55; }
.home .site-footer { margin-top: 0; }
