:root {
  color-scheme: light;
  --night: #081e49;
  --deep: #103579;
  --yellow: #ffce32;
  --blue: #164bad;
  --paper: #fffbef;
  --gold-tint: #fff1bd;
  --button-bg: var(--deep);
  --button-hover: var(--night);
  --button-text: var(--white);
  --white: #fff;
  --line: #e8dbab;
  --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 var(--line); }
.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 {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #142a42;
  color: #ffce65;
}
.brand-mark::before {
  content: "";
  width: 1.65rem;
  height: 1rem;
  background: currentColor;
  clip-path: polygon(0 10%, 21% 10%, 43% 71%, 70% 8%, 100% 8%, 62% 100%, 33% 100%, 46% 76%, 29% 92%);
}
.site-footer .brand-mark { background: #ffce65; color: #142a42; }
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(--yellow); color: var(--night); }
.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; }
.contact .eyebrow, .contact h1 em, .service-intro h1 em { color: var(--deep); }
.lede { max-width: 39ch; color: #e0e9fa; font-size: clamp(1rem, 2vw, 1.25rem); margin-block: 1.4rem 1.8rem; }
.contact .lede, .service-intro .lede { color: var(--night); }
.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(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--button-hover); color: var(--button-text); text-decoration: none; }
.button-outline { background: var(--button-bg); color: var(--button-text); }
.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: var(--gold-tint);
  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: var(--gold-tint); padding: 1rem; }
.confirmation p { margin: .25rem 0 0; }
.site-footer { background: #142a42; color: var(--white); padding: 2.5rem 0 1.1rem; }
.site-footer p { color: #e2ebf2; }
.site-footer a:focus-visible { outline-color: #ffce65; }
.legal-line { border-top: 1px solid #53677b; 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, var(--gold-tint) 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(--yellow); color: var(--night); border-radius: 1rem; }
.about-aside h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.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(--yellow); color: var(--night); 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; }
.guide { padding-bottom: clamp(3rem, 7vw, 6rem); }
.guide-index { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.guide-index a { background: var(--gold-tint); 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: var(--gold-tint); 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(--deep);
}
.provisional-note {
  padding: .75rem 1rem;
  background: var(--gold-tint);
  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: var(--gold-tint);
  color: var(--deep);
  font-weight: 800;
  border-radius: 50%;
}
.detail-steps p { margin: .45rem 0 0; color: var(--muted); }
.detail-audience { background: var(--gold-tint); 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 { background: var(--yellow); color: var(--night); }
.detail-autostrada .detail-back { color: var(--deep); }
.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(--deep); }
.detail-autostrada .detail-body, .detail-spese .detail-body { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

.detail-parcheggi .detail-hero { background: var(--gold-tint); 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::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #081e49ed, #081e4940), linear-gradient(0deg, #081e49c0, transparent 70%); }
.detail-europa .detail-photo img { height: 100%; }
.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(--gold-tint); color: var(--night); }
.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-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 1rem;
  padding-block: 1.5rem;
}
.home-intro-copy {
  display: grid;
  align-content: center;
  background: #142a42;
  color: #fffaf0;
  border-radius: 1.4rem;
  padding: clamp(1.7rem, 4vw, 4rem);
}
.home-intro h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
.home-intro h1 em { color: #ffce65; }
.home-intro p { max-width: 37ch; color: #e2ebf2; font-size: 1.12rem; margin-block: 1.4rem 1.8rem; }
.home-intro .button { background: #ffce65; color: #142a42; }
.home-intro .button:hover { background: #ffe2a1; }
.home-intro a:focus-visible { outline-color: #ffce65; }
.home-intro-photo { display: block; width: 100%; height: 100%; min-height: 28rem; object-fit: cover; border-radius: 1.4rem; }
.home-services { margin-top: 1.2rem; background: #e9f0f3; }
.home-services-inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.home-service-links { border-top: 1px solid #aebdc8; }
.home-service-links a { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) auto; gap: .75rem; align-items: center; padding: 1rem .5rem; border-bottom: 1px solid #aebdc8; text-decoration: none; }
.home-service-links a:hover { background: #f7fafb; }
.home-service-links span { color: var(--muted); font-size: .93rem; }
.home-journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.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: 1.9; }
.home-journey > div { padding: clamp(1.2rem, 3vw, 2rem); }
.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; border-top: 1px solid var(--line); }
.home-fleet img { aspect-ratio: 1.35; border-radius: 1rem; }
.home-checks { padding-inline-start: 1.15rem; }
.home-checks li + li { margin-top: .5rem; }
.home-checklist { background: #e9f0f3; }
@media (max-width: 850px) {
  .home-intro, .home-services-inner, .home-fleet { grid-template-columns: minmax(0, 1fr); }
  .home-intro-photo { aspect-ratio: 1.65; min-height: 0; height: auto; }
}
@media (max-width: 600px) {
  .home-journey-grid { grid-template-columns: minmax(0, 1fr); }
  .home-service-links a { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; }
  .home-service-links a span:first-of-type { grid-row: 2; }
  .home-service-links a span:last-child { grid-column: 2; grid-row: 1 / span 2; }
}

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