/* =================================================================
   HOME 2 — Aurora Green Genesis Figma rebuild
   Scoped to page-home-2.php only. Loaded after main.css.
   Headings: Plus Jakarta Sans Medium (var(--font)).
   Body: Inter.
   ================================================================= */

body.page-template-page-home-2 {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
}
body.page-template-page-home-2 h1,
body.page-template-page-home-2 h2,
body.page-template-page-home-2 h3,
body.page-template-page-home-2 h4 {
  font-family: var(--font);
  font-weight: 500;
}

.agg-home2 { overflow: visible; }
.agg-home2 section { position: relative; }

/* Nav anchor targets. The header is fixed, so land the section below it
   instead of underneath it. */
.agg-home2 section[id] { scroll-margin-top: 80px; }
@media (max-width: 767px) {
  .agg-home2 section[id] { scroll-margin-top: 64px; }
}

/* ---------------------------------------------------------------
   HERO (Section 2)
   Figma: 513:1299 (bg) + 513:1300 (content) + 518:1746 (badges)
   --------------------------------------------------------------- */
.agg-h2-hero {
  position: relative;
  min-height: 940px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 20px 80px;
  /* Still the section background: paints instantly and covers the video's
     first frame, letterboxing, and any autoplay refusal. */
  background: #050a14 url('../images/hero-aurora-bg.jpg') center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.agg-h2-hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.agg-h2-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Faded in by JS on the `playing` event, once real frames exist. */
  opacity: 0;
  transition: opacity 900ms ease-out;
}
.agg-h2-hero__video.is-ready { opacity: 1; }
/* Keeps the headline legible over the brighter frames of the clip. */
.agg-h2-hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5,10,20,0.35);
}
.agg-h2-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 968px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.agg-h2-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 0.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.01);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 28px;
}
.agg-h2-hero__headline {
  font-size: clamp(2.5rem, 6vw, 6.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.agg-h2-hero__subtitle {
  max-width: 426px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #ffffff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin-bottom: 24px;
}
.agg-h2-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 21px;
  padding: 9px 20px;
  background: #ffffff;
  color: #050608;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
  transition: opacity 200ms ease;
}
.agg-h2-hero__cta:hover { opacity: 0.85; }
.agg-h2-hero__cta svg { width: 16px; height: 16px; }

.agg-h2-hero__badges {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.agg-h2-hero__badge {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.agg-h2-hero__divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.15);
}

@media (max-width: 767px) {
  .agg-h2-hero { min-height: auto; padding: calc(var(--nav-h) + 24px) 20px 60px; }
  .agg-h2-hero__headline { font-size: clamp(2rem, 10vw, 3rem); }
  .agg-h2-hero__badges { flex-wrap: wrap; row-gap: 8px; }
}

/* ---------------------------------------------------------------
   IL PARADOSSO NORMATIVO (Section 3)
   Figma: 513:1312
   --------------------------------------------------------------- */
.agg-h2-par {
  display: flex;
  gap: 202px;
  align-items: flex-start;
  padding: 171px 90px 170px;
  background: #ffffff;
  color: #000000;
}
.agg-h2-par__col { flex: 1; min-width: 0; }
.agg-h2-par__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0,0,0,0.04);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 300;
  color: #000000;
  margin-bottom: 21px;
}
.agg-h2-par__heading {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #000000;
}
.agg-h2-par__body {
  font-size: 24px;
  line-height: 31px;
  font-weight: 400;
  color: #000000;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  padding-top: 7px;
}
.agg-h2-par__body strong { font-weight: 700; }
.agg-h2-par__body p { margin-bottom: 1em; }
.agg-h2-par__body p:last-child { margin-bottom: 0; }

@media (max-width: 1279px) {
  .agg-h2-par { gap: 60px; }
}
@media (max-width: 899px) {
  .agg-h2-par { flex-direction: column; gap: 32px; padding: 80px 20px; }
  .agg-h2-par__body { font-size: 18px; line-height: 26px; }
}

/* ---------------------------------------------------------------
   REGTECH / AUTOMATION (Section 4)
   Figma: 513:1331
   --------------------------------------------------------------- */
.agg-h2-regtech {
  position: relative;
  background: #000000 url('../images/section-3-background.png') no-repeat center top;
  background-size: cover;
  overflow: hidden;
  min-height: 946px;
  display: flex;
  align-items: flex-start;
}
.agg-h2-regtech__content {
  position: relative;
  z-index: 3;
  max-width: 788px;
  margin-left: 90px;
  margin-top: 455px;
}
.agg-h2-regtech__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 0.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.01);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 21px;
}
.agg-h2-regtech__body {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.agg-h2-regtech__bright { color: #ffffff; }
.agg-h2-regtech__muted { color: rgba(255,255,255,0.5); }

/* Scroll-linked word highlight. The class is added by JS, so without it the
   copy keeps the static bright/muted treatment above. */
.agg-h2-regtech__body.is-scroll-lit .agg-h2-regtech__bright,
.agg-h2-regtech__body.is-scroll-lit .agg-h2-regtech__muted { color: inherit; }
.agg-h2-regtech__body.is-scroll-lit .agg-h2-regtech__word {
  color: rgba(255,255,255,0.22);
  /* Short enough that each word still reads as its own step under the
     per-word stagger JS applies, long enough to stay smooth. */
  transition: color 0.28s ease-out;
}
.agg-h2-regtech__body.is-scroll-lit .agg-h2-regtech__word.is-lit { color: #ffffff; }

@media (max-width: 1279px) {
  .agg-h2-regtech__body { font-size: 26px; }
  .agg-h2-regtech__content { max-width: 60%; }
}
@media (max-width: 899px) {
  .agg-h2-regtech { min-height: 640px; background-position: center; }
  .agg-h2-regtech__content { max-width: 100%; margin-left: 0; margin-top: 60px; padding: 0 20px; }
  .agg-h2-regtech__body { font-size: 22px; }
}

/* ---------------------------------------------------------------
   STATS BAR (Section 5)
   Figma: 513:1366
   --------------------------------------------------------------- */
.agg-h2-stats {
  background: #ffffff;
  padding: 102px 92px;
}
.agg-h2-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
.agg-h2-stat {
  display: flex;
  flex-direction: column;
}
.agg-h2-stat__value {
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #000000;
  margin-bottom: 25px;
}
.agg-h2-stat__description {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin-bottom: 47px;
}
.agg-h2-stat__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1fb994;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin-top: auto;
  padding-top: 16px;
}

@media (max-width: 1023px) {
  .agg-h2-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}
@media (max-width: 599px) {
  .agg-h2-stats { padding: 64px 20px; }
  .agg-h2-stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .agg-h2-stat__value { font-size: 56px; }
}

/* ---------------------------------------------------------------
   COSA FACCIAMO — APP MOCKUP (Section 6)
   Figma: 513:1319 + 603:38
   --------------------------------------------------------------- */
.agg-h2-cosa-faq-bg {
  background: #000000 url('../images/Cosa facciamo-section-5-background.png') no-repeat left top;
  /* Figma sizes the aurora to the whole section box — never crop it. */
  background-size: 100% 100%;
}
/* Figma 1440 grid: 90 | 621 media | 63 gap | 576 content | 90.
   Expressed as % of the 1260px inner box so both columns keep scaling
   past 1440 instead of leaving dead space on the right. */
.agg-h2-cosa {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5%;
  padding: 90px 90px 58px;
}
.agg-h2-cosa__media { position: relative; z-index: 2; flex: 0 0 49.29%; min-width: 0; }
.agg-h2-cosa__img { width: 100%; height: auto; display: block; }
.agg-h2-cosa__content { position: relative; z-index: 2; flex: 0 0 45.71%; padding-top: 165px; }
.agg-h2-cosa__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 0.5px solid rgba(255,255,255,0.2);
  background: rgba(255, 255, 255, 0);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 21px;
}
.agg-h2-cosa__heading {
  font-size: clamp(2rem, 4.45vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 24px;
}
.agg-h2-cosa__body {
  font-size: 24px;
  line-height: 31px;
  color: #ffffff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin-bottom: 40px;
}
.agg-h2-cosa__cta {
  display: inline-flex;
  align-items: center;
  gap: 21px;
  padding: 9px 20px;
  background: #ffffff;
  color: #050608;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
}
.agg-h2-cosa__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.agg-h2-cosa__cta:hover { opacity: 0.85; }

@media (max-width: 1279px) {
  .agg-h2-cosa { padding: 64px 40px 48px; }
  .agg-h2-cosa__content { padding-top: 80px; }
}
@media (max-width: 899px) {
  .agg-h2-cosa-faq-bg { background-size: cover; background-position: center top; }
  .agg-h2-cosa { flex-direction: column; align-items: stretch; gap: 40px; padding: 64px 20px; }
  .agg-h2-cosa__media { max-width: 100%; flex-basis: auto; }
  .agg-h2-cosa__content { max-width: 100%; flex-basis: auto; padding-top: 0; }
  .agg-h2-cosa__body { font-size: 18px; line-height: 26px; }
}

/* ---------------------------------------------------------------
   COSA FACCIAMO — ACCORDION (Section 7)
   Figma: 513:1388
   --------------------------------------------------------------- */
.agg-h2-accordion {
  background: transparent;
  padding: 0 90px 240px;
}
.agg-h2-accordion__item { border-bottom: 1px solid rgba(255,255,255,0.23); }
.agg-h2-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.agg-h2-accordion__title {
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font);
  color: #ffffff;
}
.agg-h2-accordion__arrow { width: 24px; height: 24px; flex-shrink: 0; transition: transform 250ms ease; }
.agg-h2-accordion__item.is-open .agg-h2-accordion__arrow { transform: rotate(180deg); }
.agg-h2-accordion__panel { display: none; padding: 0 0 24px; max-width: 900px; }
.agg-h2-accordion__item.is-open .agg-h2-accordion__panel { display: block; }
.agg-h2-accordion__panel p {
  font-size: 16px;
  line-height: 31px;
  color: rgba(255,255,255,0.8);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

@media (max-width: 1279px) {
  .agg-h2-accordion { padding: 0 40px 120px; }
}
@media (max-width: 767px) {
  .agg-h2-accordion { padding: 0 20px 64px; }
  .agg-h2-accordion__title { font-size: 18px; }
}

/* ---------------------------------------------------------------
   STRUTTURA PRIMA — 4 CARDS (Section 8)
   Figma: 589:165
   --------------------------------------------------------------- */
.agg-h2-struttura {
  --struttura-notch: 48px;
  --struttura-hairline: rgba(11,11,11,0.4);
  background: #ffffff;
  color: #000000;
  padding: 0 90px 147px;
  overflow: hidden;
}

/* Card row: four notched outline cards, flush to the section's top edge,
   abutting each other (1px overlap so adjacent borders collapse). */
.agg-h2-struttura__grid {
  display: flex;
  align-items: flex-start;
}
.agg-h2-struttura__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin-top: -1px; /* hides the top border past the section edge, as in Figma */
  padding: 0 28px;
  display: flex;
  flex-direction: column;
}
.agg-h2-struttura__card + .agg-h2-struttura__card { margin-left: -1px; }

/* 1px hairline outline with the bottom-left corner chamfered: an outer
   clipped layer paints the border, an inset copy paints the white fill. */
.agg-h2-struttura__card::before,
.agg-h2-struttura__card::after {
  content: '';
  position: absolute;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    var(--struttura-notch) 100%,
    0 calc(100% - var(--struttura-notch))
  );
  pointer-events: none;
}
.agg-h2-struttura__card::before { inset: 0; background: var(--struttura-hairline); }
.agg-h2-struttura__card::after  { inset: 1px; background: #ffffff; }

/* Staircase: each card is taller than the previous one and its content
   starts lower, so the numbers cascade down to the right. */
.agg-h2-struttura__card:nth-child(1) { min-height: 549px; padding-top: 92px; }
.agg-h2-struttura__card:nth-child(2) { min-height: 636px; padding-top: 167px; }
.agg-h2-struttura__card:nth-child(3) { min-height: 722px; padding-top: 236px; }
.agg-h2-struttura__card:nth-child(4) { min-height: 808px; padding-top: 348px; }

.agg-h2-struttura__arrow {
  position: absolute;
  top: 41px;
  right: 28px;
  width: 26px;
  height: 26px;
  z-index: 2;
}
.agg-h2-struttura__arrow svg { display: block; width: 100%; height: 100%; }

.agg-h2-struttura__body { position: relative; z-index: 1; }
.agg-h2-struttura__number {
  font-family: var(--font);
  font-size: 100px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
  color: #000000;
}
.agg-h2-struttura__card-title {
  font-size: 20px;
  line-height: 25.58px;
  font-weight: 500;
  color: rgba(0,0,0,0.5);
  margin: 0 0 15px;
}
.agg-h2-struttura__card-description {
  font-family: var(--font);
  font-size: 18px;
  line-height: 25.58px;
  font-weight: 400;
  color: #000000;
  margin: 0;
}

/* Logomark + hairline rule under each card's copy. */
.agg-h2-struttura__rule {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.agg-h2-struttura__mark { flex: 0 0 24px; width: 24px; height: 14px; }
.agg-h2-struttura__mark svg { display: block; width: 100%; height: 100%; }
.agg-h2-struttura__line { flex: 1 1 auto; height: 1px; background: #000000; }

.agg-h2-struttura__card:nth-child(1) .agg-h2-struttura__rule { margin-top: 35px; }
.agg-h2-struttura__card:nth-child(2) .agg-h2-struttura__rule { margin-top: 65px; }
.agg-h2-struttura__card:nth-child(3) .agg-h2-struttura__rule { margin-top: 37px; }
.agg-h2-struttura__card:nth-child(4) .agg-h2-struttura__rule { margin-top: 70px; }

/* Eyebrow + heading sit in the empty area left below card 01. */
.agg-h2-struttura__head {
  position: relative;
  z-index: 2;
  /* 30px wider than Figma's 515px frame — Plus Jakarta Sans sets wider than
     the Google Sans Flex used in the design, and this keeps the 2-line break. */
  max-width: 545px;
  margin-top: -139px;
}
.agg-h2-struttura__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 20px;
  background: rgba(0,0,0,0.04);
  border-radius: 40px;
  font-size: 12px;
  line-height: 1;
  font-weight: 300;
  color: #000000;
  margin-bottom: 15px;
}
.agg-h2-struttura__heading {
  font-size: 47px;
  line-height: 47.5px;
  letter-spacing: -0.93px;
  font-weight: 500;
  color: #000000;
  margin: 0;
}

@media (max-width: 1439px) {
  .agg-h2-struttura { padding-left: 40px; padding-right: 40px; }
}

/* Below the desktop staircase the cards flatten into a 2-up / 1-up grid and
   the heading returns to normal flow above them. */
@media (max-width: 1199px) {
  .agg-h2-struttura {
    display: flex;
    flex-direction: column-reverse;
    padding: 80px 40px;
  }
  .agg-h2-struttura__grid { flex-wrap: wrap; align-items: stretch; gap: 32px; }
  .agg-h2-struttura__card {
    flex: 1 1 calc(50% - 16px);
    margin-top: 0;
    padding: 40px 28px 56px; /* bottom padding clears the corner notch */
  }
  .agg-h2-struttura__card + .agg-h2-struttura__card { margin-left: 0; }
  .agg-h2-struttura__card:nth-child(1),
  .agg-h2-struttura__card:nth-child(2),
  .agg-h2-struttura__card:nth-child(3),
  .agg-h2-struttura__card:nth-child(4) { min-height: 0; padding-top: 40px; }
  .agg-h2-struttura__number { font-size: 72px; }
  .agg-h2-struttura__card:nth-child(1) .agg-h2-struttura__rule,
  .agg-h2-struttura__card:nth-child(2) .agg-h2-struttura__rule,
  .agg-h2-struttura__card:nth-child(3) .agg-h2-struttura__rule,
  .agg-h2-struttura__card:nth-child(4) .agg-h2-struttura__rule { margin-top: auto; padding-top: 32px; }
  .agg-h2-struttura__head { margin: 0 0 48px; max-width: 605px; }
  .agg-h2-struttura__heading { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.1; }
}
@media (max-width: 599px) {
  .agg-h2-struttura { --struttura-notch: 36px; padding: 64px 20px; }
  .agg-h2-struttura__card { flex: 1 1 100%; }
  .agg-h2-struttura__number { font-size: 64px; }
}

/* ---------------------------------------------------------------
   DARK CTA (Section 9)
   Figma: 603:39 + 513:1593
   --------------------------------------------------------------- */
/* Black section with the neon-hand render inset at the top; the copy block
   overlaps the render's bottom edge (all black there) exactly as in Figma,
   where the content frame starts 709px into the 810px artwork. */
.agg-h2-cta {
  position: relative;
  background: #000000;
  padding: 120px 90px 200px;
  overflow: hidden;
}
.agg-h2-cta__media {
  max-width: 1260px;
  margin: 0 auto;
}
.agg-h2-cta__media img {
  display: block;
  width: 100%;
  height: auto;
  /* The render's last pixel rows are not quite #000, which reads as a seam
     against the section; fade the bottom edge out instead. */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.agg-h2-cta__inner {
  position: relative;
  z-index: 1;
  /* Figma's frame is 544px; +36px because Plus Jakarta Sans sets wider than
     Google Sans Flex and "Rimani avanti a ogni" needs 564px to stay on line 1. */
  max-width: 580px;
  margin: -88px auto 0; /* 101px overlap in Figma, scaled to the 1260px render */
  text-align: center;
}
.agg-h2-cta__heading {
  font-size: 64px;
  line-height: 60px;
  letter-spacing: -1.5px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 24px;
}
.agg-h2-cta__subtitle {
  font-size: 20px;
  line-height: 28px;
  color: rgba(255,255,255,0.72);
  font-family: var(--font);
  margin: 0 0 40px;
}
.agg-h2-cta__actions { display: flex; align-items: center; justify-content: center; gap: 17px; flex-wrap: wrap; }
.agg-h2-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 32px;
  border-radius: 9999px;
  font-size: 14px;
  font-family: var(--font);
  white-space: nowrap;
}
.agg-h2-cta__btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.agg-h2-cta__btn--primary { background: #ffffff; color: #050608; }
.agg-h2-cta__btn--primary:hover { opacity: 0.85; }
.agg-h2-cta__btn--secondary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.agg-h2-cta__btn--secondary:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 1199px) {
  .agg-h2-cta { padding: 80px 40px 120px; }
  .agg-h2-cta__inner { margin-top: -56px; }
  .agg-h2-cta__heading { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
}
@media (max-width: 767px) {
  .agg-h2-cta { padding: 64px 20px 80px; }
  .agg-h2-cta__inner { margin-top: -16px; }
  .agg-h2-cta__subtitle { font-size: 17px; line-height: 26px; }
}
@media (max-width: 599px) {
  .agg-h2-cta__inner { margin-top: 8px; }
  .agg-h2-cta__actions { flex-direction: column; width: 100%; }
  .agg-h2-cta__btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------
   CONTACT (Section 10)
   Figma: 513:1198
   --------------------------------------------------------------- */
.agg-h2-contact {
  background: #ffffff;
  color: #000000;
  padding: 76px 90px;
}
/* Figma's content frame is 1257px wide and centre-constrained inside the
   1440px section: 523px info column, 560px form card, 174px between them. */
.agg-h2-contact__inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 174px;
}
.agg-h2-contact__info { flex: 0 1 523px; }
.agg-h2-contact__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 20px;
  background: rgba(0,0,0,0.04);
  border-radius: 40px;
  font-size: 12px;
  line-height: 1;
  font-weight: 300;
  color: #000000;
  margin-bottom: 12px;
}
.agg-h2-contact__heading {
  /* Figma is 59.5px/61px; 56px/58px keeps the same ratio and the same 3-line
     break inside the 523px column, which Plus Jakarta Sans needs. */
  font-size: 56px;
  line-height: 58px;
  letter-spacing: -1.5px;
  font-weight: 500;
  color: #000000;
  margin: 0 0 24px;
}
.agg-h2-contact__body {
  font-size: 18px;
  line-height: 28px;
  color: rgba(0,0,0,0.72);
  font-family: var(--font);
  margin: 0 0 56px;
}
.agg-h2-contact__rows { display: flex; flex-direction: column; gap: 20px; }
.agg-h2-contact__row { display: flex; align-items: center; gap: 16px; color: #000000; }
.agg-h2-contact__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 52px;
}
.agg-h2-contact__row-text { display: flex; flex-direction: column; }
.agg-h2-contact__row-label {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  color: rgba(0,0,0,0.4);
  font-family: var(--font);
}
.agg-h2-contact__row-value {
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  font-family: var(--font);
}

.agg-h2-contact__form {
  flex: 0 0 560px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 24px;
  box-shadow: 0 4px 44px rgba(0,0,0,0.05);
  padding: 23px 37px;
}
/* FluentForm overrides to match Figma card */
.agg-h2-contact__form .ff-el-form-control {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.agg-h2-contact__form .ff-el-form-control:focus {
  border-color: rgba(0,0,0,0.25);
  outline: none;
}
.agg-h2-contact__form textarea.ff-el-form-control { min-height: 114px; resize: vertical; }
.agg-h2-contact__form .ff-el-input--label label {
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  color: rgba(0,0,0,0.9);
}
.agg-h2-contact__form .ff-el-group { margin-bottom: 16px; }
.agg-h2-contact__form .ff-el-input--content { margin-top: 8px; }
/* Figma centres the submit pill and gives it 32px of air above the fields. */
.agg-h2-contact__form .ff-el-group.ff-text-left.ff_submit_btn_wrapper,
.agg-h2-contact__form .ff_submit_btn_wrapper { text-align: center; margin: 32px 0 0; }
.agg-h2-contact__form button[type="submit"] {
  font-family: var(--font) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  padding: 10px 32px !important;
  border-radius: 9999px !important;
  background: #000000 !important;
  color: #ffffff !important;
}

.agg-h2-contact__note {
  margin: 16px 0 0;
  font-family: var(--font);
  font-size: 12px;
  line-height: 16px;
  color: rgba(0,0,0,0.35);
  text-align: center;
}
.agg-h2-contact__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.agg-h2-contact__social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.agg-h2-contact__social:hover { border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.02); }
.agg-h2-contact__social svg { width: 16px; height: 16px; }

@media (max-width: 1199px) {
  .agg-h2-contact { padding: 76px 40px; }
  .agg-h2-contact__inner { gap: 64px; }
  .agg-h2-contact__heading { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; }
}
@media (max-width: 1023px) {
  .agg-h2-contact__inner { flex-direction: column; gap: 56px; }
  .agg-h2-contact__info { flex: 1 1 auto; max-width: 560px; }
  .agg-h2-contact__form { flex: 1 1 auto; width: 100%; max-width: 560px; }
}
@media (max-width: 599px) {
  .agg-h2-contact { padding: 64px 20px; }
  .agg-h2-contact__form { padding: 20px; }
  .agg-h2-contact__heading { letter-spacing: -0.02em; }
}
