/* Intergruppo parlamentare “Asset Digitali, Blockchain e Bitcoin” — evento 24/09/2026
   Palette and type lifted from the SAVE THE DATE poster: deep navy, brushed gold,
   ice-blue gradient, condensed uppercase headline (Oswald) + geometric sans
   (Montserrat). Fonts are self-hosted (OFL) — no third-party requests. */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/assets/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0e2a4c;
  --navy-deep: #0a1f3a;
  --navy-mid: #16416f;
  --gold: #c9a24e;
  --gold-deep: #a8843a;
  --gold-soft: #e9d9b0;
  --ice: #eef3f9;
  --ice-deep: #d9e5f2;
  --paper: #ffffff;
  --ink: #1a2b3c;
  --muted: #5b6b7c;
  --line: #d8e0ea;
  --error: #b3261e;
  --error-soft: #fbeae8;
  --ok: #1f7a4d;
  --ok-soft: #e4f4ea;
  --headline: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(10, 31, 58, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ice);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.is-hidden { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.accent { color: var(--gold); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar { background: var(--navy-deep); color: #fff; border-bottom: 2px solid var(--gold); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: .9rem 0; }
.topbar__brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; }
.topbar__org { font-weight: 700; letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; }
.topbar__name { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; margin-top: .15rem; }
.topbar__nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.topbar__nav a { color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .2rem; border-bottom: 2px solid transparent; }
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #ffffff 0%, #f6f9fc 45%, #d6e3f1 75%, #a9c2dc 100%);
  padding: 3.5rem 0 3rem;
}
.hero--compact { padding: 2.2rem 0 2rem; }
.hero__globe { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: min(56vw, 660px); opacity: .95; pointer-events: none; }
.hero__globe img { width: 100%; height: auto; display: block; }
.hero__content { position: relative; max-width: 640px; }
.eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.2rem; font-family: var(--headline); font-weight: 500; font-size: 1.35rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow__line { flex: 0 0 2.4rem; height: 2px; background: var(--gold); }
.hero__title { margin: 0; font-family: var(--headline); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: .01em; text-transform: uppercase; color: var(--navy); }
.rule { width: 300px; max-width: 60%; height: 2px; background: var(--gold); margin: 1.4rem 0 1.2rem; }
.hero__subtitle { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; line-height: 1.3; color: var(--ink); }
.hero__subtitle .accent { font-weight: 600; }
.hero__tagline { margin: 1rem 0 0; max-width: 460px; color: var(--muted); font-size: 1rem; }
.hero--compact .hero__title { font-size: clamp(2rem, 4.6vw, 3.2rem); }

/* ── Info band ───────────────────────────────────────────────────────────── */
.infoband { background: var(--navy); color: #fff; border-top: 2px solid var(--gold); }
.infoband__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 3rem; padding: 1.8rem 0; }
.infoband__col { display: flex; flex-direction: column; gap: 1.2rem; }
.infoband__col--times { border-left: 1px solid rgba(201, 162, 78, .55); padding-left: 2.5rem; gap: .9rem; }
.info { display: flex; align-items: center; gap: 1rem; }
.info svg { flex: 0 0 auto; width: 46px; height: 46px; color: var(--gold); }
.info--time svg { width: 34px; height: 34px; }
.info > div { display: flex; flex-direction: column; line-height: 1.15; }
.info__label { font-family: var(--headline); font-weight: 500; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.info__big { font-family: var(--headline); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: .02em; text-transform: uppercase; color: var(--gold); }
.info__big--small { font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: #fff; }
.info__sub { font-family: var(--headline); font-weight: 500; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.info--time strong { font-family: var(--headline); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.info--time span { font-size: .95rem; }

/* ── Main / cards ────────────────────────────────────────────────────────── */
.main { padding: 2.5rem 0 3.5rem; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 3rem); }
.card__head { margin-bottom: 1.5rem; }
.card__eyebrow { margin: 0 0 .4rem; font-family: var(--headline); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); font-size: .95rem; }
.card__eyebrow a { text-decoration: none; }
.card__title { margin: 0; font-family: var(--headline); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; text-transform: uppercase; color: var(--navy); }
.card__note { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.intro { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.intro p { margin: 0 0 .8rem; }
.intro p:last-child { margin-bottom: 0; }

.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.hub--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
/* Single-CTA layout: centered composition, generous rhythm, centered button */
.hub--single .hub-card { align-items: center; text-align: center; gap: .8rem; padding: 2.75rem 2.25rem; }
.hub--single .hub-card p { max-width: 58ch; }
.hub--single .hub-card .btn { align-self: center; margin-top: .9rem; }
.hub-card { display: flex; flex-direction: column; gap: .6rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; text-decoration: none; color: var(--ink); }
.hub-card__title { margin: 0; font-family: var(--headline); font-weight: 700; font-size: 1.75rem; line-height: 1.1; text-transform: uppercase; color: var(--navy); }
.hub-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.hub-card .btn { margin-top: auto; align-self: flex-start; }

/* ── Form ────────────────────────────────────────────────────────────────── */
.required-note { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
.req { color: var(--gold-deep); font-weight: 700; }
.form-section { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.form-section__title { margin: 0 0 1rem; font-family: var(--headline); font-weight: 500; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.form-section__title::after { content: ''; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: .35rem; }
.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field > label:not(.choice), .field > legend, .field__label { display: block; font-weight: 600; margin-bottom: .45rem; padding: 0; line-height: 1.4; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9c5d3; border-radius: 6px; padding: .7rem .8rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2a4c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(22, 65, 111, .18); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--error); }
.help { margin: .4rem 0 0; color: var(--muted); font-size: .85rem; }
.error { margin: .4rem 0 0; color: var(--error); font-size: .88rem; font-weight: 600; }
.counter { margin: .3rem 0 0; text-align: right; color: var(--muted); font-size: .8rem; }
.counter.is-over { color: var(--error); font-weight: 600; }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.choices--long { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.choice { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-weight: 400; line-height: 1.4; padding: .3rem .45rem; margin: -.1rem -.45rem; border-radius: 6px; transition: background .12s; }
.choices .choice:not(.choice--single):hover { background: var(--ice); }
.choice input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--navy); }
.choice--single { padding: .85rem 1rem; background: var(--ice); border-radius: 6px; border: 1px solid var(--ice-deep); }
.field--error .choice--single { border-color: var(--error); background: var(--error-soft); }
.other { display: block; margin: .3rem 0 .2rem 1.8rem; }
.other input { max-width: 420px; }
.privacy-link { font-weight: 600; white-space: nowrap; }
.final { margin: 2rem 0 1.4rem; padding: 1.1rem 1.25rem; background: var(--ice); border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0; font-size: .95rem; }
.final p { margin: 0 0 .6rem; }
.final p:last-child { margin: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-block; font: inherit; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; border-radius: 6px; padding: .95rem 1.6rem; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 42, 76, .22); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--primary[disabled] { opacity: .65; cursor: progress; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--ice); }
.btn--danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn--danger:hover { background: var(--error-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.inline-form { margin-top: 1.25rem; }

.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 6px; margin: 0 0 1.4rem; font-size: .95rem; }
.notice svg { flex: 0 0 auto; width: 24px; height: 24px; }
.notice--error { background: var(--error-soft); color: var(--error); border: 1px solid #efc4bf; }
.notice--dev { display: block; background: #fff8e6; border: 1px dashed var(--gold-deep); color: var(--ink); word-break: break-all; }

/* ── Status pages ────────────────────────────────────────────────────────── */
.card--status { max-width: 760px; margin-inline: auto; text-align: center; }
.status__icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ice); color: var(--navy); display: grid; place-items: center; }
.status__icon svg { width: 40px; height: 40px; }
.status__lead { font-size: 1.05rem; margin: 1rem 0; }
.tips { text-align: left; max-width: 560px; margin: 1rem auto; color: var(--muted); font-size: .92rem; }
.card--status .actions { justify-content: center; }
.card--status .inline-form { display: flex; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--navy-deep); color: #fff; }
.footer__band { background: var(--gold); color: var(--navy-deep); text-align: center; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; padding: 1rem 1.25rem; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; padding: 1.25rem 0; font-size: .82rem; }
.footer__meta a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(201, 162, 78, .6); }
.footer__meta a:hover { border-bottom-color: var(--gold); }

/* ── Admin ───────────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 1.5rem; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--headline); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); font-size: .85rem; }
.table--kv th { width: 34%; color: var(--muted); font-weight: 600; }
.table .pre { white-space: pre-wrap; }
.table tr.is-pending td { color: var(--muted); }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--wait { background: #fff3d6; color: var(--gold-deep); }
.admin .main { padding-top: 1.5rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__globe { right: -30%; width: 88vw; opacity: .55; }
  .infoband__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .infoband__col--times { border-left: 0; padding-left: 0; border-top: 1px solid rgba(201, 162, 78, .55); padding-top: 1.2rem; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .topbar__inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 2.4rem 0 2.2rem; }
  .hero__globe { right: -45%; width: 120vw; opacity: .35; top: 40%; }
  .eyebrow { font-size: 1.05rem; letter-spacing: .2em; }
  .eyebrow__line { flex-basis: 1.4rem; }
  .info svg { width: 38px; height: 38px; }
  .choices--long { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Resend feedback */
.help--ok { color: #1f6f43; font-weight: 600; }
.confirm-form { margin: 1.4rem 0 .6rem; }

/* Deadline notice on the reserved landing */
.deadline { display: flex; gap: .6rem; align-items: center; margin: 1.1rem 0 0; padding: .85rem 1rem; background: rgba(201, 162, 78, .12); border: 1px solid rgba(201, 162, 78, .5); border-radius: 6px; font-size: .95rem; }
.deadline svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold-deep); }

/* Privacy notice page */
.prose h3 { font-family: var(--headline); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); font-size: 1.1rem; margin: 1.6rem 0 .45rem; }
.prose p, .prose li { font-size: .95rem; line-height: 1.65; }
.prose ul { margin: .4rem 0 .9rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .3rem; }
.prose .prose__meta { color: var(--muted); font-size: .9rem; margin: -0.4rem 0 1rem; }

/* Turnstile widget spacing inside the lead forms */
.cf-turnstile { margin: 1.4rem 0 .2rem; min-height: 65px; }

/* Institutional home */
.home-section { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.home-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.home-section p { line-height: 1.65; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
.news-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; background: #fff; }
.news-card__title { margin: 0; font-family: var(--headline); font-weight: 600; font-size: 1.08rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.news-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.news-card__link { margin-top: auto; font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.news-card__link:hover { text-decoration: underline; }
.home-section--event { background: var(--ice); margin-left: -1rem; margin-right: -1rem; padding: 1.6rem 1rem 1.8rem; border-radius: var(--radius); border-top: 0; }
.home-section--event .btn { margin-top: .4rem; }
.faq-q { margin: 1.2rem 0 .3rem; font-weight: 700; font-size: 1rem; color: var(--navy); }

/* Org chart: uniform avatars (photo or initials share size and crop) */
.avatar { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.avatar--initials { background: var(--navy); color: var(--gold); font-family: var(--headline); font-weight: 600; font-size: 1.35rem; letter-spacing: .05em; }
.org-level--president { display: flex; justify-content: center; margin: 1.4rem 0 .4rem; }
.org-level--president .person-card { border-top: 2px solid var(--gold); box-shadow: var(--shadow); min-width: min(100%, 340px); }
.org-level--president .avatar { width: 88px; height: 88px; font-size: 1.6rem; }
.org-level--president strong { font-size: 1.08rem; }
.org-top { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: .6rem 0 1.6rem; }
.org-top .team-card--staff { min-width: min(100%, 320px); }
.person-card { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: min(100%, 300px); }
.person-card strong { display: block; color: var(--navy); }
.person-card__role { display: block; color: var(--muted); font-size: .85rem; }
.home-subtitle { margin: 1.4rem 0 .8rem; font-family: var(--headline); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; color: var(--navy); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: .7rem; }
.team-card { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: var(--ice); border: 1px solid var(--ice-deep); border-radius: 6px; }
.team-card .avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.team-card__group { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.team-card__name { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; }
