/* ==========================================================================
   LODO SPORT — pagine informative
   contatti · chi siamo · privacy · 404
   Colori solo tramite token --c-* / --grade*: le 4 stagioni funzionano da sole.
   ========================================================================== */

/* ---------- elementi comuni ---------- */
.pg-kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--c-muted); margin-bottom: 20px; }
.pg-label { display: block; color: var(--c-muted); margin-bottom: 18px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pg-link { border-bottom: 1px solid var(--c-line); transition: border-color .25s; }
.pg-link:hover { border-color: var(--c-text); }

/* icona dentro il dodecagono del pulsante "aggiungi" */
.pg-ico { position: relative; flex: none; display: grid; place-items: center; width: var(--ico, 64px); aspect-ratio: 1; }
.pg-ico__poly {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: transparent; stroke: currentColor; stroke-width: 1.1; vector-effect: non-scaling-stroke;
  transition: transform .8s var(--ease), fill .35s;
}
.pg-ico > .ico { width: 32%; height: 32%; transition: transform .4s var(--ease); }

/* ---------- intestazione delle pagine (foto di stagione + graffiti) ---------- */
.pg-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr);
  align-items: end; gap: clamp(28px, 5vw, 80px);
  min-height: clamp(580px, 78vh, 800px);
}
.pg-head .page-head__media { opacity: .62; }
.pg-head .page-head__media > img { transition: opacity .8s var(--ease); }
.pg-head .page-head__media::before {
  background:
    linear-gradient(90deg, var(--c-hero-b) 4%, color-mix(in srgb, var(--c-hero-b) 55%, transparent) 42%, transparent 82%),
    linear-gradient(0deg, color-mix(in srgb, var(--c-hero-b) 72%, transparent), transparent 46%);
}
.page-head > .pg-tag { position: absolute; z-index: 0; pointer-events: none; color: var(--c-text); mix-blend-mode: screen; }
.pg-tag .graffiti { position: relative; width: 100%; height: auto; }
.pg-head__copy { align-self: end; }
.pg-head .crumbs [aria-current] { color: var(--c-text); }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.ct-head__tag { right: 1%; top: 12%; width: min(780px, 60%); opacity: .3; filter: blur(2px); }
.ct-head .pill--hi { box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--c-ink) 70%, transparent); }

/* biglietto da visita in stile skipass */
.ct-pass {
  --cut: 22px;
  position: relative; display: grid; align-self: end;
  padding: 22px 24px 20px;
  background: color-mix(in srgb, var(--c-hero-b) 64%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  animation: pg-rise 1s .15s var(--ease) both;
}
.ct-pass__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.ct-pass__logo { display: inline-block; font: 400 42px/1 var(--f-tag); transform: rotate(-4deg) translateY(2px); }
.ct-pass__top .mono { color: var(--c-muted); text-align: right; }
.ct-pass__list { display: grid; gap: 11px; padding: 18px 0 20px; }
.ct-pass__list > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; }
.ct-pass__list dt { color: var(--c-faint); }
.ct-pass__list dd { color: var(--c-text); overflow-wrap: anywhere; }
.ct-pass__list a { border-bottom: 1px solid var(--c-line); transition: border-color .25s; }
.ct-pass__list a:hover { border-color: var(--c-text); }
.ct-pass__cut { height: 1px; margin: 0 -24px; background: repeating-linear-gradient(90deg, var(--c-line) 0 6px, transparent 6px 12px); }
.ct-pass__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; color: var(--c-muted); }
.ct-pass__foot .barcode { color: var(--c-text); }
.ct-pass__foot .barcode__bars { width: 118px; height: 30px; }
@keyframes pg-rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- canali diretti ---------- */
.ct-channels { background: var(--c-panel); transition: background-color .8s var(--ease); }
.ct-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.ct-card {
  --cut: 20px; --ico: 68px;
  grid-column: span var(--span, 2);
  display: grid; grid-template-areas: "top" "ico" "body" "go"; grid-template-rows: auto 1fr auto auto;
  gap: 18px; min-width: 0; min-height: 300px;
  padding: clamp(20px, 2vw, 28px);
  background: color-mix(in srgb, var(--c-panel-2) 50%, var(--c-panel));
  color: var(--c-text);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.ct-card__top { grid-area: top; display: flex; justify-content: space-between; gap: 12px; color: var(--c-muted); transition: color .45s; }
.ct-card .pg-ico { grid-area: ico; align-self: center; }
.ct-card__body { grid-area: body; display: grid; gap: 10px; min-width: 0; }
.ct-card__val {
  font: 700 clamp(26px, 2.6vw, 40px)/.95 var(--f-display); font-stretch: 82%;
  text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere;
}
.ct-card__val--mail { text-transform: none; letter-spacing: -.005em; }
.ct-card__sub { color: var(--c-muted); transition: color .45s; }
.ct-card__go {
  grid-area: go; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--c-line); transition: border-color .45s;
}
.ct-card__go svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.ct-card:hover, .ct-card:focus-visible { background: var(--c-chip); color: var(--c-chip-ink); }
.ct-card:hover .ct-card__top, .ct-card:hover .ct-card__sub,
.ct-card:focus-visible .ct-card__top, .ct-card:focus-visible .ct-card__sub { color: color-mix(in srgb, var(--c-chip-ink) 68%, transparent); }
.ct-card:hover .ct-card__go, .ct-card:focus-visible .ct-card__go { border-color: color-mix(in srgb, var(--c-chip-ink) 22%, transparent); }
.ct-card:hover .pg-ico__poly, .ct-card:focus-visible .pg-ico__poly { transform: rotate(30deg); }
.ct-card:hover .ct-card__go svg, .ct-card:focus-visible .ct-card__go svg { transform: translate(3px, -3px); }
/* il clip-path taglia il contorno esterno: il focus va all'interno */
.ct-card:focus-visible { outline: 2px solid var(--c-chip-ink); outline-offset: -8px; }

.ct-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: clamp(12px, 1.4vw, 20px); padding: 16px 20px;
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-muted);
}
.ct-note svg { width: 18px; height: 18px; flex: none; color: var(--c-text); }
.ct-note b { color: var(--c-text); font-weight: 500; }
.ct-note .pg-link { margin-left: auto; color: var(--c-text); }

/* ---------- modulo ---------- */
.ct-write {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 88px); align-items: start;
  background: color-mix(in srgb, var(--c-panel) 70%, var(--c-panel-2)); transition: background-color .8s var(--ease);
}
.ct-write__intro { position: sticky; top: calc(var(--bar-h) + var(--header-h) + 28px); }
.ct-write__intro .lead { margin-top: 22px; }
.ct-steps { margin-top: 34px; border-top: 1px solid var(--c-line); }
.ct-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.ct-steps li > span { color: var(--c-faint); }
.ct-steps b { display: block; margin-bottom: 3px; color: var(--c-text); font-weight: 500; }
.ct-direct { margin-top: 26px; color: var(--c-muted); }
.ct-direct a { color: var(--c-text); white-space: nowrap; }

.ct-formwrap {
  --cut: 26px; position: relative;
  padding: clamp(22px, 3.2vw, 48px);
  background: var(--c-panel-2); transition: background-color .8s var(--ease);
}
.ct-form__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.ct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
/* campi della stessa riga allineati in alto anche se uno ha il suggerimento sotto */
.ct-form__grid > .field { align-content: start; }
.ct-form__full { grid-column: 1 / -1; }
.ct-req { color: var(--c-hi); }
.ct-opt { color: var(--c-faint); }
.ct-hint { color: var(--c-faint); font-size: 10px; }
.ct-err {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--c-text); font: 400 11px/1.5 var(--f-mono); letter-spacing: .02em;
  animation: pg-shake .4s var(--ease);
}
.ct-err::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px;
  border-radius: 50%; background: var(--c-hi); color: var(--c-ink); font: 700 10px/1 var(--f-mono);
}
.ct-err:empty { display: none; }
@keyframes pg-shake { 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.ct-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ct-count { margin-left: auto; color: var(--c-faint); font: 400 10px/1.5 var(--f-mono); letter-spacing: .06em; white-space: nowrap; }
.ct-form .check { color: var(--c-muted); }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--c-line);
}
.ct-submit { --buy-size: 78px; }
.ct-submit .buy__price { font-size: clamp(17px, 1.5vw, 21px); }
.ct-submit[aria-busy="true"] { pointer-events: none; }
.ct-submit[aria-busy="true"] .buy__poly { animation: pg-spin 1.4s linear infinite; }
@keyframes pg-spin { to { transform: rotate(360deg); } }
.ct-status { margin-top: 20px; color: var(--c-muted); }
.ct-status:empty { display: none; }
.ct-status.is-error { display: flex; gap: 10px; color: var(--c-text); }
.ct-status.is-error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px;
  border-radius: 50%; background: var(--c-hi); color: var(--c-ink); font: 700 10px/1 var(--f-mono);
}
.ct-status a { color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }
.ct-fine { margin-top: 16px; color: var(--c-faint); }

/* prodotto collegato alla richiesta (?prodotto=id) */
.ct-prod {
  --cut: 12px;
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  margin-bottom: 26px; padding: 12px;
  background: color-mix(in srgb, var(--c-text) 7%, transparent);
  animation: pg-rise .7s var(--ease) both;
}
.ct-prod .citem__img { --cut: 9px; }
.ct-prod__name { margin: 3px 0 4px; font: 700 clamp(19px, 1.7vw, 24px)/1 var(--f-display); font-stretch: 82%; text-transform: uppercase; }
.ct-prod__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-prod__meta { color: var(--c-muted); }
.ct-prod__meta b { color: var(--c-text); font-weight: 500; }
.ct-prod .icon-btn { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line); }

/* esito dell'invio */
.ct-done { display: grid; justify-items: start; align-content: center; gap: 18px; min-height: 440px; }
.ct-done:focus { outline: none; }
.ct-done .pg-ico { --ico: 96px; color: var(--c-hi); }
.ct-done .pg-ico__poly { animation: pg-pop 1s var(--ease) both; }
.ct-done .pg-ico > .ico { animation: pg-rise .6s .35s var(--ease) both; }
.ct-done h3 { font-size: clamp(34px, 3.6vw, 54px); }
.ct-done p { color: var(--c-muted); max-width: 54ch; }
.ct-done p b { color: var(--c-text); font-weight: 500; }
.ct-done .pg-actions { margin-top: 8px; }
@keyframes pg-pop { from { opacity: 0; transform: rotate(-70deg) scale(.6); } }

/* ---------- dove siamo ---------- */
.ct-map { background: var(--c-panel); transition: background-color .8s var(--ease); }
.ct-map__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(22px, 3.6vw, 56px); align-items: stretch; }
.ct-map__frame {
  --cut: 26px; position: relative; margin: 0;
  display: grid; grid-template-rows: minmax(400px, 1fr) auto; min-height: 540px;
  background: var(--c-panel-2); transition: background-color .8s var(--ease);
}
.ct-map__canvas { position: relative; isolation: isolate; overflow: hidden; background: var(--c-card-2); }
.ct-map__canvas iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: saturate(.5) contrast(1.05); transition: filter .6s var(--ease);
}
/* velo di stagione: non intercetta click e trascinamenti */
.ct-map__canvas::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--grade); mix-blend-mode: color; opacity: calc(var(--grade-amt) * .8);
  transition: opacity .6s var(--ease), background-color .8s var(--ease);
}
.ct-map__frame:hover .ct-map__canvas::after, .ct-map__frame:focus-within .ct-map__canvas::after { opacity: calc(var(--grade-amt) * .22); }
.ct-map__frame:hover iframe, .ct-map__frame:focus-within iframe { filter: saturate(.9) contrast(1.02); }
.ct-map__fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--c-ink); }
.ct-map__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 22px; color: var(--c-muted); }
.ct-map__cap span:first-child { color: var(--c-text); }

.ct-map__info { display: flex; flex-direction: column; gap: 26px; }
.ct-addr { display: grid; gap: 14px; font-style: normal; }
.ct-addr__street { display: block; font-size: clamp(32px, 3.4vw, 52px); }
.ct-addr__city { color: var(--c-muted); }
.ct-map__info .lead { color: var(--c-muted); }
.ct-facts { border-top: 1px solid var(--c-line); }
.ct-facts > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.ct-facts dt { color: var(--c-faint); }
.ct-facts a { border-bottom: 1px solid var(--c-line); }
.ct-facts a:hover { border-color: var(--c-text); }
.ct-map__info .pg-actions { margin-top: auto; padding-top: 4px; }

.ct-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(14px, 1.6vw, 22px); }
.ct-route {
  --cut: 22px; padding: clamp(22px, 2.6vw, 38px);
  background: color-mix(in srgb, var(--c-panel-2) 50%, var(--c-panel)); transition: background-color .8s var(--ease);
}
.ct-route__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 18px; padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--c-line); }
.ct-route__head p { color: var(--c-muted); }
.ct-route__head h3 { font-size: clamp(30px, 3.2vw, 46px); margin-top: 10px; }
.ct-path li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 16px 0 14px; }
.ct-path li::before {
  content: ""; width: 11px; height: 11px; margin: 3px 0 0 7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--c-text); background: var(--c-panel-2);
}
.ct-path li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 33px; bottom: -3px; width: 1px; background: var(--c-line); }
.ct-path li:last-child::before { background: var(--c-hi); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-hi) 22%, transparent); }
.ct-path b { display: block; margin-bottom: 3px; color: var(--c-text); font-weight: 500; }
.ct-path span { color: var(--c-muted); }

/* ==========================================================================
   CHI SIAMO
   ========================================================================== */
.ab-head { grid-template-columns: minmax(0, 1fr) auto; }
.ab-head__tag { right: -2%; top: 8%; width: min(820px, 64%); opacity: .34; filter: blur(2.5px); }
.ab-head__meta { display: grid; gap: 12px; align-self: end; min-width: 250px; animation: pg-rise 1s .15s var(--ease) both; }
.ab-head__meta > div { display: grid; grid-template-columns: 76px auto; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.ab-head__meta dt { color: var(--c-faint); }

/* storia */
.ab-story {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 88px); align-items: start;
  background: var(--c-panel); transition: background-color .8s var(--ease);
}
.ab-year {
  position: sticky; top: calc(var(--bar-h) + var(--header-h) + 28px);
  display: grid; font: 700 clamp(120px, 19vw, 290px)/.8 var(--f-display); font-stretch: 78%;
  letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--c-muted);
}
.ab-year span:last-child { color: var(--c-text); -webkit-text-stroke: 0; }
.ab-year__cap { margin-top: 26px; font: 400 11px/1.55 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); -webkit-text-stroke: 0; }
.ab-story h2 { max-width: 16ch; }
.ab-story__lead { margin-top: 24px; font-size: 14px; color: var(--c-text); max-width: 58ch; }
.ab-story__text { margin-top: 16px; }
.ab-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--c-line); }
.ab-point { display: grid; align-content: start; gap: 14px; padding: 24px 22px 6px 0; }
.ab-point + .ab-point { padding-left: 22px; border-left: 1px solid var(--c-line); }
.ab-point__head { display: flex; justify-content: space-between; align-items: center; color: var(--c-faint); }
.ab-point .pg-ico { --ico: 44px; color: var(--c-text); }
.ab-point h3 { font-size: clamp(22px, 2vw, 28px); }
.ab-point p { color: var(--c-muted); }

/* slogan (sezione montagna del template) */
.ab-slogan {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: end; min-height: clamp(560px, 60vw, 800px);
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  background: var(--c-panel-2); transition: background-color .8s var(--ease);
}
.ab-slogan__media {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: -3; background: transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
}
.ab-slogan__media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, color-mix(in srgb, var(--c-panel-2) 70%, transparent), transparent 55%); }
.ab-slogan__tag {
  position: absolute; z-index: -2; left: 4%; right: 4%; top: 2%;
  color: var(--c-hi); opacity: .72; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 94%);
}
.ab-slogan__tag .graffiti { position: relative; width: 100%; height: auto; }
.ab-slogan__left { position: absolute; left: var(--gutter); top: 38%; max-width: 250px; display: grid; gap: 12px; }
.ab-slogan__right { position: absolute; right: var(--gutter); top: 48%; max-width: 210px; text-align: right; }
.ab-slogan__title {
  display: grid; font-size: clamp(48px, 8.4vw, 132px); line-height: .9;
  text-shadow: 0 2px 40px color-mix(in srgb, var(--c-ink) 30%, transparent);
}
.ab-slogan .barcode { position: absolute; right: var(--gutter); bottom: clamp(40px, 6vw, 80px); color: var(--c-text); }

/* numeri */
.ab-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--c-panel); border-bottom: 1px solid var(--c-line); transition: background-color .8s var(--ease); }
.ab-num { display: grid; align-content: start; gap: 14px; padding: clamp(30px, 3.6vw, 52px) var(--gutter); border-right: 1px solid var(--c-line); }
.ab-num:last-child { border-right: 0; }
.ab-num__k { color: var(--c-faint); }
.ab-num__v { display: flex; align-items: baseline; gap: 10px; font: 700 clamp(58px, 6.6vw, 104px)/.85 var(--f-display); font-stretch: 78%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ab-num__v small { font: 400 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.ab-num__d { color: var(--c-muted); max-width: 26ch; }

/* discipline */
.ab-disc { background: color-mix(in srgb, var(--c-panel) 70%, var(--c-panel-2)); transition: background-color .8s var(--ease); }
.ab-disc__list { border-top: 1px solid var(--c-line); counter-reset: none; }
.ab-row {
  position: relative; display: grid; align-items: center; gap: 18px;
  grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1fr) 110px 44px;
  padding: clamp(16px, 2vw, 26px) 12px; border-bottom: 1px solid var(--c-line);
  transition: background-color .4s var(--ease);
}
.ab-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--c-text) 7%, transparent); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.ab-disc__list { position: relative; isolation: isolate; }
.ab-row__n { color: var(--c-faint); }
.ab-row__name { font: 700 clamp(30px, 4vw, 62px)/.92 var(--f-display); font-stretch: 82%; text-transform: uppercase; letter-spacing: -.012em; transition: transform .5s var(--ease); }
.ab-row__sub { color: var(--c-muted); }
.ab-row__meta { color: var(--c-muted); text-align: right; }
.ab-row__arrow {
  justify-self: end; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line);
  transition: background-color .35s, color .35s, transform .5s var(--ease), box-shadow .35s;
}
.ab-row__arrow svg { width: 15px; height: 15px; }
a.ab-row:hover::before, a.ab-row:focus-visible::before { transform: none; }
a.ab-row:hover .ab-row__name, a.ab-row:focus-visible .ab-row__name { transform: translateX(10px); }
a.ab-row:hover .ab-row__arrow, a.ab-row:focus-visible .ab-row__arrow { background: var(--c-chip); color: var(--c-chip-ink); box-shadow: none; transform: rotate(45deg); }
a.ab-row:focus-visible { outline-offset: -4px; }

/* galleria del negozio */
.ab-gal { background: var(--c-panel); transition: background-color .8s var(--ease); }
.ab-gal__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(220px, 22vw, 320px)); gap: clamp(12px, 1.4vw, 20px);
}
.ab-shot { --cut: 22px; position: relative; margin: 0; }
.ab-shot > img { position: absolute; inset: 0; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.ab-shot:hover > img { transform: scale(1.04); filter: saturate(.85) contrast(1.04); }
.ab-shot:hover::after { opacity: calc(var(--grade-amt) * .28); }
.ab-shot--1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.ab-shot--2 { grid-column: 5 / 13; grid-row: 1; }
.ab-shot--3 { grid-column: 5 / 9; grid-row: 2; }
.ab-shot--4 { grid-column: 9 / 13; grid-row: 2; }
.ab-shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; gap: 12px; padding: 40px 18px 16px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c-hero-b) 78%, transparent), transparent);
  color: var(--c-text);
}
.ab-gal__credit { margin-top: 18px; color: var(--c-faint); }

/* marche */
.ab-brands { background: color-mix(in srgb, var(--c-panel) 70%, var(--c-panel-2)); transition: background-color .8s var(--ease); }
.ab-brands__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--c-line); box-shadow: 0 0 0 1px var(--c-line); }
.ab-brand {
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 210px; height: 100%;
  padding: clamp(18px, 2vw, 26px);
  background: color-mix(in srgb, var(--c-panel) 70%, var(--c-panel-2));
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.ab-brand__top { display: flex; justify-content: space-between; color: var(--c-faint); transition: color .45s; }
.ab-brand__top svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.ab-brand__name {
  align-self: end; font: 700 clamp(30px, 3.4vw, 54px)/.9 var(--f-display); font-stretch: 82%; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px var(--c-text); transition: color .45s var(--ease);
}
.ab-brand__cats { color: var(--c-muted); transition: color .45s; }
.ab-brand:hover, .ab-brand:focus-visible { background: var(--c-chip); color: var(--c-chip-ink); }
.ab-brand:hover .ab-brand__name, .ab-brand:focus-visible .ab-brand__name { color: var(--c-chip-ink); -webkit-text-stroke-color: var(--c-chip-ink); }
.ab-brand:hover .ab-brand__top, .ab-brand:hover .ab-brand__cats,
.ab-brand:focus-visible .ab-brand__top, .ab-brand:focus-visible .ab-brand__cats { color: color-mix(in srgb, var(--c-chip-ink) 66%, transparent); }
.ab-brand:hover .ab-brand__top svg, .ab-brand:focus-visible .ab-brand__top svg { transform: translate(3px, -3px); }
.ab-brand:focus-visible { outline: 2px solid var(--c-chip-ink); outline-offset: -8px; }

/* proposte di stagione */
.ab-season { background: var(--c-panel); transition: background-color .8s var(--ease); }
.ab-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.ab-tile {
  --cut: 22px; position: relative; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; color: var(--c-text);
}
.ab-tile > img { position: absolute; inset: 0; z-index: 0; transition: transform 1.2s var(--ease); }
.ab-tile:hover > img, .ab-tile:focus-visible > img { transform: scale(1.06); }
.ab-tile__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--c-hero-b) 82%, transparent), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--c-hero-b) 45%, transparent), transparent 32%);
}
.ab-tile__top, .ab-tile__bottom, .ab-tile__arrow { position: relative; z-index: 2; }
.ab-tile__top { display: flex; justify-content: space-between; color: var(--c-muted); }
.ab-tile__bottom { display: grid; gap: 8px; padding-right: var(--tile-pr, 48px); }
/* nomi lunghi (--len = parola più lunga, da pagine.js): il corpo scende quanto basta per non uscire dalla card */
.ab-tile { container-type: inline-size; }
.ab-tile__bottom .display-m {
  font-size: var(--tile-fs, clamp(28px, 3.2vw, 46px));
  font-size: min(var(--tile-fs, clamp(28px, 3.2vw, 46px)), calc((100cqi - var(--tile-pr, 48px)) / (var(--len, 8) * .6)));
}
.ab-tile__sub { color: var(--c-muted); }
.ab-tile__arrow {
  position: absolute; right: 16px; bottom: 18px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-muted);
  transition: background-color .35s, color .35s, transform .5s var(--ease);
}
.ab-tile__arrow svg { width: 15px; height: 15px; }
.ab-tile:hover .ab-tile__arrow, .ab-tile:focus-visible .ab-tile__arrow { background: var(--c-chip); color: var(--c-chip-ink); box-shadow: none; transform: rotate(45deg); }
.ab-tile:focus-visible { outline: 2px solid var(--c-hi); outline-offset: -8px; }

/* inviti finali */
.ab-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); padding: 0 var(--gutter) clamp(48px, 6vw, 88px); background: var(--c-panel); transition: background-color .8s var(--ease); }
.ab-cta__card {
  --cut: 26px; position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 22px; min-height: 340px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--c-hero-b); color: var(--c-text);
  transition: background-color .45s var(--ease);
}
.ab-cta__card--alt { background: var(--c-panel-2); }
.ab-cta__card > .mono:first-child { color: var(--c-muted); }
.ab-cta__card h2 { max-width: 11ch; }
.ab-cta__card p { color: var(--c-muted); }
.ab-cta__card .buy { pointer-events: none; }
.ab-cta__card:hover .buy__poly, .ab-cta__card:focus-visible .buy__poly { transform: rotate(30deg); fill: color-mix(in srgb, var(--c-text) 12%, transparent); }
.ab-cta__card:hover .buy__arrow, .ab-cta__card:focus-visible .buy__arrow { transform: translate(3px, -3px); }
.ab-cta__card:hover { background: color-mix(in srgb, var(--c-hero-b) 80%, var(--c-panel)); }
.ab-cta__card--alt:hover { background: color-mix(in srgb, var(--c-panel-2) 80%, var(--c-panel)); }
.ab-cta__card:focus-visible { outline: 2px solid var(--c-hi); outline-offset: -8px; }
.ab-cta__tag { position: absolute; right: -6%; bottom: -14%; width: 62%; color: var(--c-text); opacity: .08; pointer-events: none; }
.ab-cta__tag .graffiti { position: relative; width: 100%; height: auto; }

/* ==========================================================================
   PRIVACY
   ========================================================================== */
.pv-head { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.pv-head__tag { right: 2%; top: 14%; width: min(640px, 52%); opacity: .2; filter: blur(2px); }
.pv-draft {
  --cut: 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; align-items: start;
  max-width: 820px; margin-top: 34px; padding: 18px 22px;
  background: var(--c-hi); color: var(--c-ink);
}
.pv-draft__tag { padding-top: 2px; font-weight: 600; white-space: nowrap; }
.pv-draft p:last-child { font: 400 12px/1.6 var(--f-mono); letter-spacing: .02em; }
.pv-draft strong { display: block; font: 700 clamp(19px, 1.8vw, 24px)/1.05 var(--f-display); font-stretch: 82%; text-transform: uppercase; margin-bottom: 6px; }

.pv-wrap {
  display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start;
  background: var(--c-panel-2); transition: background-color .8s var(--ease);
}
.pv-toc { position: sticky; top: calc(var(--bar-h) + var(--header-h) + 24px); }
.pv-toc__title { color: var(--c-faint); margin-bottom: 14px; }
.pv-toc ol { border-top: 1px solid var(--c-line); }
.pv-toc a {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px;
  padding: 10px 0; border-bottom: 1px solid var(--c-line); color: var(--c-muted);
  transition: color .25s, padding .35s var(--ease);
}
.pv-toc a span { color: var(--c-faint); transition: color .25s; }
.pv-toc a:hover { color: var(--c-text); }
.pv-toc a[aria-current="true"] { color: var(--c-text); padding-left: 14px; }
.pv-toc a[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--c-hi); }
.pv-toc a[aria-current="true"] span { color: var(--c-hi); }
.pv-toc__foot { margin-top: 22px; color: var(--c-faint); }
.pv-toc__foot a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }

.pv-doc { max-width: 74ch; }
.pv-sec { padding-bottom: clamp(40px, 4.6vw, 60px); margin-bottom: clamp(40px, 4.6vw, 60px); border-bottom: 1px solid var(--c-line); }
.pv-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.pv-sec__num { color: var(--c-faint); }
.pv-sec h2 { font-size: clamp(28px, 2.8vw, 42px); margin: 10px 0 22px; }
.pv-sec h3 { margin: 28px 0 10px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; color: var(--c-text); }
.pv-doc p, .pv-doc li, .pv-doc td, .pv-doc dd {
  font: 400 16px/1.75 var(--f-display); font-stretch: 100%; letter-spacing: .003em;
  color: color-mix(in srgb, var(--c-text) 84%, transparent);
}
.pv-doc p + p, .pv-list + p, .pv-table + p { margin-top: 14px; }
.pv-doc strong { color: var(--c-text); font-weight: 600; }
.pv-doc a { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.pv-doc a:hover { text-decoration-color: var(--c-text); }
.pv-list { display: grid; gap: 10px; margin-top: 14px; }
.pv-list li { position: relative; padding-left: 26px; }
.pv-list li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 9px; height: 1px; background: var(--c-muted); }
.pv-card { margin-top: 18px; border-top: 1px solid var(--c-line); }
.pv-card > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.pv-card dt { padding-top: 5px; color: var(--c-faint); }
.pv-todo {
  display: inline-block; padding: 0 6px; border-radius: 4px;
  background: color-mix(in srgb, var(--c-hi) 85%, transparent); color: var(--c-ink);
  font: 500 .72em/1.7 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: .08em;
}
.pv-note { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--c-line); }
.pv-note p { font-size: 14px; }
.pv-table { width: 100%; margin-top: 18px; border-collapse: collapse; }
.pv-table caption { text-align: left; color: var(--c-faint); padding-bottom: 10px; }
.pv-table th { padding: 10px 14px 10px 0; text-align: left; vertical-align: bottom; border-bottom: 1px solid var(--c-text); color: var(--c-muted); font: 400 10px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.pv-table td { padding: 14px 14px 14px 0; vertical-align: top; border-bottom: 1px solid var(--c-line); font-size: 15px; line-height: 1.6; }
.pv-table td:first-child { color: var(--c-text); }
.pv-table code, .pv-doc code { font: 400 .86em/1 var(--f-mono); padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--c-text) 9%, transparent); color: var(--c-text); white-space: nowrap; }
.pv-updated { margin-top: 10px; color: var(--c-faint); }

/* ==========================================================================
   404 · FUORI PISTA
   ========================================================================== */
.nf { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); min-height: clamp(660px, calc(100vh - var(--bar-h) - 40px), 940px); }
.nf__tag { left: -4%; right: 22%; top: 2%; opacity: .34; filter: blur(1.5px); }
.nf__copy h1 { max-width: 9ch; }
.nf__copy .lead { margin-top: 22px; }
.nf__search { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.nf__search .mono { color: var(--c-faint); }
.nf__search kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--c-line); font: 500 11px/1 var(--f-mono); color: var(--c-text); }
.nf__links { display: grid; gap: 10px; align-self: end; animation: pg-rise 1s .15s var(--ease) both; }
.nf__links-title { color: var(--c-muted); margin-bottom: 6px; }
.nf-link {
  --cut: 16px;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--c-hero-b) 62%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.nf-link__n { grid-row: span 2; color: var(--c-faint); align-self: start; padding-top: 6px; transition: color .4s; }
.nf-link__name { font: 700 clamp(28px, 2.8vw, 40px)/.95 var(--f-display); font-stretch: 82%; text-transform: uppercase; }
.nf-link__sub { grid-column: 2; color: var(--c-muted); transition: color .4s; }
.nf-link .pg-ico { --ico: 50px; grid-column: 3; grid-row: 1 / span 2; }
.nf-link:hover, .nf-link:focus-visible { background: var(--c-chip); color: var(--c-chip-ink); }
.nf-link:hover .nf-link__sub, .nf-link:hover .nf-link__n,
.nf-link:focus-visible .nf-link__sub, .nf-link:focus-visible .nf-link__n { color: color-mix(in srgb, var(--c-chip-ink) 66%, transparent); }
.nf-link:hover .pg-ico__poly, .nf-link:focus-visible .pg-ico__poly { transform: rotate(30deg); }
.nf-link:hover .pg-ico > .ico, .nf-link:focus-visible .pg-ico > .ico { transform: translate(2px, -2px); }
.nf-link:focus-visible { outline: 2px solid var(--c-chip-ink); outline-offset: -7px; }
.nf__code { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 8px; color: var(--c-faint); }
.nf__code .barcode { color: var(--c-text); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* tablet orizzontale: più spazio al modulo, così i campi affiancati restano leggibili */
@media (max-width: 1200px) {
  .ct-write { grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr); }
}

@media (max-width: 1100px) {
  .ab-points { grid-template-columns: 1fr; }
  .ab-point, .ab-point + .ab-point { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--c-line); }
  .ab-point { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
  .ab-point__head { grid-row: span 2; flex-direction: column; align-items: flex-start; gap: 14px; }
  .ab-row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, .9fr) 40px; }
  .ab-row__meta { display: none; }
  .ab-tile { --tile-fs: clamp(24px, 2.6vw, 30px); }
  .pv-wrap { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .ab-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-num:nth-child(2) { border-right: 0; }
  .ab-num:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
}

@media (max-width: 900px) {
  .pg-head, .ab-head, .nf { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: end; min-height: 0; }
  .pg-head { gap: 36px; }
  .ct-head__tag, .ab-head__tag, .pv-head__tag { left: -6%; right: auto; width: 112%; top: 16%; }
  .nf__tag { left: -8%; right: -8%; top: 10%; }
  .ct-pass, .nf__links { max-width: 520px; }
  .ab-head__meta { min-width: 0; max-width: 520px; }
  .ct-write { grid-template-columns: minmax(0, 1fr); }
  .ct-write__intro { position: static; }
  .ct-map__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-story { grid-template-columns: minmax(0, 1fr); }
  .ab-year { position: static; grid-auto-flow: column; justify-content: start; font-size: clamp(96px, 26vw, 200px); }
  .ab-year__cap { align-self: end; margin: 0 0 12px 18px; max-width: 18ch; }
  .ab-slogan { min-height: 0; padding-top: 34vw; gap: 24px; }
  .ab-slogan__media { height: 70%; }
  .ab-slogan__left, .ab-slogan__right { position: static; text-align: left; max-width: 36ch; }
  .ab-slogan__title { margin-top: 26vw; }
  .ab-slogan .barcode { position: static; justify-self: start; }
  /* tablet verticale: 4 proposte in 2×2 orizzontali, non card giganti */
  .ab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-tile { aspect-ratio: 5 / 4; --tile-fs: clamp(26px, 4vw, 34px); }
  .ab-cta__card .buy { --buy-size: 72px; gap: 14px; }
  .pv-wrap { grid-template-columns: minmax(0, 1fr); }
  .pv-toc { position: static; }
  .pv-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .pv-toc a { padding: 12px 0; }
}

@media (max-width: 760px) {
  .ct-cards { grid-template-columns: minmax(0, 1fr); }
  .ct-card {
    --ico: 54px;
    grid-column: 1 / -1;
    grid-template-areas: "top top" "ico body" "go go"; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto;
    gap: 16px 18px; min-height: 0;
  }
  .ct-card .pg-ico { align-self: start; }
  .ct-card__val { font-size: clamp(25px, 7.4vw, 32px); }
  .ct-note .pg-link { margin-left: 0; }
  .ct-form__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-actions { flex-direction: column; align-items: stretch; }
  .ct-actions .pill { width: 100%; }
  .ct-map__frame { grid-template-rows: minmax(340px, 1fr) auto; min-height: 0; }
  .ct-routes { grid-template-columns: minmax(0, 1fr); }
  .ct-facts > div { grid-template-columns: 92px minmax(0, 1fr); }
  .ab-row { grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 6px 12px; }
  .ab-row__sub { grid-column: 2; grid-row: 2; }
  .ab-row__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .ab-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .ab-shot--1 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .ab-shot--2 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .ab-shot--3, .ab-shot--4 { grid-column: span 1; grid-row: auto; aspect-ratio: 4 / 5; }
  .ab-shot figcaption { padding: 34px 12px 12px; }
  .pv-card > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pv-doc p, .pv-doc li, .pv-doc dd { font-size: 15.5px; }
  /* tabella → schede impilate */
  .pv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pv-table, .pv-table tbody, .pv-table tr, .pv-table td { display: block; width: 100%; }
  .pv-table tr { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .pv-table td { padding: 4px 0; border: 0; }
  .pv-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--c-faint); font: 400 10px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
  .pv-table td:first-child { font-weight: 600; }
  .pv-table caption { display: block; }
}

@media (max-width: 700px) {
  .ab-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  /* pulsanti a tutta riga: niente pulsante isolato a metà */
  .pg-actions > .pill { flex: 1 1 auto; }
  .ct-pass { padding: 20px 18px 18px; }
  .ct-pass__cut { margin: 0 -18px; }
  .ct-pass__list > div { grid-template-columns: 72px minmax(0, 1fr); }
  .ab-num { gap: 10px; padding-block: 26px 28px; }
  .ab-num__k { min-height: 3.1em; } /* etichette su 2 righe: numeri allineati */
  .ab-num__v { gap: 8px; font-size: clamp(44px, 13vw, 58px); }
  .ab-point { grid-template-columns: minmax(0, 1fr); }
  .ab-point__head { grid-row: auto; flex-direction: row; align-items: center; }
  .ab-tiles { gap: 10px; }
  .ab-tile { aspect-ratio: 3 / 4.2; padding: 14px; --tile-fs: clamp(22px, 7vw, 28px); --tile-pr: 0px; }
  .ab-tile__bottom { padding-bottom: 44px; }
  .ab-tile__arrow { right: 12px; bottom: 12px; width: 32px; height: 32px; }
  .ab-brand { min-height: 160px; }
  .ab-cta { grid-template-columns: minmax(0, 1fr); }
  .pv-toc ol { grid-template-columns: minmax(0, 1fr); }
  .pv-draft { grid-template-columns: minmax(0, 1fr); }
  .nf-link { padding: 16px 18px; grid-template-columns: 28px minmax(0, 1fr) auto; }
  .nf-link .pg-ico { --ico: 44px; }
}

/* schermi bassi (telefono in orizzontale): niente intestazioni più alte dello schermo */
@media (max-height: 560px) and (orientation: landscape) {
  .pg-head, .nf { min-height: 0; }
  .ct-map__frame { min-height: 0; grid-template-rows: minmax(280px, 1fr) auto; }
}
/* colonne fisse solo se ci stanno in altezza */
@media (max-height: 700px) {
  .ct-write__intro, .pv-toc, .ab-year { position: static; }
}

/* touch: area di tocco più ampia per i link nelle liste e niente scorciatoia da tastiera */
@media (pointer: coarse) {
  .ct-pass__list a, .ct-facts a { position: relative; }
  .ct-pass__list a::after, .ct-facts a::after { content: ""; position: absolute; inset: -10px -6px; }
}
@media (hover: none) {
  .nf__search > .mono { display: none; }
}
