/* Landing only: the mock panels. */

.hero { cursor: pointer; }
.hero a, .hero button { cursor: pointer; }

.hero--split h1 { font-size: clamp(40px, 4.2vw, 60px); }

/* the hero map is a capture of the app's Bologna view; OSM attribution stays readable over it */

/* the hero is a still image: nothing on it is live, so the dot does not pulse */
.hero__media .ly-live::before { animation: none; }

.comuni-note, .chi-note { max-width: 44ch; color: var(--p-muted); margin-top: var(--s-4); }
.chi-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: var(--s-4); }
.fonti-points { margin-top: var(--s-5); max-width: 44ch; }
.fonti-points li { color: var(--p-muted); font-size: 16px; line-height: 1.5; margin-top: 10px; }


/* the app mocks: real panels from the product, drawn in the page's own tokens */
.mock { margin-top: 0; background: var(--p-surface); border: 1px solid color-mix(in oklab, var(--p-ink) 11%, transparent); border-radius: var(--r-md); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 10%, transparent); font-size: 13px; color: var(--p-muted); }
.mock__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p-action); flex: none; }
.mock__mono { margin-left: auto; font: 400 12px var(--font-mono); }
.mock__body { padding: 6px 16px; }
.mock__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 26px 0; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 9%, transparent); }
/* seven rows in one panel: the comuni table keeps a little less air */
#comuni .mock__row { padding: 22px 0; }
.mock__row:last-child { border-bottom: 0; }
.mock__row b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.mock__row span { display: block; font: 400 12px/1.5 var(--font-mono); color: var(--p-muted); margin-top: 3px; }
.mock__row em { font: 400 13px var(--font-mono); font-style: normal; color: var(--p-muted); white-space: nowrap; }
.mock__row.is-on b { color: var(--p-ink); }
.mock__row.is-on::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--p-action); flex: none; margin-top: 5px; }
.mock__row.is-on { display: flex; align-items: flex-start; gap: 10px; }
.mock__row.is-on em { margin-left: auto; }
.mock__row:not(.is-on) { padding-left: 18px; }

.section--numbers h2 { max-width: none; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
.numbers-lead { margin-top: var(--s-5); max-width: 46ch; color: var(--p-muted); }
/* the figures sit on the split line, stacked down the second column */
.numbers-grid { align-items: stretch; }
.numbers-head { align-self: start; }
.numbers-stats { display: grid; align-content: space-between; gap: var(--s-6); }
.numbers-stats .number { border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); padding-top: 14px; }
.numbers-stats .t-stat { margin: 0 0 6px; font-size: var(--t-stat); line-height: 1; letter-spacing: -0.02em; }
@media (min-width: 640px) { .numbers-grid { grid-template-rows: minmax(0, 1fr); } }
@media (max-width: 639px) { .numbers-stats { gap: 16px; margin-top: var(--s-6); } .numbers-stats .t-stat { font-size: 26px; } }

/* the FAQ box is a mock panel like the others: its shell comes from .mock and .mock__body */
.faq--mock .faq__item { padding: 14px 0 14px 18px; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 9%, transparent); }
.faq--mock .faq__item:last-child { border-bottom: 0; }
/* six questions in one screen: two columns, read down the first and then the second */
@media (min-width: 1024px) {
  .faq--mock .mock__body { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, minmax(0, auto)); column-gap: 34px; align-items: start; }
}
.faq--mock .faq__item h3 { font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.faq--mock .faq__item p { font-size: 13px; line-height: 1.45; color: var(--p-muted); margin: 0; max-width: none; }

/* a phone keeps every row: the page's facts are the same at 390 and 1440 */
.rows--metodo .rows__name small { display: block; margin-top: 2px; font: 400 var(--t-small)/1.5 var(--font-text); color: var(--p-muted); }

@media (max-width: 639px) {
  .mock__row { padding: 10px 0; }
  .rows--metodo li { padding-block: 10px; }
  .faq--mock .faq__item { padding: 12px 0 12px 18px; }
  /* a phone fills the screen: the mock takes the room the words leave, so the air between sections stays one measure */
  .wrap.grid { align-content: stretch; grid-template-rows: auto minmax(0, 1fr); }
  .mock { height: 100%; display: flex; flex-direction: column; }
  .mock__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
}
@media (max-width: 359px) { .nav__actions .btn { display: none; } }

/* a short screen (a phone on its side, a netbook) cannot hold the hero: it grows instead of
   laying its picture over the next section. The split keeps a fixed band for the map. */
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 700px) {
  main > .hero { height: auto; min-height: 100svh; }
  main > .hero > .wrap { height: auto; }
}
@media (min-width: 1024px) and (max-height: 620px) {
  main > .hero { height: auto; min-height: 100svh; }
  main > .hero > .wrap { height: auto; }
  .hero--split .hero__media { height: 360px; }
}

/* the numbers and the closing run across the full measure; no 20ch cap, no wrap on a desktop */
@media (min-width: 1024px) {
  .section--numbers h2 { font-size: clamp(34px, 3.4vw, 48px); }
  footer.closing .closing__cta h2 { white-space: nowrap; }
}
footer.closing .closing__cta .section-head { max-width: none; }
footer.closing .closing__cta .section-head p { max-width: none; }
footer.closing .closing__cta h2 { max-width: none; }

/* footer: the horizontal lockup (with the tagline) and the column titles as mono labels */
.footer__brand { display: block; line-height: 0; }
.footer__brand img { width: min(300px, 100%); height: auto; }
.closing__links .footer__col h3 { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-muted); }
.closing__cta > .btn { align-self: flex-start; }
.link--plain { display: inline; gap: 0; }
.link--plain::after { display: none; }

/* notch and home indicator (viewport-fit=cover) */
.wrap { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
footer.closing { padding-bottom: max(var(--padb), env(safe-area-inset-bottom)); }

/* hardening: commune and source names run long, and the hero map can fail */
.mock__row > div { min-width: 0; }
.mock__row b, .mock__row span { overflow-wrap: anywhere; }
