/* brand.css (colori, font, componenti brand) è linkato direttamente
   nell'<head> di index.html, prima di questo file — non serve @import qui. */

/* ==========================================================================
   Impct landing page — layout & component styles
   Contenuto e struttura fedeli a "Impct-landing-layout.pdf"
   ========================================================================== */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section { padding-block: var(--impct-space-5); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--impct-space-4);
}
.section-head h2 {
  font-size: 3.2rem !important;
  /* font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); */
  line-height: 1.1;
  margin: 0.6em 0 0;
  color: var(--impct-purple);
}
.impct-surface-purple .section-head h2,
.impct-surface-gradient .section-head h2,
.impct-surface-dark .section-head h2 { color: var(--impct-white); }
.impct-surface-gradient .section-head h2 { color: var(--impct-green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  background: var(--impct-white);
  border-bottom: 1px solid var(--impct-gray-200);
}
.content-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--impct-purple);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 0;
}
.logo-full { height: 100px; width: auto; display: block; }
.header-actions { display: flex; align-items: stretch; gap: 0;height: 132px; }
.header-actions .impct-btn {
  border-radius: 0;
  font-size: 1.5rem;
  padding-inline: 1.75rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--impct-white);
  background: var(--impct-purple);
  border-radius: 0;
  padding-inline: 1.25rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  display: flex;
  align-items: center;
  text-align: left;
  padding-block: var(--impct-space-4);
}
.hero .container { width: 100%; }
.impct-eyebrow--hero {
  color: var(--impct-rose);
  font-weight: normal;
  margin-bottom: 1.5rem;
}
.impct-eyebrow--hero::before { 
  background: var(--impct-rose); 
}
.hero h1 {
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero h1 .line-purple { color: var(--impct-purple); }
.hero h1 .line-green { color: var(--impct-green); -webkit-text-stroke: 0; }

/* ---------- Stat strip (used on gradient + opportunity sections) ---------- */
.stat-strip {
  margin-top: var(--impct-space-4);
  margin-bottom: var(--impct-space-4);
  padding-top: var(--impct-space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-strip .stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.stat { padding: 0 1.25rem; }
.stat:first-child { padding-left: 0; }
.stat-value {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}
.stat-value.impct-highlight { display: table; }
.stat-label {
  margin-top: 0.4rem;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
}
.impct-surface-gradient .stat-value { color: var(--impct-white); }
/* Su sfondo a gradiente l'evidenziazione verde-su-verde perde contrasto:
   qui invertiamo a testo verde su nero, restando nella stessa coppia brand. */
.impct-surface-gradient .stat-label.impct-highlight {
  color: var(--impct-black);
  background-color: var(--impct-green);
}

.intro-band p {
  max-width: 640px;
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.intro-cta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.intro-cta .impct-btn {
  border-radius: 0;
  padding: 1.5em 1em;
  font-size: 1.5rem;
}

.intro-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  margin: var(--impct-space-4) 0 var(--impct-space-3);
}

.intro-band .stat-strip {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--impct-space-5);
}
.intro-band .stat-strip .stat {
  padding: 0;
  border-left: none !important;
}
.intro-band .stat-value {
  font-size: clamp(2.4rem, 4vw + 1rem, 4.2rem);
}
.intro-band .stat-label {
  display: table;
}
.intro-band .stat-label + .stat-label {
  margin-top: 0.1rem;
}

/* ---------- How it works ---------- */
.how-it-works .container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--impct-space-5);
  align-items: center;
}
.steps { display: grid; gap: 2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.step-index {
  font-size: 2rem;
  font-weight: 700;
  color: var(--impct-black);
  background: var(--impct-green);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 0.1rem; font-size: 1.4rem; color: var(--impct-black); }
.step p { margin: 0; color: var(--impct-black); line-height: 1.2; }

.flow-diagram {
  background: linear-gradient(145deg, var(--impct-rose) 25%, var(--impct-purple) 75%, var(--impct-purple) 100%);
  border-radius: 28px;
  padding: var(--impct-space-5) var(--impct-space-5);
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.65rem 1.1rem;
  color: var(--impct-white);
  align-self: end;
}
.flow-icon-img { width: 50px; height: auto; }
.flow-text strong {
  display: inline-block;
  font-size: 0.95rem;
}
.flow-text span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.2rem;
}
.flow-arrow {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--impct-space-5);
  align-items: start;
}
.mission-lead {
  margin: 0 0 var(--impct-space-4);
  max-width: 560px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--impct-white);
}
.pillars {
  display: grid;
  gap: 1.5rem;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.pillar-icon { width: 45px; height: auto; flex: none; margin-top: 0.1rem; }
.pillar h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--impct-white); }
.pillar p { margin: 0; color: rgba(255, 255, 255, 0.8); line-height: 1.5; font-size: 0.95rem; }

.mission-card {
  border: 2px solid rgba(255, 255, 255);
  border-radius: 28px;
  padding: var(--impct-space-4);
}
.mission-card-quote {
  display: table;
  margin: 0 0 var(--impct-space-3);
  font-size: 1.4rem !important;
  color: black !important;
  font-weight: 700;
  line-height: 1.4;
}
.mission-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.95rem;
}
.mission-card-highlight {
  margin-top: 1.5rem;
  color: var(--impct-green) !important;
  font-weight: 700;
  font-style: italic;
  font-size: 1.4rem !important;
}

/* ---------- Built for scale ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--impct-space-3);
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature { 
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 1rem;
}

.feature-icon { height: 40px; width: auto; display: block; margin-bottom: 0.75rem; }
.feature .wrapper-img { display: flex; justify-content: center; margin-bottom: 0.75rem;width:50px; }
.feature .wrapper-content { text-align: left; flex:1 }
.feature h3 { margin: 0 0 0.1rem; font-size: 1.05rem; display: inline-block }
.feature p { margin: 0; color: var(--impct-gray-500); line-height: 1.5; font-size: 0.95rem; }


@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- Closing gradient wrapper ----------
   The Opportunity, Final CTA, "Why impct exists" and Footer sections in the
   reference PDF are one continuous rose → purple gradient — not separate
   solid-color blocks. This wrapper carries that single background; the
   sections inside it stay transparent. */
.closing-gradient {
  background: linear-gradient(180deg, var(--impct-rose) 0%, var(--impct-purple) 45%, #5400fa 100%);
  color: var(--impct-white);
}

/* ---------- Opportunity ---------- */
.opportunity .section-head h2 { color: var(--impct-green); }
/* .opportunity p { color: rgba(255, 255, 255, 0.9); } */
.opportunity .stat-strip { border-top: none; }
.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 1);
  margin: 0;
}
.opportunity .section-divider:first-of-type { margin-top: var(--impct-space-4); }
.opportunity .section-divider:last-of-type { margin-top: var(--impct-space-3); }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: left;
}
.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--impct-space-4);
}
.final-cta-copy { 
  display: flex;
  flex-direction: column;
}
.final-cta h2 {
  font-size: 5rem;
  line-height: 1.5;
  margin: 0.6em 0 1rem;
}
.final-cta p { max-width: 480px; margin: 0; display: inline-flex;}
.final-cta .content { 
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--impct-space-3);
}
.final-cta .impct-btn { 
  display: inline-flex;
  align-items: center;
  justify-content: end;
  flex: none; 
  border-radius: 0;
  font-size: 1.5rem;
}

/* ---------- Why impct exists ---------- */
.founder-copy { 
  margin-top: var(--impct-space-4);
}
.founder-tag {

  display: table;
  font-size: clamp(1.15rem, 1.2vw + 0.9rem, 1.5rem);
  margin: var(--impct-space-3) 0 var(--impct-space-3);
}
.founder-lead {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--impct-white);
  margin: 0 0 1.25rem;
}
.founder-story p {
  margin: 0 0 1.1rem;
  line-height: 1.7;
  font-size: 1.35rem;
}
.founder-quote {
  color: var(--impct-white) !important;
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
}
.founder-signature {
  width: 130px;
  height: auto;
  margin: var(--impct-space-3) 0 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--impct-space-4);
}
.site-footer .section-divider { margin-bottom: var(--impct-space-3); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: var(--impct-space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-links a:hover { color: var(--impct-green); }
.footer-bottom {
  padding-top: var(--impct-space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
}
.site-footer .logo-full {
    height: 65px;
}
.footer-links{
  align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero{
    min-height: 0px;
  }
  .how-it-works .container { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; row-gap: 1rem; }
  .stat-strip .stat { padding: 0; border-left: none !important; padding-top: 1rem; }
  .stat-strip .stat:first-child { padding-top: 0; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; gap: var(--impct-space-3); }
  .site-header .container { padding-inline: 0; }
  .header-actions .impct-btn {
    border-radius: 0;
    font-size: 1rem;
    padding-inline: .5rem;
    flex: 3;
    white-space: nowrap;
  } 
  .logo-full {
   height: 70px;
  }
  .lang-switch {
    font-size: 1rem;
  }
  .header-actions{
    height: 102px;
  }
  .final-cta h2 {
    font-size: 2.3rem;
  }
  .final-cta .content{
    flex-direction: column;
    align-items: flex-start;
    gap: var(--impct-space-3);
  }
  .intro-cta .impct-btn{
    font-size: 1rem;
  }
  .intro-cta{
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
  }
  .section-head h2{
    font-size: 2.6rem;
  }
  .intro-band .stat-strip{
    gap: var(--impct-space-4);
  }
  .footer-links{
    gap:.5rem;
  }
  .site-footer .logo-full {
    height: 45px;
}  
}
