/* ==========================================================================
   La Carta delle Domande — stylesheet
   ========================================================================== */

:root {
  --blue-900: #12324f;
  --blue-800: #163f63;
  --blue-700: #1b5a96;
  --blue-600: #2170b8;
  --blue-500: #3d8bd4;
  --blue-100: #eaf3fb;
  --blue-50:  #f4f9fd;

  --orange-700: #c96e12;
  --orange-600: #e2841c;
  --orange-500: #f0a23f;
  --orange-100: #fdf1e2;

  --ink: #1f2b38;
  --ink-soft: #445468;
  --paper: #ffffff;
  --paper-alt: #f6f8fa;
  --line: #dfe6ee;

  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 50, 79, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* la dimensione radice è controllata via JS (pulsanti A− / A+, vedi
     js/script.js): quasi tutto il foglio di stile usa rem, quindi
     cambiare qui scala l'intero sito in modo coerente. */
  transition: font-size 0.15s ease;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem; /* 17px alla dimensione radice di default (16px) */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }
a { color: var(--blue-700); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--blue-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  line-height: 1.15;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-size-ctrl {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.text-size-ctrl button {
  appearance: none;
  border: 0;
  background: var(--paper);
  color: var(--blue-900);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 12px;
  cursor: pointer;
  line-height: 1;
}

.text-size-ctrl button:first-child {
  border-right: 1px solid var(--line);
}

.text-size-ctrl button:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.text-size-ctrl button:last-child {
  font-size: 0.95rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.main-nav a:hover {
  color: var(--blue-700);
  border-color: var(--orange-500);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--blue-900);
}

/* ---------- Orgs bar (SIURO + EuropaUomo, subito sotto il menu) ---------- */

.orgs-bar {
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}

.orgs-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.orgs-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.orgs-bar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 6vw, 48px);
  flex-wrap: nowrap;
}

.orgs-bar-logo {
  height: clamp(40px, 9vw, 72px);
  width: auto;
  max-width: 40vw;
  object-fit: contain;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%);
  padding: 14px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-700) 0 60%, var(--orange-600) 60% 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--orange-600) 0 40%, var(--blue-700) 40% 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange-700);
  margin-bottom: 14px;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.hero h1.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero h1.sr-only::after {
  display: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 16px;
}

.hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange-600);
}

.hero-claim {
  font-family: var(--sans);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: var(--blue-700);
  margin-bottom: 22px;
}

/* le due frasi del claim: affiancate da desktop/tablet, una sotto l'altra da mobile */
@media (min-width: 721px) {
  .claim-break {
    display: none;
  }
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: none;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 720px) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    font-size: 0.9rem;
  }
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 90, 150, 0.28);
}
.btn-primary:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--sans);
}
.btn-ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
}

/* nell'header, il pulsante secondario ha bisogno di un bordo più netto
   per non sparire sullo sfondo chiaro (diverso dal ghost del banner cookie) */
.hero-actions .btn-ghost {
  border: 2px solid var(--blue-700);
  color: var(--blue-700);
}

.hero-actions .btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-800);
  color: var(--blue-800);
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--paper-alt);
}

/* tinte leggere per rompere il bianco tra una sezione e l'altra,
   soprattutto utili da mobile dove le sezioni si susseguono in verticale */
.section-tint-blue {
  background: var(--blue-50);
}

.section-tint-orange {
  background: var(--orange-100);
}

/* barra colorata di separazione tra sezioni, stesso stile della testata */
.section-divider-top {
  position: relative;
}

.section-divider-top::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-700) 0 60%, var(--orange-600) 60% 100%);
}

.section-lead {
  color: var(--ink-soft);
  max-width: none;
  font-size: 1.03rem;
  margin-bottom: 32px;
}

/* how-to */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.how-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow);
}

.how-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue-700);
}

.how-card:nth-child(2)::before {
  background: var(--orange-600);
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--sans);
  margin-bottom: 16px;
}

.how-card:nth-child(2) .how-num {
  background: var(--orange-600);
}

.how-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.how-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
}

/* sedi pilota */

.centers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.center-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange-600);
  border-radius: var(--radius);
  padding: 19px 18px 22px;
  text-align: center;
}

.center-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 12px;
}

.center-icon svg {
  width: 20px;
  height: 20px;
}

.center-name {
  margin: 0;
  font-weight: 700;
  color: var(--blue-900);
  font-size: 0.98rem;
  line-height: 1.3;
}

.center-sub {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* glossary */

.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin: 0;
}

.glossary-item {
  border-left: 3px solid var(--orange-500);
  padding-left: 18px;
}

.glossary dt {
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 4px;
}

.glossary-sub {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.88em;
}

.glossary dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* accordion / questions */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qa-card summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.qa-card summary::-webkit-details-marker { display: none; }

.qa-card summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  font-family: var(--sans);
  box-shadow: 0 3px 10px rgba(27, 90, 150, 0.35);
}

.qa-card:hover summary::after {
  background: var(--blue-800);
}

.qa-card[open] summary::after {
  content: "–";
  background: var(--orange-600);
  box-shadow: 0 3px 10px rgba(196, 105, 20, 0.35);
}

.qa-card summary h3 {
  margin: 0;
  padding-right: 56px;
}

.qa-card summary .qa-objective {
  padding-right: 56px;
}

.qa-tag {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.qa-tag--blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.qa-tag--orange {
  background: var(--orange-100);
  color: var(--orange-700);
}

.qa-body {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.qa-objective {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

.qa-body ul {
  margin: 0;
  padding-left: 20px;
}

.qa-body li {
  margin-bottom: 10px;
  color: var(--ink);
}

.qa-body li:last-child { margin-bottom: 0; }

/* pulsante +/- più grande da mobile: deve essere chiarissimo che si clicca
   per aprire la domanda, anche per chi non è pratico di siti web */
@media (max-width: 640px) {
  .qa-card summary::after {
    width: 46px;
    height: 46px;
    right: 16px;
    font-size: 1.7rem;
  }

  .qa-card summary h3,
  .qa-card summary .qa-objective {
    padding-right: 60px;
  }
}

/* partners
   Ogni logo mantiene la propria larghezza reale (rilevata dal depliant,
   in cui i loghi sono impaginati a parità di ingombro ma non di altezza:
   un wordmark corto e largo come Johnson & Johnson resta volutamente
   sottile). Novartis (25/09) usa il nuovo logo ufficiale in formato
   orizzontale largo, non più quello impilato del depliant: larghezza
   scelta a occhio per un peso visivo simile agli altri, non rilevata dal
   depliant come gli altri.
   --logo-scale permette di scalare tutto insieme mantenendo le proporzioni. */

:root {
  --logo-scale: 1;
  --w-astellas: 147px;
  --w-accord: 122px;
  --w-bayer: 49px;
  --w-curium: 115px;
  --w-novartis: 170px;
  --w-recordati: 140px;
  --w-jnj: 150px;
}

.partner-wrap { text-align: center; }

.section-lead--center {
  margin-left: auto;
  margin-right: auto;
}

/* scarica il pdf */

.download-wrap {
  text-align: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-download svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.download-meta {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.partner-tier {
  margin-bottom: 40px;
}
.partner-tier:last-child { margin-bottom: 0; }

.partner-tier-label {
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}

.partner-logo {
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-astellas  { width: calc(var(--w-astellas)  * var(--logo-scale)); }
.logo-accord    { width: calc(var(--w-accord)    * var(--logo-scale)); }
.logo-bayer     { width: calc(var(--w-bayer)     * var(--logo-scale)); }
.logo-curium    { width: calc(var(--w-curium)    * var(--logo-scale)); }
.logo-novartis  { width: calc(var(--w-novartis)  * var(--logo-scale)); }
.logo-recordati { width: calc(var(--w-recordati) * var(--logo-scale)); }
.logo-jnj       { width: calc(var(--w-jnj)       * var(--logo-scale)); }

/* orgs */

.orgs h2 {
  text-align: center;
}

.orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.org-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 25px 28px 28px;
  text-align: center;
}

.org-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 18px;
}

.org-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue-900);
  margin: 0 0 12px;
}

.org-name-break {
  display: none;
}

@media (max-width: 640px) {
  .org-name-sep {
    display: none;
  }
  .org-name-break {
    display: block;
  }
}

.org-card address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* footer */

.site-footer {
  background: var(--blue-900);
  color: #cfe0f0;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: #fff;
}

.footer-note {
  font-size: 0.85rem;
  color: #9fb7cd;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-legal-btn {
  font-size: 0.88rem;
  color: #cfe0f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
}

.footer-legal a:hover,
.footer-legal-btn:hover {
  color: #fff;
}

/* cookie banner */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(18, 50, 79, 0.14);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 480px;
  min-width: 0;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 11px 20px;
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  /* in colonna il flex-basis:480px di .cookie-banner-text (pensato per la
     larghezza a riga) verrebbe letto come altezza minima: lo azzeriamo
     perché il banner resti compatto e ancorato in basso. */
  .cookie-banner-text { flex-basis: auto; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; }
}

.footer-inner p {
  margin: 0;
}

/* legal pages (privacy, cookie policy) */

.legal-page { padding-top: 56px; }

.legal-wrap {
  max-width: 760px;
}

.legal-notice {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  margin-top: 2em;
  font-size: 1.3rem;
}

.legal-page h3 {
  margin-top: 1.4em;
}

.legal-page ul {
  padding-left: 20px;
  color: var(--ink);
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page code {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.legal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--paper-alt);
  color: var(--blue-900);
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .orgs-grid { grid-template-columns: 1fr; }
  .centers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .centers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav.open ul {
    display: flex;
  }

  .main-nav li {
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .hero { padding: 14px 0 32px; }
  .section { padding: 48px 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  :root { --logo-scale: 0.72; }

  .hero { padding-top: 10px; }

  .hero-banner-img {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* ==========================================================================
   Segui il dialogo — vignette illustrate (storie / scorrimento)
   ========================================================================== */

.story-stagewrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 380px);
  margin: 0 auto;
}
.story-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  justify-content: center;
}
.modebar-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* Su desktop/tablet la vista "storie" lascia il posto alla striscia a
   scorrimento con frecce laterali (vedi .hscroll-outer più sotto); su
   mobile resta la vista storie con avanzamento manuale. */
@media (min-width: 761px) {
  .story-stagewrap { display: none; }
}
.story-card {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 900 / 1124;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: pan-y;
}
.story-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.story-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--paper-alt);
}
.tapzone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 4;
  cursor: pointer;
}
.tapzone.left { left: 0; }
.tapzone.right { right: 0; }

.story-toolbar { width: min(100%, 380px); margin: 16px auto 0; }
.story-progress { display: flex; gap: 5px; }
.story-progress .seg {
  flex: 1 1 0;
  height: 4px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.story-progress .seg > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange-600);
  border-radius: 3px;
}
.story-progress .seg.done > i { width: 100%; background: var(--blue-900); }
.story-progress .seg.active > i { width: var(--p, 0%); transition: width 0.08s linear; }

.story-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.story-count {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.story-cap-static {
  color: var(--blue-900);
  font-size: 0.86rem;
  font-weight: 700;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-arrow {
  flex: 0 0 auto;
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-900);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.nav-arrow svg { width: 17px; height: 17px; }
@media (max-width: 760px) { .nav-arrow { display: none; } }

/* striscia a scorrimento (desktop/tablet) con frecce laterali al posto
   della barra di scorrimento nativa, che resta nascosta: si naviga con
   le frecce (o trascinando/con il trackpad, se preferito). */
.hscroll-outer {
  display: none;
  align-items: center;
  gap: 14px;
}
@media (min-width: 761px) {
  .hscroll-outer { display: flex; }
}
.hscroll-outer .hscroll-wrap { flex: 1 1 auto; min-width: 0; }
.hscroll-wrap { width: 100%; }
.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 auto; width: min(48vw, 360px); scroll-snap-align: center; }
.hcard .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 900 / 1124;
}
.hcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcard .hnum {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--orange-700);
  margin: 12px 0 4px;
}
.hcard .hcap { font-size: 0.9rem; line-height: 1.5; color: var(--ink); margin: 0; }
.hscroll-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.hscroll-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: block; }
.hscroll-dots i.on { background: var(--orange-600); width: 16px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .story-track { transition: none; }
  .story-progress .seg.active > i { transition: none; }
}

/* print */
@media print {
  .site-header, .btn, .nav-toggle, .cookie-banner, .vignette-section { display: none; }
  .qa-card { break-inside: avoid; border: 1px solid #ccc; }
  .qa-body { display: block !important; }
  a { color: inherit; text-decoration: none; }
}
