/* ==========================================================================
   AUTOSCUOLA GATTONI — Stylesheet Globale
   Palette: asfalto scuro + giallo segnaletica + rosso stop
   ========================================================================== */

:root {
  --asphalt:         #16171b;
  --asphalt-2:       #1e2024;
  --charcoal:        #232529;
  --charcoal-2:      #2b2e33;
  --line-yellow:     #f5b700;
  --line-yellow-dim: #c99400;
  --stop-red:        #e1483d;
  --off-white:       #f3efe6;
  --muted:           #9a9ca3;
  --border-soft:     rgba(243, 239, 230, 0.08);

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Work Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --nav-height: 84px;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--asphalt);
  color: var(--off-white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul { 
  list-style: none; 
}

img { 
  max-width: 100%; 
  display: block; 
}

::selection { 
  background: var(--line-yellow); 
  color: var(--asphalt); 
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
}

.navbar:hover,
.navbar:focus-within {
  background-color: rgba(22, 23, 27, 0.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar__inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar:hover .navbar__brand { 
  opacity: 1; 
}

.navbar__brand:hover { 
  transform: translateY(-1px); 
}

.navbar__logo {
  height: 42px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  transition: height 0.35s ease;
}

.navbar:hover .navbar__logo { 
  height: 46px; 
}

.navbar__logo-fallback {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--line-yellow);
  border: 2px solid var(--line-yellow);
  padding: 4px 12px;
  border-radius: 4px;
}

.navbar__links {
  display: flex;
  gap: 40px;
}

.navbar__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--off-white);
  padding: 6px 2px;
  display: inline-block;
  transition: font-size 0.35s ease, color 0.3s ease, letter-spacing 0.35s ease;
}

.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--line-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar__link:hover { 
  color: var(--line-yellow); 
}

.navbar__link:hover::after { 
  transform: scaleX(1); 
}

.navbar:hover .navbar__link {
  font-size: 16.5px;
  letter-spacing: 0.08em;
}

.navbar__link.is-current {
  color: var(--line-yellow);
}

.navbar__link.is-current::after {
  transform: scaleX(1);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   HERO (index.html)
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(245, 183, 0, 0.28), transparent 70%),
    linear-gradient(180deg, #2a2018 0%, #201a1c 28%, #171418 55%, #101114 100%);
  background-size: cover;
}

.hero__bg::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 140%;
  height: 55%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(30,26,26,0) 0%, #131315 70%);
  clip-path: polygon(44% 0%, 56% 0%, 78% 100%, 22% 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(16,17,20,0.55) 0%, rgba(16,17,20,0.35) 45%, rgba(16,17,20,0.92) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--line-yellow);
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--off-white);
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
}

.hero__slogan {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hero__slogan::before,
.hero__slogan::after {
  content: '—';
  color: var(--line-yellow-dim);
  margin: 0 12px;
}

.hero__cta {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 34px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--line-yellow);
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 183, 0, 0.25);
  background: #ffc72c;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--line-yellow), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   SEZIONI CONTENUTO & LAYOUT PAGINE
   ========================================================================== */

.content { 
  background: var(--asphalt); 
}

.content--page {
  padding-top: calc(var(--nav-height) + 20px);
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section {
  padding: 110px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--alt { 
  background: var(--asphalt-2); 
  max-width: 100%; 
}

.section--alt .section__head,
.section--alt .neopatentati-section,
.section--alt .projects-slider-wrapper,
.section--alt .vehicle-showcase { 
  max-width: 1200px; 
  margin-left: auto; 
  margin-right: auto; 
}

.section__head { 
  margin-bottom: 56px; 
}

.section__head--center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section__subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 14px;
  line-height: 1.6;
}

.section__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--line-yellow);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* --- Griglia Uniforme per Sezioni / App / Neopatentati --- */

.app-section {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 40px;
  align-items: stretch;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.app-btn:hover {
  transform: translateX(6px);
  border-color: var(--line-yellow);
  background: var(--charcoal-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.app-btn__icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.app-btn:hover .app-btn__icon-wrapper {
  background: rgba(245, 183, 0, 0.15);
  border-color: rgba(245, 183, 0, 0.4);
}

.app-btn__icon {
  width: 26px;
  height: 26px;
  color: var(--off-white);
  transition: color 0.25s ease, transform 0.25s ease;
}

.app-btn:hover .app-btn__icon {
  color: var(--line-yellow);
  transform: scale(1.1);
}

.app-btn__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--off-white);
  transition: color 0.25s ease;
}

.app-btn:hover .app-btn__name {
  color: var(--line-yellow);
}

.app-detail {
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.app-detail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--line-yellow);
  margin-bottom: 18px;
}

.app-detail__text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   PROGETTI FUTURI SLIDER (Uniforme con app-section e frecce laterali)
   ========================================================================== */

.projects-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

.projects-slider-viewport {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.projects-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.projects-slide.is-active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.4s ease forwards;
}

.projects-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--line-yellow);
  border: 1px solid rgba(245, 183, 0, 0.3);
  background: rgba(245, 183, 0, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
}

/* Frecce di navigazione ai lati */
.projects-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  color: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.projects-nav-btn:hover {
  background: var(--line-yellow);
  border-color: var(--line-yellow);
  color: var(--asphalt);
  transform: translateY(-50%) scale(1.08);
}

.projects-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.projects-nav-btn svg {
  width: 20px;
  height: 20px;
}

.projects-nav-btn--prev {
  left: 0;
}

.projects-nav-btn--next {
  right: 0;
}

/* Indicatori a punti (Dots) */
.projects-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.projects-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--charcoal-2);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.projects-dot.is-active {
  background: var(--line-yellow);
  border-color: var(--line-yellow);
  transform: scale(1.2);
}

/* Responsive slider mobile */
@media (max-width: 900px) {
  .projects-slider-wrapper {
    padding: 0 0 60px 0;
  }
  .projects-nav-btn {
    top: auto;
    bottom: 4px;
    transform: none;
  }
  .projects-nav-btn:hover {
    transform: scale(1.05);
  }
  .projects-nav-btn:active {
    transform: scale(0.95);
  }
  .projects-nav-btn--prev {
    left: calc(50% - 64px);
  }
  .projects-nav-btn--next {
    right: calc(50% - 64px);
  }
  .projects-dots {
    margin-top: 12px;
  }
}

/* --- Sezione Neopatentati (03) --- */

.neopatentati-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 40px;
  align-items: center;
}

/* ==========================================================================
   SEZIONE 04: VETRINA MEZZI (index.html)
   ========================================================================== */

.vehicle-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.vehicle-gallery {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.vehicle-gallery__viewport {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 360px;
}

.vehicle-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.vehicle-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.vehicle-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-slide__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--line-yellow);
  color: var(--asphalt);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.vehicle-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(22, 23, 27, 0.75);
  border: 1px solid var(--border-soft);
  color: var(--off-white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.vehicle-arrow svg {
  width: 22px;
  height: 22px;
}

.vehicle-arrow--prev { left: 16px; }
.vehicle-arrow--next { right: 16px; }

.vehicle-arrow:hover {
  background: var(--line-yellow);
  border-color: var(--line-yellow);
  color: var(--asphalt);
  transform: translateY(-50%) scale(1.08);
}

.vehicle-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(22, 23, 27, 0.6);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.vehicle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.vehicle-dot.is-active {
  background: var(--line-yellow);
  transform: scale(1.3);
}

.vehicle-info-panel {
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

.vehicle-info {
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.vehicle-info.is-active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vehicle-info__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--off-white);
  margin-bottom: 12px;
}

.vehicle-info__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
}

.vehicle-info__specs li {
  font-size: 0.95rem;
  color: var(--muted);
}

.vehicle-info__specs li span {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--off-white);
  margin-right: 8px;
}

/* ==========================================================================
   PAGINA SERVIZI (servizi.html)
   ========================================================================== */

.section--services {
  padding: 40px 24px 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 44px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--line-yellow);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--charcoal-2);
  border-color: rgba(245, 183, 0, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(245, 183, 0, 0.08);
  border: 1px solid rgba(245, 183, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card__icon {
  width: 38px;
  height: 38px;
  color: var(--line-yellow);
  transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon-wrapper {
  background: var(--line-yellow);
  border-color: var(--line-yellow);
  transform: scale(1.08);
}

.service-card:hover .service-card__icon {
  color: var(--asphalt);
  transform: scale(1.05);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
}

.service-card__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--line-yellow-dim);
  margin-bottom: 12px;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--off-white);
  margin-bottom: 14px;
  transition: color 0.25s ease;
}

.service-card:hover .service-card__title {
  color: var(--line-yellow);
}

.service-card__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex: 1;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line-yellow);
  font-weight: 600;
  transition: gap 0.25s ease;
}

.service-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.service-card:hover .service-card__cta svg {
  transform: translateX(4px);
}

/* ==========================================================================
   PAGINA CONTATTI (contatti.html)
   ========================================================================== */

.section--contacts {
  padding: 40px 24px 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-map-card {
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
}

.contact-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  display: block;
  flex: 1;
  filter: invert(90%) hue-rotate(180deg) contrast(90%) grayscale(20%);
  transition: filter 0.35s ease;
}

.contact-map-card:hover .contact-map {
  filter: invert(0%) hue-rotate(0deg) contrast(100%) grayscale(0%);
}

.contact-info-card {
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--line-yellow);
  margin-bottom: 30px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--line-yellow);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item__icon--wa {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.25);
}

.contact-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item__value {
  font-size: 1.05rem;
  color: var(--off-white);
}

.contact-item__link {
  font-size: 1.05rem;
  color: var(--off-white);
  transition: color 0.25s ease;
}

.contact-item__link:hover {
  color: var(--line-yellow);
}

.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 18px;
  background: #25d366;
  color: #0b1e11;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-whatsapp-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.contact-whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.contact-whatsapp-btn:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--asphalt);
  border-top: 1px solid var(--border-soft);
  padding: 28px 24px;
  text-align: center;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 24px;
    gap: 24px;
  }

  .service-card::before {
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    transform: scaleY(0);
  }

  .service-card:hover::before {
    transform: scaleY(1);
  }

  .service-card:hover {
    transform: translateX(6px);
  }

  .service-card__icon-wrapper {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
  }

  .service-card__icon {
    width: 30px;
    height: 30px;
  }

  .service-card__body {
    align-items: flex-start;
  }

  .service-card__text {
    margin-bottom: 12px;
  }
}

@media (max-width: 900px) {
  .app-section,
  .neopatentati-section,
  .vehicle-showcase,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .vehicle-gallery {
    min-height: 320px;
  }

  .contact-map-card,
  .contact-map {
    min-height: 340px;
    height: 340px;
  }

  .contact-info-card {
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    flex-direction: column;
    gap: 0;
    width: 220px;
    background: rgba(22, 23, 27, 0.97);
    border-left: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .navbar__links.is-open { 
    transform: translateX(0); 
  }

  .navbar__links li { 
    width: 100%; 
  }

  .navbar__link { 
    display: block; 
    padding: 16px 24px; 
  }

  .navbar__toggle { 
    display: flex; 
  }

  .navbar {
    background-color: rgba(22, 23, 27, 0.55);
    backdrop-filter: blur(6px);
  }

  .section { 
    padding: 80px 20px; 
  }
}

/* ==========================================================================
   PAGINA CALENDARIO (calendario.html)
   ========================================================================== */

.section--calendar {
  padding: 40px 24px 80px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.cal-card {
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.cal-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--off-white);
  line-height: 1.2;
}

.cal-card__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--line-yellow);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.cal-card__badge--live {
  background: #25d366;
  color: #0b1e11;
}

.cal-card__note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.schedule-table-wrap {
  overflow-x: auto;
  flex: 1;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.schedule-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--line-yellow);
  border-bottom: 1px solid rgba(243, 239, 230, 0.15);
  padding: 12px 10px;
}

.schedule-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-day {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--off-white);
  letter-spacing: 0.02em;
}

.cal-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--line-yellow);
  font-weight: 500;
}

.cal-time--empty {
  color: var(--muted);
  font-weight: 400;
}

.cal-topic {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.exam-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.exam-item {
  background: var(--asphalt-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--line-yellow);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.exam-item:hover {
  transform: translateX(4px);
  border-left-color: #ffc72c;
}

.exam-item__date {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--off-white);
}

.exam-item__time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--line-yellow);
  margin-top: 2px;
}

.exam-item__desc {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: right;
}

.exam-loading, .exam-empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.exam-loading__spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(245, 183, 0, 0.2);
  border-top-color: var(--line-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cal-card__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.cal-card__hint {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .calendar-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cal-card {
    padding: 26px 20px;
  }
}

.cal-card__badge--full {
  background: var(--stop-red);
  color: #ffffff;
}

/* ==========================================================================
   PAGINA CONSEGUIMENTO (conseguimento.html)
   ========================================================================== */

.section--conseguimento {
  padding: 40px 24px 80px;
}

.conseguimento-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.conseguimento-card {
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
}

.conseguimento-card--selector {
  justify-content: flex-start;
  align-self: flex-start;
  position: sticky;
  top: calc(var(--nav-height) + 30px);
}

.conseguimento-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--line-yellow);
  margin-bottom: 16px;
}

.conseguimento-card__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--off-white);
  background: var(--asphalt);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.custom-select:focus {
  outline: none;
  border-color: var(--line-yellow);
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.15);
}

.custom-select-wrapper::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--line-yellow);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.patente-info {
  width: 100%;
}

.patente-details {
  animation: fadeIn 0.4s ease forwards;
}

.patente-details__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--line-yellow);
  border: 1px solid rgba(245, 183, 0, 0.3);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.patente-details__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--off-white);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 12px;
}

.patente-details__section {
  margin-bottom: 24px;
}

.patente-details__section h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--line-yellow);
  margin-bottom: 8px;
}

.patente-details__section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.patente-details__section p strong {
  color: var(--off-white);
}

.patente-details__section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patente-details__section li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.patente-details__section li::before {
  content: '▪';
  color: var(--line-yellow);
  position: absolute;
  left: 0;
  top: 0;
}

.patente-details__section li strong {
  color: var(--off-white);
}

@media (max-width: 900px) {
  .conseguimento-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .conseguimento-card--selector {
    position: static;
  }
  
  .conseguimento-card {
    padding: 32px 24px;
  }
}