:root {
  color-scheme: light;
  --bg: #0b0b0b;
  --bg-soft: #121212;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --text: #f7f6f2;
  --muted: #d2cdc3;
  --red: #c83b32;
  --green: #2f7f5b;
  --gold: #d0b47a;
  --accent: #c83b32;
  --accent-2: #2f7f5b;
  --shadow: 0 24px 64px rgba(4, 8, 6, 0.45);
  --radius: 18px;
  --radius-lg: 28px;
  --transition: 0.5s ease;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

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

body {
  background: #0b0b0b;
  color: var(--text);
  min-height: 100vh;
}

body.splash-active {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  background: url("images/splash.png") center/cover no-repeat;
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  animation: fadeUp 1.2s ease;
  font-family: "Playfair Display", serif;
}

.splash-content p {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.splash-content span {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.splash-btn {
  margin-top: 22px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.splash-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.splash.hide-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page {
  position: relative;
  overflow: hidden;
  padding: 40px 6vw 64px;
}

.page::before {
  content: none;
}

.page::after {
  content: none;
}

.emblem-wrap {
  --emblem-size: 420px;
  position: fixed;
  left: 0;
  top: 140px;
  width: calc(var(--emblem-size) / 2);
  height: var(--emblem-size);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.emblem-blur {
  width: var(--emblem-size);
  height: var(--emblem-size);
  border-radius: 50%;
  background-image: url("images/alfa-romeo-emblem.png");
  background-size: cover;
  background-position: 45% 40%;
  filter: blur(4px) saturate(1.15);
  opacity: 0.34;
  mix-blend-mode: lighten;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  background: url("images/brand-emblem.png") center/contain no-repeat;
  box-shadow: none;
  border: none;
  text-indent: -9999px;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  letter-spacing: 0.6px;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(208, 180, 122, 0.6);
  color: var(--gold);
  background: rgba(200, 59, 50, 0.08);
}

.nav-cta:hover {
  color: #fff;
  border-color: rgba(208, 180, 122, 0.9);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding: 80px 0 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 3.4vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(247, 246, 242, 0.78);
  line-height: 1.7;
}

.hero-story {
  margin-top: 16px;
  font-size: 0.98rem;
  color: rgba(247, 246, 242, 0.7);
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, #c83b32, #f1644b);
  color: #fff;
  box-shadow: 0 16px 36px rgba(200, 59, 50, 0.5);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 127, 91, 0.12);
  font-size: 0.85rem;
  border: 1px solid rgba(47, 127, 91, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate-badges].is-visible .badge {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-badges].is-visible .badge:nth-child(1) { transition-delay: 0.05s; }
[data-animate-badges].is-visible .badge:nth-child(2) { transition-delay: 0.12s; }
[data-animate-badges].is-visible .badge:nth-child(3) { transition-delay: 0.2s; }
[data-animate-badges].is-visible .badge:nth-child(4) { transition-delay: 0.28s; }
[data-animate-badges].is-visible .badge:nth-child(5) { transition-delay: 0.36s; }

.hero-logo-block {
  margin-top: 6px;
  justify-self: end;
  max-width: 320px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-logo-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transform: scale(1.08);
  transform-origin: center;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 0 48px;
  margin-top: -8px;
  position: relative;
  z-index: 2;
}

.trust-item {
  position: relative;
  background: linear-gradient(140deg, rgba(28, 28, 28, 0.92), rgba(18, 18, 18, 0.96));
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-item::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(200, 59, 50, 0.6);
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.trust-item p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.section {
  padding: 64px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  line-height: 1.7;
}

.section-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(26, 26, 26, 0.95);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), border-color var(--transition);
}

.service-card h4 {
  margin-bottom: 10px;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 59, 50, 0.4);
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 30px;
  background: linear-gradient(140deg, rgba(26, 26, 26, 0.95), rgba(16, 16, 16, 0.96));
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.highlight-panel {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
}

.step span {
  font-weight: 700;
  color: var(--accent);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
}

.checklist li::before {
  content: "•";
  color: var(--accent-2);
  margin-right: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0f0d;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.reviews-wrap {
  display: grid;
  gap: 16px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-card[data-review-extra] {
  display: none;
}

.reviews-wrap.is-expanded .review-card[data-review-extra] {
  display: grid;
}

.reviews-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(200, 59, 50, 0.45);
  background: rgba(200, 59, 50, 0.12);
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.reviews-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.reviews-wrap.is-expanded .reviews-toggle svg {
  transform: rotate(180deg);
}

.reviews-toggle:hover {
  background: rgba(200, 59, 50, 0.22);
  transform: translateY(-2px);
}

.review-card {
  background: rgba(26, 26, 26, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
}

.review-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.review-card span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 18px;
  border-radius: var(--radius);
}

.contact-card h4 {
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
}

.map-placeholder {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-embed {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: grayscale(0.2) invert(0.9) hue-rotate(180deg) contrast(1.1) brightness(0.9);
}

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-note {
  color: rgba(255, 255, 255, 0.4);
}

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }
  .hero-logo-block {
    justify-self: start;
    margin-top: 20px;
    max-width: 260px;
  }

  .emblem-wrap {
    --emblem-size: 320px;
    top: 120px;
    opacity: 0.2;
  }

  .trust,
  .service-grid,
  .about-grid,
  .gallery,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .highlight {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 32px 6vw 56px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero {
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-logo-block {
    max-width: 220px;
    justify-self: center;
    margin-top: 16px;
  }

  .hero-badges {
    gap: 8px;
  }

  .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
  }


  .emblem-wrap {
    display: none;
  }

  .trust,
  .service-grid,
  .about-grid,
  .gallery,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-toggle {
    justify-self: center;
  }

  .highlight,
  .contact {
    padding: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .map-embed {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
