html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(0.92rem, 0.9rem + 0.2vw, 1rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid #2b4187;
  outline-offset: 2px;
}

ul.nodot {
  list-style-type: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.link-accent {
  color: #2b4187;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
}
.link-accent:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  margin-top: 0.75rem;
}

.container.single {
  height: 100%;
}

.content {
  height: 90%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.2;
  font-weight: 600;
  gap: 0.75rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  min-width: clamp(120px, 15vw, 200px);
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn p {
  margin: 0;
}
.btn:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.btn--ghost {
  background: transparent;
  color: #0f172a;
  border: 1px solid #e5e7eb;
}
.btn--ghost:hover {
  border-color: color-mix(in srgb, #2b4187 30%, #e5e7eb 70%);
  color: #2b4187;
}
.btn--full {
  width: 100%;
}
.btn--accent {
  background: #2b4187;
  color: #ffffff;
}

.btn__icon {
  font-size: 0.95em;
  line-height: 1;
  flex: 0 0 auto;
}

.btn--cta {
  gap: 0.5rem;
  background: #2b4187;
  color: #ffffff;
  border: 0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.12s ease;
}
.btn--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.08);
  filter: saturate(1.04);
}
.btn--cta:active {
  transform: translateY(-1px);
}
.btn--cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, #2b4187 22%, transparent), 0 10px 30px rgba(15, 23, 42, 0.12);
}
.btn--cta[data-variant=ghost] {
  background: transparent;
  color: #2b4187;
  border: 1px solid color-mix(in srgb, #2b4187 18%, #e5e7eb 82%);
  box-shadow: none;
}

.chip {
  font-size: 0.8em;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.cta-block {
  margin: 2rem 0;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid color-mix(in srgb, #e5e7eb 72%, #2b4187 28%);
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, #f6f7f9 84%, white 16%), color-mix(in srgb, #f6f7f9 92%, #2b4187 8%));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.cta-block__content {
  max-width: 780px;
}

.cta-block__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b4187;
}

.cta-block__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
  line-height: 1.2;
}

.cta-block__text {
  margin: 0;
  color: #6b7280;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .cta-block__actions .btn {
    width: 100%;
    min-width: 0;
  }
}
.lead-form-card {
  margin: 2rem 0;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: color-mix(in srgb, #f6f7f9 88%, white 12%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.lead-form-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
  line-height: 1.2;
}

.lead-form-card__text {
  margin: 0;
  color: #6b7280;
}

.lead-form {
  margin-top: 1.5rem;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.lead-form__field span {
  font-weight: 600;
  color: #0f172a;
}
.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}
.lead-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #6b7280;
}
.lead-form__consent input {
  margin-top: 0.2rem;
}
.lead-form__consent a {
  color: #2b4187;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.lead-form__actions .btn {
  min-height: 48px;
  padding-block: 0.85rem;
}

.lead-form__status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: #6b7280;
  font-weight: 500;
}

.lead-dialog {
  width: min(920px, 92vw);
  max-height: 88vh;
  border: none;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.lead-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.lead-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.lead-dialog__header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
}

.lead-dialog__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}
.lead-dialog__close:hover {
  color: #0f172a;
  background: color-mix(in srgb, #f6f7f9 85%, #e5e7eb 15%);
}

.lead-dialog__body {
  overflow: auto;
  max-height: calc(88vh - 70px);
  padding: 1rem;
  background: #fff;
}

.lead-form-card--dialog {
  margin: 0;
  box-shadow: none;
}

body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.header-top {
  background: var(--surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 80px;
  display: flex;
  align-items: center;
}

.header-top .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(24px, 2vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-icon i {
  font-size: 14px;
}

.social-icon.icon-whatsapp {
  background: #25D366;
}

.social-icon.icon-facebook {
  background: #1877F2;
}

.social-icon.icon-youtube {
  background: #FF0000;
}

.social-icon.icon-instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.social-icon.icon-phone {
  background: #2b4187;
}

.brand-mobile {
  display: none !important;
}

.nav-full .social-mobile {
  display: none !important;
}

@media (max-width: 960px) {
  .header-top {
    display: none;
  }
  .brand-mobile {
    display: flex !important;
  }
  .nav-full .social-mobile {
    display: block !important;
  }
  .nav-full {
    height: 64px;
  }
}
.nav-full {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(24px, 2vw, 32px);
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.brand-logo {
  width: 32px;
  height: 36px;
  background: url(https://cdn.tsnbagheria.it/images/logo.png);
  background-size: cover;
  background-position: center;
}

.nav-links {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.nav-links a {
  padding: 8px 16px;
  color: #667085;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  border-radius: 6px;
}
.nav-links a[aria-current=page] {
  background: #2b4187;
  color: white;
}
.nav-links a:hover {
  background: rgb(177.2612359551, 189.9297752809, 230.2387640449);
  color: #2b4187;
}

/* hamburger bars */
.menu-btn {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 2px;
  background: none;
}

/* le singole barre */
.menu-btn .bar {
  display: block;
  width: 24px; /* larghezza delle linee */
  height: 4px; /* spessore */
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.18s ease;
  margin-top: 6px;
  color: #6b7280;
}

/* =============================
   Breadcrumbs (look coerente)
   ============================= */
:root {
  --header-height: 156px;
  --header-height-mobile: 64px;
  --bc-size: 14px;
  --bc-gap: 8px;
  --bc-sep: " › ";
  --bc-text: #2b4187;
  --bc-muted: #6b7280;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-block: 1.5rem 1rem;
}

/* Pulsante indietro */
.breadcrumbs__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(43, 65, 135, 0.12);
  border-radius: 999px;
  background: rgba(43, 65, 135, 0.05);
  color: #2b4187;
  font-size: var(--bc-size);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.breadcrumbs__back:hover {
  color: rgb(30.6797752809, 46.3764044944, 96.3202247191);
  border-color: rgba(43, 65, 135, 0.22);
  background: rgba(43, 65, 135, 0.08);
}

.breadcrumbs__back svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.breadcrumbs__back-label {
  display: none;
}

/* Lista breadcrumb */
.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--bc-gap);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--bc-size);
  color: var(--bc-muted);
}

.breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
}

/* Separatore */
.breadcrumbs__list li:not(:first-child)::before {
  content: var(--bc-sep);
  opacity: 0.6;
  margin-right: 0.25rem;
}

/* Link coerenti */
.breadcrumbs__list a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs__list a:hover,
.breadcrumbs__list a:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ultimo elemento/attivo */
.breadcrumbs__list .active {
  color: #2b4187;
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

/* Mobile: scorrevole, testo del back solo icona */
@media (max-width: 960px) {
  .breadcrumbs {
    justify-content: flex-start;
    margin-block: 1.5rem 0.85rem;
  }
  .breadcrumbs__list {
    display: none;
  }
  .breadcrumbs__back {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    padding: 0.55rem 0.8rem;
    font-size: 0.95rem;
  }
  .breadcrumbs__back-label {
    display: inline-block;
    min-width: 0;
    white-space: nowrap;
  }
}
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border: 1px solid #dee2e6;
}
.table thead th {
  vertical-align: bottom;
  background-color: #f8f9fa;
}
.table tbody tr:nth-of-type(odd) {
  background-color: #f6f7f9;
}
.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}
.table tr.table-row.row-odd {
  background-color: #ffffff;
}
.table tr.table-row.row-even {
  background-color: #f6f7f9;
}
@media (max-width: 960px) {
  .table th,
  .table td {
    padding: 0.5rem;
  }
}

.tabella-gruppo {
  --w-pos: 52px;
  --w-tiratore: 240px;
  --w-sezione: 140px;
  --w-serie: 64px;
  --w-tot: 76px;
  --w-m: 52px;
}
.tabella-gruppo .table {
  width: 100%;
  table-layout: fixed;
}
.tabella-gruppo .table th,
.tabella-gruppo .table td {
  padding: 0.45rem 0.5rem;
}
.tabella-gruppo th.col-pos,
.tabella-gruppo td.col-pos {
  width: var(--w-pos);
  min-width: var(--w-pos);
  text-align: center;
}
.tabella-gruppo th.col-tiratore,
.tabella-gruppo td.col-tiratore {
  width: var(--w-tiratore);
  min-width: var(--w-tiratore);
}
.tabella-gruppo th.col-sezione,
.tabella-gruppo td.col-sezione {
  width: var(--w-sezione);
  min-width: var(--w-sezione);
}
.tabella-gruppo th.col-serie,
.tabella-gruppo td.col-serie {
  width: var(--w-serie);
  min-width: var(--w-serie);
  text-align: center;
}
.tabella-gruppo th.col-risultato,
.tabella-gruppo td.col-risultato {
  width: var(--w-tot);
  min-width: var(--w-tot);
  text-align: right;
}
.tabella-gruppo th.col-mouche,
.tabella-gruppo td.col-mouche {
  width: var(--w-m);
  min-width: var(--w-m);
  text-align: center;
}
.tabella-gruppo .col-tiratore__main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}
.tabella-gruppo .col-tiratore__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.tabella-gruppo .col-tiratore__name {
  display: block;
  min-width: 0;
  word-break: break-word;
}

.merito-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #2b4187 35%, #e5e7eb 65%);
  background: color-mix(in srgb, #2b4187 10%, #fff 90%);
  color: #2b4187;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
}

.risultati-mobile-toggle {
  display: none !important;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.risultati-mobile-toggle i {
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}
.risultati-mobile-toggle.is-expanded i {
  transform: rotate(180deg);
}

.table-row-details > td {
  padding: 0;
  border-top: 0;
}

.mobile-row-details {
  padding: 0.75rem;
  background: color-mix(in srgb, #f6f7f9 86%, #ffffff 14%);
  border-top: 1px solid #dee2e6;
}

.mobile-row-details__scroll {
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
}

.mobile-row-details__table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.mobile-row-details__table th,
.mobile-row-details__table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid #dee2e6;
  white-space: normal;
  word-break: break-word;
  font-size: 0.88rem;
  text-align: left;
  background: #f6f7f9;
}
.mobile-row-details__table th {
  width: 42%;
  font-weight: 700;
  color: #0f172a;
  background: color-mix(in srgb, #f6f7f9 75%, #ffffff 25%);
}

@media (max-width: 860px) {
  .tabella-gruppo .col-pos,
  .tabella-gruppo .col-sezione,
  .tabella-gruppo .col-serie,
  .tabella-gruppo .col-mouche {
    display: none;
  }
  .tabella-gruppo .table {
    width: 100%;
    table-layout: auto;
  }
  .tabella-gruppo .col-tiratore {
    display: table-cell;
    font-weight: 700;
    width: auto;
    min-width: 0;
    padding-right: 0.3rem;
  }
  .tabella-gruppo .col-tiratore__name {
    min-width: 0;
  }
  .tabella-gruppo .col-tiratore__main {
    flex: 1 1 auto;
    min-width: 0;
  }
  .tabella-gruppo .merito-chip {
    margin-right: 0.25rem;
  }
  .tabella-gruppo .col-risultato {
    width: 1%;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
    padding-left: 0.25rem;
    padding-right: 0.35rem;
  }
  .tabella-gruppo .risultati-mobile-toggle {
    display: inline-flex !important;
    flex: 0 0 auto;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.hero-img {
  width: 100%;
  height: 100%; /* riempi l’altezza della cella */
  object-fit: cover; /* ritaglia senza deformare */
  object-position: top;
  display: block; /* evita spazi indesiderati */
}

.eyebrow {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: #2b4187;
  border-radius: 999px;
  display: inline-block;
}

.headline {
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.3rem 0 1rem;
}

.subhead {
  color: #6b7280;
  max-width: 60ch;
}

.hero-card {
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}

h2.hero-card {
  background: rgba(43, 65, 135, 0.9);
  color: #ffffff;
  text-align: center;
}

.hero-card h1 {
  font-size: 3rem;
  text-align: center;
  margin: 0;
}

.hero-card > :first-child {
  margin-top: 0;
}

.hero-card > :last-child {
  margin-bottom: 0;
}

.single-hero-image {
  width: 100%;
  height: auto;
  object-position: center;
}

.hero--error404 {
  padding-block: clamp(40px, 6vw, 80px);
  text-align: center;
}

.error404__headline {
  margin-top: 0.5rem;
}

.error404__subhead {
  margin: 0 auto 2rem;
  max-width: 50ch;
}

.risultati-single-content {
  margin-top: 1.5rem;
}

.news {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1.5rem 2rem;
  scroll-margin-top: calc(68px + 1.5rem);
  background: #f6f7f9;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}
.news .news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.news .news-header h2 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 2.6rem);
}
.news .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .news .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.news .news-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 240px;
}
.news .news-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.1rem);
}
.news .news-card .news-date {
  margin: 0;
  color: #6b7280;
  font-size: 0.85rem;
}
.news .news-card .news-excerpt {
  margin: 0;
  line-height: 1.4;
  color: #0f172a;
  flex: 1;
}
.news .news-card .news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.news .news-card .news-tags span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #6b7280;
}

.home-hero {
  margin-top: 1rem;
}

.home-quick-info {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.home-quick-item {
  padding: 1rem;
}

.home-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.home-quick-actions .btn {
  display: inline-flex;
  width: auto;
  padding: 0.5rem 0.8rem;
  min-height: 40px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.home-hero-actions .btn {
  min-height: 44px;
}

.home-getting-started .funnel-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.home-getting-started .funnel-card .btn {
  margin-top: auto;
}

.home-youth ul {
  margin-top: 0.75rem;
}

.home-affiliations {
  margin-top: 1rem;
}

.affiliation-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.affiliation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.affiliation-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
}

.affiliation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

@media (max-width: 960px) {
  .home-quick-info {
    grid-template-columns: 1fr;
  }
  .home-quick-actions .btn {
    width: 100%;
    white-space: normal;
  }
  .home-hero-actions .btn {
    width: 100%;
  }
  .affiliation-actions .btn {
    width: 100%;
  }
}
.home-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-flow-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 2rem);
}

.home-flow-hero {
  padding-block: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3.4vw, 3rem);
  background: linear-gradient(180deg, color-mix(in srgb, #f6f7f9 60%, #fff 40%) 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.home-flow-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.home-flow-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-flow-hero-logo {
  width: clamp(48px, 8vw, 106px);
  aspect-ratio: 106/120;
  height: auto;
  flex-shrink: 0;
}

.home-flow-kicker {
  margin: 0;
  color: #2b4187;
  font-size: clamp(0.92rem, 0.9rem + 0.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-flow-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, clamp(2.8rem, 1.8rem + 4vw, 3.8rem));
  line-height: 1.05;
}
.home-flow-title strong {
  font-weight: 1000;
  letter-spacing: 0.01em;
}

.home-flow-title__emph {
  display: inline-block;
}

.home-flow-subtitle {
  max-width: 72ch;
  margin: 0.75rem 0 0;
  color: color-mix(in srgb, #0f172a 72%, #6b7280 28%);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
}

.home-flow-affiliations {
  display: flex;
  gap: 0.75rem;
}

.home-flow-affiliation {
  display: block;
  gap: 1.5rem;
  height: 120px;
  padding: 0.5rem 0.6525rem;
  margin-left: 3rem;
}
.home-flow-affiliation img {
  height: 80px;
  width: auto;
  max-width: 120px;
  border-radius: 0;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-flow-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.home-flow-badges li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0f172a;
  font-size: 0.92rem;
}

.home-flow-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6525rem;
  margin-top: 1rem;
}

.home-flow-cta-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0.75rem 1rem;
  margin-right: 0.5rem;
  line-height: 1.2;
  white-space: nowrap;
}

.home-flow-micro {
  margin: 0.75rem 0 0;
  color: #6b7280;
  font-size: 1rem;
}
.home-flow-micro a {
  color: #2b4187;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-flow-quicknav {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.home-flow-quicknav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0.75rem;
}
.home-flow-quicknav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.2rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  font-size: 0.9rem;
  text-decoration: none;
}
.home-flow-quicknav__links a:hover {
  color: #2b4187;
  border-color: color-mix(in srgb, #2b4187 40%, #e5e7eb 60%);
  background: color-mix(in srgb, #2b4187 6%, #fff 94%);
}

.home-flow-section {
  padding-block: clamp(0.75rem, 4.4vw, 1.5rem);
}

.home-flow-section[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 960px) {
  .home-flow-section {
    padding-block: clamp(1.5rem, 5vw, 2rem);
  }
}
.container section[id],
.container article[id],
.container div[id] {
  scroll-margin-top: 140px;
}

.home-flow-section.is-alt {
  background: color-mix(in srgb, #f6f7f9 52%, #fff 48%);
}

.home-flow-head {
  max-width: 78ch;
  margin-bottom: 1rem;
  background: transparent;
}
.home-flow-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.1rem);
  letter-spacing: -0.015em;
}
.home-flow-head p {
  margin: 0.45rem 0 0;
  color: color-mix(in srgb, #0f172a 60%, #6b7280 40%);
}

.home-flow-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.home-flow-panel,
.home-flow-timeline {
  padding: 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: color-mix(in srgb, #fff 90%, #f6f7f9 10%);
}

.home-flow-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.home-flow-panel--dima {
  padding: 2rem;
  border-top: 3px solid color-mix(in srgb, #2b4187 70%, #e5e7eb 30%);
}

.home-flow-panel--sport {
  padding: 2rem;
  border-top: 3px solid color-mix(in srgb, #2b4187 70%, #e5e7eb 30%);
}

.home-flow-panel > .btn {
  margin-top: auto;
}

.home-flow-panel__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.home-flow-panel__top h3 {
  margin: 0;
  font-size: 1.12rem;
}

.home-flow-panel__logo {
  width: 34px;
  height: 34px;
  border-radius: 0;
  object-fit: contain;
  flex: 0 0 34px;
}

.home-flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.home-flow-list li {
  margin: 0;
  padding-left: 1rem;
  position: relative;
}
.home-flow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, #2b4187 55%, #e5e7eb 45%);
}

.home-flow-panel__steps-title {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.home-flow-steps {
  margin: 0;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.home-flow-timeline > .muted {
  margin: 0.45rem 0 0;
}

.home-flow-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}
.home-flow-step p {
  margin: 0.2rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.home-flow-step__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
  color: #2b4187;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.home-flow-steps--panel {
  margin-top: 0.1rem;
}

.home-flow-panel > .btn {
  margin-top: auto;
}

.home-flow-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6525rem 1rem;
}
.home-flow-benefits li {
  padding: 1rem 1rem;
  margin: 0.5rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.home-flow-benefits .benefit-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.home-flow-benefits .benefit-content {
  flex: 1;
}
.home-flow-benefits strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.12rem;
}
.home-flow-benefits span:not(.benefit-icon) {
  color: #6b7280;
  font-size: 0.93rem;
}

.home-trust-strip {
  --trust-sponsor-height: clamp(86px, 8vw, 102px);
  --trust-sponsor-content-height: clamp(42px, 4.6vw, 58px);
  --trust-sponsor-width: clamp(228px, 20vw, 258px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
  padding: clamp(0.75rem, 1.8vw, 1rem);
  border: 1px solid color-mix(in srgb, #2c2a83 16%, #e5e7eb 84%);
  border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, #fefce8 62%, #ffffff 38%), color-mix(in srgb, #eef2ff 60%, #ffffff 40%) 48%, color-mix(in srgb, #fff7ed 70%, #ffffff 30%));
  box-shadow: 0 8px 22px rgba(44, 42, 131, 0.05);
}

.home-trust-strip__content {
  min-width: 0;
}

.home-trust-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.375rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: color-mix(in srgb, #d4a022 18%, #eef2ff 82%);
  color: #2c2a83;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-trust-strip__copy {
  margin: 0;
  max-width: 64ch;
  color: color-mix(in srgb, #0f172a 72%, #2c2a83 28%);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.home-trust-strip__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.75rem;
}

.home-trust-strip__brand {
  display: inline-flex;
  flex: 0 0 var(--trust-sponsor-width);
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: var(--trust-sponsor-width);
  min-height: var(--trust-sponsor-height);
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, #2c2a83 10%, #e5e7eb 90%);
  border-radius: 12px;
  background: color-mix(in srgb, #ffffff 94%, #f8fafc 6%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
  opacity: 0.9;
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.home-trust-strip__brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  opacity: 1;
}

.home-trust-strip__brand--imperial {
  border-color: color-mix(in srgb, #d4a022 34%, #2c2a83 66%);
}
.home-trust-strip__brand--imperial:hover {
  border-color: color-mix(in srgb, #d4a022 46%, #2c2a83 54%);
}

.home-trust-strip__brand--tecnology {
  border-color: color-mix(in srgb, #ea6a14 56%, #b8b9ff 44%);
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.home-trust-strip__brand--tecnology:hover {
  border-color: color-mix(in srgb, #ea6a14 64%, #b8b9ff 36%);
}

.home-trust-strip__brand--sanfilippo {
  border-color: color-mix(in srgb, #0f766e 34%, #d1fae5 66%);
  background: linear-gradient(180deg, color-mix(in srgb, #ecfeff 84%, #ffffff 16%), color-mix(in srgb, #f0fdf4 88%, #ffffff 12%));
}

.home-trust-strip__logo {
  display: block;
  width: auto;
  max-width: clamp(150px, 18vw, 210px);
  height: var(--trust-sponsor-content-height);
  border-radius: 8px;
  object-fit: contain;
  filter: saturate(0.72) grayscale(0.12);
  opacity: 0.76;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.home-trust-strip__logo--imperial {
  max-width: clamp(150px, 18vw, 210px);
}

.home-trust-strip__logo--tecnology {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
}

.home-trust-strip__brand:hover .home-trust-strip__logo,
.home-trust-strip__brand:focus-visible .home-trust-strip__logo {
  filter: saturate(1) grayscale(0);
  opacity: 1;
}

.home-trust-strip__text-brand {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
  min-height: var(--trust-sponsor-content-height);
  text-align: center;
  color: color-mix(in srgb, #0f172a 84%, #ffffff 16%);
  opacity: 0.82;
  transition: opacity 0.16s ease, color 0.16s ease;
}
.home-trust-strip__text-brand strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 800;
}
.home-trust-strip__text-brand small {
  display: block;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-trust-strip__brand:hover .home-trust-strip__text-brand,
.home-trust-strip__brand:focus-visible .home-trust-strip__text-brand {
  opacity: 1;
  color: #0f172a;
}

.home-flow-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.home-flow-proof a {
  display: block;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: color-mix(in srgb, #fff 90%, #f6f7f9 10%);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.home-flow-proof a:hover {
  border-color: color-mix(in srgb, #2b4187 30%, #e5e7eb 70%);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.07);
}
.home-flow-proof small {
  color: #6b7280;
  display: block;
}
.home-flow-proof strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.08rem;
}
.home-flow-proof p {
  margin: 0.4rem 0 0.55rem;
  color: #6b7280;
}

.donate-5x1000 {
  background: linear-gradient(180deg, color-mix(in srgb, #f6f7f9 38%, #fff 62%) 0%, #fff 100%);
}

.donate-5x1000__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(1.5rem, 3.4vw, 2.5rem);
  align-items: center;
  padding: clamp(1.65rem, 4.2vw, 2.5rem);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #0d2f67 76%, #ffffff 24%);
  background: radial-gradient(circle at 88% 18%, rgba(255, 213, 75, 0.16), transparent 18%), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 120px), radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.08), transparent 24%), linear-gradient(135deg, #061731 0%, #0a2758 40%, #0e356f 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.2);
}

.donate-5x1000__shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0.4;
}

.donate-5x1000__shell::after {
  display: none;
}

.donate-5x1000__content,
.donate-5x1000__card {
  position: relative;
  z-index: 1;
}

.donate-5x1000__content {
  min-width: 0;
  color: #fff;
  max-width: 680px;
}

.donate-5x1000__eyebrow {
  margin: 0 0 0.75rem;
  color: #ffca3a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.donate-5x1000__title {
  margin: 0;
  max-width: 10.5ch;
  color: #fff;
  font-size: clamp(2.75rem, 2.15rem + 2.1vw, 4.9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 950;
  text-wrap: balance;
}

.donate-5x1000__lead {
  max-width: 30ch;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 0.96rem + 0.6vw, 1.42rem);
  line-height: 1.34;
  font-weight: 680;
  text-wrap: balance;
}

.donate-5x1000__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.donate-5x1000__benefits li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.97);
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.donate-5x1000__steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.donate-5x1000__step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.donate-5x1000__step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: #0f3679;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

.donate-5x1000__step-copy strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
}

.donate-5x1000__step-copy p {
  margin: 0.175rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.5;
}

.donate-5x1000__card {
  align-self: center;
  justify-self: end;
  width: min(100%, 440px);
  padding: clamp(1.15rem, 2.8vw, 1.725rem);
  border-radius: 28px;
  border: 1px solid rgba(255, 213, 75, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 253, 0.98) 100%);
  box-shadow: 0 22px 42px rgba(4, 17, 43, 0.22);
  color: #102a57;
  margin-top: 0;
}

.donate-5x1000__card-kicker {
  margin: 0 0 0.675rem;
  color: #0f3679;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.donate-5x1000__cf {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.32em 0.28em;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffd54b 0%, #f0bc18 100%);
  box-shadow: 0 20px 34px rgba(244, 190, 25, 0.34);
  color: #0b2f72;
  font-size: clamp(1.85rem, 1.25rem + 1.15vw, 2.85rem);
  font-weight: 950;
  letter-spacing: 0.055em;
  line-height: 0.98;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.donate-5x1000__card-copy {
  margin: 0.825rem 0 0;
  color: rgba(16, 42, 87, 0.82);
  font-size: 0.96rem;
  line-height: 1.5;
}

.donate-5x1000__copy-btn {
  width: 100%;
  margin-top: 1.1rem;
}

.donate-5x1000__copy-btn {
  justify-content: center;
  min-height: 52px;
  background: #0f3679;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(15, 54, 121, 0.24);
}

.donate-5x1000__card-note {
  margin: 0.675rem 0 0;
  color: rgba(16, 42, 87, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.donate-5x1000__copy-btn:hover {
  transform: translateY(-1px);
}

.home-flow-inline-link {
  color: #2b4187;
  font-weight: 600;
}

.home-flow-updates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-flow-update {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background: #f6f7f9;
  transition: all 0.2s ease;
}
.home-flow-update h3 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1.15rem;
  line-height: 1.3;
}
.home-flow-update h3 a {
  color: #2b4187;
  text-decoration: none;
}
.home-flow-update h3 a:hover {
  color: #2b4187;
}
.home-flow-update > p {
  margin: 0;
  color: #2b4187;
  line-height: 1.5;
  flex-grow: 1;
}
.home-flow-update .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  font-size: 0.82rem;
  margin-bottom: 0;
}
.home-flow-update .meta time {
  color: #6b7280;
  font-weight: 500;
}
.home-flow-update .meta a {
  display: block;
  padding: 0.5rem 0.5rem 0.5rem 0;
  color: #2b4187;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.home-flow-update > a {
  display: inline-block;
  margin-top: 0.75rem;
  padding-top: 0;
  color: #2b4187;
  font-weight: 600;
  text-decoration: none;
}
.home-flow-update > a:hover {
  text-decoration: underline;
}

.home-flow-update__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #2b4187;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-flow-update--notice {
  position: relative;
  border-color: color-mix(in srgb, #2b4187 40%, #e5e7eb 60%);
  border-width: 2px;
  background: linear-gradient(135deg, color-mix(in srgb, #2b4187 12%, #f6f7f9 88%), #f6f7f9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.home-flow-update--notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 8px 8px 0 0;
  background: #2b4187;
}
.home-flow-update--notice .meta {
  gap: 0.5rem;
  flex-wrap: wrap;
}
.home-flow-update--notice .meta a {
  padding: 0.35rem 0.6rem;
  background: color-mix(in srgb, #2b4187 14%, transparent);
  color: #2b4187;
  font-weight: 700;
}
.home-flow-update--notice h3 a {
  color: #0f172a;
}
.home-flow-update--notice > p {
  color: #0f172a;
  font-weight: 500;
}
.home-flow-update--notice > a {
  font-weight: 800;
}

.home-flow-updates-cta {
  margin-top: 1rem;
}

.updates-list {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.update-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  background: #f6f7f9;
}

.update-date {
  display: inline-block;
  color: #6b7280;
  font-size: 0.86rem;
  margin-right: 0.75rem;
}

.update-category {
  align-items: center;
  justify-content: center;
  color: #2b4187;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
  transition: background 0.2s ease;
}

.update-title {
  margin: 0.75rem 0;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
}
.update-title a {
  color: inherit;
  text-decoration: none;
}
.update-title a:hover {
  color: #2b4187;
}

.update-content {
  color: #0f172a;
  line-height: 1.6;
}
.update-content p:last-child {
  margin-bottom: 0;
}

.update-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2b4187;
  font-weight: 600;
  text-decoration: none;
}
.update-link:hover {
  text-decoration: underline;
}

.home-flow-faq {
  display: grid;
  gap: 0.55rem;
}

.home-flow-contact-strip {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.home-flow-contact-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.95rem;
  margin-bottom: 0.5rem;
}
.home-flow-contact-strip__inner p {
  color: #6b7280;
  font-weight: 500;
}

.home-flow-visit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.home-flow-visit__info {
  padding-block: 0.2rem;
}

.home-flow-contact-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}
.home-flow-contact-list span {
  color: #6b7280;
  font-weight: 600;
}

.home-flow-visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.home-flow-visit__map {
  height: clamp(200px, 28vh, 450px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.home-flow-visit__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.home-flow-sticky-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .home-flow-updates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-flow-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1042px) {
  .home-flow-affiliations {
    display: none;
  }
}
@media (max-width: 640px) {
  .home-flow-hero {
    padding-block: 1rem clamp(1.5rem, 4.5vw, 2rem);
  }
  .home-flow-hero-header {
    gap: 1rem;
  }
  .home-flow-hero-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .home-flow-hero-logo {
    width: 64px;
  }
  .home-flow-title {
    font-size: 22px;
    line-height: 1.12;
  }
  .home-flow-title__emph {
    display: block;
  }
  .home-flow-badges {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }
  .home-flow-cta-row {
    margin-top: 0.75rem;
  }
  .home-flow-micro {
    margin-top: 0.5rem;
  }
}
@media (max-width: 960px) {
  .home-trust-strip {
    --trust-sponsor-height: 92px;
    --trust-sponsor-content-height: 54px;
  }
  .home-flow-cta-row {
    gap: 1rem;
  }
  .home-flow-cta-row .btn,
  .home-flow-visit__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .home-flow-hero-header {
    content-visibility: visible;
    contain-intrinsic-size: auto;
    align-items: flex-start;
  }
  .home-flow-hero-left {
    align-items: flex-start;
  }
  .home-flow-hero-logo {
    width: 72px;
  }
  .home-flow-two-col,
  .home-flow-proof,
  .partners-grid,
  .home-flow-updates,
  .home-flow-benefits,
  .home-flow-visit,
  .home-trust-strip {
    grid-template-columns: 1fr;
  }
  .home-flow-panel,
  .home-flow-timeline {
    padding: 0.9rem;
  }
  .donate-5x1000__shell {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .donate-5x1000__shell::before,
  .donate-5x1000__shell::after {
    display: none;
  }
  .donate-5x1000__title {
    max-width: none;
    font-size: clamp(2rem, 1.5rem + 5vw, 3rem);
  }
  .donate-5x1000__lead {
    max-width: none;
  }
  .donate-5x1000__benefits {
    gap: 0.4rem;
  }
  .donate-5x1000__benefits li {
    width: 100%;
    justify-content: center;
  }
  .donate-5x1000__step {
    padding: 0.675rem;
  }
  .donate-5x1000__card {
    padding: 1rem;
    align-self: stretch;
    margin-top: 0;
    justify-self: stretch;
    width: 100%;
  }
  .donate-5x1000__cf {
    font-size: clamp(1.4rem, 1rem + 3.6vw, 2.1rem);
    letter-spacing: 0.04em;
  }
  .home-flow-contact-strip__inner p {
    width: 100%;
  }
  .home-trust-strip__brands {
    justify-content: flex-start;
  }
  .home-trust-strip__brand {
    flex-basis: 100%;
    width: 100%;
    min-height: 0;
    height: var(--trust-sponsor-height);
  }
  .home-trust-strip__logo {
    max-width: min(100%, 210px);
  }
  .home-trust-strip__logo--tecnology {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
  }
  .home-trust-strip__text-brand {
    width: 100%;
  }
  .home-flow-badges {
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .home-flow-badges li {
    width: 100%;
    border-radius: 10px;
    padding: 0.75rem;
    background: #f6f7f9;
    border: 1px solid #e5e7eb;
  }
  .home-flow-affiliations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .home-flow-affiliation {
    min-width: 0;
    height: auto;
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .home-flow-affiliation img {
    height: 64px;
    max-width: 80px;
  }
  .home-flow-affiliation figcaption {
    font-size: 0.9rem;
  }
  .home-main {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .home-flow-visit__map {
    min-height: clamp(280px, 40vh, 400px);
  }
  .home-flow-sticky-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background: color-mix(in srgb, #fff 95%, #f6f7f9 5%);
  }
  .home-flow-sticky-mobile .btn {
    width: 100%;
    min-height: 42px;
    padding: 0.5rem 0.75rem;
  }
}
section {
  padding-block: clamp(0px, 2vw, 24px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.section-head .btn--cta {
  margin-left: auto;
}

.palmares-medals-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.prova-tiro-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prova-tiro-cta-row--center {
  justify-content: center;
}

.prova-tiro-page__title {
  margin: 0 0 1rem;
}

.prova-tiro-page__intro {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #6b7280;
}

.prova-tiro-page__lead {
  margin: 0 0 1.75rem;
  font-size: 1.06rem;
  line-height: 1.75;
}

.prova-tiro-page__section-title {
  margin: 0 0 1rem;
}

.prova-tiro-page__section-lead {
  margin: 0 0 1.25rem;
  font-size: 1.04rem;
  line-height: 1.75;
  color: #6b7280;
}

.prova-tiro-page__cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.prova-tiro-page__cards--steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.prova-tiro-page__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.35rem;
}
.prova-tiro-page__timeline::before {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: color-mix(in srgb, #e5e7eb 72%, #2b4187 28%);
}

.prova-tiro-page__timeline-step {
  position: relative;
  padding: 0 0.45rem 0;
}

.prova-tiro-page__timeline-step .prova-tiro-page__card-title {
  margin: -1rem 0 2rem 0;
  min-height: 2.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.prova-tiro-page__timeline-step .prova-tiro-page__card-text {
  margin-top: 1.25rem;
  text-align: center;
}

.prova-tiro-page__timeline-num {
  position: absolute;
  top: 1.36rem;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2b4187;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}

.prova-tiro-page__card {
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: color-mix(in srgb, #f6f7f9 94%, white 6%);
}

.prova-tiro-page__card-title {
  margin: 0 0 0.55rem;
}

.prova-tiro-page__card-text {
  margin: 0;
  line-height: 1.7;
  color: #6b7280;
}

.prova-tiro-page__faq-list {
  display: grid;
  gap: 0.9rem;
}

/* Sposta la CTA alla fine del blocco su mobile (CSS puro) */
@media (max-width: 960px) {
  /* Applichiamo solo alle sezioni interessate per evitare effetti collaterali */
  #programmi-sportivi,
  #risultati,
  #regolamenti-tecnici,
  #palmares-stats {
    display: flex;
    flex-direction: column;
  }
  /* Rendiamo i figli della section-head partecipanti al flex container della section */
  #programmi-sportivi .section-head,
  #risultati .section-head,
  #regolamenti-tecnici .section-head,
  #palmares-stats .section-head {
    display: contents; /* promuove h2 e btn al livello del section */
  }
  /* Ordine: titolo prima, poi grid, poi la CTA */
  #programmi-sportivi .section-title,
  #risultati .section-title,
  #regolamenti-tecnici .section-title,
  #palmares-stats .section-title {
    order: 0;
    width: 100%;
  }
  #programmi-sportivi .grid,
  #risultati .grid,
  #regolamenti-tecnici .grid {
    order: 1;
    width: 100%;
  }
  #palmares-stats .medagliere {
    order: 1;
    width: 100%;
  }
  .palmares-medals-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .prova-tiro-cta-row {
    flex-direction: column;
  }
  .prova-tiro-cta-row .btn {
    width: 100%;
    min-width: 0;
    padding: 0.8rem 1rem;
    min-height: 48px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .prova-tiro-page__intro {
    font-size: 1.12rem;
  }
  .prova-tiro-page__lead {
    font-size: 1rem;
  }
  .prova-tiro-page__timeline {
    grid-template-columns: 1fr;
    padding-top: 0.1rem;
  }
  .prova-tiro-page__timeline::before {
    left: 1rem;
    right: auto;
    width: 2px;
    top: 0.35rem;
    bottom: 0.35rem;
    height: auto;
  }
  .prova-tiro-page__timeline-step {
    padding-left: 2.5rem;
    padding-bottom: 0.9rem;
  }
  .prova-tiro-page__timeline-step .prova-tiro-page__card-title,
  .prova-tiro-page__timeline-step .prova-tiro-page__card-text {
    text-align: left;
    justify-content: flex-start;
  }
  .prova-tiro-page__timeline-step .prova-tiro-page__card-title {
    min-height: 0;
    margin: 0 0 0.35rem;
  }
  .prova-tiro-page__timeline-step .prova-tiro-page__card-text {
    margin-top: 0;
  }
  .prova-tiro-page__timeline-num {
    top: 0.05rem;
    left: 1rem;
    transform: translateX(-50%);
  }
  #programmi-sportivi .btn--cta,
  #risultati .btn--cta,
  #regolamenti-tecnici .btn--cta,
  #palmares-stats .btn--cta {
    order: 2;
    width: 100%;
    margin-top: 1rem;
    align-self: stretch;
    justify-content: center;
    /* ergonomia tocco */
    min-height: 48px;
  }
}
@media (max-width: 960px) {
  #hero-coni,
  #hero-uits,
  #hero-sezione {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
  }
  #hero-coni-logo,
  #hero-sezione-img {
    order: 1;
  }
  #hero-coni-content,
  #hero-sezione-content {
    order: 2;
  }
}
.section-title {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-2-left {
  grid-template-columns: 1fr 3fr;
}
.grid-cols-2-right {
  grid-template-columns: 3fr 1fr;
}

.card--list-gap {
  margin-top: 3rem;
}

#hero-uits-logo img.hero-img {
  height: auto !important;
}

#hero-coni-logo {
  object-position: left;
  object-fit: fill;
}

@media (max-width: 960px) {
  /* forza tutte le griglie 2-colonna a impilarsi in 1 colonna */
  .grid-cols-2-left,
  .grid-cols-2-right {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  #hero-coni-logo,
  #hero-uits-logo,
  #hero-sezione-img {
    justify-content: center;
    height: 128px;
  }
  #hero-uits-logo img.hero-img {
    width: auto !important;
    height: 128px !important;
  }
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}
.card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
}

.meta {
  color: #6b7280;
  font-size: 0.9em;
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
}
.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  font-weight: 600;
}

details {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #ffffff;
}
details + details {
  margin-top: 0.6rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  --footer-bg: #eef0f4;
  --footer-surface: #ffffff;
  --footer-text: #162033;
  --footer-muted: #5e6878;
  --footer-line: #d6dce6;
  --footer-link: #2f4b96;
  --footer-link-hover: #1f3570;
  --footer-shadow: 0 10px 28px rgba(17, 27, 45, 0.08);
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 24px;
  position: relative;
}

.site-footer .container {
  width: 100%;
  max-width: 1280px;
  padding-inline: 20px;
  margin-inline: auto;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--footer-line);
}

.site-footer .footer-col {
  min-width: 0;
}

.site-footer .footer-title,
.site-footer .footer-col h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--footer-text);
}

@media (min-width: 768px) {
  .site-footer .footer-title,
  .site-footer .footer-col h2 {
    font-size: 1.6rem;
  }
}
@media (min-width: 1024px) {
  .site-footer .footer-title,
  .site-footer .footer-col h2 {
    font-size: 26px;
  }
}
.site-footer .brand-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.site-footer .footer-brand-logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

.site-footer .brand-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--footer-text);
  font-weight: 400;
}

.site-footer .brand-title strong {
  font-size: 28px;
}

@media (min-width: 768px) {
  .site-footer .brand-title {
    font-size: 1.8rem;
  }
}
@media (min-width: 1024px) {
  .site-footer .brand-title {
    font-size: 2.15rem;
  }
}
.site-footer .brand-title strong {
  font-weight: 1000;
}

.site-footer .brand-address {
  margin: 0 0 16px;
  font-style: normal;
  font-size: 1.04rem;
  line-height: 1.6;
}

.site-footer .brand-meta,
.site-footer .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .brand-meta li,
.site-footer .footer-list li {
  margin-bottom: 10px;
  color: var(--footer-muted);
  line-height: 1.55;
}

.site-footer .contact-list li,
.site-footer .hours-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.site-footer .footer-links li {
  margin-bottom: 6px;
  line-height: 1.35;
}

.site-footer .contact-list span,
.site-footer .hours-list span,
.site-footer .hours-list strong {
  color: var(--footer-text);
}

.site-footer a {
  text-decoration: none;
}

.site-footer .accent,
.site-footer .footer-links a,
.site-footer .footer-bottom-right a {
  color: var(--footer-link);
}

.site-footer .accent:hover,
.site-footer .footer-links a:hover,
.site-footer .footer-bottom-right a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.site-footer .social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--footer-surface);
  color: var(--footer-text);
  box-shadow: var(--footer-shadow);
  border: 1px solid rgba(22, 32, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.site-footer .social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 27, 45, 0.12);
  color: var(--footer-link);
}

.site-footer .social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-footer .social-link i {
  font-size: 22px;
}

.site-footer .social-link[aria-label=WhatsApp] {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

.site-footer .social-link[aria-label=Facebook] {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
}

.site-footer .social-link[aria-label=YouTube] {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
}

.site-footer .social-link[aria-label=Instagram] {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: white;
  border-color: #DD2A7B;
}

.site-footer .social-link[aria-label=WhatsApp]:hover,
.site-footer .social-link[aria-label=Facebook]:hover,
.site-footer .social-link[aria-label=YouTube]:hover,
.site-footer .social-link[aria-label=Instagram]:hover {
  transform: translateY(-2px) scale(1.05);
  color: white;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
}

.site-footer .footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer .footer-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--footer-muted);
}

.site-footer .footer-institutions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer .footer-img-small {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.96;
}

.site-footer .footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-footer .footer-bottom-right a {
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-footer .back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--footer-text);
  box-shadow: 0 12px 30px rgba(17, 27, 45, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.site-footer .back-to-top svg {
  fill: currentColor;
}

@media (max-width: 1100px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .footer-bottom-right {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  .site-footer {
    padding: 36px 0 20px;
  }
  .site-footer .container {
    width: 100%;
    max-width: 1280px;
    padding-inline: 16px;
  }
  .site-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer .brand-head {
    gap: 14px;
  }
  .site-footer .footer-brand-logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .site-footer .footer-img-small {
    height: 36px;
  }
  .site-footer .back-to-top {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
}
.site-footer .brand-title strong {
  font-weight: 700;
}

.site-footer .brand-meta li:last-child,
.site-footer .footer-list li:last-child {
  margin-bottom: 0;
}

.site-footer .footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer .footer-affiliation-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer .footer-affiliation-copy p {
  margin: 0;
}

.site-footer .footer-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--footer-muted);
}

.site-footer .footer-institutions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer .footer-img-small {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.96;
}

@media (max-width: 700px) {
  .site-footer .footer-bottom-left {
    align-items: flex-start;
  }
  .site-footer .footer-bottom-right {
    gap: 6px;
  }
  .site-footer .footer-bottom-right a {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .site-footer .footer-img-small {
    height: 36px;
  }
}
.single {
  padding: 1rem 0;
}

.muted {
  color: #6b7280;
}

.accent {
  color: #2b4187;
}

.grid-cols-3 {
  align-items: stretch;
}

.grid-cols-4 {
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
}

.card--accent-tint {
  border-width: 2px;
  border-color: #2b4187;
  background: color-mix(in srgb, #2b4187 8%, #f6f7f9 92%);
}

.card-content {
  flex: 1 1 auto;
}

.card > a.btn {
  margin-top: auto;
}

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

.media-frame {
  position: relative;
  min-height: 280px;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f6f7f9;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}
.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-flow-cta-row--center {
  justify-content: center;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-block > :first-child {
  margin-top: 0;
}

.section-block > :last-child {
  margin-bottom: 0;
}

.single-lead {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
  line-height: 1.6;
}

.single-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.single-actions .btn,
.prova-tiro-cta-row .btn {
  flex: 1 1 220px;
  max-width: 280px;
}

.single-actions--center {
  justify-content: center;
}

.single-actions--stack {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.single-actions--stack .btn {
  flex: initial;
  max-width: none;
  width: 100%;
  min-width: 0;
}

.single-actions--history .btn {
  min-width: 0;
  padding-inline: 1.5rem;
}

.info-list,
.info-inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list {
  display: grid;
  gap: 0.75rem;
  color: #0f172a;
}

.info-list li,
.info-inline-list li {
  color: #6b7280;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0 0;
}

.info-grid__item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.info-grid dt {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
}

.info-grid dd {
  margin: 0;
}

.info-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
}

.info-inline-list li {
  position: relative;
}

.info-inline-list li::before {
  content: "•";
  margin-right: 0.4rem;
  color: #2b4187;
}

.content--compact > :first-child,
.details-copy__item > :first-child {
  margin-top: 0;
}

.content--compact > :last-child,
.details-copy__item > :last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f6f7f9;
}

.faq-question {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.details-copy {
  margin-top: 1rem;
}

.details-copy__item + .details-copy__item {
  margin-top: 0.75rem;
}

.pill {
  padding: 0.25rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #f6f7f9;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: none; /* chiuso di default */
  }
  .nav-links.is-open {
    display: flex !important;
    flex-direction: column;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav-links a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
  /* Social mobile */
  .social-mobile {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
  }
  .social-links a {
    width: 32px;
    height: 32px;
  }
  .social-links a svg {
    width: 28px;
    height: 28px;
  }
}
/* Sticky footer */
html {
  height: 100%;
}

body {
  /* usa l’altezza del viewport, anche su mobile */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

header,
footer {
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto;
}

@media (max-width: 960px) {
  body {
    padding-top: var(--header-height-mobile);
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.page-item .page-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background: color-mix(in srgb, #f6f7f9 85%, transparent);
}
.page-item .page-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2b4187 30%, transparent), 0 10px 30px rgba(15, 23, 42, 0.08);
  border-color: color-mix(in srgb, #2b4187 60%, #e5e7eb 40%);
}
.page-item .page-link:has([aria-hidden=true]) {
  padding: 0 0.6rem;
  min-width: 36px;
}
.page-item.active .page-link,
.page-item .page-link[aria-current=page] {
  background: #2b4187;
  color: #ffffff;
  border-color: color-mix(in srgb, #2b4187 65%, #e5e7eb 35%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: none;
}
.page-item.disabled .page-link,
.page-item .page-link[aria-disabled=true] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: color-mix(in srgb, #f6f7f9 70%, transparent);
}

/* Compact variant (optional) */
.pagination--sm .page-link {
  min-width: 32px;
  height: 32px;
  padding: 0 0.6rem;
  border-radius: 8px;
}

/* Responsive niceties */
@media (max-width: 520px) {
  .pagination {
    gap: 0.3rem;
  }
  /* Hide "First" / "Last" on very small screens to save space */
  .page-link[aria-label=First],
  .page-link[aria-label=Last] {
    display: none;
  }
}
.filters-bar,
#filtri-risultati {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.filters-bar > *,
#filtri-risultati > * {
  flex: 1 1 220px;
  min-width: 0;
}
.filters-bar label,
#filtri-risultati label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-weight: 500;
}
.filters-bar label strong,
#filtri-risultati label strong {
  font-weight: 600;
  color: #6b7280;
}
.filters-bar select,
.filters-bar input[type=search],
.filters-bar #search-name,
#filtri-risultati select,
#filtri-risultati input[type=search],
#filtri-risultati #search-name {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.8rem;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  font-family: inherit;
  font-size: 0.95em;
  line-height: 1.2;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 18px;
}
.filters-bar select:hover,
.filters-bar input[type=search]:hover,
.filters-bar #search-name:hover,
#filtri-risultati select:hover,
#filtri-risultati input[type=search]:hover,
#filtri-risultati #search-name:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background-color: color-mix(in srgb, #f6f7f9 85%, transparent);
}
.filters-bar select:focus-visible,
.filters-bar input[type=search]:focus-visible,
.filters-bar #search-name:focus-visible,
#filtri-risultati select:focus-visible,
#filtri-risultati input[type=search]:focus-visible,
#filtri-risultati #search-name:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2b4187 30%, transparent), 0 10px 30px rgba(15, 23, 42, 0.08);
  border-color: color-mix(in srgb, #2b4187 60%, #e5e7eb 40%);
}
.filters-bar select,
#filtri-risultati select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 18px;
}
.filters-bar select:disabled,
#filtri-risultati select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: color-mix(in srgb, #f6f7f9 70%, transparent);
}
.filters-bar input[type=search],
.filters-bar #search-name,
#filtri-risultati input[type=search],
#filtri-risultati #search-name {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}
.filters-bar.filters-bar--with-search input[type=search], .filters-bar.filters-bar--with-search #search-name,
#filtri-risultati.filters-bar--with-search input[type=search],
#filtri-risultati.filters-bar--with-search #search-name {
  flex: 1 1 100%;
}
.filters-bar.filters--sm select,
#filtri-risultati.filters--sm select {
  min-height: 32px;
  padding: 0.4rem 1.9rem 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9em;
}

/* Allineamento e stacking su mobile */
@media (max-width: 720px) {
  .filters-bar,
  #filtri-risultati {
    gap: 0.75rem;
  }
  .filters-bar > *,
  #filtri-risultati > * {
    flex: 1 1 100%;
  }
  .filters-bar label,
  #filtri-risultati label {
    width: 100%;
    justify-content: space-between;
  }
  .filters-bar label select,
  .filters-bar select,
  .filters-bar input[type=search],
  .filters-bar #search-name,
  #filtri-risultati label select,
  #filtri-risultati select,
  #filtri-risultati input[type=search],
  #filtri-risultati #search-name {
    width: 100%;
  }
}
/* Base (desktop) */
.nav-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.menu-btn {
  display: none;
  border: none;
}

/* Mobile */
@media (max-width: 1340px) {
  .nav-full {
    padding-inline: 1rem;
  }
  .menu-btn {
    display: inline-block;
  }
  /* Start hidden; becomes a vertical panel when opened */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none; /* hidden by default */
    flex-direction: column; /* ← stack vertically */
    background: #fff;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }
  .nav-links a {
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
    width: 100%;
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
  /* Optional: subtle animation */
}
@media (max-width: 1340px) and (prefers-reduced-motion: no-preference) {
  .nav-links {
    transform: translateY(-4px);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.album-img {
  width: 100%; /* occupa tutta la larghezza del contenitore */
  aspect-ratio: 16/9; /* proporzione fissa 16:9 */
  object-fit: cover; /* mantiene le proporzioni dell’immagine */
  object-position: center; /* centratura */
  border-radius: 6px; /* opzionale */
  transition: transform 0.3s ease;
}

/* Effetto hover solo su dispositivi con mouse */
@media (hover: hover) {
  .album-img:hover {
    transform: scale(1.03);
  }
}
/* --- Mobile portrait --- */
@media screen and (max-width: 960px) and (orientation: portrait) {
  .album-img {
    width: 100%; /* sempre tutta la larghezza */
    aspect-ratio: 16/9;
  }
}
/* --- Mobile landscape --- */
@media screen and (max-width: 960px) and (orientation: landscape) {
  .album-img {
    width: 48%; /* due immagini affiancate */
    aspect-ratio: 16/9;
  }
}
/* --- Tablet/laptop piccoli --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .album-img {
    width: 30%; /* tre immagini affiancate */
    aspect-ratio: 16/9;
  }
}
.pdf-preview-container {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
}

.pdf-preview {
  position: relative;
  width: 100%;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-preview:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.pdf-preview:hover .pdf-preview-overlay {
  opacity: 1;
}
.pdf-preview:focus-visible {
  outline: 3px solid #2b4187;
  outline-offset: 2px;
}

.pdf-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  min-height: 300px;
}
.pdf-preview-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #2b4187;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.pdf-preview-loading p {
  color: #6b7280;
  font-size: clamp(0.92rem, 0.9rem + 0.2vw, 1rem);
}

.pdf-preview-canvas {
  display: none;
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pdf-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: white;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pdf-preview-overlay .pdf-preview-icon {
  font-size: 3rem;
}

.pdf-trigger-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.pdf-dialog {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: none;
  background: #ffffff;
}
.pdf-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

#pdf-content {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.pdf-dialog-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, #f6f7f9 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.pdf-dialog-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.pdf-dialog-title {
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-close-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-close-btn:hover {
  background: #2b4187;
  color: #ffffff;
  border-color: #2b4187;
  transform: scale(1.05);
}

#pdf-render {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: color-mix(in srgb, #0f172a 5%, #ffffff);
}

#pdf-render.is-fit-width {
  align-items: flex-start;
}

#pdf-canvas {
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.pdf-toolbar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: color-mix(in srgb, #f6f7f9 95%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  flex-wrap: wrap;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.pdf-toolbar.hidden {
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.pdf-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pdf-btn:hover:not(:disabled) {
  background: #2b4187;
  color: #ffffff;
  border-color: #2b4187;
  transform: translateY(-1px);
}
.pdf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#page-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #0f172a;
}

.pdf-page-num {
  min-width: 40px;
  text-align: center;
}

.pdf-toolbar-divider {
  width: 1px;
  height: 32px;
  background: #e5e7eb;
  margin: 0 0.5rem;
}

.pdf-zoom-level {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
}

.pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  height: 100vh;
}
.pdf-loading .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #2b4187;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.pdf-loading p {
  color: #0f172a;
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pdf-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  height: 100vh;
}
.pdf-error p {
  font-weight: 500;
  color: #0f172a;
}

@media (max-width: 640px) {
  .pdf-toolbar {
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .pdf-btn {
    min-width: 40px;
    min-height: 40px;
    font-size: 0.9rem;
  }
  .pdf-dialog-header {
    padding: 0.75rem 1rem;
  }
  .pdf-dialog-title {
    font-size: clamp(0.92rem, 0.9rem + 0.2vw, 1rem);
  }
  .pdf-preview-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
  }
}
.opening-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.opening-hours td {
  padding: 8px;
}

.opening-hours tr.open td {
  font-weight: bold;
  color: #2b4187;
}

.opening-hours tr.closed td {
  color: #6b7280;
  font-style: italic;
}

.contacts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.contacts td {
  padding: 6px 8px;
  vertical-align: middle;
}

.contacts td.muted {
  color: #6b7280;
  font-weight: 500;
  width: 120px;
}

.contacts td a {
  text-decoration: none;
}

.contacts td a:hover {
  text-decoration: underline;
}

/* Overlay nascosto di default */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
}

/* Quando il menu è aperto */
.menu-overlay.is-active {
  display: block;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #6b7280;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.social-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-links a:hover {
  background: #2b4187;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.social-links a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2b4187 30%, transparent), 0 10px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 960px) {
  .social-links {
    margin-left: 0;
    justify-content: left;
  }
  div.social-mobile > .social-links a {
    width: 36px !important;
    height: 36px !important;
  }
  div.social-mobile > .social-links svg {
    width: 16px;
    height: 16px;
  }
  div.social-mobile > .social-links i {
    font-size: 16px;
    line-height: 1;
  }
}
div.social-mobile .social-links {
  gap: 0.35rem !important;
}

div.social-mobile > .social-links a {
  width: 36px;
  height: 36px;
  margin: 0;
}

div.social-mobile > .social-links svg {
  width: 16px;
  height: 16px;
}

div.social-mobile > .social-links i {
  font-size: 16px;
  line-height: 1;
}

div.social-mobile > .social-links a.icon-phone,
div.social-mobile > .social-links a.icon-whatsapp,
div.social-mobile > .social-links a.icon-facebook,
div.social-mobile > .social-links a.icon-instagram,
div.social-mobile > .social-links a.icon-youtube {
  color: #fff;
}

div.social-mobile > .social-links a.icon-phone {
  background: #2b4187;
}

div.social-mobile > .social-links a.icon-whatsapp {
  background: #25D366;
}

div.social-mobile > .social-links a.icon-facebook {
  background: #1877F2;
}

div.social-mobile > .social-links a.icon-instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

div.social-mobile > .social-links a.icon-youtube {
  background: #FF0000;
}

.social-links a.icon-whatsapp,
.social-links a.icon-facebook,
.social-links a.icon-instagram,
.social-links a.icon-youtube {
  background: transparent;
  color: #8b92a0;
  transition: color 0.3s ease;
}

.social-links a.icon-whatsapp:hover {
  color: #25D366;
}

.social-links a.icon-facebook:hover {
  color: #1877f2;
}

.social-links a.icon-instagram:hover {
  color: #d62976;
}

.social-links a.icon-youtube:hover {
  color: #ff0000;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 9999px;
  background: #f6f7f9;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 45;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0px);
  pointer-events: auto;
}

.back-to-top:focus {
  outline: 2px solid #2b4187;
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .back-to-top {
    bottom: 4rem;
    right: 1rem;
  }
  .back-to-top.show {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
    z-index: 10000;
  }
}
.cc-window {
  background: #f6f7f9 !important;
}

.cc-btn {
  transform: none !important;
  font-weight: 700 !important;
}

.cc-allow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12) !important;
}

.cc-deny {
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.28) !important;
  opacity: 0.96;
}

.cc-revoke {
  display: none !important;
}

.cc-deny:hover,
.cc-deny:focus {
  opacity: 1;
}

.cc-highlight .cc-btn:first-child:hover {
  text-decoration: none !important;
}

input.search-name {
  all: unset;
  height: 32px !important;
  padding-top: 1.5rem;
}

#filtri-risultati {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#search-name {
  flex: 1 1 100%; /* prende tutta la larghezza disponibile */
  width: 100%; /* fallback */
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (max-width: 960px) {
  #filtri-risultati {
    flex-direction: column;
  }
  #search-name {
    order: -1; /* sempre in alto */
  }
  #filtri-risultati select {
    width: 100%;
  }
}
article.palmares-tiratore {
  margin-top: 1.5rem !important;
  padding: 0.5rem 0.75rem;
}

.accordion-header {
  padding: 0; /* header container senza padding duplicati */
  background: #ffffff;
  border: none;
}

.accordion-button {
  display: flex;
  align-items: center; /* VERTICALLY center the + icon */
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1.25rem 1.25rem; /* spazio click-friendly */
  cursor: pointer;
  text-align: left;
}

.accordion-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  flex: 1 1 auto; /* occupa lo spazio disponibile */
}

.results-badge,
.accordion-indicator {
  display: inline-flex; /* attiva flex */
  align-items: center; /* centra verticale */
  justify-content: center; /* centra orizzontale */
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1; /* evita extra spazio tipografico */
}

.results-badge {
  padding: 0 0.75rem;
  color: #2b4187;
  background: #f6f7f9;
}

.accordion-indicator {
  width: 36px; /* quadrato fisso */
  background: #f6f7f9;
  color: #2b4187;
  font-size: 1.35rem;
  transition: transform 0.22s ease, background 0.15s ease;
}

/* rotated / changed indicator when expanded */
.accordion-button[aria-expanded=true] .accordion-indicator {
  transform: rotate(45deg); /* + -> × like */
  background: rgba(31, 78, 216, 0.12);
}

/* panel: transizione fluida */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.18s ease;
}

/* quando aperto applica padding interno e lascia max-height gestita da JS */
.accordion-panel.open {
  padding: 0.75rem 1.25rem 1.25rem 1.25rem;
}

.pal-list {
  padding: 0;
}

.pal-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #efefef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 1rem;
}

.pal-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pal-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gara-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.gara-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.gara-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.gara-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f2f2f7;
  color: #444;
  font-weight: 500;
}

@media (max-width: 960px) {
  .accordion-title {
    color: #0f172a;
  }
  .results-badge {
    display: none;
  }
  .gara-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
}
.tag-muted {
  background: #e9ecef;
  color: #555;
}

.tag-accent {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Medaglia più grande e centrale */
.medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  background: #f9f9f9;
}

.medal {
  min-width: 56px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  background: #f9f9f9;
}

.medal-gold {
  background: #fff8e1;
  color: #d4af37;
}

.medal-silver {
  background: #f4f6f8;
  color: #9e9e9e;
}

.medal-bronze {
  background: #fbe9e7;
  color: #cd7f32;
}

.meta-small {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* piccolo miglioramento responsive */
@media (max-width: 960px) {
  .accordion-header {
    padding: 0.6rem 0.75rem;
  }
  .accordion-panel.open {
    padding: 0.6rem 0.75rem 0.75rem 0.75rem;
  }
}
/* logo come sfondo (come avevi) */
.gds-logo {
  width: 36px;
  height: 36px;
  background-image: url("https://cdn.tsnbagheria.it/images/logo-gds.png");
  background-size: cover;
  background-position: center;
  flex: 0 0 36px;
  display: inline-block;
}

.corriere-dello-sport-logo {
  width: 40px;
  height: 40px;
  background-image: url("https://cdn.tsnbagheria.it/images/logo-corriere-dello-sport.svg");
  background-color: #ffffff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-head {
  display: flex;
  align-items: center; /* allinea logo alla baseline del titolo */
  gap: 0.75rem; /* spazio tra logo e titolo */
}

.card-title {
  margin: 0;
  line-height: 1; /* controlla altezza linea del titolo */
  font-size: 1.125rem; /* regola come ti serve */
}

#palmares-risultati {
  position: relative;
  z-index: 1;
}

.filters-panel {
  margin-top: 0.5rem;
}

.results-filter-card {
  margin-top: 1.5rem;
  padding: 0.95rem 0 0.45rem;
}

.results-filter-card .section-subtitle {
  margin: 0;
}

.results-filter-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.7rem;
}

.results-advanced-trigger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #e5e7eb 78%, #2b4187 22%);
  background: transparent;
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: 0;
  transition: none;
}

.results-advanced-trigger:hover,
.results-advanced-trigger:focus-visible {
  color: #0f172a;
  background: color-mix(in srgb, #f6f7f9 92%, #2b4187 8%);
  border-color: color-mix(in srgb, #e5e7eb 65%, #2b4187 35%);
  box-shadow: none;
}

.results-count-inline {
  margin: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.results-count-inline::before {
  content: none;
}

.results-advanced-dialog__body .filters-panel {
  margin-top: 0.55rem;
}

.results-advanced-search[open] summary {
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.results-advanced-search[open] .results-advanced-search__hint {
  color: #6b7280;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-label {
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 600;
}

#filtri-risultati.filters-bar {
  gap: 0.8rem;
}

#filtri-risultati select {
  min-height: 38px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.filter-field.is-active select {
  border-color: color-mix(in srgb, #2b4187 70%, #e5e7eb 30%);
  box-shadow: 0 0 0 2px color-mix(in srgb, #2b4187 18%, transparent);
}

.filters-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin-top: 0.95rem;
  margin-bottom: 0.2rem;
}

.section-intro {
  margin-bottom: 1.5rem;
  max-width: 72ch;
}
.section-intro p {
  margin: 0;
  color: #6b7280;
}

.section-subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
  line-height: 1.2;
}

.results-list-card {
  position: relative;
  display: grid;
  grid-template-rows: auto;
  gap: 0.15rem;
  padding: 1.15rem 1.1rem;
  border-radius: 12px;
  height: 100%;
}

.results-list-card--recent {
  border-color: color-mix(in srgb, #e5e7eb 75%, #2b4187 25%);
  background: color-mix(in srgb, #f6f7f9 97%, #2b4187 3%);
}

.results-list-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -70%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #2b4187 55%, #e5e7eb 45%);
  background: color-mix(in srgb, #2b4187 16%, #f6f7f9 84%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.results-list-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.03rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.56em;
}

.results-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.1rem;
}

.results-list-grid > [data-result-item] {
  display: block;
  text-decoration: none;
}

.results-list-grid .card--list-gap {
  margin-top: 0;
}

.results-list-card .muted {
  margin: 0.42rem 0 0;
  font-size: 0.91rem;
  line-height: 1.5;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.results-empty-state {
  margin-top: 1rem;
}

.results-load-more-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.results-noscript-note {
  margin-top: 0.7rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #2b4187 45%, #e5e7eb 55%);
  background: color-mix(in srgb, #2b4187 8%, #f6f7f9 92%);
  color: #2b4187;
  font-size: 0.86rem;
  font-weight: 600;
  appearance: none;
  cursor: default;
}

button.filter-chip {
  cursor: pointer;
}

button.filter-chip:hover,
button.filter-chip:focus-visible {
  border-color: color-mix(in srgb, #2b4187 65%, #e5e7eb 35%);
  background: color-mix(in srgb, #2b4187 12%, #f6f7f9 88%);
}

.btn--filters-reset {
  min-width: auto;
  padding: 0.4rem 0.75rem;
  min-height: 36px;
  font-size: 0.9rem;
}

.results-side-help-btn {
  position: fixed;
  left: 0;
  top: 75%;
  transform: translateY(-50%);
  z-index: 60;
  width: 46px;
  height: 52px;
  border: 0;
  border-right: 1px solid color-mix(in srgb, #2b4187 65%, #e5e7eb 35%);
  background: color-mix(in srgb, #2b4187 14%, #fff 86%);
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  clip-path: polygon(0 10%, 100% 0, 78% 50%, 100% 100%, 0 90%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.results-side-help-btn i {
  font-size: 1rem;
  color: #2b4187;
}
.results-side-help-btn:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background: color-mix(in srgb, #2b4187 22%, #fff 78%);
}
.results-side-help-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2b4187 28%, transparent), 0 10px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 960px) {
  .card--list-gap {
    margin-top: 1.5rem;
  }
  .results-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .results-list-card {
    padding: 1rem;
  }
  .results-list-card h3 {
    margin-bottom: 0.6rem;
    font-size: 0.99rem;
  }
  .results-list-card .muted {
    margin-top: 0.36rem;
    line-height: 1.42;
  }
  .results-filter-card__head {
    align-items: flex-start;
  }
  #filtri-risultati.filters-bar {
    gap: 0.65rem;
  }
  #filtri-risultati select {
    min-height: 36px;
  }
  .results-side-help-btn {
    width: 42px;
    height: 48px;
    top: 78%;
    bottom: auto;
    transform: none;
  }
}
@media (max-width: 680px) {
  .results-list-grid {
    grid-template-columns: 1fr;
  }
}
.rassegna-card {
  margin-top: 0;
}

.rassegna-meta {
  margin-bottom: 0.5rem;
}

.rassegna-excerpt {
  margin-top: 0.4rem;
}

.rassegna-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.press-image-shell {
  overflow: hidden;
}

.press-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.press-image-wrap {
  margin-top: 1rem;
  overflow: auto;
  max-height: 75vh;
}

.zoomable-image {
  transform-origin: top center;
  transition: transform 0.2s ease;
}

@media (max-width: 960px) {
  .filters-feedback {
    align-items: flex-start;
  }
  .lead-form__grid {
    grid-template-columns: 1fr;
  }
  .press-image-wrap {
    max-height: 50vh;
  }
}
.faq-container {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-category {
  margin-bottom: 2rem;
}
.faq-category h2 {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
  margin-bottom: 1rem;
  color: #2b4187;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-question {
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.faq-question::after {
  content: "▼";
  font-size: 0.8em;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  line-height: 1.6;
}

.faq-answer__link {
  color: #2b4187;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-faq-search {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}
.home-faq-search input[type=search] {
  width: 100%;
  padding: 1rem;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f6f7f9;
}
.home-faq-search input[type=search]:focus {
  outline: none;
  border-color: #2b4187;
}

.faq-dialog {
  max-width: 800px;
  width: 90vw;
  max-height: 80vh;
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.faq-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.faq-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.faq-dialog-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
}

.faq-dialog-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
}
.faq-dialog-close:hover {
  color: #0f172a;
}

.faq-dialog-content {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
}

.faq-dialog-state {
  text-align: center;
  padding: 2rem;
}

.faq-dialog-state--empty {
  color: #6b7280;
}

.faq-dialog-state--error {
  color: #b42318;
}

.faq-dialog-results-count {
  margin-bottom: 1rem;
  color: #6b7280;
}

.updates-list {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.update-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.update-card:hover {
  border-color: #2b4187;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .update-card:has(.update-image) {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }
}

.update-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f7f9;
  object-fit: cover;
}
.update-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.update-image a:hover img {
  transform: scale(1.05);
}

.update-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-meta {
  display: block;
}

.update-date {
  font-size: clamp(0.92rem, 0.9rem + 0.2vw, 1rem);
  color: #6b7280;
  min-width: clamp(200px, 15vw, 200px);
}

.update-category {
  margin-block: 0;
  min-width: clamp(200px, 15vw, 200px);
  font-size: clamp(0.92rem, 0.9rem + 0.2vw, 1rem);
  font-weight: 600;
  color: #2b4187;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.update-title {
  margin: 0;
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.1rem);
  line-height: 1.3;
}
.update-title a {
  color: #0f172a;
  text-decoration: none;
}
.update-title a:hover {
  color: #2b4187;
}

.update-content {
  color: #6b7280;
  line-height: 1.6;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
}

.update-link {
  color: #2b4187;
  font-weight: 600;
  text-decoration: none;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
  margin-top: auto;
}
.update-link:hover {
  text-decoration: underline;
}

.manuali-showcase {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, #f6f7f9 96%, #fff 4%), color-mix(in srgb, #f6f7f9 92%, #ffffff 8%));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.manuali-showcase__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.manuali-showcase__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2b4187;
}

.manuali-showcase__title {
  margin: 0;
}

.manuali-showcase__intro {
  margin: 0.5rem 0 0;
  max-width: 68ch;
  color: #6b7280;
}

.manuali-showcase__paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.manuali-showcase__path {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.manuali-showcase__path-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.manuali-showcase__path-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.manuali-showcase__path-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.manuali-showcase__path-link {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.manuali-showcase__path-step {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  width: 100%;
  min-height: 24px;
  padding: 0;
  color: color-mix(in srgb, #2b4187 72%, #6b7280 28%);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.manuali-showcase__path-step--principiante {
  color: color-mix(in srgb, #2b4187 55%, #6b7280 45%);
}

.manuali-showcase__path-step--intermedio {
  color: color-mix(in srgb, #2b4187 72%, #6b7280 28%);
}

.manuali-showcase__path-step--avanzato {
  color: #2b4187;
}

.manuali-showcase__path-name {
  font-weight: 600;
  line-height: 1.4;
  align-self: center;
}

.manuali-showcase__path-link:hover .manuali-showcase__path-name,
.manuali-showcase__path-link:focus-visible .manuali-showcase__path-name {
  color: #2b4187;
  text-decoration: underline;
}

.manuali-showcase__level-intro {
  margin: 0.5rem 0 0;
  color: #6b7280;
}

.manuale-card {
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.manuale-card-link:hover .manuale-card,
.manuale-card-link:focus-visible .manuale-card {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, #2b4187 35%, rgba(0, 0, 0, 0.08));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.manuali-dima-card .manuale-card,
.manuali-dima-card:hover .manuale-card,
.manuali-dima-card:focus-visible .manuale-card {
  transform: none;
  transition: none;
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.manuale-card-linktext {
  font-weight: 700;
  color: #2b4187;
}

.manuale-card-link {
  display: block;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.manuali-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.dima-percorso-cards {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.5rem;
}

.dima-percorso-card {
  width: 100%;
  height: 100%;
}

.dima-percorso-card .info-list {
  width: 100%;
}

.dima-percorso-card__resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.manuale-card-meta {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.manuale-card-meta .filter-chip {
  display: inline-flex;
}

.manuali-showcase__level {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f6f7f9;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

.manuali-showcase__prep {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.manuali-showcase__prep-head {
  margin-bottom: 1rem;
}

.manuali-showcase__prep-head .filter-chip {
  margin-bottom: 0.75rem;
}

.manuali-showcase__prep-list {
  display: grid;
  gap: 0.75rem;
}

#porto-armi .porto-armi-start-card {
  display: flex;
  flex-direction: column;
}

#porto-armi .porto-armi-start-card .porto-armi__cta {
  margin-top: auto !important;
}

#porto-armi .porto-armi__cta {
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

#porto-armi .section-block > h2,
#porto-armi .home-flow-head h2 {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

#porto-armi #faq .home-flow-wrap {
  padding-left: 0;
}

#porto-armi .porto-armi-checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

#porto-armi .porto-armi-checklist li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  align-items: start;
  gap: 0.7rem;
  padding: 0.82rem 1rem;
  border: 1px solid color-mix(in srgb, #e5e7eb 72%, #2b4187 28%);
  border-radius: 12px;
  background: color-mix(in srgb, #f6f7f9 92%, white 8%);
  line-height: 1.5;
}

#porto-armi .porto-armi-checklist__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  color: #2b4187;
  font-size: 0.92rem;
  margin-top: 0.08rem;
}

.documenti-checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.documenti-checklist li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.82rem 1rem;
  border: 1px solid color-mix(in srgb, #e5e7eb 72%, #2b4187 28%);
  border-radius: 12px;
  background: color-mix(in srgb, #f6f7f9 92%, white 8%);
  line-height: 1.5;
}

.documenti-checklist__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
  color: #2b4187;
  font-size: 0.92rem;
  margin-top: 0;
  align-self: center;
}

.documenti-checklist__collapse {
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.documenti-checklist__collapse summary {
  cursor: pointer;
  color: inherit;
  font-weight: 600;
}

.documenti-checklist__collapse[open] summary {
  margin-bottom: 0.35rem;
}

@media (max-width: 960px) {
  #porto-armi .porto-armi-checklist li {
    align-items: center;
  }
  #porto-armi .porto-armi-checklist__icon {
    margin-top: 0;
    align-self: center;
  }
  .documenti-checklist li {
    align-items: center;
  }
  .documenti-checklist__icon {
    margin-top: 0;
    align-self: center;
  }
}
#porto-armi-tipi .porto-armi-card {
  height: 100%;
}

#porto-armi-tipi .porto-armi-card .porto-armi__cta {
  width: 100%;
  margin-top: auto;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.poligono-hours {
  border-color: color-mix(in srgb, #e5e7eb 80%, #2b4187 20%);
  background: color-mix(in srgb, #f6f7f9 90%, white 10%);
}

.poligono-hours__list {
  display: grid;
  gap: 0.45rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.poligono-hours__note {
  margin-top: 1rem;
  margin-bottom: 0;
}

.poligono-history__timeline {
  --timeline-y: 2rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 0.75rem;
  padding: 0.25rem 0 0.2rem;
  margin-top: 1rem;
}
.poligono-history__timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--timeline-y);
  height: 2px;
  background: color-mix(in srgb, #e5e7eb 72%, #2b4187 28%);
}

.poligono-history__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.poligono-history__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.1rem 0.3rem 0;
}
.poligono-history__item::before {
  content: "";
  position: absolute;
  top: calc(var(--timeline-y) - 12px);
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #2b4187;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, #e5e7eb 68%, #2b4187 32%);
  z-index: 1;
}
.poligono-history__item p {
  margin: 1.45rem 0 0;
  padding: 0;
  color: #6b7280;
  line-height: 1.5;
  font-size: 0.92rem;
  max-width: 24ch;
}

.poligono-history__year {
  display: inline-block;
  margin: -0.75rem 0 1.5rem 0;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 900px) {
  .manuali-cards-grid {
    grid-template-columns: 1fr;
  }
  .manuali-showcase__head {
    flex-direction: column;
  }
  .manuali-showcase__paths {
    grid-template-columns: 1fr;
  }
  .manuali-showcase__path-link {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.45rem;
  }
  .manuali-showcase__path-step {
    width: auto;
    justify-self: start;
  }
  .dima-percorso-card__resources {
    grid-template-columns: 1fr;
  }
  .poligono-hours__list {
    grid-template-columns: 1fr;
  }
  .poligono-history__timeline {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .poligono-history__item {
    flex: 0 0 min(230px, 74vw);
    scroll-snap-align: start;
  }
  #timeline .poligono-history__timeline {
    --timeline-y: 0.95rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    overflow: visible;
    padding: 0.1rem 0 0.2rem;
    scroll-snap-type: none;
  }
  #timeline .poligono-history__timeline::before {
    left: 0.95rem;
    right: auto;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 2px;
    height: auto;
  }
  #timeline .poligono-history__item {
    flex: none;
    width: 100%;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 0 2rem;
  }
  #timeline .poligono-history__item::before {
    left: 0.95rem;
    top: calc(var(--timeline-y) - 12px);
    transform: translateX(-50%);
  }
  #timeline .poligono-history__item p {
    margin-top: 0.2rem;
    max-width: none;
  }
  #timeline .poligono-history__year {
    margin: 0 0 0.35rem;
  }
}
