/* Firmamento — Chi Siamo (Spec §5.2) */

.about-hero {
  /* Padding top per compensare header, ma contenuto centrato */
  padding: 140px 0 60px;
  position: relative;
  /* Fixed user syntax error 'center' */
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0A1F47 0%, #031335 100%);
  color: #FFFFFF;
  text-align: center;
  /* Force center alignment globally for hero */
}

.about-hero__grid {
  position: relative;
  /* Fixed user syntax error 'center' */
  display: grid;
  gap: 40px;
  align-items: center;
}

/* Override Grid for Central Layout */
@media (min-width: 1024px) {
  .about-hero__grid-constellation {
    display: flex;
    /* Stacked instead of grid */
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .about-hero__content {
    text-align: center;
    /* Center text */
    order: 1;
    /* Text First */
    max-width: 800px;
    /* Limit width for reading */
    margin: 0 auto;
    padding: 0;
    /* Remove side padding */
  }

  .about-constellation {
    order: 2;
    /* Visual Second */
    width: 100%;
    margin-top: -20px;
    /* Pull visual closer */
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 110px 0 40px;
    /* Reduced top padding for mobile header */
  }
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(900px 520px at 70% 15%, rgba(95, 127, 255, .10), transparent 55%),
    radial-gradient(760px 520px at 15% 70%, rgba(240, 203, 122, .10), transparent 60%);
  pointer-events: none;
}

/* Duplicates removed to enforce stacked center layout defined above */

.about-hero__sub {
  font-size: 20px;
  /* Increased size */
  font-weight: 300;
  /* Lighter weight for premium feel */
  line-height: 1.6;
  color: #B8D1FF;
  /* Azure light for better contrast on dark */
  margin: 24px 0 0;
  max-width: 90%;
}

.about-hero__media {
  border-radius: 24px;
  /* Softer radius */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  /* Deeper shadow */
  background: transparent;
}

.about-hero__media img {
  width: 100%;
  height: auto;
  display: block;
}

.mission-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-card {
  border-radius: var(--r-18);
  border: 1px solid var(--line, #E5E7EB);
  background: var(--c-white);
  box-shadow: var(--shadow);
  padding: 18px;
}

.quote-card__label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.92);
  margin: 0 0 10px;
}

.quote {
  margin: 0;
  color: rgba(3, 19, 53, .92);
  font-weight: var(--fw-medium);
  line-height: 1.65;
}

.impact-line {
  margin-top: 18px;
  border-left: 3px solid rgba(95, 127, 255, .55);
  padding-left: 14px;
  color: rgba(74, 74, 74, .95);
  font-size: 16px;
  line-height: 1.65;
}

/* Section 2 (dark) model */
.about-model {
  color: var(--c-white);
}

.about-model p {
  color: rgba(232, 235, 239, .86);
}

.phase-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 1024px) {
  .phase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.phase {
  border-radius: var(--r-18);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  padding: 18px;
  min-height: 44px;
}

.phase__k {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.phase__k.is-azure {
  color: var(--c-azure-bright);
}

.phase__k.is-gold {
  color: var(--c-gold);
}

.phase__k.is-green {
  color: var(--c-success, #10B981);
}

.phase__t {
  margin: 0 0 8px;
  color: var(--c-white);
  font-weight: var(--fw-semibold);
}

.phase__d {
  margin: 0;
  color: rgba(0, 0, 0, 0.86);
  line-height: 1.65;
}

/* Team section */
.team-note {
  margin-top: 12px;
  color: rgba(74, 74, 74, .95);
  line-height: 1.7;
  max-width: 80ch;
}

.team-grid {
  margin-top: 18px;
}

.team-card .card__text {
  line-height: 1.65;
}

/* Metrics */
.metrics {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric {
  border-radius: var(--r-18);
  border: 1px solid var(--line, #E5E7EB);
  background: var(--c-white);
  box-shadow: var(--shadow);
  padding: 18px;
}

.metric__num {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.6px;
  color: var(--c-navy);
  font-weight: var(--fw-semibold);
}

.metric__label {
  margin: 0;
  color: rgb(0, 0, 0);
}

/* Logo symbolism (dark) */
.logo-story {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

@media (min-width: 1024px) {
  .logo-story {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

.logo-mark {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .30);
  padding: 18px;
}

.logo-mark__svg {
  width: 100%;
  height: auto;
  display: block;
}

.logo-mark__legend {
  margin-top: 12px;
  color: rgba(0, 0, 0, 0.86);
  line-height: 1.65;
}

.logo-steps {
  display: grid;
  gap: 10px;
}

.logo-step {
  border-radius: var(--r-18);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  padding: 14px;
}

.logo-step button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(232, 235, 239, .90);
  cursor: pointer;
  min-height: 44px;
}

.logo-step__title {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.logo-step__desc {
  display: block;
  color: var(--text-secondary);
  line-height: 1.65;
}

.logo-step.is-active {
  outline: 2px solid rgba(95, 127, 255, .55);
  outline-offset: 2px;
}

/* Star highlight on SVG */
[data-star-node] {
  opacity: .35;
  transition: opacity var(--speed-2) var(--ease), transform var(--speed-2) var(--ease), filter var(--speed-2) var(--ease);
  transform-origin: center;
}

[data-star-node].is-on {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(95, 127, 255, .55));
}

@media (prefers-reduced-motion: reduce) {
  [data-star-node] {
    transition: none;
  }
}

/* Recognition */
.awards {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .awards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.award-card {
  border-radius: var(--r-18);
  border: 2px solid rgba(240, 203, 122, .65);
  background: var(--c-white);
  box-shadow: var(--shadow);
  padding: 18px;
}

.award-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 253, 0.14);
  color: rgba(3, 19, 53, .92);
  font-weight: var(--fw-semibold);
}

.award-card p {
  margin: 12px 0 0;
  color: rgba(74, 74, 74, .92);
  line-height: 1.65;
}

/* Media logo wall (Spec: 60px, grayscale, hover) */
.media-wall {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-wall__logo {
  width: 60px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line, #E5E7EB);
  background: var(--c-white);
  color: rgba(74, 74, 74, .82);
  filter: grayscale(1);
  opacity: .72;
  transition: opacity var(--speed-2) var(--ease), transform var(--speed-2) var(--ease), filter var(--speed-2) var(--ease);
  font-size: 12px;
  letter-spacing: .06em;
}

.media-wall__logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
  color: var(--c-navy);
}

/* Final CTA (Spec §4.9) */
.final-cta {
  background: var(--c-white);
  padding: 80px 0;
  border-top: 1px solid var(--line, #E5E7EB);
  color: var(--c-navy);
  /* Fix: Force dark text on white CTA section */
}

.final-cta__center {
  text-align: center;
}

.dual-cta {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 768px) {
  .dual-cta {
    grid-template-columns: minmax(260px, 420px) minmax(260px, 420px);
    gap: 32px;
  }
}

.cta-card {
  border-radius: var(--r-18);
  padding: 32px;
  background: var(--c-bg-tertiary, #F3F4F6);
  box-shadow: var(--shadow);
}

.cta-card.is-azure {
  border: 2px solid var(--c-azure-bright);
}

.cta-card.is-gold {
  border: 2px solid var(--c-gold);
}

.cta-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cta-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-meta {
  text-align: left;
}

.cta-label {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.cta-label.is-azure {
  color: var(--c-azure-bright);
}

.cta-label.is-gold {
  color: var(--c-gold);
}

.cta-title {
  margin: 0 0 10px;
  color: var(--c-navy);
  font-size: 18px;
  font-weight: var(--fw-semibold);
}

.cta-body {
  margin: 0;
  color: rgba(74, 74, 74, .92);
  line-height: 1.65;
}

.cta-actions {
  margin-top: 14px;
  text-align: left;
}

.reassure {
  margin-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

/* About Hero Grid with Constellation */
.about-hero--with-constellation {
  min-height: 600px;
  background: radial-gradient(ellipse at center, #0A1F47 0%, #031335 100%);
  display: flex;
  align-items: center;
}

.about-hero__grid-constellation {
  display: grid;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.about-constellation {
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-hero__content {
  color: #FFFFFF;
  text-align: center;
}

/* Legacy grid layout removed to enforce centered stacked layout */

/* =========================================
   CRITICAL FIX: Contrast on White Cards
   Forces dark text inside white components
   even when placed in dark sections.
   ========================================= */

/* 1. Mission/Vision/Quotes Cards */
.section--dark .quote-card,
.section--dark .quote-card p,
.section--dark .quote-card .quote {
  color: #031335 !important;
}

.section--dark .quote-card__label {
  color: #1A202C !important;
}

/* 2. Team Cards */
.section--dark .team-card,
.section--dark .team-card h3,
.section--dark .team-card p {
  color: #031335 !important;
}

.section--dark .team-card .card__text {
  color: #4A4A4A !important;
}

/* 3. Phase/Model Cards (White Background enforcement) */
.section--dark .phase {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB;
}

.section--dark .phase p {
  color: #4A4A4A !important;
}

.section--dark .phase .phase__t {
  color: #031335 !important;
}

/* 4. Awards/Metrics Cards */
.section--dark .award-card,
.section--dark .metric {
  background: #FFFFFF !important;
}

.section--dark .award-card p,
.section--dark .metric p,
.section--dark .metric .metric__num,
.section--dark .metric .metric__label {
  color: #031335 !important;
}

/* Fix for title sticking to left border */
@media (min-width: 1024px) {
  .about-hero__content {
    padding-left: 24px;
    /* Visual breathing room */
    padding-right: 24px;
  }
}

.about-hero__grid-constellation {
  /* Ensure grid itself has gaps */
  column-gap: 60px;
}