/* =========================================================
   DRM Custom Garage — chi-siamo.css
   Versione definitiva (bottoni riparati)
   ========================================================= */

/* ---------- HERO ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 43, 43, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.page-hero .hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- STORY ---------- */
.story {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.story-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-content strong {
  color: var(--text);
  font-weight: 600;
}

/* Quote in evidenza */
.highlight-quote {
  position: relative;
  padding: 28px 28px 28px 32px;
  margin-top: 36px !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.highlight-quote strong {
  color: var(--red);
  font-weight: 700;
}

/* ---------- VALUES ---------- */
.values-section {
  padding: 20px 24px 110px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.4) 50%, transparent 100%);
}

.values-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

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

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 43, 43, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  line-height: 1;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

/* ---------- TIMELINE ---------- */
.timeline-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 110px;
}

.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--red), var(--border) 30%, var(--border));
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  box-shadow: 0 0 0 4px rgba(255, 43, 43, 0.15);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--red);
  box-shadow: 0 0 16px var(--red-dim);
}

.timeline-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.timeline-content span {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  padding-bottom: 110px;
}

/* ---------- CTA + BOTTONI RINFORZATI ---------- */
.cta-final {
  padding: 0 24px 120px;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 43, 43, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-inner .section-kicker {
  margin-bottom: 14px;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Azioni bottoni */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ========== BOTTONI FORZATI (non possono più sparire) ========== */
.cta-final .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Bottone principale rosso */
.cta-final .btn-primary {
  background: #ff2b2b !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(255, 43, 43, 0.35);
}

.cta-final .btn-primary:hover {
  background: #ff3f3f !important;
  box-shadow: 0 6px 28px rgba(255, 43, 43, 0.5);
  transform: translateY(-2px);
}

/* Bottone secondario */
.cta-final .btn-ghost {
  background: transparent !important;
  color: #f2f2f2 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.cta-final .btn-ghost:hover {
  border-color: #ff2b2b !important;
  color: #ff2b2b !important;
  background: rgba(255, 43, 43, 0.08) !important;
}

/* ---------- Section head ---------- */
.section-head {
  margin-bottom: 52px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .page-hero {
    padding: calc(var(--header-h) + 60px) 20px 70px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .story,
  .timeline-section,
  .philosophy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .value-card {
    padding: 26px 22px;
  }

  .cta-inner {
    padding: 40px 24px;
  }

  .timeline-item {
    gap: 20px;
  }

  .cta-final .btn {
    width: 100%;
    max-width: 280px;
  }
}