/* Struttura della landing mobile fornita: foto, testo, iscrizione, percorso. */
html { scroll-behavior: smooth; }
.autopro-mobile-page { margin: 0; background: #001119; color: #001119; font-family:"Poppins", Arial, sans-serif; }
.autopro-mobile-page .mobile-landing { font-family:"Poppins", Arial, sans-serif; }
.autopro-mobile-page .skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 12px; background: #fff; transform: translateY(-150%); }
.autopro-mobile-page .skip-link:focus { transform: none; }
.autopro-mobile-page :focus-visible { outline: 3px solid #c28717; outline-offset: 4px; }
.autopro-mobile-page .brand-logo { display: inline-flex; align-items: center; min-height: 44px; }
.autopro-mobile-page .brand-logo img { display: block; width: 145px; height: auto; }
.autopro-mobile-page .hero-photo { width: 100%; height: 230px; overflow: hidden; background: #06394b; }
.autopro-mobile-page .hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 78%; }
.autopro-mobile-page h1, .autopro-mobile-page h2, .autopro-mobile-page h3 { font-family:"Poppins", Arial, sans-serif; letter-spacing: normal; }
.autopro-mobile-page main { display: block; max-width: none; margin: 0; padding: 0; }
.autopro-mobile-page #registrati { scroll-margin-top: 16px; }
.autopro-mobile-page .form-card { border: 0; box-shadow: none; color: #001119; }
.autopro-mobile-page .form-card h2 { color: #001119; }
.autopro-mobile-page form label { font-size: 13px; line-height: 1.5; color: #1f3640; margin-bottom: 14px; }
.autopro-mobile-page input:not([type=checkbox]), .autopro-mobile-page select { font-size: 16px; height: 46px; color: #001119; background: #fff; border-color: #c4d0d5; border-radius: 8px; }
.autopro-mobile-page .field-grid { gap: 10px; }
.autopro-mobile-page .field-hint { font-size: 12px; color: #3d4f57; }
.autopro-mobile-page .checkbox-label { font-size: 13px; line-height: 1.45; font-weight: 400; }
.autopro-mobile-page .checkbox-label input { width: 20px; height: 20px; accent-color: #06394b; }
.autopro-mobile-page .checkbox-label a, .autopro-mobile-page .form-documents a { color: #06394b; }
.autopro-mobile-page .group-note { padding: 12px; background: #eef3f5; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.autopro-mobile-page .form-documents { font-size: 13px; line-height: 1.6; }
.autopro-mobile-page .primary { background: #d51615; color: #fff; min-height: 54px; font-size: 17px; border-radius: 10px; }
.autopro-mobile-page .primary:hover { background: #b4101d; }
.autopro-mobile-page .form-footnote { font-size: 11px; }
.autopro-mobile-page .success-card { margin-top: 12px; padding: 24px 18px; }
.autopro-mobile-page footer { max-width: none; margin: 0; border: 0; }
.autopro-mobile-page footer a { min-height: 44px; display: inline-flex; align-items: center; }
.autopro-mobile-page .mini-label { color: #b4101d; }
@media (min-width: 700px) {
  .autopro-mobile-page .hero-photo { height: 420px; }
  .autopro-mobile-page .hero-photo img { object-position: center 75%; }
  .autopro-mobile-page .mobile-landing > header { padding-inline: 40px !important; }
  .autopro-mobile-page .mobile-landing > section > div:not(.hero-photo), .autopro-mobile-page main > section, .autopro-mobile-page footer { padding-left: max(40px, calc((100% - 760px) / 2)) !important; padding-right: max(40px, calc((100% - 760px) / 2)) !important; }
  .autopro-mobile-page #registrati { padding-top: 8px !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Desktop: stessi contenuti, distribuiti sulla larghezza disponibile. */
@media (min-width: 1000px) {
  .autopro-mobile-page .mobile-landing { max-width: none !important; }
  .autopro-mobile-page .landing-header { padding: 22px max(48px, calc((100% - 1200px) / 2)) !important; }
  .autopro-mobile-page .landing-header .brand-logo img { width: 190px; }
  .autopro-mobile-page .landing-header > a:last-child { padding: 15px 26px !important; font-size: 15px !important; }
  .autopro-mobile-page .hero-photo { height: clamp(380px, 35vw, 560px); }
  .autopro-mobile-page .hero-photo img { object-position: center 72%; }
  .autopro-mobile-page .mobile-landing > .landing-hero > .hero-copy {
    display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 64px !important; row-gap: 18px !important;
    padding: 48px max(48px, calc((100% - 1200px) / 2)) 56px !important;
  }
  .autopro-mobile-page .hero-copy > span, .autopro-mobile-page .hero-copy > h1, .autopro-mobile-page .hero-copy > p { grid-column: 1; }
  .autopro-mobile-page .hero-copy > h1 { font-size: clamp(38px, 3.4vw, 52px) !important; line-height: 1.12 !important; text-wrap: balance; }
  .autopro-mobile-page .hero-copy > p { font-size: 18px !important; line-height: 1.65 !important; }
  .autopro-mobile-page .hero-copy > .event-facts { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0 !important; }
  .autopro-mobile-page .event-facts > div { padding: 22px !important; gap: 8px !important; }
  .autopro-mobile-page .event-facts > div > span:last-child { font-size: 16px !important; }
  .autopro-mobile-page main > section, .autopro-mobile-page footer {
    padding: 72px max(48px, calc((100% - 1200px) / 2)) !important;
  }
  .autopro-mobile-page main > #registrati { padding-top: 0 !important; padding-bottom: 64px !important; }
  .autopro-mobile-page #form-card {
    display: grid !important; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto auto 1fr; gap: 22px 56px !important; padding: 40px !important; align-items: start;
  }
  .autopro-mobile-page #form-card > div:first-child { grid-column: 1; grid-row: 1; gap: 16px !important; }
  .autopro-mobile-page #form-card > div:first-child h2 { font-size: 34px !important; line-height: 1.15 !important; text-wrap: balance; }
  .autopro-mobile-page #form-card > div:first-child p { font-size: 16px !important; line-height: 1.6 !important; }
  .autopro-mobile-page #form-card > div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .autopro-mobile-page #form-card > div:nth-child(2) > div { padding: 18px 8px !important; }
  .autopro-mobile-page #form-card > div:nth-child(2) > div > span:last-child { font-size: 24px !important; }
  .autopro-mobile-page #form-card > span { grid-column: 1; grid-row: 3; }
  .autopro-mobile-page #form-card > p { grid-column: 1; grid-row: 4; text-align: left !important; font-size: 14px !important; line-height: 1.6 !important; }
  .autopro-mobile-page #registration-form { grid-column: 2; grid-row: 1 / 5; min-width: 0; }
  .autopro-mobile-page .success-card { width: min(100%, 680px); margin-inline: auto; padding: 40px; }
  .autopro-mobile-page main > section > h2, .autopro-mobile-page .village-section > div:first-child > h2 { font-size: 38px !important; line-height: 1.18 !important; }
  .autopro-mobile-page .village-section { gap: 32px !important; }
  .autopro-mobile-page .village-section > div:first-child { max-width: 760px; }
  .autopro-mobile-page .village-stops { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px !important; }
  .autopro-mobile-page .village-stops > div { padding: 24px !important; }
  .autopro-mobile-page .village-stops > div:last-child { grid-column: 1 / -1; align-items: center; }
  .autopro-mobile-page .day-activities { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px !important; }
  .autopro-mobile-page .day-activities > h3 { grid-column: 1 / -1; font-size: 24px !important; }
  .autopro-mobile-page .day-activities > div { padding: 24px !important; }
  .autopro-mobile-page .car-offer { padding: 32px 36px !important; gap: 14px !important; }
  .autopro-mobile-page .car-offer > h3 { font-size: 30px !important; }
  .autopro-mobile-page .car-offer > p { max-width: 840px; font-size: 16px !important; }
  .autopro-mobile-page .prizes-list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px !important; margin-block: 16px; }
  .autopro-mobile-page .prizes-list > div { flex-direction: column !important; align-items: flex-start !important; gap: 20px; padding: 28px !important; }
  .autopro-mobile-page .prizes-list > div > span:last-child { font-size: 44px !important; }
  .autopro-mobile-page .participation-steps { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px !important; margin-top: 20px; }
  .autopro-mobile-page .steps-section > a { align-self: flex-start; min-width: 240px; padding-inline: 32px; margin-top: 24px !important; }
  .autopro-mobile-page .faq-section { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px !important; }
  .autopro-mobile-page .faq-section > h2 { grid-column: 1 / -1; margin-bottom: 24px !important; }
  .autopro-mobile-page .faq-section > div { padding-block: 24px !important; }
  .autopro-mobile-page footer { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 56px !important; }
  .autopro-mobile-page footer > .brand-logo { grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .autopro-mobile-page footer > .brand-logo img { width: 190px; }
  .autopro-mobile-page footer > p, .autopro-mobile-page footer > div { grid-column: 2; }
}

/* Logo e iscrizione sovrapposti alla fotografia dell’hero. */
.autopro-mobile-page .mobile-landing { position: relative; }
.autopro-mobile-page .landing-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 17, 25, .85), rgba(0, 17, 25, .35) 70%, transparent) !important;
}

/* Informazioni evento: sfondo rosso Autopro. */
.autopro-mobile-page .event-facts { background: rgba(255, 255, 255, .22) !important; }
.autopro-mobile-page .event-facts > div { background: #d51615 !important; }
.autopro-mobile-page .event-facts > div > span { color: #fff !important; }

/* Fondo chiaro per introduzione e area iscrizione. */
.autopro-mobile-page .landing-hero,
.autopro-mobile-page main > .signup-section { background: #f7f5ef !important; }
.autopro-mobile-page .hero-copy { color: #001119; }
.autopro-mobile-page .hero-copy > h1 { color: #001119; }
.autopro-mobile-page .hero-copy > p,
.autopro-mobile-page .hero-copy > p span { color: #1f3640 !important; }

/* Caselle evidenziate: rosso Autopro e testo bianco. */
.autopro-mobile-page #form-card > div:nth-child(2) > div:first-child,
.autopro-mobile-page .prizes-list > div:first-child,
.autopro-mobile-page .village-stops > div:last-child {
  background: #d51615 !important;
  color: #fff !important;
}
.autopro-mobile-page #form-card > div:nth-child(2) > div:first-child > span,
.autopro-mobile-page .prizes-list > div:first-child > span {
  color: #fff !important;
}

/* Buono sconto: fondo chiaro coordinato all’introduzione. */
.autopro-mobile-page .car-offer {
  background: #f7f5ef !important;
  border: 1px solid #d51615;
  color: #001119 !important;
}
.autopro-mobile-page .car-offer > h3 { color: #001119; }
.autopro-mobile-page .car-offer > p { color: #1f3640 !important; }

/* Divisori delle domande frequenti nel rosso Autopro. */
.autopro-mobile-page .faq-section > div { border-color: #d51615 !important; }
