:root {
  --gold: #f7c948;
  --gold-dark: #c99700;
  --black: #101014;
  --charcoal: #19191f;
  --blue: #102a43;
  --teal: #0f766e;
  --white: #ffffff;
  --muted: #6b7280;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 201, 72, 0.65) rgba(16, 16, 20, 0.96);
}

body {
  padding-top: 74px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: #ffffff;
  overflow-x: hidden;
}

/* Scrollbar Chrome / Edge */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: rgba(16, 16, 20, 0.96);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--teal));
  border-radius: 999px;
  border: 2px solid rgba(16, 16, 20, 0.96);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff3a3, var(--gold));
}

.custom-navbar {
  background: rgba(16, 16, 20, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.navbar-brand {
  letter-spacing: 0.4px;
}

.navbar-brand {
  letter-spacing: 0.4px;
  gap: 14px !important;
  min-height: 54px;
}

.navbar-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: inline-block;
  transform: scale(1.28);
  transform-origin: center;
}

.nav-link {
  font-weight: 700;
}

.language-btn {
  border-radius: 999px;
  min-width: 70px;
}

.hero-section {
  margin-top: -74px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      105deg,
      rgba(8, 13, 22, 0.88) 0%,
      rgba(8, 13, 22, 0.72) 48%,
      rgba(15, 118, 110, 0.34) 100%
    ),
    url("img/RSSMRA85A01F205X.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #101014;
}

.hero-overlay {
  width: 100%;
  min-height: 100vh;
  padding-top: 74px;
  display: flex;
  align-items: center;
}

.hero-section .container {
  position: relative;
  z-index: 5;
}

.hero-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(247, 201, 72, 0.16);
  border: 1px solid rgba(247, 201, 72, 0.45);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.5px;
}

.hero-title {
  line-height: 1.02;
  max-width: 850px;
}

.hero-subtitle {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-trust-row div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-row div:last-child {
  border-right: 0;
}

.hero-trust-row strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
}

.hero-trust-row span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.btn {
  border-radius: 999px;
}

.btn-warning {
  background: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.btn-warning:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #111111;
}

.section-kicker {
  display: inline-block;
  font-weight: 900;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
}

.section-kicker.light {
  color: var(--gold);
}

.services-section {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding-top: 80px;
  padding-bottom: 80px;
}

.service-card {
  height: 100%;
  padding: 30px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(247, 201, 72, 0.65);
  box-shadow: 0 28px 80px rgba(16, 42, 67, 0.16);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--gold), #fff3a3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 1.8rem;
}

.service-card h5 {
  font-weight: 850;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.booking-section {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  padding-top: 80px;
  padding-bottom: 80px;
}

.booking-bg {
  position: absolute;
  inset: 0;
  background:
    url("img/dasjfbd59dsj549.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.booking-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(247, 201, 72, 0.22), transparent 30%),
    linear-gradient(115deg, rgba(16, 16, 20, 0.96), rgba(16, 42, 67, 0.82), rgba(15, 118, 110, 0.74));
}

.booking-intro {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.glass-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.map-card,
.booking-card {
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.booking-card {
  background: rgba(255, 255, 255, 0.97);
}

.route-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.route-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.25s ease;
}

.route-step span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.route-step strong {
  display: block;
}

.route-step small {
  display: block;
  font-size: 0.78rem;
}

.route-step.active {
  color: #111111;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(247, 201, 72, 0.28);
}

.route-step.active span {
  background: #111111;
  color: var(--gold);
}

.search-box .form-control {
  border: 0;
}

#taxiMap {
  width: 100%;
  height: 475px;
  border-radius: 28px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.78);
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.leaflet-container {
  width: 100%;
  height: 100%;
}

.leaflet-routing-container {
  display: none;
}

.route-summary-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.route-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
}

.route-summary-item i {
  font-size: 1.5rem;
  color: var(--teal);
}

.route-summary-item small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.route-summary-item strong {
  display: block;
  font-size: 1.15rem;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.form-label {
  font-weight: 750;
}

.form-control,
.form-select {
  border-radius: 18px;
  padding: 12px 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(247, 201, 72, 0.24);
}

.phone-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 10px;
}

.prefix-select {
  font-weight: 800;
}

.premium-alert {
  border-radius: 22px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.26), rgba(15, 118, 110, 0.12));
  color: #111111;
}

.contact-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.contact-option {
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 12px;
  font-weight: 850;
  color: #333333;
}

.contact-slider {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #fff3a3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

#contactEmail:checked ~ .contact-slider {
  transform: translateX(100%);
}

.submit-btn {
  box-shadow: 0 18px 34px rgba(247, 201, 72, 0.24);
}

.footer-section {
  padding: 26px 0;
  background: var(--black);
  color: white;
  position: relative;
  z-index: 20;
}

.footer-section h6 {
  font-size: 0.95rem;
}

.footer-section p {
  line-height: 1.35;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  color: var(--gold);
}

/* Pulsante torna su */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #111111;
  background: var(--gold);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #fff3a3;
}

/* Rimuove eventuali residui delle vecchie icone social */
.social-floating {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

.delay-3 {
  transition-delay: 0.32s;
}

section {
  scroll-margin-top: 92px;
}

/* Tablet */
@media (max-width: 991px) {
  body {
    padding-top: 66px;
  }

  .hero-section {
    margin-top: -66px;
  }

  .hero-overlay {
    padding-top: 92px;
    padding-bottom: 56px;
  }

  #taxiMap {
    height: 430px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh !important;
    background:
      linear-gradient(
        105deg,
        rgba(16, 16, 20, 0.88) 0%,
        rgba(16, 42, 67, 0.68) 48%,
        rgba(15, 118, 110, 0.30) 100%
      ),
      url("img/RSSMRA85A01F205X.png") !important;
    background-size: auto 92% !important;
    background-repeat: no-repeat !important;
    background-position: 48% bottom !important;
    background-color: #101014 !important;
  }

  .hero-overlay {
    min-height: 100vh !important;
    padding-top: 96px !important;
    padding-bottom: 42px !important;
  }

  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.08 !important;
    max-width: 340px !important;
  }

  .hero-subtitle {
    max-width: 330px !important;
    font-size: 1rem !important;
  }

  .hero-trust-row {
    grid-template-columns: 1fr;
    margin-top: 2rem !important;
    max-width: 100% !important;
    backdrop-filter: blur(8px);
  }

  .hero-trust-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-trust-row div:last-child {
    border-bottom: 0;
  }

  .route-stepper,
  .route-summary-card {
    grid-template-columns: 1fr;
  }

  .map-card,
  .booking-card {
    padding: 20px;
    border-radius: 26px;
  }

  #taxiMap {
    height: 360px;
    border-radius: 22px;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .footer-section {
    padding: 22px 0;
    text-align: left;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }

  .navbar-brand {
    gap: 12px !important;
    min-height: 48px;
  }

  .navbar-logo {
    width: 48px;
    height: 48px;
    transform: scale(1.25);
  }
}

/* Telefoni piccoli */
@media (max-width: 420px) {
  .hero-title {
    font-size: 2.1rem !important;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  #taxiMap {
    height: 320px;
  }

  .contact-option {
    font-size: 0.9rem;
  }
}

.footer-separator {
  margin: 18px 0 12px;
  border-color: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Pagina Privacy */
.privacy-page {
  background: #f8fafc;
}

.privacy-hero {
  padding: 120px 0 70px;
  background:
    linear-gradient(
      105deg,
      rgba(8, 13, 22, 0.94) 0%,
      rgba(16, 42, 67, 0.86) 50%,
      rgba(15, 118, 110, 0.45) 100%
    ),
    url("img/RSSMRA85A01F205X.png");
  background-size: cover;
  background-position: center;
  color: white;
}

.privacy-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -1px;
}

.privacy-subtitle {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.privacy-content-section {
  padding: 70px 0;
}

.privacy-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 42, 67, 0.08);
}

.privacy-card h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--black);
}

.privacy-card h2:first-child {
  margin-top: 0;
}

.privacy-card h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--teal);
}

.privacy-card p,
.privacy-card li {
  color: #374151;
  line-height: 1.75;
}

.privacy-card a {
  color: var(--teal);
  font-weight: 800;
}

.privacy-note {
  margin-top: 34px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 201, 72, 0.18);
  border: 1px solid rgba(247, 201, 72, 0.55);
  color: #111111;
}

@media (max-width: 767px) {
  .privacy-hero {
    padding: 105px 0 52px;
    background-position: center bottom;
  }

  .privacy-content-section {
    padding: 42px 0;
  }

  .privacy-card {
    padding: 24px;
    border-radius: 22px;
  }

  .privacy-card h2 {
    font-size: 1.18rem;
  }
}

/* Suggerimenti ricerca mappa */
.search-box {
  position: relative;
  z-index: 50;
}

.place-suggestions {
  display: none;
  position: relative;
  z-index: 60;
  margin-top: -4px;
  margin-bottom: 16px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(16, 42, 67, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.place-suggestions.show {
  display: block;
}

.place-suggestion-helper {
  padding: 12px 16px 8px;
  font-size: 0.82rem;
  font-weight: 850;
  color: #6b7280;
  background: #f8fafc;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.place-suggestion-item {
  width: 100%;
  border: 0;
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.place-suggestion-item:not(:last-child) {
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.place-suggestion-item:hover {
  background: rgba(247, 201, 72, 0.16);
}

.place-suggestion-item i {
  color: var(--teal);
  font-size: 1.15rem;
  margin-top: 2px;
}

.place-suggestion-item strong {
  display: block;
  color: #111111;
  font-size: 0.98rem;
  line-height: 1.2;
}

.place-suggestion-item span {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.3;
}

.place-suggestion-empty {
  padding: 14px 16px;
  color: #6b7280;
  font-weight: 750;
}

@media (max-width: 767px) {
  .place-suggestions {
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .place-suggestion-item {
    padding: 13px 14px;
  }

  .place-suggestion-item strong {
    font-size: 0.95rem;
  }

  .place-suggestion-item span {
    font-size: 0.82rem;
  }
}

/* Pulsante posizione e messaggi percorso */
.use-location-btn {
  width: 100%;
  margin: -2px 0 10px;
  border: 1px solid rgba(247, 201, 72, 0.45);
  background: rgba(247, 201, 72, 0.16);
  color: #ffffff;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 850;
  text-align: center;
  transition: all 0.2s ease;
}

.use-location-btn:hover {
  background: rgba(247, 201, 72, 0.28);
  border-color: rgba(247, 201, 72, 0.8);
}

.use-location-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.route-instruction {
  margin: 0 0 14px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 750;
}

.route-instruction.success {
  background: rgba(15, 118, 110, 0.24);
  border-color: rgba(15, 118, 110, 0.55);
  color: #ffffff;
}

.route-instruction.warning {
  background: rgba(247, 201, 72, 0.22);
  border-color: rgba(247, 201, 72, 0.65);
  color: #ffffff;
}

.route-instruction.error {
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(220, 38, 38, 0.6);
  color: #ffffff;
}

@media (max-width: 767px) {
  .use-location-btn {
    font-size: 0.92rem;
    padding: 11px 13px;
  }

  .route-instruction {
    font-size: 0.86rem;
  }
}

.payment-service-card {
  position: relative;
  overflow: hidden;
}

.payment-compact {
  display: grid;
  gap: 10px;
}

.payment-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
  font-size: 0.92rem;
  font-weight: 850;
}

.payment-main-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 12px;
  background: rgba(247, 201, 72, 0.24);
  border: 1px solid rgba(247, 201, 72, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 1rem;
}

.payment-logo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  padding-left: 44px;
}

.payment-logo-img {
  height: 30px;
  width: auto;
  max-width: 86px;
  object-fit: contain;
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.payment-logo-img-dark {
  background: transparent;
}

.payment-logo-img.visa-logo {
  height: 24px;
  max-width: 76px;
}

.payment-logo-img.mastercard-logo {
  height: 34px;
  max-width: 86px;
}

.payment-logo-img.postepay-logo {
  height: 19px;
  max-width: 80px;
}

.payment-logo-img.sumup-logo {
  height: 60px;
  max-width: 110px;
}