/* =========================================================
   DRM Custom Garage — home.css
   Richiede assets/css/base.css
   ========================================================= */

/* ---------- Hero (CENTRATO) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  overflow: hidden;
  text-align: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0.5;
}

.hero-blueprint {
  position: absolute;
  right: 5%;
  bottom: 12%;
  width: min(480px, 50vw);
  opacity: 0.12;
  pointer-events: none;
}

.hero-blueprint svg {
  width: 100%;
  height: auto;
}

.bp-wheel,
.bp-body,
.bp-detail {
  stroke: var(--red);
  stroke-width: 1.5;
  fill: none;
}

.bp-hub {
  fill: var(--red);
  opacity: 0.6;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.4;
  top: 40%;
  pointer-events: none;
}

.scan-readout {
  position: absolute;
  right: 24px;
  top: -22px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  color: var(--red);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-meta-item span {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-foot {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-foot-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: footPulse 1.8s ease-in-out infinite;
}

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

/* ---------- Statement ---------- */
.statement {
  min-height: 70vh;          /* ridotto rispetto a 100vh */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.statement-accent {
  color: var(--red);
}

/* ---------- Feature blocks ---------- */
.feature-block {
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

.feature-block--reverse .feature-block-inner {
  direction: rtl;
}

.feature-block--reverse .feature-copy,
.feature-block--reverse .feature-visual {
  direction: ltr;
}

.feature-block-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-block-inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.feature-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.feature-copy .section-sub {
  margin-bottom: 1.75rem;
  max-width: 420px;
}

.feature-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}

.feature-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-block:hover .feature-image-wrap img {
  transform: scale(1.04);
}

/* ---------- Process ---------- */
.process {
  padding: 120px 24px;
  background: var(--bg-elevated);
  position: relative;
  z-index: 2;
}

.process-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

@media (min-width: 800px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.process-step {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s;
}

.process-step:hover {
  border-color: rgba(255, 43, 43, 0.3);
  transform: translateY(-4px);
}

.process-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 18px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- About ---------- */
.about {
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.spec-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}

.led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: ledBlink 2s ease-in-out infinite;
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.spec-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.spec-list span {
  font-size: 0.8rem;
  color: var(--muted);
}

.about-points {
  margin: 20px 0 28px;
}

.about-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.servizio-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  transition: opacity 0.2s;
}

.servizio-link:hover {
  opacity: 0.8;
}

/* ---------- Servizi ---------- */
.servizi {
  padding: 120px 24px;
  background: var(--bg-elevated);
  position: relative;
  z-index: 2;
}

.servizi-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  align-items: stretch;          /* importante */
}

@media (min-width: 700px) {
  .servizi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .servizi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.servizio-card {
  display: flex;                 /* nuovo */
  flex-direction: column;        /* nuovo */
  height: 100%;                  /* nuovo */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}

.servizio-card:hover {
  border-color: rgba(255, 43, 43, 0.35);
  transform: translateY(-4px);
}

.servizio-icon {
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.servizio-icon svg {
  width: 100%;
  height: 100%;
}

.servizio-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.servizio-card > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;                       /* spinge i tag e il link in basso */
}

.servizio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  margin-top: auto;              /* opzionale, aiuta l’allineamento */
}

.servizio-tags li {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.servizio-card .servizio-link {
  margin-top: 4px;
}

/* ---------- Lavori recenti ---------- */
.recent-works {
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

.works-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  gap: 24px;
  align-items: stretch;          /* fondamentale */
}

@media (min-width: 700px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;                  /* tutte stesse altezza */
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.work-image {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1a;
  position: relative;
}

/* Forza l’immagine a riempire sempre lo stesso spazio */
.work-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-image img {
  transform: scale(1.06);
}

.work-info {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.work-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 6px;
}

.work-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.works-cta {
  text-align: center;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

/* ---------- Why / Stats ---------- */
.why {
  padding: 100px 24px;
  background: var(--bg-elevated);
  position: relative;
  z-index: 2;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-card--feature {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card--feature .stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 0;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(255, 43, 43, 0.25);
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 20px;
  color: var(--text);
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card strong {
  font-size: 0.95rem;
}

.testimonial-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-final {
  padding: 140px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(255, 43, 43, 0.08) 0%, transparent 60%),
    var(--bg);
  position: relative;
  z-index: 5;
  overflow: visible;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 6;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-inner p {
  color: var(--muted);
  margin-bottom: 28px;
}

.cta-inner .hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.cta-inner .btn {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

.cta-inner .btn-primary {
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

.cta-inner .btn-ghost {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 13px 26px !important;
  border-radius: 999px !important;
  opacity: 1 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .hero {
    padding: calc(var(--header-h) + 24px) 18px 70px;
  }

  .hero-meta {
    gap: 16px;
  }

  .feature-block {
    padding: 80px 18px;
  }

  .process {
    padding: 80px 18px;
  }

  .about,
  .servizi,
  .recent-works,
  .testimonials {
    padding: 80px 18px;
  }

  .cta-final {
    padding: 90px 18px;
  }

  .statement {
    min-height: 50vh;
    padding: 60px 18px;
  }
}