/* ==========================================================================
   Sezione 2 — Hero (Figma 254:1485)
   Navbar glass + copy + form card + marquee, su gradiente cyan→teal
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: clamp(640px, 52vw, 1000px);
}

/* Sfondo: foto (persona col telefono) + overlay a due gradienti come Figma 365:1980 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(136.6deg, rgb(34 120 143) 2.75%, rgba(14, 151, 187, 0) 68.7%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%),
    url("../../img/hero/hero-b.jpg") left center / cover no-repeat;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.5vw, 96px);
  padding-top: 40px;
  padding-bottom: clamp(32px, 3.5vw, 64px);
}

/* ---- 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-16);
  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: start;
}

/* ---- Left copy (colonna sinistra ~752px come Figma) ---- */
.hero__copy { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 752px; }
.hero__headings { display: flex; flex-direction: column; gap: 18px; }
.hero__title { color: #fff; }
.hero__lead {
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  line-height: var(--lh-h2);
  color: #fff;
}
.hero__lead strong { font-weight: var(--fw-bold); }
.hero__desc {
  font-size: var(--fs-p22);
  line-height: 1.4;
  color: #fff;
  max-width: none;
}
.hero__desc strong { font-weight: var(--fw-bold); }

/* Pills "frosted glass" — gradiente translucido bianco + icona check gradiente (Figma 365:1998) */
.hero__pills { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px 8px 16px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  font-size: var(--fs-p22);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}
.hero__pill-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%);
  border-radius: 12px;
  color: #fff;
}
.hero__pill-ic svg { width: 14px; height: 14px; }

.hero__sub {
  font-size: var(--fs-p20);
  line-height: 1.2;
  color: #fff;
}
.hero__sub strong { font-weight: var(--fw-bold); }

.hero__savings {
  position: relative;
  padding: 12px 19px;
  border-top: 1px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.3) 15%, rgba(255, 255, 255, 0) 62%);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  text-align: left;
}
.hero__savings-top { font-size: var(--fs-body); line-height: 1.2; }
.hero__savings-big { font-size: var(--fs-p28); font-weight: var(--fw-bold); line-height: 1.2; color: #fff; }
.hero__savings-mid { font-size: var(--fs-body); line-height: 1.2; }
.hero__savings-note { font-size: var(--fs-body); line-height: 1.2; margin-top: 4px; }

/* badge flottanti Mobile App + Carta virtuale */
.hero__badges {
  position: absolute;
  right: 12px;
  top: -40px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.mini-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 78px;
  padding: 9px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.mini-badge__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
}
.mini-badge__ic svg { width: 22px; height: 22px; }
.mini-badge__ic--green { background: linear-gradient(157deg, #5ee38d 0%, #00a86b 100%); }
.mini-badge__ic--cyan { background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%); }
.mini-badge__label { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--color-text); }
.hero__plus { font-size: var(--fs-h3); font-weight: var(--fw-semibold); color: #fff; }

/* ---- Right: form card ---- */
.form-card {
  border-radius: var(--radius-image);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  margin-top: 24px;
}
.form-card__body {
  display: flex;
  flex-direction: column;
  gap: 41px;
  padding: 48px 48px 48px 48px;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 55%);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.form-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.form-logos__item { width: auto; opacity: 0.95; }
img.form-logos__item[alt="Italo"]      { height: 30px; }
img.form-logos__item[alt="Airbnb"]     { height: 36px; }
img.form-logos__item[alt="Trenitalia"] { height: 33px; }
img.form-logos__item[alt="Carrefour"]  { height: 44px; }
img.form-logos__item[alt="Uber"]       { height: 20px; }
img.form-logos__item[alt="Eni"]        { height: 44px; }
img.form-logos__item[alt="Cooltra"]    { height: 24px; }
.form-logos__q8 { position: relative; display: inline-block; width: 80px; height: 36px; }
.form-logos__q8 img { position: absolute; }
.form-logos__q8b { right: 0; top: 0; height: 36px; }
.form-logos__q8a { left: 0; bottom: 0; height: 21px; }
.form-logos__more { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--color-text); }

.form-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h3);
  color: #fff;
}

.form-card__body iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.signup-form { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: #fff;
}
.field input,
.field select {
  width: 100%;
  padding: 11px 16px;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid transparent;
  border-radius: 15px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input::placeholder { color: var(--color-surface-2); }
.field input:focus,
.field select:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.55); }
.field__select { position: relative; }
.field__select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.field__select select option { color: var(--color-text); }
.field__chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #fff;
}
.field__chevron svg { width: 12px; height: 8px; }
.field.has-error input,
.field.has-error select { border-color: #ffd2dd; background: rgba(226, 0, 59, 0.25); }

/* checkbox */
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: rgba(17, 17, 17, 0.05);
  border: 1px solid rgba(17, 17, 17, 0.5);
  border-radius: 4px;
  color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.checkbox__box svg { width: 12px; height: 12px; }
.checkbox input:checked + .checkbox__box { background: #111; border-color: #111; color: #fff; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid #fff; outline-offset: 2px; }
.checkbox__text { font-size: 15px; color: #fff; }
.checkbox__text a { text-decoration: underline; }
.checkbox.has-error .checkbox__box { border-color: #ffd2dd; }

.btn--submit {
  width: 100%;
  justify-content: space-between;
  padding: 7px 7px 7px 20px;
  background: #e2003b;
  color: #fff;
  font-size: var(--fs-14);
}
.btn--submit:hover { background: #c70034; }
.btn--submit .btn__arrow { background: rgba(255, 255, 255, 0.2); border: 1px solid #fff; }

.form-note { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #fff; }
.form-note__ic { width: 12px; height: 12px; flex-shrink: 0; }

.form-success {
  padding: 16px;
  border-radius: 15px;
  background: rgba(0, 168, 107, 0.92);
  color: #fff;
  font-weight: var(--fw-bold);
  text-align: center;
}

/* 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 { font-size: var(--fs-body); color: #e0f2fe; text-align: center; line-height: 1.2; margin-left: auto; }
.earlybird__sub strong { font-weight: var(--fw-bold); }
.countdown--dark { margin-left: auto; }

/* ---- Marquee in basso nell'hero (Figma 365:2685): trasparente, sopra la foto ---- */
.hero__marquee {
  position: relative;
  margin-top: auto;      /* spinge il marquee in fondo all'hero */
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__word {
  flex-shrink: 0;
  padding: 0 36px;
  font-size: clamp(3rem, 7.3vw, 140px); /* 140px @1920 */
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
.marquee__word i { color: #e2003b; font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__copy { max-width: 100%; }
  .hero__desc { max-width: none; }
}

@media (max-width: 720px) {
  .navbar__links { display: none; }
  .hero__inner { gap: 40px; padding-bottom: 72px; min-height: 0; }
  .hero__title { font-size: clamp(3rem, 13vw, 4rem); }
  .marquee-band { height: 84px; }
  .marquee__word { font-size: clamp(2.75rem, 13vw, 4.5rem); }
}
