/* I AM PMU · sito ponte (CC7, 01/11/2026). Deriva dai frame R1; nessuna dipendenza esterna. */
@font-face { font-family: "Instrument Sans"; src: url("instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: block; }
@font-face { font-family: "Instrument Serif"; src: url("instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: block; }

:root {
  /* Palette rosa approvata; nessuna tinta viola/lilla/prugna (R1). */
  --brand: #FA1774;      /* segnali, mai testo piccolo */
  --accent: #FF5AAE;
  --primary: #DC1468;    /* CTA, testo bianco 4,84:1 */
  --rosa-text: #C8135A;
  --rail-top: #C8135A; --rail-mid: #A81150; --rail-bottom: #8E0F40; /* NAV-01 [F] */
  --ink: #2A1A1F;        /* bruno-rosato, hue ~345 */
  --ink-2: #5E4A51;
  --line: #EEDDE2;
  --veil: #FFF5F7;
  --paper: #FFFFFF;
  --logo: url("logo_stacked_ref_alpha.png");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: "Instrument Sans", system-ui, sans-serif; color: var(--ink); background: var(--paper); font-size: 18px; line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; }

/* Header */
.hdr { border-bottom: 1px solid var(--line); background: var(--paper); }
.hdr .wrap { display: flex; align-items: center; height: 88px; gap: 40px; }
.logo { width: 76px; height: 61px; background: var(--logo) center/contain no-repeat; flex: none; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; flex: none; }
.burger::before, .burger::after { content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); top: 17px; box-shadow: 0 8px 0 var(--ink); }
.burger::after { display: none; }

/* Sigilli di stato: forma + testo, non solo colore */
.stamp { font-stretch: 100%; letter-spacing: 0; line-height: 1; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.stamp i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.s-collaudo { color: var(--rosa-text); box-shadow: inset 0 0 0 1.5px var(--rosa-text); }
.s-collaudo i { background: var(--rosa-text); }
.s-sviluppo { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.s-sviluppo i { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.s-avanti { color: var(--ink-2); box-shadow: inset 0 0 0 1.5px #CDB8BF; }
.s-avanti i { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.on-rosa .stamp { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
.on-rosa .stamp i { background: linear-gradient(90deg, #fff 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px #fff; }

/* Titoli */
h1, h2, h3 { font-weight: 600; font-stretch: 78%; letter-spacing: -0.015em; line-height: 0.98; }
h1 { font-size: 88px; }
h2 { font-size: 56px; }
h3 { font-size: 24px; font-stretch: 90%; line-height: 1.2; letter-spacing: 0; }
.rosa { color: var(--rosa-text); }
.lead { font-size: 21px; line-height: 1.5; max-width: 34em; color: var(--ink); }
.muted { color: var(--ink-2); }
.mia-voice { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: 0; }

/* Mia05: inquadratura CSS della tavola originale 1536×1024 (sha afa31ff1…), regione 166,0 → 376,288. Pixel non modificati. */

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: end; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { margin: 22px 0 28px; }
.hero .ctas { display: flex; gap: 16px; margin-top: 36px; align-items: center; flex-wrap: wrap; }
.stage { position: relative; justify-self: end; }
.stage .arch { width: 300px; height: 412px; border-radius: 150px 150px 28px 28px; overflow: hidden; box-shadow: 0 0 0 10px var(--veil), 0 0 0 11px var(--line); }
.stage .arch .mia { --k: 1.4286; }
.stage .says { position: absolute; left: -96px; bottom: 36px; background: var(--paper); border-radius: 20px; padding: 18px 22px 16px; box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(142,15,64,.12); width: 236px; }
.stage .says p { font-size: 27px; line-height: 1.12; }
.stage .says small { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.tag-prov { position: absolute; top: 14px; right: -6px; font-size: 11px; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; letter-spacing: .01em; }

/* Banda rosa NAV-01: una sola per pagina */
.band-rosa { background: linear-gradient(180deg, var(--rail-top), var(--rail-mid) 55%, var(--rail-bottom)); color: #fff; }
.band-rosa .wrap { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.who { list-style: none; font-size: 30px; font-weight: 600; font-stretch: 85%; line-height: 1.2; }
.who li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.35); }
.who li:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
.band-rosa .lead { color: #fff; margin-top: 24px; }

/* Biglietti (elemento ricorrente) */
.day .wrap { display: grid; grid-template-columns: 420px 1fr; gap: 72px; padding-top: 104px; padding-bottom: 104px; align-items: start; }
.day h2 { margin: 18px 0 20px; }
.tickets { display: grid; gap: 16px; }
.ticket { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 0; background: var(--veil); border-radius: 18px; min-height: 92px; position: relative;
  -webkit-mask: radial-gradient(circle 11px at 112px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 11px at 112px 100%, transparent 98%, #000) bottom/100% 51% no-repeat; }
.ticket .t { font-size: 30px; font-weight: 600; font-stretch: 80%; padding-left: 26px; border-right: 2px dashed #F1C6D4; height: 100%; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.ticket .d { padding: 18px 24px; }
.ticket .d b { display: block; font-size: 19px; }
.ticket .d span { font-size: 15px; color: var(--ink-2); }
.ticket .z { margin-right: 22px; font-size: 13px; font-weight: 600; color: var(--rosa-text); }
.example-note { font-size: 13px; color: var(--ink-2); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.example-note::before { content: ""; width: 18px; height: 0; border-top: 1.5px dashed var(--ink-2); }

/* Mia propone */
.mia-sec { background: var(--veil); }
.mia-sec .wrap { padding-top: 104px; padding-bottom: 104px; }
.mia-sec .quote { font-size: 44px; line-height: 1.1; max-width: 18em; margin: 22px 0 56px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles div { border-top: 2px solid var(--ink); padding-top: 18px; }
.principles p { font-size: 17px; color: var(--ink-2); margin-top: 8px; }
.ai-note { margin-top: 48px; font-size: 15px; color: var(--ink-2); }

/* Stato onesto */
.status .wrap { padding-top: 104px; padding-bottom: 104px; display: grid; grid-template-columns: 420px 1fr; gap: 72px; }
.rows { list-style: none; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; }
.rows li:first-child { border-top: 1px solid var(--line); }
.link { font-weight: 600; color: var(--rosa-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Pacchetto + pilota */
.offer .wrap { padding-top: 0; padding-bottom: 104px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { border-radius: 28px; padding: 44px; }
.card.plain { box-shadow: inset 0 0 0 1.5px var(--line); }
.card.pilot { background: var(--ink); color: #fff; }
.card h2 { font-size: 44px; margin-bottom: 18px; }
.card p { font-size: 18px; }
.card.pilot p { color: #F3E6EA; }
.card .btn { margin-top: 28px; }

/* FAQ */
.faq .wrap { padding-bottom: 104px; display: grid; grid-template-columns: 420px 1fr; gap: 72px; }
.qa { border-top: 1px solid var(--line); }
.qa div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa b { display: block; font-size: 20px; margin-bottom: 6px; }
.qa p { color: var(--ink-2); font-size: 17px; }
.qa .draft { color: var(--ink-2); font-style: italic; }

/* Chiusura */
.close { background: var(--veil); border-top: 1px solid var(--line); }
.close .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; align-items: center; gap: 56px; }
.close .mia-round { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line); }
.close .mia-round .mia { --k: 0.8; }
.close h2 { font-size: 60px; }
.close .btn { margin-left: auto; }

/* Footer */
.ftr { background: var(--ink); color: #EBDCE1; font-size: 15px; }
.ftr .wrap { padding-top: 56px; padding-bottom: 48px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.ftr .logo { filter: brightness(0) invert(1); width: 64px; height: 52px; margin-bottom: 16px; }
.ftr ul { list-style: none; display: grid; gap: 10px; }
.ftr a { text-decoration: none; }
.placeholder { display: inline-block; border: 1.5px dashed #B98C9B; border-radius: 6px; padding: 1px 8px; color: #fff; }
.ftr .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; color: #CBB6BD; font-size: 14px; line-height: 2; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .hdr .wrap { height: 68px; gap: 12px; }
  .logo { width: 56px; height: 45px; }
  .nav { display: none; }
  .hdr .btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
  .burger { display: block; }
  h1 { font-size: 50px; line-height: 1; }
  h2 { font-size: 36px; line-height: 1.02; }
  .lead { font-size: 18px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 56px; }
  .hero h1 { margin: 18px 0 18px; }
  .hero .ctas { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .hero .ctas .btn { width: 100%; }
  .stage { justify-self: center; margin-left: 56px; }
  .stage .arch { width: 210px; height: 288px; border-radius: 105px 105px 22px 22px; }
  .stage .arch .mia { --k: 1; }
  .stage .says { left: -76px; bottom: 18px; width: 178px; padding: 14px 16px 12px; }
  .stage .says p { font-size: 21px; }
  .band-rosa .wrap, .day .wrap, .status .wrap, .faq .wrap, .offer .wrap { grid-template-columns: 1fr; gap: 32px; }
  .band-rosa .wrap { padding-top: 56px; padding-bottom: 56px; }
  .who { font-size: 23px; }
  .day .wrap, .status .wrap, .mia-sec .wrap { padding-top: 64px; padding-bottom: 64px; }
  .ticket { grid-template-columns: 84px 1fr; -webkit-mask: radial-gradient(circle 10px at 84px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 10px at 84px 100%, transparent 98%, #000) bottom/100% 51% no-repeat; }
  .ticket .t { font-size: 24px; padding-left: 16px; }
  .ticket .d { padding: 14px 16px; }
  .ticket .d b { font-size: 17px; }
  .ticket .z { display: none; }
  .mia-sec .quote { font-size: 31px; margin-bottom: 36px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .rows li { font-size: 17px; padding: 14px 0; }
  .offer .wrap { padding-bottom: 64px; gap: 16px; }
  .card { padding: 28px 24px; border-radius: 22px; }
  .card h2 { font-size: 32px; }
  .card .btn { width: 100%; }
  .faq .wrap { padding-bottom: 64px; }
  .close .wrap { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
  .close .mia-round { width: 112px; height: 112px; }
  .close .mia-round .mia { --k: 0.5334; }
  .close h2 { font-size: 38px; }
  .close .btn { margin-left: 0; width: 100%; }
  .ftr .wrap { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 44px; }
  .ftr .brand { grid-column: 1 / -1; }
}

/* ---------- Pagina Funzionalità ---------- */
.feat-head .wrap { padding-top: 40px; padding-bottom: 32px; }
.feat-head h1 { margin: 16px 0 16px; }
.legend { display: grid; gap: 12px; padding: 22px 0 8px; }
.legend .stamp { justify-self: start; }
.legend div { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; font-size: 15px; color: var(--ink-2); }
.group { padding: 28px 0 8px; }
.group > h2 { font-size: 30px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feat { padding: 18px 0 18px; border-top: 1px solid var(--line); }
.feat h3 { font-size: 21px; margin-bottom: 4px; }
.feat p { font-size: 16px; color: var(--ink); }
.feat .gap { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.feat .gap b { font-weight: 600; color: var(--ink); }
.updated { font-size: 14px; color: var(--ink-2); padding: 20px 0 8px; border-top: 1px solid var(--line); }
.feat-cta { background: var(--veil); border-radius: 22px; padding: 28px 24px; margin: 24px 0 48px; }
.feat-cta h2 { font-size: 30px; margin-bottom: 10px; }
.feat-cta .btn { width: 100%; margin-top: 18px; }

/* ---------- Ponte: Mia (asset handoff V2-C, ritaglio originale 108 px) ---------- */
.mia-head { width: 96px; height: 96px; border-radius: 50%; background: var(--veil) url("mia05_01_idle_head.png") center/cover no-repeat; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); flex: none; }
.hero.ponte .wrap { grid-template-columns: minmax(0, 900px); }
.mia-row { display: flex; gap: 20px; align-items: center; margin-top: 8px; }
/* ---------- Pagine legali ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: 56px; margin-bottom: 12px; }
.doc h2 { font-size: 28px; font-stretch: 85%; margin: 40px 0 10px; line-height: 1.15; }
.doc p, .doc li { font-size: 17px; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc .meta { color: var(--ink-2); font-size: 15px; }
.gap-field { display: inline-block; border: 1.5px dashed var(--rosa-text); border-radius: 6px; padding: 0 8px; color: var(--rosa-text); font-weight: 600; }
.draft-banner { background: var(--ink); color: #fff; font-size: 15px; padding: 10px 20px; text-align: center; }
@media (max-width: 640px) { .doc h1 { font-size: 40px; } }

/* ---------- Accessibilità ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rosa-text); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-color: var(--ink); }
.ftr a:focus-visible, .band-rosa a:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- Tablet (641–1024 px): colonne singole, niente sbordi ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
  .wrap { padding: 0 40px; }
  h1 { font-size: 68px; }
  h2 { font-size: 46px; }
  .band-rosa .wrap, .status .wrap, .faq .wrap, .offer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .nav { gap: 20px; }
  .ftr .wrap { grid-template-columns: 1fr 1fr; }
  .ftr .brand { grid-column: 1 / -1; }
}

/* ---------- QA 03/11: bersagli touch del footer e segnaposto leggibili sul fondo scuro ---------- */
.ftr ul { gap: 0; }
.ftr ul a { display: inline-flex; align-items: center; min-height: 44px; }
.ftr .gap-field { color: #FFD1E3; border-color: #FFD1E3; }
