:root {
  color-scheme: light;
  --night: #081e49;
  --deep: #103579;
  --yellow: #ffce32;
  --blue: #164bad;
  --paper: #f3f6fc;
  --white: #fff;
  --line: #d7e1f3;
  --muted: #425574;
  --primary: var(--night);
  --text-label: var(--muted);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--night);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #2454c6;
  outline-offset: 4px;
}
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.site-header { background: var(--white); color: var(--night); border-bottom: 1px solid #d7e1f3; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 5.2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1rem; line-height: 1.05; font-weight: 800; text-decoration: none; }
.brand-mark { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; background: var(--yellow); border-radius: .6rem; }
.brand-mark::before {
  content: "";
  width: 60%;
  height: 60%;
  background: var(--night);
  clip-path: polygon(20% 100%, 0 100%, 29% 42%, 71% 0, 100% 0, 53% 49%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: var(--night);
  transform: translate(.47rem, .43rem);
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.5rem; }
nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.hero, .contact { background: var(--deep); color: var(--white); }
.hero-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; }
.hero-actions > a:not(.button) { font-weight: 650; }
.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.13;
  object-fit: cover;
  border-radius: 1.4rem;
  background: var(--deep);
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.042em; }
h1 { font-size: clamp(2.7rem, 6.3vw, 6.2rem); }
h1 em { color: var(--yellow); font-style: normal; }
h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
h3 { font-size: 1.38rem; }
.eyebrow { margin: 0 0 1.1rem; color: var(--yellow); font-size: .77rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 750; }
.lede { max-width: 39ch; color: #e0e9fa; font-size: clamp(1rem, 2vw, 1.25rem); margin-block: 1.4rem 1.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--yellow);
  color: var(--night);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #ffe276; color: var(--night); text-decoration: none; }
.button-outline { background: var(--yellow); color: var(--night); }
.hero .button:focus-visible, .site-footer a:focus-visible { outline-color: var(--yellow); }
.button:disabled { opacity: .58; cursor: default; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.card {
  padding: clamp(1.25rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 8px 24px #102f7210;
}
.card-symbol {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  border-radius: .75rem;
  background: #e7efff;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.card p, .narrow p { color: var(--muted); margin: .85rem 0 0; }
.narrow { max-width: 55rem; }
.steps { border-top: 1px solid var(--line); }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; padding-left: 1.4rem; margin: 2rem 0; }
.steps li::marker { font-weight: 800; }
.steps li span { display: block; color: var(--muted); }
.contact-grid { align-items: start; }
.contact h1 { font-size: clamp(2.45rem, 5.5vw, 5.15rem); overflow-wrap: anywhere; }
.contact a:not(.button) { overflow-wrap: anywhere; }
.form-panel { background: var(--white); color: var(--night); border-radius: 1.15rem; padding: clamp(1.3rem, 4vw, 2.7rem); }
.form-panel h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.form-note { color: var(--muted); margin-top: .5rem; }
.form-group { margin: .95rem 0; }
.form-group label { display: block; font-weight: 650; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .7rem .75rem; margin-top: .2rem; font: inherit; border: 1px solid #93a7ca; border-radius: .4rem; }
.consents { display: grid; gap: .8rem; margin: 1.3rem 0; font-size: .94rem; }
.consents label { display: flex; align-items: baseline; gap: .55rem; }
.consents input { flex: 0 0 auto; accent-color: #164bad; }
.form-panel button { width: 100%; }
.field-error { color: #9c2525; font-size: .9rem; margin-top: .2rem; }
.confirmation { margin-top: 1.4rem; border-radius: .6rem; background: #e6efff; padding: 1rem; }
.confirmation p { margin: .25rem 0 0; }
.site-footer { background: var(--deep); color: var(--white); padding: 2.5rem 0 1.1rem; }
.site-footer p { color: #e0e9fa; }
.legal-line { border-top: 1px solid #5176ba; padding-top: 1rem; font-size: .85rem; overflow-wrap: anywhere; }
.legal-content { width: min(100% - 2rem, 54rem); margin: clamp(1.5rem, 6vw, 4.5rem) auto; padding: clamp(1.25rem, 5vw, 3.6rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--white); overflow-wrap: anywhere; }
.legal-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.25rem; letter-spacing: -.015em; }
.legal-content th, .legal-content td { border: 1px solid var(--line); text-align: left; padding: .5rem; }
.legal-content table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.section-subhead { display: block; color: var(--muted); margin-top: .5rem; font-size: .9rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .contact-grid, .card-grid, .steps ol { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 1.42; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .header-inner { min-height: 0; padding-block: .85rem; align-items: flex-start; gap: .75rem; }
  .header-inner nav { justify-content: flex-end; gap: .35rem .65rem; }
  .header-inner .button { padding: .4rem .55rem; font-size: .83rem; }
}

.about-opening { background: linear-gradient(180deg, #e7efff 84%, var(--paper) 84%); }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: clamp(1.7rem, 6vw, 5rem);
  padding-top: clamp(1.5rem, 5vw, 4rem);
}
.about-intro { align-self: center; padding-bottom: 2rem; }
.about-intro h1 { font-size: clamp(3rem, 7.5vw, 7rem); max-width: 9ch; }
.about-intro .eyebrow { color: var(--blue); }
.about-intro h1 + p {
  max-width: 31ch;
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
  border-left: .3rem solid var(--yellow);
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  color: var(--muted);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.7rem, 7vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.about-audience p { color: var(--muted); max-width: 43ch; }
.about-aside { padding: clamp(1.3rem, 4vw, 2.5rem); background: var(--deep); color: var(--white); border-radius: 1rem; }
.about-aside h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.about-aside a:focus-visible { outline-color: var(--yellow); }
.about-link { color: var(--blue); font-weight: 750; }
.about-steps { padding: 0; list-style: none; counter-reset: about-step; display: grid; gap: .9rem; margin-block: 1.3rem 1.5rem; }
.about-steps li { counter-increment: about-step; display: flex; align-items: start; gap: .8rem; }
.about-steps li::before {
  content: counter(about-step);
  flex: 0 0 1.85rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--yellow);
  border-radius: 50%;
  font-weight: 750;
}
.service-intro { background: var(--deep); color: var(--white); padding-block: clamp(2.5rem, 6vw, 5rem); }
.service-intro h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.service-intro .lede { max-width: 62ch; margin-bottom: 0; }
.service-download { margin-top: 1.5rem; }
.service-download:focus-visible { outline-color: var(--yellow); }
.guide { padding-bottom: clamp(3rem, 7vw, 6rem); }
.guide-index { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.guide-index a { background: #e7efff; border-radius: 1.5rem; padding: .5rem .85rem; color: var(--night); }
.guide-section { margin-top: clamp(2rem, 5vw, 4rem); }
.guide-section, .guide-section article, .guide-checklist { scroll-margin-top: 1rem; }
.guide-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 1.3rem; }
.guide-cards article { display: flex; flex-direction: column; align-items: flex-start; }
.guide-cards article p { flex: 1; }
.guide-cards article > a { display: block; margin-top: 1rem; font-weight: 650; color: var(--blue); }
.guide-checklist { background: #e7efff; padding: clamp(1.25rem, 4vw, 3rem); margin-top: 3rem; border-radius: 1rem; }
.guide-checklist ul { padding-left: 1.35rem; }
.guide-checklist li + li { margin-top: .4rem; }
@media (max-width: 760px) {
  .about-layout, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-intro { padding-bottom: 0; }
  .guide-index { gap: .5rem; }
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 1.15rem 3.5rem 1.15rem 1.15rem;
  background: var(--deep);
}
.about-photo img, .service-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}
.about-photo img { height: auto; aspect-ratio: 1.38; }
.service-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
}
.service-photo {
  aspect-ratio: 1.5;
  border-radius: 1rem;
  box-shadow: .55rem .55rem 0 var(--yellow);
}
.provisional-note {
  padding: .75rem 1rem;
  background: #fff3c9;
  border-left: .25rem solid var(--yellow);
}
@media (max-width: 760px) {
  .about-photo img { aspect-ratio: 1.6; }
  .service-intro-grid { grid-template-columns: 1fr; }
  .service-photo { width: calc(100% - .55rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .about-intro, .service-intro-grid > div, .contact-grid > div, .reveal-enter {
    animation: enter-up .55s cubic-bezier(.2, .65, .35, 1) both;
  }
  .hero-image, .about-photo, .service-photo, .form-panel {
    animation: enter-up .65s cubic-bezier(.2, .65, .35, 1) .11s both;
  }
  .card { transition: box-shadow .22s ease, border-color .22s ease; }
  .card:hover, .card:focus-within { border-color: #9ab2e2; box-shadow: 0 12px 30px #102f7220; }
}
@keyframes enter-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-back {
  display: inline-block;
  color: var(--yellow);
  font-weight: 650;
  margin-bottom: 1.15rem;
}

.detail-hero { padding-block: clamp(2.4rem, 6vw, 5rem); background: var(--deep); color: var(--white); }
.detail-hero-grid { display: grid; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.detail-copy h1 { font-size: clamp(2.5rem, 5.3vw, 5.65rem); overflow-wrap: anywhere; }
.detail-copy p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 53ch; margin: 1.2rem 0 0; }
.detail-photo { margin: 0; background: var(--deep); overflow: hidden; border-radius: 1rem; }
.detail-photo img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.detail-body { display: grid; align-items: start; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.detail-instructions h2, .detail-audience h2 { font-size: clamp(1.65rem, 3.2vw, 2.85rem); }
.detail-steps { display: grid; gap: .85rem; margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: service-step; }
.detail-steps li { counter-increment: service-step; display: flex; align-items: start; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 2vw, 1.5rem); }
.detail-steps li::before {
  content: counter(service-step);
  flex: 0 0 2.1rem;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #e7efff;
  color: var(--deep);
  font-weight: 800;
  border-radius: 50%;
}
.detail-steps p { margin: .45rem 0 0; color: var(--muted); }
.detail-audience { background: #e7efff; padding: clamp(1.3rem, 3vw, 2.5rem); border-radius: 1rem; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.detail-actions a:not(.button) { font-weight: 650; }

.detail-autostrada .detail-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.detail-autostrada .detail-photo { box-shadow: .55rem .55rem 0 var(--yellow); }
.detail-autostrada .detail-body, .detail-spese .detail-body { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

.detail-parcheggi .detail-hero { background: #e7efff; color: var(--night); }
.detail-parcheggi .detail-back, .detail-spese .detail-back, .detail-dispositivi .detail-back { color: var(--blue); }
.detail-parcheggi .detail-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.detail-parcheggi .detail-copy { grid-column: 2; grid-row: 1; }
.detail-parcheggi .detail-photo { grid-column: 1; grid-row: 1; border-radius: 1rem 4rem 1rem 1rem; }
.detail-parcheggi .detail-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-parcheggi .detail-steps li { flex-direction: column; }
.detail-parcheggi .detail-steps li::before { flex-basis: auto; width: 2.3rem; background: var(--yellow); }

.detail-europa .detail-hero { padding: 0; position: relative; }
.detail-europa .detail-hero-grid { min-height: clamp(26rem, 52vw, 40rem); align-items: end; }
.detail-europa .detail-copy { position: relative; z-index: 1; padding-block: 4rem; }
.detail-europa .detail-photo { position: absolute; inset: 0; border-radius: 0; }
.detail-europa .detail-photo img { height: 100%; }
.detail-europa .detail-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #081e49ed, #081e4940), linear-gradient(0deg, #081e49c0, transparent 70%); }
.detail-europa .detail-instructions { max-width: 62rem; }
.detail-europa .detail-steps li { background: transparent; border-width: 0 0 1px; border-radius: 0; }

.detail-spese .detail-hero, .detail-dispositivi .detail-hero { background: var(--white); color: var(--night); }
.detail-spese .detail-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.detail-spese .detail-photo img { aspect-ratio: 1.8; }
.detail-spese .detail-audience { background: var(--deep); color: var(--white); }
.detail-spese .detail-steps li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }

.detail-dispositivi .detail-hero-grid { text-align: center; }
.detail-dispositivi .detail-copy p { margin-inline: auto; }
.detail-dispositivi .detail-photo img { aspect-ratio: 2.55; object-position: center 44%; }
.detail-dispositivi .detail-instructions { width: min(100%, 53rem); margin-inline: auto; }
.detail-dispositivi .detail-steps li { border-left: .3rem solid var(--blue); }

@media (max-width: 760px) {
  .detail .detail-hero-grid, .detail .detail-body, .detail .detail-steps { grid-template-columns: minmax(0, 1fr); }
  .detail-parcheggi .detail-copy, .detail-parcheggi .detail-photo { grid-column: auto; grid-row: auto; }
  .detail-dispositivi .detail-photo img { aspect-ratio: 1.55; }
  .detail-autostrada .detail-photo { width: calc(100% - .55rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .detail-copy { animation: enter-up .55s cubic-bezier(.2, .65, .35, 1) both; }
  .detail-photo { animation: detail-photo-in .65s ease-out both; }
}
@keyframes detail-photo-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-showcase {
  display: grid;
  isolation: isolate;
  position: relative;
  min-height: clamp(36rem, 76svh, 52rem);
  background: var(--night);
  color: var(--white);
}
.home-showcase-photo, .home-showcase::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-showcase-photo { z-index: -2; object-fit: cover; object-position: center 54%; }
.home-showcase::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #06152af5 0%, #06152ae0 27%, #06152a85 55%, #06152a12 100%),
    linear-gradient(0deg, #06152abc, transparent 56%);
}
.home-showcase-inner { align-self: center; padding-block: 4rem 3rem; }
.home-message { min-height: 19rem; }
.home-message h1 { font-size: clamp(3rem, 7.5vw, 7.15rem); max-width: 10ch; text-wrap: balance; }
.home-message .lede { max-width: 42ch; margin-bottom: 1.15rem; }
.home-showcase .hero-actions a:focus-visible { outline-color: var(--yellow); }
@media (max-width: 760px) {
  .home-showcase { min-height: 37rem; }
  .home-showcase-photo { object-position: 66% center; }
  .home-showcase::before { background: linear-gradient(90deg, #06152af5, #06152a9e 72%, #06152a60); }
  .home-message { min-height: 17rem; }
  .home-message h1 { font-size: clamp(2.75rem, 11vw, 4.7rem); }
}

.home-journeys { background: #e7efff; }
.home-journey-grid { max-width: 40rem; margin-top: 2rem; }
.home-journey { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; }
.home-journey img, .home-fleet img { display: block; width: 100%; height: auto; object-fit: cover; }
.home-journey img { aspect-ratio: 2.1; }
.home-journey > div { position: relative; padding: 2.25rem clamp(1.2rem, 3vw, 2rem) 1.65rem; }
.home-journey .card-symbol { position: absolute; top: -1.65rem; background: var(--yellow); color: var(--night); }
.home-journey p, .home-fleet p { color: var(--muted); }
.home-journey a, .home-fleet a { color: var(--blue); font-weight: 700; }
.home-fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.home-fleet img { aspect-ratio: 1.35; border-radius: 1rem; }
.home-checks { display: grid; gap: .75rem; list-style: none; padding: 0; margin-block: 1.4rem; }
.home-checks li { display: flex; gap: .65rem; align-items: baseline; }
.home-checks li::before { content: '✓'; font-weight: 850; color: var(--blue); }
@media (max-width: 760px) {
  .home-fleet { grid-template-columns: minmax(0, 1fr); }
}

.guide-symbol {
  background: var(--yellow);
  color: var(--night);
}
