/* ================================================
   FLUXHR WEBSITE — SCAFFOLD & LAYOUT
   ================================================ */

:root {
  --brand-gradient: linear-gradient(90deg, #c544fb 0%, #7858f7 100%);
  --pricing-header-gradient: linear-gradient(to right, rgba(144, 30, 193, 1) 0%, rgb(107, 73, 238) 51%, rgba(144, 30, 193, 1) 100%);
  --hero-title-gradient: linear-gradient(90deg, #9433ca 0%, #7855fe 52%, #693ada 100%);
  --hero-surface:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, rgba(154, 58, 198, 0.18) 0%, rgba(160, 58, 191, 0.16) 56%, rgba(111, 94, 255, 0.2) 100%),
    #fbf7ff;
  --header-link-color: #540078;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e1e2f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .justify-content-lg-between {
    justify-content: space-between; /* it says importatant but we're not doing that now */
  }
}


a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 0.938rem;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.hero-shell .container,
.header .container {
  max-width: 1328px;
}

.hero-shell {
  background: var(--hero-surface);
  margin-top: -72px;
  padding-top: 72px;
}

/* ---------- COMMON SECTION SPACING ---------- */
.section-title {
  font-size: 2.125rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #1e1e2f;
}

.section-subtitle {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  line-height: 1.5;
  border-radius: 1.563rem;
  /* align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none; */
}

.btn:hover {
  opacity: 0.85;
}

.btn--primary {
  background: #6c3ce0;
  color: #fff;
  padding: 12px 32px;
  font-size: 0.95rem;
}

.btn--accent {
  background: var(--brand-gradient);
  color: #fff;
  padding: 14px 32px;
  font-size: 0.95rem;
}

.btn--accent-sm {
  background: #6c3ce0;
  color: #fff;
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn--outline {
  background: #fff;
  color: #6c3ce0;
  padding: 12px 32px;
  font-size: 0.95rem;
  border: 2px solid #e0d4f5;
}

.btn--soft {
  background: rgba(144, 30, 193, 0.07);
  color: #901ec1;
  padding: 12px 32px;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}

.btn--soft:hover {
  background: linear-gradient(to right, #901ec1 0%, #7450fe 51%, #901ec1 100%);
  background-size: 200% auto;
  color: #fff;
}



/* ---------- PLACEHOLDER BOXES ---------- */
.logo-placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: #6c3ce0;
}

.logo-placeholder--light {
  color: #fff;
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.header--scrolled {
  background-image: linear-gradient(to right, rgba(144, 30, 193, 0.90) 0%, rgba(116, 80, 254, 0.90) 51%, rgba(144, 30, 193, 0.90) 100%);
  background-size: 200% auto;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header--scrolled .header__nav-list a {
  color: #fff;
}

.header--scrolled .header__nav-list a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.header--scrolled .header__cta {
  background: #fff;
  color: #7450fe;
}

.header--scrolled .header__logo-image {
  content: url("../assets/images/flux-logo-white.png");
}

.header--scrolled .header__hamburger span {
  background: #fff;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 40px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-image {
  width: 150px;
  height: 45px;
  object-fit: contain;
}

.header__nav {
  margin-left: auto;
  margin-right: auto;
}

.header__nav-list {
  display: flex;
  gap: 40px;
}

.header__nav-list a {
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: var(--header-link-color);
  transition: color 0.2s;
}

.header__nav-list a:hover {
  color: #6c3ce0;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 157px;
  height: 38px;
  padding: 0 5px 4px;
  border: none;
  border-radius: 200px;
  background: #9434be;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  background: transparent;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__content {
  flex: 0 1 686px;
  min-width: 0;
  max-width: 686px;
}

.hero__title {
  display: inline-block;
  max-width: 100%;
  font-size: 3.125rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: #7120c6;
  background: var(--hero-title-gradient);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
  margin-bottom: 20px;
}

.hero__title-break {
  display: inline;
}

.hero__subtitle {
  width: 100%;
  max-width: 686px;
  font-size: 31px;
  font-weight: 600;
  line-height: 36px;
  color: #263b5e;
  margin-bottom: 32px;
}

.hero__input-group {
  display: flex;
  width: 100%;
  max-width: 550px;
  height: 50px;
  margin-bottom: 12px;
  border-radius: 190px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #9434be;
  overflow: hidden;
}

.hero__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 40px;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #263b5e;
}

.hero__input::placeholder {
  color: #3f3f3f;
  opacity: 1;
}

.hero__submit {
  flex: 0 0 164px;
  width: 164px;
  height: 50px;
  padding: 0;
  border-radius: 0 190px 190px 0;
  background: #9434be;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 18px;
  white-space: nowrap;
}

.hero__terms {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 24px;
}

.hero__stores {
  display: flex;
  gap: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 180px;
  height: 60px;
  padding: 0 12px;
  border: 2px solid #9434be;
  border-radius: 5px;
  background: transparent;
  color: #540078;
  text-decoration: none;
}

.store-badge__icon {
  flex: 0 0 auto;
  object-fit: contain;
}

.store-badge__icon--apple {
  width: 30px;
  height: 36px;
}

.store-badge__icon--play {
  width: 30px;
  height: 30px;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.store-badge__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: 0.02em;
  color: #540078;
  white-space: nowrap;
}

.store-badge__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: #540078;
  white-space: nowrap;
}

.hero__visual {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

/* Immagine hero mostrata nel flusso solo su mobile (tra subtitle e form) */
.hero__visual-mobile {
  display: none;
}

.hero__visual-image {
  width: 100%;
  max-width: 684px;
  height: auto;
  object-fit: contain;
  animation: floating2 7s infinite;
  -webkit-animation: floating2 7s infinite;
  will-change: transform;
}

/* ================================================
   SOCIAL PROOF
   ================================================ */
.social-proof {
  padding: 64px 0;
  text-align: center;
}

.social-proof__heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #263b5e;
  margin-bottom: 32px;
}

/* Marquee viewport – clips content and applies edge fades */
.social-proof__marquee {
  --marquee-gap: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

/* Scrolling track */
.social-proof__track {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.social-proof__logo {
  height: 1.6rem;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Marchi compatti (~1.4:1): ad altezza uniforme risulterebbero larghi un
   sesto dei wordmark, quindi illeggibili. Compensiamo con più altezza. */
.social-proof__logo--compact {
  height: 2.6rem;
}

/* Il track contiene 2 set uguali: metà larghezza = un set + (N - 0.5) gap,
   mentre lo scorrimento seamless richiede un set + N gap. Da qui il mezzo gap
   aggiuntivo, che resta valido qualunque sia il numero di loghi. */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); }
}

@keyframes floating2 {
  0% {
    transform: rotateX(0deg) translateY(0px);
  }
  50% {
    transform: rotateX(0deg) translateY(15px);
  }
  100% {
    transform: rotateX(0deg) translateY(0px);
  }
}

@-webkit-keyframes floating2 {
  0% {
    -webkit-transform: rotateX(0deg) translateY(0px);
    transform: rotateX(0deg) translateY(0px);
  }
  50% {
    -webkit-transform: rotateX(0deg) translateY(15px);
    transform: rotateX(0deg) translateY(15px);
  }
  100% {
    -webkit-transform: rotateX(0deg) translateY(0px);
    transform: rotateX(0deg) translateY(0px);
  }
}

/* Reduced-motion: stop animation, show static centred row */
@media (prefers-reduced-motion: reduce) {
  .hero__visual-image {
    animation: none;
    -webkit-animation: none;
  }

  .features__item,
  .features__item-desc {
    transition: none;
  }

  .social-proof__track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: auto;
  }
  .social-proof__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Hide duplicate logos in static layout */
  .social-proof__track .social-proof__logo[aria-hidden="true"] {
    display: none;
  }
}

/* Mobile: smaller fade zone and tighter gap (only when motion is OK) */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .social-proof__marquee {
    --marquee-gap: 32px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
}
/* Mobile gap also applies when motion is reduced */
@media (max-width: 768px) {
  .social-proof__track {
    gap: 32px;
  }
}

/* ================================================
   UTILIZZATO DA
   ================================================ */
.used-by {
  padding: 80px 0;
}

.used-by__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.used-by__card {
  background: var(--brand-gradient);
  color: #fff;
  min-height: clamp(12.5rem, 20vw, 13.1875rem);
  border-radius: 0.5rem;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 2.4vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.used-by__icon {
  height: clamp(2.875rem, 4vw, 3.25rem);
  width: auto;
  max-width: 100%;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  flex-shrink: 0;
}

.used-by__card h3 {
  max-inline-size: min(100%, 16ch);
  margin: 0 auto clamp(0.75rem, 1.2vw, 1rem);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.5625rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

.used-by__card p {
  max-inline-size: min(100%, 16.25rem);
  margin: 0 auto;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1rem);
  font-weight: 400;
  line-height: 1.4375;
  text-align: center;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.94);
}

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  /* padding: clamp(5rem, 5vw, 4rem) 0; */
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.cta-banner__inner {
  position: relative;
  background: #fff;
  box-shadow: 0 0.375rem 1.5rem 0 rgba(140, 152, 164, 0.125);
  padding: 3.125rem 2.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.938rem;
  margin-left: -0.938rem;
}

.cta-banner__overlay {
  background-image: url("../assets/cta-overlay.svg");
  background-repeat: no-repeat;
  background-position: center center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.col-lg-5 {
  position: relative;
  width: 100%;
  padding-right: 0.938rem;
  padding-left: 0.938rem;
}

@media (min-width: 992px) {
  .col-lg-5 {
    flex: 0 0 41.666667%;
  }
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  .text-lg-right {
    text-align: right;
  }
}

.mb-1 {
  margin-bottom: 1rem;
}

.cta-banner__content {
  position: relative;
  width: 100%;
  padding-right: 0.938rem;
  padding-left: 0.938rem;
  align-content: center;
}

.cta-banner__title {
  color: #333;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.cta-banner__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  flex-wrap: wrap;
}

.cta-banner__actions .btn {
  min-width: auto;
  padding: 0.75rem clamp(1.75rem, 2.2vw, 2.1875rem);
  font-size: 1rem;
  line-height: 1.2;
}

.cta-banner__actions .btn--gradient {
  box-shadow: 0 1.25rem 1.875rem rgba(12, 0, 46, 0.1);
}

.cta-banner__divider {
  color: #8c98a4;
  margin-left: 1rem;
  margin-right: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ================================================
   FEATURES (FUNZIONI)
   ================================================ */
.features {
  padding: 80px 0 24px;
}

.features__layout {
  display: flex;
  gap: 64px;
  align-items: stretch;
  margin-top: 48px;
}

.features__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.features__phone-placeholder {
  width: 280px;
  height: 520px;
  background: linear-gradient(180deg, #e8e0ff 0%, #f3eaff 100%);
  border-radius: 32px;
  border: 2px solid #e0d4f5;
}

.features__phone-image {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.features__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.features__item {
  display: grid;
  grid-template-rows: auto 0fr;
  padding: 16px 24px;
  background: #eef0fb;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    background-color 0.28s ease,
    grid-template-rows 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.features__item:focus-visible {
  outline: 2px solid #7450fe;
  outline-offset: 3px;
}

.features__item--active {
  background: #e0e4f8;
  grid-template-rows: auto 1fr;
}

.features__item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e1e2f;
}

.features__item-desc {
  display: block;
  min-height: 0;
  overflow: hidden;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0;
  padding-top: 8px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.32s ease,
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.features__item--active .features__item-desc {
  opacity: 1;
  transform: translateY(0);
}

.btn.features__cta {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 48px auto 0;
  padding: clamp(0.85rem, 0.8rem + 0.3vw, 1rem) clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  background-image: linear-gradient(to right, #901ec1 0%, #7450fe 51%, #901ec1 100%);
  background-position: left center;
  background-size: 200% auto;
  box-shadow: 0 20px 30px rgba(12, 0, 46, 0.1);
  font-size: clamp(0.98rem, 0.94rem + 0.22vw, 1.08rem);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: all 500ms;
}

.btn.features__cta:hover {
  opacity: 1;
  background-position: right center;
}

/* ================================================
   SAVINGS CALCULATOR
   ================================================ */
.savings {
  padding: 24px 0 80px;
  scroll-margin-top: 120px;
}

.savings__calc-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.savings__calculator {
  max-width: 700px;
  margin: 0 auto 48px;
}

.savings__input-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.savings__input {
  width: 140px;
  padding: 12px 16px;
  border: 1px solid #d0c4e8;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
}

.savings__label {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

.savings__slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: #999;
}

.savings__slider {
  flex: 1;
  accent-color: #6c3ce0;
}

.savings__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.savings__card {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.savings__card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.savings__card-value {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.savings__card-sub {
  font-size: 0.9rem;
  opacity: 0.8;
}

.savings__card-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ================================================
   COME LAVORA (HOW IT WORKS)
   ================================================ */
.how-it-works {
  padding: 80px 0;
}

.how-it-works__layout {
  display: flex;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.how-it-works__content {
  flex: 1 1 58%;
  min-width: 0;
}

.how-it-works__title {
  font-size: 2.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.how-it-works__subtitle {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.how-it-works__checklist {
  width: 100%;
}

.how-it-works__checklist ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-it-works__checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.how-it-works__checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: #6c3ce0;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.how-it-works__visual {
  flex: 0 1 42%;
  display: flex;
  justify-content: flex-end;
}

.how-it-works__phone-placeholder {
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
}

.how-it-works__video-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.how-it-works__video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 28px 70px rgba(28, 35, 90, 0.18);
}

.how-it-works__video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works__video-play {
  position: relative;
  display: inline-flex;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 32px rgba(31, 42, 90, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-it-works__video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #9434be;
}

.how-it-works__video-trigger:hover .how-it-works__video-play,
.how-it-works__video-trigger:focus-visible .how-it-works__video-play {
  transform: scale(1.04);
  box-shadow: 0 22px 40px rgba(31, 42, 90, 0.24);
}

.how-it-works__video-trigger:focus-visible {
  outline: 3px solid rgba(148, 52, 190, 0.28);
  outline-offset: 8px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 44, 0.74);
}

.video-modal__dialog {
  position: relative;
  width: min(100%, 1080px);
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px rgba(13, 20, 45, 0.45);
}

.video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #1d2742;
  cursor: pointer;
}

.video-modal__close-icon {
  width: 18px;
  height: 18px;
}

.video-modal__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.body--modal-open {
  overflow: hidden;
}

/* ================================================
   DEVICES
   ================================================ */
.devices {
  padding-top: 3rem;
  padding-bottom: 5rem;
  background: #f8f9fb;
  position: relative;
}

.devices__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.devices__item {
  margin: 0;
  text-align: center;
  display: grid;
  gap: 0.875rem;
}

.devices__media {
  min-height: clamp(14rem, 26vw, 19rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.devices__image {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  margin: 0 auto;
}

.devices__caption {
  display: grid;
  gap: 0.25rem;
}

.devices__name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: #1d2335;
}

.devices__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6d7688;
  margin: 0;
}

.list_devices_slide {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.list_devices_slide .item {
  text-align: center;
  padding: 0 10px;
}

.list_devices_slide .item img {
  display: block;
  height: 280px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.list_devices_slide .item p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #1d2335;
}

.list_devices_slide .owl-dots {
  text-align: center;
  padding: 30px 0;
}

.list_devices_slide .owl-dot {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.list_devices_slide .owl-dot.active,
.list_devices_slide .owl-dot:focus {
  border: none;
  outline: none;
}

.list_devices_slide .owl-dot span {
  width: 12px;
  height: 7px;
  border-radius: 15px;
  margin-left: 2px;
  margin-right: 2px;
  background: rgba(144, 30, 193, 0.07);
  border: none;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.list_devices_slide .owl-dot.active span {
  background: #901ec1;
  width: 25px;
}

/* ================================================
   PRICING
   ================================================ */
.pricing {
  padding: 80px 0;
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 20.25rem));
  justify-content: center;
  gap: 32px;
  align-items: start;
}

.pricing__card {
  width: min(100%, 20.25rem);
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(140, 152, 164, 0.125);
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  transition: transform 0.2s ease;
}

.pricing__card:hover {
  transform: translateY(-6px);
}

.pricing__card--featured {
  border: 2px solid #6c3ce0;
}

.pricing__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #f7ff00;
  color: #7403ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 23px;
  padding: 4px 24px;
  border-radius: 21px;
  border: 2px solid #fff;
  z-index: 3;
  white-space: nowrap;
}

/* --- Card header with angled shapes --- */
.pricing__card-header {
  position: relative;
  height: clamp(13rem, 22vw, 15rem);
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: var(--pricing-header-gradient);
}

.pricing__card-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.pricing__card-shape-image {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  display: block;
  width: 100%;
  height: clamp(8rem, 10vw, 10.5rem);
  object-fit: fill;
}

.pricing__card-header-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 32px 24px 0;
}

.pricing__card-header-content h3 {
  font-size: 30px;
  font-weight: 700;
  color: #fffcfc;
  line-height: 28px;
  text-align: center;
  margin-bottom: 4px;
  white-space: nowrap;
}

.pricing__card-header-content .pricing__price {
  font-size: 40px;
  font-weight: 700;
  color: #fffcfc;
  line-height: 1.1;
  text-align: center;
  margin: 8px 0 4px;
}

.pricing__card-header-content p {
  font-size: 16px;
  color: #fffcfc;
  line-height: 28px;
  text-align: center;
}

/* --- Feature list --- */
.pricing__feature-list {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pricing__feature {
  font-size: 0.9rem;
  padding-left: 32px;
  position: relative;
  line-height: 1.5;
}

.pricing__feature--included::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ede6fa;
  color: #6c3ce0;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing__feature--excluded::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fde8e8;
  color: #e53e3e;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Gradient button --- */
.btn--gradient {
  background: linear-gradient(to right, #901ec1 0%, #7450fe 51%, #901ec1 100%);
  background-size: 200% auto;
  color: #fff;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
  text-decoration: none;
  box-shadow: 0px 20px 30px 0px rgba(12, 0, 46, 0.1);
}

.btn--gradient:hover {
  opacity: 0.85;
}

.pricing__btn {
  margin: 8px 24px 28px;
  width: calc(100% - 48px);
  display: block;
}

/* ================================================
   FAQ
   ================================================ */
.faq {
  padding: 80px 0;
  background: #fff;
}

.faq__layout {
  display: flex;
  gap: 64px;
  align-items: stretch;
}

.faq__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.faq__illustration {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.faq__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: height 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__question {
  display: block;
  padding: 16px 24px;
  background: var(--pricing-header-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 12px;
  list-style: none;
}

.faq__item[open] .faq__question,
.faq__item--opening .faq__question,
.faq__item--closing .faq__question {
  border-radius: 12px 12px 0 0;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__answer {
  display: block;
  padding: 16px 24px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  background: #fff;
  border: 1px solid #e8e0f0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.32s ease,
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item[open]:not(.faq__item--closing) .faq__answer,
.faq__item--opening .faq__answer {
  opacity: 1;
  transform: translateY(0);
}

.faq__answer p + p {
  margin-top: 8px;
}

.faq__answer a {
  color: #6c3ce0;
  font-weight: 600;
}

/* ================================================
   CONTACT
   ================================================ */
.contact {
  padding: 80px 0;
}

.contact__inner {
  display: flex;
  gap: 64px;
}

.contact__info {
  flex: 1;
}

.contact__title {
  font-size: 2.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact__info > p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 32px;
}

.contact__info a {
  color: #6c3ce0;
  text-decoration: underline;
}

.contact__block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e0f0;
}

.contact__block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 36px 36px;
  flex-shrink: 0;
}

.contact__icon--route {
  background-image: url("../assets/contact-route.svg");
}

.contact__icon--stopwatch {
  background-image: url("../assets/contact-stopwatch.svg");
}

.contact__icon--smartphone {
  background-image: url("../assets/contact-smartphone.svg");
}

.contact__icon--paper-plane {
  background-image: url("../assets/contact-paper-plane.svg");
}

.contact__detail p {
  font-size: 0.9rem;
  color: #555;
}

.contact__form-wrap {
  flex: 1;
  min-width: 0;
  padding: 20px 0;
  position: relative;
}

.contact-shape {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.contact-shape img {
  display: block;
  height: auto;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.contact-form-block {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0px 0px 29px 6px rgba(154, 161, 171, 0.18);
  margin: 0 60px;
  padding: 60px 50px;
  position: relative;
  z-index: 1;
}

.contact__form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact__form-header > p {
  font-size: 0.9rem;
  color: #77838f;
  margin-bottom: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.contact-form__control {
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 30px;
  box-shadow: none;
  color: #222;
  font-size: 13px;
  font-weight: 300;
  height: 45px;
  line-height: 45px;
  margin-bottom: 20px;
  outline: none;
  padding: 0 10px;
  width: 100%;
}

.contact-form__control:focus {
  border-color: #901ec1;
}

.contact-form__control--textarea {
  height: 170px;
  line-height: 1.6;
  padding: 12px 16px;
  resize: none;
}

.contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}

.contact__consent a {
  color: #6c3ce0;
  text-decoration: underline;
}

.contact__recaptcha-placeholder {
  height: 78px;
  border: 1px solid #d0c4e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #999;
  margin-top: 20px;
  max-width: 304px;
}

.contact-form__submit {
  margin-top: 20px;
  padding: 12px 25px;
  width: fit-content;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form__feedback {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 1em;
}

.contact-form__feedback.is-success {
  color: #1f7a4d;
}

.contact-form__feedback.is-error {
  color: #c0392b;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: linear-gradient(to right, rgba(144, 30, 193, 1) 0%, rgb(107, 73, 238) 51%, rgba(144, 30, 193, 1) 100%);
  background-size: 200% auto;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  padding: 220px 0 0;
  position: relative;
}

.footer .shape-top {
  background-image: url("../assets/images/footer-top.svg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 204px;
  height: 180px;
  left: 0;
  margin-top: -1px;
  position: absolute;
  top: 0;
  transform: rotate(180deg);
  transform-origin: center;
  width: 100%;
  z-index: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr);
  column-gap: 32px;
  row-gap: 32px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

.footer__brand {
  min-width: 0;
}

.footer__logo {
  height: 2rem;
  width: auto;
}

.footer__brand p {
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer__social {
  margin-top: 16px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 0.85rem;
}

.footer__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 28px;
  align-items: flex-start;
  min-width: 0;
}

.footer__col {
  min-width: 0;
}

.footer__col--newsletter {
  min-width: 0;
}

.footer__col h4 {
  position: relative;
  padding-left: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__col h4::before {
  position: absolute;
  content: "";
  top: 30%;
  width: 10px;
  height: 10px;
  display: block;
  left: 0;
  box-shadow: 3px 3px 0px 0px rgb(196, 171, 230);
  background-color: #fff;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 0.85rem;
}

.footer__col ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__col ul a::before {
  content: "\00bb";
  font-size: 1rem;
  line-height: 1;
}

.footer__col p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__newsletter {
  --footer-newsletter-button-width: 150px;
  display: block;
  width: 100%;
  max-width: 500px;
  height: 45px;
  padding-right: var(--footer-newsletter-button-width);
  position: relative;
  background: transparent;
  border-radius: 30px;
  transition: box-shadow 0.2s ease;
}

.footer__newsletter:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24);
}

.footer__newsletter-input {
  width: 100%;
  height: 45px;
  padding: 0 20px;
  border: none;
  background: #fff;
  color: #707070;
  border-radius: 30px 0 0 30px;
  font-size: 0.95rem;
  line-height: 1;
  outline: none;
}

.footer__newsletter-input::placeholder {
  color: #8b8b8b;
  opacity: 1;
}

.footer__newsletter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: -1px;
  width: var(--footer-newsletter-button-width);
  height: 100%;
  padding: 0 18px;
  border: none;
  border-radius: 0 30px 30px 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.footer__newsletter-button:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.footer__bottom p {
  font-size: 0.8rem;
}

/* ================================================
   SCROLL TO TOP
   ================================================ */
.scroll-top {
  position: fixed;
  bottom: 45px;
  right: 45px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: linear-gradient(to right, #901ec1 0%, #7450fe 51%, #901ec1 100%);
  background-size: 200% auto;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 40px;
  text-align: center;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all .3s ease-in-out;
  box-shadow: 0px 20px 30px 0px rgba(12, 0, 46, 0.1);
}

.scroll-top:hover {
  background-position: right center;
}

.scroll-top--visible {
  display: flex;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
  /* .cta-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  } */

  .cta-banner__actions {
    justify-content: center;
  }

  /* .cta-banner__content {
    max-inline-size: 100%;
  } */


  .cta-banner__title {
    font-size: clamp(1.75rem, 1.45rem + 1vw, 2.125rem);
  }

  .hero__title-break {
    display: none;
  }

  .hero__title {
    font-size: 2.375rem;
  }

  .hero__inner {
    flex-direction: column;
  }

  .hero__visual {
    justify-content: center;
  }

  .hero__visual-image {
    max-width: 520px;
  }

  .used-by__cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .features__layout {
    flex-direction: column;
  }

  .features__phone-placeholder {
    width: 220px;
    height: 400px;
  }

  .features__phone-image {
    height: auto;
    width: 100%;
  }

  .savings__results {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .how-it-works__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .how-it-works__visual {
    width: 100%;
    justify-content: center;
  }

  .how-it-works__video-play {
    width: 78px;
    height: 78px;
  }

  .how-it-works__video-play::before {
    border-top-width: 15px;
    border-bottom-width: 15px;
    border-left-width: 24px;
  }

  .devices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing__cards {
    grid-template-columns: 1fr;
  }

  .faq__layout {
    flex-direction: column;
  }

  .contact__inner {
    flex-direction: column;
  }

  .contact__form-wrap {
    padding: 0;
  }

  .contact-form-block {
    margin: 0;
    padding: 30px 20px;
  }

  .contact-shape img {
    left: 0;
    right: 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-top: 60px;
  }

  .footer .shape-top {
    display: none;
  }

  .footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__col--newsletter {
    grid-column: 1 / -1;
    max-width: 500px;
  }

  .video-modal {
    padding: 16px;
  }

  .video-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
}

@media (min-width: 1025px) {
  .how-it-works__checklist li {
    white-space: nowrap;
  }

  .how-it-works__phone-placeholder {
    width: min(100%, 410px);
  }

  .pricing__card-header {
    height: clamp(15rem, 22vw, 17rem);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .how-it-works__phone-placeholder {
    width: min(100%, 340px);
  }

  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  /* Mobile nav overlay */
  .header__nav--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99;
    padding: 32px 24px;
    overflow-y: auto;
  }

  .header__nav--open .header__nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .header__nav--open .header__nav-list a,
  .header--scrolled .header__nav--open .header__nav-list a {
    font-size: 1.2rem;
    color: var(--header-link-color);
  }

  /* No hover state inside the white mobile menu (avoids white-on-white) */
  .header__nav--open .header__nav-list a:hover,
  .header--scrolled .header__nav--open .header__nav-list a:hover {
    color: var(--header-link-color);
  }

  /* Megamenu accordion su mobile */
  .header__nav--open .header__nav-item--megamenu {
    display: flex;
    flex-direction: column;
  }

  .header__nav--open .megamenu {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 10px;
    padding: 8px 0 0;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header__nav--open .header__nav-item--megamenu.is-open .megamenu {
    max-height: 600px;
    transform: none;
  }

  .header__nav--open .megamenu__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .header__nav--open .megamenu__item {
    padding: 10px 4px;
    border-radius: 8px;
  }

  .header__nav--open .megamenu__icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .header__nav--open .megamenu__title {
    font-size: 0.9rem;
  }

  .header__nav--open .megamenu__desc {
    display: none;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero__title {
    font-size: 1.875rem;
    line-height: 1.06;
    letter-spacing: -0.04em;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__input-group {
    flex-direction: column;
    gap: 12px;
    height: auto;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .hero__input {
    height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px #9434be;
    background: #fff;
  }

  .hero__submit {
    width: 100%;
    flex-basis: auto;
    border-radius: 999px;
  }

  .hero__stores {
    flex-direction: column;
  }

  .hero__visual-image {
    max-width: 100%;
  }

  /* Su mobile: mostra l'immagine tra subtitle e form, nascondi quella laterale */
  .hero__visual {
    display: none;
  }

  .hero__visual-mobile {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 8px 0 24px;
  }

  .used-by {
    padding: 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-banner__inner {
    padding: 3.125rem 1.25rem;
  }

  .cta-banner__content {
    text-align: center;
  }

  .cta-banner__title {
    /* font-size: clamp(1.625rem, 1.35rem + 2.2vw, 2rem);
    line-height: 1.16; */
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  /* .cta-banner__actions {
    width: 100%;
    margin-top: 25px;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    flex-wrap: nowrap;
  } */

  .cta-banner__content .btn {
    padding: 0.625rem 1.063rem;
    font-size: 0.875rem;
    /* padding: 0.625rem clamp(0.625rem, 4.1vw, 1.0625rem);
    font-size: clamp(0.75rem, 3.4vw, 0.875rem);
    white-space: nowrap; */
  }

  .cta-banner__divider {
    /* font-size: clamp(0.875rem, 3.6vw, 1rem);
    white-space: nowrap; */
    font-size: 0.875rem;
  }

  .devices__grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(15rem, 78vw);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 2rem -20px 0;
    padding: 0 20px 0.5rem;
  }

  .devices__item {
    scroll-snap-align: start;
  }

  .devices__media {
    min-height: 12rem;
    padding: 0.5rem;
  }

  .btn.features__cta {
    width: 100%;
    font-size: clamp(0.92rem, 0.9rem + 0.2vw, 0.98rem);
    padding: 0.85rem 1.1rem;
  }

  .savings__input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .savings__input {
    width: 100%;
  }

  .faq__question,
  .faq__answer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__col--newsletter {
    grid-column: auto;
    max-width: none;
  }

  .footer__newsletter {
    --footer-newsletter-button-width: 132px;
    max-width: 100%;
    height: 42px;
  }

  .footer__newsletter-input {
    height: 42px;
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .footer__newsletter-button {
    width: var(--footer-newsletter-button-width);
    padding: 0 16px;
    font-size: 0.95rem;
  }
}


/* ============ MEGAMENU ============ */
.header__nav-item--megamenu {
  position: static;
}

.header__nav-megamenu-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.megamenu-chevron {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.header__nav-item--megamenu.is-open .megamenu-chevron {
  transform: rotate(180deg);
}

.megamenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(960px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(108, 60, 224, 0.13), 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
  border: 1px solid rgba(144, 30, 193, 0.1);
}

.header__nav-item--megamenu.is-open .megamenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.megamenu__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}

.megamenu__item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.megamenu__item .megamenu__text {
  transition: transform 0.18s ease;
}

.megamenu__item:hover .megamenu__text {
  transform: translateX(4px);
}

.megamenu__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(144, 30, 193, 0.08);
  flex-shrink: 0;
  color: #901ec1;
  margin-top: 1px;
}

.megamenu__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.megamenu__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e1e2f;
  line-height: 1.3;
}

.megamenu__desc {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.5;
}

/* Ensure header is positioned relative for megamenu */
.header {
  position: sticky;
  top: 0;
}

/* ================================================
   FEATURE PAGE (fp-*)
   ================================================ */

/* Hero: sfondo rosa/lavanda, titolo + breadcrumb centrati */
.fp-hero {
  background: var(--hero-surface);
  padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
}

.fp-hero__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #7120c6;
  background: var(--hero-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.12em;
  margin-bottom: 14px;
}

.fp-hero__title strong {
  font-weight: 800;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fp-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: #999;
}

.fp-hero__breadcrumb a {
  color: #999;
  text-decoration: none;
}

.fp-hero__breadcrumb a:hover { color: #901ec1; }

.fp-hero__breadcrumb-current {
  color: #901ec1;
  font-weight: 600;
}

/* Intro: sfondo bianco, 2 colonne */
.fp-intro {
  background: #fff;
  padding: clamp(48px, 6vw, 80px) 0;
}

.fp-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.fp-intro__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.125rem;
  font-weight: 700;
  color: #1e1e2f;
  line-height: 1.3;
  margin-bottom: 16px;
}

.fp-intro__desc {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 28px;
}

.fp-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-checklist li {
  font-family: "Plus Jakarta Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #333;
}

.fp-checklist li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f3e8ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23901ec1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 15px 15px;
  background-position: center;
  background-repeat: no-repeat;
}

.fp-intro__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fp-intro__image img {
  width: 100%;
  aspect-ratio: 525 / 423;
  object-fit: contain;
}

/* Contenuto centrato */
.fp-content {
  background: #fff;
  padding: 0 0 clamp(180px, 24vw, 300px);
  position: relative;
  overflow: hidden;
}

.fp-lead {
  background: #fff;
  padding: clamp(40px, 5vw, 64px) 0 0;
}

.fp-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: url('../assets/images/collina_background.png') center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.fp-content > .container {
  position: relative;
  z-index: 1;
}

.fp-content__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.125rem;
  font-weight: 700;
  text-align: center;
  color: #1e1e2f;
  line-height: 1.4;
  margin-bottom: 28px;
}

.fp-content__body {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  text-align: center;
}

.page-geoloc .fp-intro__grid {
  grid-template-columns: 1fr 1fr;
}

.page-geoloc .fp-content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.page-geoloc .fp-content__grid .fp-content__title,
.page-geoloc .fp-content__grid .fp-content__body {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .fp-intro__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fp-intro__image {
    order: -1;
  }

  .page-geoloc .fp-intro__grid {
    grid-template-columns: 1fr;
  }

  .page-geoloc .fp-content__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================================
   PAGE: badge-timbrature (.page-badge)
   ================================================ */
.page-badge {
  background-color: #fff;
  background-image:
    linear-gradient(to bottom, transparent 55%, #fff 100%),
    linear-gradient(90deg, #f2e8f8 0%, #d8b6e5 60%, #d8ccfb 100%);
  background-position: top center, top center;
  background-size: 100% 500px, 100% 500px;
  background-repeat: no-repeat, no-repeat;
}
.page-badge .header:not(.header--scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
}
.page-badge .fp-hero {
  background: transparent;
}

.page-badge .fp-hero__breadcrumb,
.page-badge .fp-hero__breadcrumb a,
.page-badge .fp-hero__breadcrumb span {
  color: #3d1b6e;
}
.page-badge .fp-hero__breadcrumb-current {
  color: #901ec1 !important;
}
.page-badge .footer .shape-top {
  background-image: url("../assets/images/footer-top-gray.svg");
}

/* ================================================
   FEATURE GRID (permette di) — accesso-visitatori
   ================================================ */
.fp-features {
  background: #fff;
  padding: clamp(48px, 6vw, 80px) 0;
}

@media (min-width: 769px) {
  .fp-features {
    padding-top: 0;
  }

  .page-accesso .fp-content {
    padding-bottom: 0;
  }
}

.fp-features__label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  color: #1e1e2f;
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
}

.fp-features__wrapper {
  position: relative;
}

.fp-features__circles {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 0;
}

.fp-features__oval {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.fp-features__oval--1 { width: 780px; height: 780px; background: #f9f8fd; animation: fp-oval-breathe 4s ease-in-out infinite; animation-delay: 0.75s; }
.fp-features__oval--2 { width: 645px; height: 645px; background: #f4f2fb; animation: fp-oval-breathe 4s ease-in-out infinite; animation-delay: 0.5s; }
.fp-features__oval--3 { width: 495px; height: 495px; background: #f0ecf8; animation: fp-oval-breathe 4s ease-in-out infinite; animation-delay: 0.25s; }
.fp-features__oval--4 { width: 333px; height: 333px; background: #ede9f9; animation: fp-oval-breathe 4s ease-in-out infinite; animation-delay: 0s; }

@keyframes fp-oval-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.04); }
}

/* Ripple rings that expand outward from the innermost circle */
@keyframes fp-ripple {
  0%   { transform: translate(-50%, -50%) scale(0.43); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.1);  opacity: 0; }
}

.fp-features__circles::before,
.fp-features__circles::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: rgba(144, 30, 193, 0.06);
  animation: fp-ripple 3s ease-out infinite;
  animation-fill-mode: backwards;
  pointer-events: none;
}

.fp-features__circles::after {
  animation-delay: 1.5s;
}

.fp-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 120px 80px;
  position: relative;
  z-index: 1;
  padding: 80px 40px;
}

.fp-features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.fp-features__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.3rem;
}

.fp-features__item p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1e1e2f;
  max-width: 180px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .fp-features__circles {
    display: none;
  }

  .fp-features__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
  }
}

.page-accesso .fp-content {
  padding-bottom: 40px;
}

.page-esportazione .fp-content::after {
  display: none;
}

/* ================================================
   SHOWCASE (cards + phone) — scarico-tempi
   ================================================ */
.fp-showcase {
  background: #fff;
  padding: clamp(40px, 5vw, 72px) 0;
}

.fp-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 400px 1fr;
  gap: 16px;
  align-items: center;
}

.fp-showcase__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fp-showcase__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fp-showcase__phone img {
  width: 100%;
  max-width: 300px;
}

.fp-showcase__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(108, 60, 224, 0.09);
  padding: 28px;
}

.fp-showcase__card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e1e2f;
  margin-bottom: 10px;
}

.fp-showcase__card-desc {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
}

@media (max-width: 768px) {
  .fp-showcase__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fp-showcase__phone {
    order: -1;
  }
}

.page-esportazione .fp-content {
  padding-bottom: clamp(32px, 4vw, 48px);
}

.page-esportazione .cta-banner {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(180px, 24vw, 300px);
}

.page-esportazione .cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: url('../assets/images/collina_background.png') center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page-esportazione .cta-banner__inner {
  z-index: 1;
}

@media (max-width: 768px) {
  .page-accesso .fp-content {
    padding-bottom: clamp(48px, 6vw, 80px);
  }
}

.page-accesso .fp-content::after {
  display: none;
}

.page-accesso .fp-features {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(260px, 32vw, 400px);
}

.page-accesso .fp-features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: url('../assets/images/collina_background.png') center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}


/* ================================================
   DICONO DI NOI (.reviews) — pagina prezzi
   ================================================ */
.reviews {
  background: #fff;
  padding: 80px 0 clamp(180px, 24vw, 300px);
  position: relative;
  overflow: hidden;
}

/* Collinetta di raccordo verso la sezione successiva */
.reviews::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: url('../assets/images/collina_background.png') center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.reviews > .container {
  position: relative;
  z-index: 1;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  background: #f8f8fb;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review__author-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.review__author-text strong {
  font-weight: 700;
  color: #1e1e2f;
}

.review__author-text span {
  font-size: 0.85rem;
  color: #555;
}

.review__quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.review__stars {
  margin-top: auto;
  align-self: flex-end;
  display: flex;
  gap: 4px;
  font-size: 0.8rem;
  color: #f4a623;
}

@media (max-width: 900px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}
