/* Generato da tools/publish.py unendo site/styles/main/: non modificare a mano. */
/* =====================================================================
   Padova Moto Days — token del sistema visivo
   Riferimento: il manifesto ufficiale. Fondo nero uniforme, scie di luce
   blu/giallo/rosso, Barlow Condensed corsivo per i titoli, adesivi
   illustrati con il contorno bianco come il logo.
   Le parti di questo foglio si uniscono in ordine di nome (tools/publish.py).
   ===================================================================== */

:root {
  /* --- Colori ------------------------------------------------------- */
  --pmd-bg: #05060a;
  --pmd-surface: #0b0e14;
  --pmd-surface-2: #11151d;
  --pmd-surface-3: #181d27;
  --pmd-ink: #0b0e14;

  --pmd-text: #eef1f5;
  --pmd-text-light: #ffffff;
  --pmd-text-soft: #b6bec9;
  --pmd-muted: #8e97a3;
  --pmd-line: rgba(255, 255, 255, 0.09);
  --pmd-line-strong: rgba(255, 255, 255, 0.2);

  --pmd-blue: #1f9dff;
  --pmd-blue-dark: #0a6ed6;
  /* blu abbastanza scuro per il testo bianco (contrasto 4.5:1 o più) */
  --pmd-blue-strong: #0b74d9;
  --pmd-blue-light: #9dd4ff;
  --pmd-red: #e5202a;
  --pmd-red-dark: #a5121a;
  --pmd-red-light: #ff8b90;
  --pmd-yellow: #ffd21e;

  --pmd-link: #4fb3ff;
  --pmd-link-hover: #9fd7ff;
  --pmd-success: #7ee2a8;
  --pmd-error: #ff8b90;

  /* il filetto tricolore del manifesto */
  --pmd-tricolor: linear-gradient(90deg, var(--pmd-blue) 0 33.4%, var(--pmd-yellow) 33.4% 66.7%, var(--pmd-red) 66.7%);

  /* --- Tipografia --------------------------------------------------- */
  --pmd-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --pmd-font-body: 'Barlow', system-ui, sans-serif;
  --pmd-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  --fs-display: clamp(3.25rem, 1.4rem + 7vw, 7.5rem);

  --lh-tight: 0.92;
  --lh-snug: 1.2;
  --lh-body: 1.62;
  --tracking-wide: 0.14em;
  --tracking-wider: 0.22em;

  /* --- Spazi (base 4/8) --------------------------------------------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --container: 1280px;
  --gutter: clamp(16px, 3.5vw, 36px);
  --header-h: 64px;

  /* Ritmo verticale: quattro livelli, dal più largo al più stretto.
     Tra le sezioni c'è sempre più aria che dentro una sezione, così i gruppi si leggono da soli. */
  --section-space: clamp(56px, 6.5vw, 88px); /* sopra e sotto ogni sezione */
  --space-block: clamp(40px, 5vw, 64px);     /* tra blocchi della stessa sezione */
  --space-head: clamp(32px, 4vw, 48px);      /* dall'intestazione al contenuto */
  --grid-gap: clamp(16px, 2vw, 24px);        /* tra le card di qualsiasi griglia */

  /* Imbottitura delle card: normale per le tessere, ampia per moduli e pannelli */
  --card-pad: clamp(20px, 2.2vw, 24px);
  --card-pad-lg: clamp(24px, 3.2vw, 40px);

  /* --- Forme -------------------------------------------------------- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  /* angoli tagliati: solo bottoni, chip e tabelloni, come i pannelli dei box */
  --pmd-notch: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --pmd-notch-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);

  /* --- Profondità --------------------------------------------------- */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 60px -28px rgba(31, 157, 255, 0.45);
  --z-header: 50;
  --z-notice: 55;
  --z-menu: 70;

  /* --- Movimento ---------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 700ms;

  /* il sito è scuro: moduli, barre di scorrimento e finestre seguono il tema */
  color-scheme: dark;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 76px;
  }
}
/* --- Base: un solo fondo per tutta la pagina -------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* le ancore non finiscono sotto l'intestazione fissa */
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
  -webkit-text-size-adjust: 100%;
  background: var(--pmd-bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  background: var(--pmd-bg);
  color: var(--pmd-text);
  font-family: var(--pmd-font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-x: hidden;
  overflow-x: clip;
}

/* grana leggerissima e fissa: lo stesso fondo «materico» dall'alto al basso */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--lh-snug);
}

p {
  margin: 0;
}

a {
  color: var(--pmd-link);
  text-decoration: none;
  transition: color var(--dur) ease;
}

a:hover {
  color: var(--pmd-link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--pmd-blue);
  color: #fff;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pmd-blue);
  outline-offset: 3px;
}

/* Barre di scorrimento */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--pmd-bg);
}
::-webkit-scrollbar-thumb {
  background: #20242c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e343e;
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: #fff;
  color: var(--pmd-ink);
  font-weight: 700;
  border-radius: var(--r-xs);
}

.skip-link:focus {
  top: var(--sp-4);
  color: var(--pmd-ink);
}

main:focus {
  outline: none;
}
/* --- Impaginazione: un contenitore, una griglia a 12 colonne, un ritmo --- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: calc(var(--section-space) * 0.6);
}

/* Griglia a 12 colonne: sotto i 1024 px ogni elemento occupa tutta la riga */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.grid-12 > * {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .lg-col-4 { grid-column: span 4; }
  .lg-col-5 { grid-column: span 5; }
  .lg-col-6 { grid-column: span 6; }
  .lg-col-7 { grid-column: span 7; }
  .lg-col-8 { grid-column: span 8; }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--sp-4));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--sp-3));
}
/* --- Bottoni: angoli tagliati come i pannelli dei box ------------------- */

.btn-primary,
.btn-danger,
.btn-outline {
  --btn-pad-y: 15px;
  --btn-pad-x: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 0;
  clip-path: var(--pmd-notch);
  font: 800 var(--fs-base) / 1 var(--pmd-font-display);
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease-out),
    filter var(--dur) ease,
    background-color var(--dur) ease,
    box-shadow var(--dur) ease;
}

.btn-primary {
  background: linear-gradient(100deg, var(--pmd-blue-strong), #0a5fba);
  box-shadow: 0 12px 30px -10px rgba(31, 157, 255, 0.55);
}

.btn-danger {
  background: linear-gradient(100deg, var(--pmd-red), var(--pmd-red-dark));
  box-shadow: 0 12px 30px -10px rgba(229, 32, 42, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-danger:hover,
.btn-outline:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px #fff;
}

.btn-primary:active,
.btn-danger:active,
.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

/* l'anello di focus non si taglia con gli angoli */
.btn-primary:focus-visible,
.btn-danger:focus-visible,
.btn-outline:focus-visible {
  clip-path: none;
  outline-color: #fff;
}

.btn-primary:disabled,
.btn-danger:disabled {
  cursor: wait;
  filter: grayscale(0.4) brightness(0.85);
  transform: none;
}

.btn-sm {
  --btn-pad-y: 10px;
  --btn-pad-x: 18px;
  min-height: 42px;
  font-size: var(--fs-sm);
  clip-path: var(--pmd-notch-sm);
}

.btn-block {
  width: 100%;
}

/* freccia che avanza al passaggio del mouse */
.btn-arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}

.btn-primary:hover .btn-arrow,
.btn-danger:hover .btn-arrow,
.btn-outline:hover .btn-arrow {
  transform: translateX(4px);
}
/* --- Componenti comuni: titoli, card, chip ------------------------------ */

.section-title {
  font: 800 var(--fs-3xl) / 0.95 var(--pmd-font-display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pmd-text-light);
  text-wrap: balance;
}

.section-subtitle {
  max-width: 62ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--pmd-text-soft);
}

/* Etichetta sopra ai titoli: filetto tricolore e testo spaziato */
.badge-tag,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font: 700 var(--fs-xs) / 1 var(--pmd-font-display);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--pmd-blue-light);
}

.badge-tag::before,
.section-kicker::before {
  content: "";
  flex: none;
  width: 36px;
  height: 3px;
  background: var(--pmd-tricolor);
}

.badge-tag {
  margin-bottom: var(--sp-4);
}

.badge-error {
  color: var(--pmd-red-light);
}

/* Card: superficie piena, bordo sottile; si solleva solo se è un link */
.card,
.notch-card {
  position: relative;
  background: var(--pmd-surface);
  border: 1px solid var(--pmd-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.notch-card {
  padding: var(--card-pad-lg);
}

.card--link {
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) ease,
    box-shadow var(--dur) ease;
}

.card--link:hover,
.card--link:focus-within {
  transform: translateY(-4px);
  border-color: rgba(31, 157, 255, 0.45);
  box-shadow: var(--shadow-lift);
}

/* Chip: categorie, livelli, stati */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font: 700 var(--fs-2xs) / 1 var(--pmd-font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pmd-blue-light);
  background: rgba(31, 157, 255, 0.1);
  border: 1px solid rgba(31, 157, 255, 0.35);
  clip-path: var(--pmd-notch-sm);
}

.chip--gold {
  color: var(--pmd-yellow);
  background: rgba(255, 210, 30, 0.1);
  border-color: rgba(255, 210, 30, 0.4);
}

.chip--red {
  color: var(--pmd-red-light);
  background: rgba(229, 32, 42, 0.12);
  border-color: rgba(229, 32, 42, 0.45);
}

.chip--green {
  color: var(--pmd-success);
  background: rgba(126, 226, 168, 0.1);
  border-color: rgba(126, 226, 168, 0.4);
}

/* Link testuale con freccia */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font: 700 var(--fs-sm) / 1 var(--pmd-font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}
/* --- Moduli ------------------------------------------------------------- */

.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font: 700 var(--fs-xs) / 1.2 var(--pmd-font-display);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--pmd-text-soft);
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  background: var(--pmd-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  color: #fff;
  font-size: 16px;
  transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease;
}

.form-control::placeholder {
  color: #6b7480;
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

.form-control:focus {
  outline: none;
  border-color: var(--pmd-blue);
  background: var(--pmd-surface-3);
  box-shadow: 0 0 0 3px rgba(31, 157, 255, 0.25);
}

textarea.form-control {
  min-height: 112px;
  resize: vertical;
}

/* --- Menu a tendina ------------------------------------------------------
   Ovunque: stessa altezza e stesso bordo dei campi di testo, freccia a chevron
   disegnata da noi (non quella del sistema) e voci scure anche nell'elenco nativo.
   Dove il browser lo permette (appearance: base-select) anche l'elenco che si apre
   è nostro: pannello scuro, voci alte quanto un tocco, voce scelta con la spunta. */
select.form-control {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%239dd4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}

select.form-control option {
  background: var(--pmd-surface-3);
  color: var(--pmd-text);
}

@supports (appearance: base-select) {
  select.form-control,
  select.form-control::picker(select) {
    appearance: base-select;
  }

  select.form-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-right: 16px;
    background-image: none;
  }

  select.form-control::picker-icon {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background: var(--select-chevron) center / contain no-repeat;
    transition: rotate var(--dur) var(--ease-out);
  }

  select.form-control:open::picker-icon {
    rotate: 180deg;
  }

  select.form-control::picker(select) {
    margin-top: 6px;
    padding: var(--sp-2);
    max-height: min(340px, 60vh);
    background: var(--pmd-surface-3);
    border: 1px solid var(--pmd-line-strong);
    border-radius: var(--r-md);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity var(--dur-fast) ease,
      transform var(--dur-fast) var(--ease-out),
      display var(--dur-fast) allow-discrete,
      overlay var(--dur-fast) allow-discrete;
  }

  select.form-control::picker(select):popover-open {
    opacity: 1;
    transform: none;
  }

  @starting-style {
    select.form-control::picker(select):popover-open {
      opacity: 0;
      transform: translateY(-6px);
    }
  }

  select.form-control option {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--pmd-text-soft);
    font: inherit;
    cursor: pointer;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  }

  select.form-control option:hover,
  select.form-control option:focus-visible {
    background: rgba(31, 157, 255, 0.14);
    color: #fff;
  }

  select.form-control option:checked {
    color: #fff;
    font-weight: 700;
  }

  select.form-control option::checkmark {
    order: 1;
    margin-left: auto;
    color: var(--pmd-yellow);
  }
}

.form-control[aria-invalid="true"] {
  border-color: var(--pmd-error);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 var(--sp-4);
}

/* Consensi */
.form-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--pmd-text-soft);
}

.form-check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--pmd-blue);
}

.form-check label {
  flex: 1 1 200px;
}

.form-check a {
  text-decoration: underline;
}

/* Errori ed esiti */
.form-error {
  margin: 6px 0 0;
  font-size: var(--fs-xs);
  color: var(--pmd-error);
}

.form-error[hidden] {
  display: none;
}

.form-result {
  margin: 0 0 var(--sp-4);
}

.form-result:empty {
  display: none;
}

.form-result--ok,
.form-result--error {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-result--ok {
  color: var(--pmd-success);
  border-color: rgba(126, 226, 168, 0.4);
  background: rgba(126, 226, 168, 0.08);
}

.form-result--error {
  color: var(--pmd-error);
  border-color: rgba(255, 139, 144, 0.4);
  background: rgba(255, 139, 144, 0.08);
}

/* Campo trappola per i bot: fuori dallo schermo, non solo trasparente */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* --- Avviso di testata e intestazione ----------------------------------- */

.top-notice-bar {
  position: relative;
  z-index: var(--z-notice);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: 8px var(--gutter);
  background: rgba(12, 15, 22, 0.95);
  border-bottom: 1px solid rgba(229, 32, 42, 0.3);
  font-size: var(--fs-xs);
  text-align: center;
}

.top-notice-tag {
  padding: 3px 8px;
  background: rgba(229, 32, 42, 0.18);
  border: 1px solid rgba(229, 32, 42, 0.45);
  border-radius: var(--r-pill);
  color: var(--pmd-red-light);
  font: 700 var(--fs-2xs) / 1 var(--pmd-font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-notice-text {
  font-weight: 500;
  color: var(--pmd-text-soft);
}

/* Chiusura delle iscrizioni nella striscia: tre riquadri piccoli (giorni, ore, minuti) con lo
   stesso filetto colorato dei riquadri del conto alla rovescia dell'hero. */
.notice-timer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-3);
}

.notice-timer-label {
  font-weight: 500;
  color: var(--pmd-text-soft);
}

.notice-timer-grid {
  display: inline-flex;
  gap: 6px;
}

.notice-timer-unit {
  --cd-accent: var(--pmd-blue);
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 4px 8px 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pmd-line);
  border-radius: var(--r-xs);
}

.notice-timer-unit::before {
  content: "";
  position: absolute;
  inset: 0 22% auto;
  height: 2px;
  background: var(--cd-accent);
  box-shadow: 0 0 8px var(--cd-accent);
}

.notice-timer-unit:nth-child(2) { --cd-accent: var(--pmd-yellow); }
.notice-timer-unit:nth-child(3) { --cd-accent: var(--pmd-red); }

.notice-timer-unit b {
  display: inline-block;
  font: 800 var(--fs-base) / 1 var(--pmd-font-display);
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.notice-timer-unit i {
  font: 600 var(--fs-2xs) / 1 var(--pmd-font-body);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pmd-muted);
}

.notice-timer-status {
  font-weight: 700;
  color: #fff;
}

.notice-timer-link {
  color: var(--pmd-blue-light);
}

/* display esplicito: senza questo l'attributo hidden non nasconderebbe nulla */
.notice-timer-grid[hidden],
.notice-timer-status[hidden],
.notice-timer-label[hidden],
.notice-timer-link[hidden] {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(5, 6, 10, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--pmd-line);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand-link {
  display: flex;
  align-items: center;
  flex: none;
}

.brand-logo-img,
.brand-logo {
  width: auto;
  height: 44px;
}

@media (min-width: 1024px) {
  .brand-logo-img {
    height: 52px;
  }
}

/* Menu esteso (schermi larghi) */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
  }
}

.nav-item {
  position: relative;
  padding: 10px 12px;
  font: 600 var(--fs-xs) / 1 var(--pmd-font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pmd-muted);
  transition: color var(--dur) ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--pmd-tricolor);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav-item:hover,
.nav-item[aria-current="true"] {
  color: #fff;
}

.nav-item:hover::after,
.nav-item[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-cta {
  display: none;
}

@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Menu a tendina (schermi piccoli): un <details>, funziona anche senza JavaScript */
.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 10px 18px;
  background: rgba(18, 22, 32, 0.7);
  border: 1px solid var(--pmd-line-strong);
  border-radius: var(--r-sm);
  font: 700 var(--fs-sm) / 1 var(--pmd-font-display);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: all var(--dur) ease;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu > summary::before {
  content: "";
  width: 16px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.nav-menu > summary:hover,
.nav-menu[open] > summary {
  background: rgba(31, 157, 255, 0.12);
  border-color: var(--pmd-blue);
  box-shadow: 0 0 16px rgba(31, 157, 255, 0.25);
}

.nav-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  padding: var(--sp-3);
  background: rgba(14, 18, 26, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--pmd-line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-menu-list .nav-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-xs);
  transition: background-color var(--dur) ease, color var(--dur) ease, transform var(--dur) ease;
}

.nav-menu-list .nav-item:hover {
  background: rgba(31, 157, 255, 0.12);
  color: #fff;
  transform: translateX(4px);
}

.nav-menu-list .nav-item::after {
  display: none;
}

.nav-menu-list .nav-item:last-child {
  border-bottom: 0;
}

@media (min-width: 1100px) {
  .nav-menu {
    display: none;
  }
}

/* Avanzamento nella pagina: il filetto tricolore si allunga mentre scorri */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pmd-tricolor);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
/* --- Piè di pagina: stesso fondo della pagina, filetto tricolore in alto --- */

.site-footer {
  position: relative;
  padding: var(--space-block) 0 var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--pmd-muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  height: 3px;
  background: var(--pmd-tricolor);
  transform: translateX(-50%);
}

.footer-grid {
  row-gap: var(--space-head);
  margin-bottom: var(--space-block);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-grid > * {
    grid-column: span 6;
  }
  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-brand { grid-column: span 5; }
  .footer-col { grid-column: span 2; }
  .footer-col--wide { grid-column: span 3; }
}

.footer-logo {
  width: auto;
  height: 56px;
  margin-bottom: var(--sp-5);
}

.footer-about {
  max-width: 42ch;
  margin-bottom: var(--sp-5);
  color: var(--pmd-text-soft);
}

.footer-edition {
  font: 800 var(--fs-xl) / 1 var(--pmd-font-display);
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}

.footer-edition-venue {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.footer-title {
  margin-bottom: var(--sp-4);
  font: 700 var(--fs-xs) / 1 var(--pmd-font-display);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: #fff;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: var(--pmd-text-soft);
}

.footer-list a:hover {
  color: #fff;
}

.footer-social a {
  font-weight: 600;
}

.footer-muted {
  color: var(--pmd-muted);
}

.footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--pmd-line);
  font-size: var(--fs-xs);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.footer-link-admin {
  color: var(--pmd-muted);
}

.footer-link-admin:hover {
  color: var(--pmd-blue);
}
/* --- Pagine di servizio (grazie, errori, privacy, 404) ------------------- */

.service-main {
  padding-block: var(--sp-9);
}

.service-main > .section-title {
  margin-bottom: var(--sp-4);
}

.service-main > .section-subtitle {
  margin-bottom: var(--sp-6);
}

.full-height-center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.center-box {
  max-width: 680px;
  margin: auto;
  text-align: center;
}

.center-box .section-subtitle {
  margin-inline: auto;
}

.error-title {
  font-size: clamp(48px, 8vw, 84px);
  margin-bottom: var(--sp-5);
}

.card-section {
  margin-bottom: var(--sp-6);
}

.card-header-title {
  margin: 0 0 var(--sp-3);
  font: 800 var(--fs-xl) / 1 var(--pmd-font-display);
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}

.mt-10 {
  margin-top: var(--sp-5);
}
/* --- Movimento condiviso e preferenze di chi ne vuole meno -------------- */

@keyframes pmdPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes pmdRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn-primary:hover,
  .btn-danger:hover,
  .btn-outline:hover,
  .card--link:hover,
  .card--link:focus-within {
    transform: none;
  }
}
