/* ==========================================================================
   Sezione 2 — Hero (carpooling, Figma 618:4445)
   Navbar glass + copy (titolo H2 + descrizione + pills) + form card OpnForm,
   su foto + gradiente cyan→trasparente. Niente marquee/box risparmio (non a Figma).
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
}

/* Sfondo: foto + gradiente cyan→trasparente (Figma 169.9°) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(169.9deg, rgba(91, 220, 255, 0.837) 0%, rgba(0, 77, 99, 0) 100%),
    url("../../img/hero/hero-bg.jpg") center / cover no-repeat;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 54px;
  padding-top: 32px;
  padding-bottom: 80px;
}

/* ---- Navbar ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo img { height: 22px; width: auto; }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar__links a {
  display: inline-block;
  padding: 9px 16px;
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar__links a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.btn--pill-light {
  padding: 7px 7px 7px 20px;
  background: var(--color-surface-2);
  color: var(--color-text);
}
.btn--pill-light:hover { background: #fff; }
.btn--pill-light .btn__arrow { background: var(--color-surface-3); color: var(--color-text); }

/* ---- Grid: copy + form ---- */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* ---- Left copy ---- */
.hero__copy { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.hero__form-wrap { min-width: 0; }
.hero__head { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  line-height: var(--lh-h2);
  color: #fff;
}
.hero__desc {
  font-size: var(--fs-p28);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  color: #fff;
}
.hero__desc strong { font-weight: var(--fw-bold); }

.hero__pills { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; max-width: 657px; }
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-p22);
  font-weight: var(--fw-bold);
  color: #fff;
}
.hero__pill-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
}
.hero__pill-ic svg { width: 15px; height: 15px; }

/* ---- Right: form card ---- */
.form-card {
  border-radius: var(--radius-image);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.form-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 48px 24px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.form-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h3);
  color: var(--color-text);
}
.form-card__body iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

/* early bird footer del form */
.form-card__earlybird {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 49px;
  background: #e2003b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.earlybird__ic { width: 32px; height: 32px; flex-shrink: 0; }
.earlybird__title { font-size: var(--fs-p20); font-weight: var(--fw-bold); white-space: nowrap; }
.earlybird__sub { flex: 1; text-align: center; font-size: var(--fs-body); font-weight: var(--fw-bold); color: #e0f2fe; line-height: 1.2; white-space: nowrap; }
.countdown--dark { flex-shrink: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
  .form-card__earlybird { flex-wrap: wrap; justify-content: center; text-align: center; }
  .earlybird__sub { flex-basis: 100%; }
}

@media (max-width: 720px) {
  .navbar__links { display: none; }
  .form-card__body { padding: 32px 24px 24px; }
  .form-card__earlybird { padding: 16px 24px; }
  .hero__inner { gap: 40px; }
}
