/* Solo la home ospiti (body.proposta-page). I valori qui non escono da quella pagina. */
body.proposta-page {
  --ph-blue: #0066cc;
  --ph-yellow: #ffcc00;
  --ph-yellow-glow: rgba(13, 0, 255, 0.75);
  --ph-title: #111;
  --ph-ink: #111827;
  --ph-muted: #3a4556;
  --ph-soft: #5a6570;
  --ph-line: rgba(15, 23, 42, 0.06);
  --ph-glass: rgba(255, 255, 255, 0.72);
  --ph-glass-row: rgba(255, 255, 255, 0.82);
}

/* Desktop (≥769px, come le altre pagine): niente menu laterale, fascia con logo + Accedi. */
@media (min-width: 769px) {
  body.proposta-page .icon-nav,
  body.proposta-page .nav-dock,
  body.proposta-page .nav-glass-backdrop,
  body.proposta-page .top-bar {
    display: none !important;
  }

  html body.proposta-page:not(.exmap-page) {
    padding-left: 0 !important;
    padding-top: 0 !important;
  }
}

/* Fascia in alto: giallo solido lievissimo (blob #ffcb64 schiarito). Il logo è allineato al testo della hero. */
body.proposta-page .proposta-light-bar {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 7% 0 16%;
  background: linear-gradient(to bottom right, #fff6dc 0%, #fff7e3 14%, #fff8ea 28%, #fffaf2 42%, #fffbf7 58%, #fffdfb 76%, #ffffff 100%);
  position: relative;
  /* Sotto il telefono (z-index 5) e sotto la barra numeri (z-index 6). */
  z-index: 2;
}

body.proposta-page .proposta-light-bar .meedico-wordmark {
  color: var(--ph-blue);
  font-weight: 800;
  font-size: 1.5rem; /* 24px */
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

body.proposta-page .proposta-light-bar .meedico-wordmark__ee {
  color: var(--ph-yellow);
  text-shadow: 0 0 9px var(--ph-yellow-glow);
}

/* Stessa voce «Accedi» della navbar (icona + testo, riga aperta). */
body.proposta-page .proposta-light-bar .nav-item {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #000;
}

body.proposta-page .proposta-light-bar .nav-item i {
  font-size: 1.25rem;
  width: 24px;
  margin: 0;
  text-align: center;
  color: inherit;
}

body.proposta-page .proposta-light-bar .nav-item .nav-text {
  opacity: 1 !important;
  transform: none !important;
  max-width: none !important;
  overflow: visible !important;
  pointer-events: auto;
  display: block !important;
  visibility: visible !important;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: #000;
}

body.proposta-page .proposta-light-bar .nav-item:hover {
  background: rgba(0, 102, 204, 0.06);
  color: #000;
}

/* Telefono: fascia proposta spenta, torna la navbar delle altre pagine. */
@media (max-width: 768px) {
  body.proposta-page .proposta-light-bar {
    display: none !important;
  }
}

body.proposta-page .hero {
  overflow: visible;
  position: relative;
  z-index: auto;
  /* Altezza del contenuto, non dello schermo: il telefono deve uscire sotto. */
  min-height: auto;
  align-items: center;
  padding: 50px 7% 28px 16%;
  background: rgb(0 29 255 / 11%);
}

body.proposta-page .hero .content {
  position: relative;
  z-index: 2;
  flex: 1 1 46%;
  max-width: 640px;
}

body.proposta-page .hero h1 {
  text-align: left;
  font-size: clamp(2.35rem, 3.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ph-title);
}

body.proposta-page .hero .hero-word-chip {
  margin-top: 6px;
}

/* Rotazione titoli: prima la home, poi gli H1 delle landing già online. */
body.proposta-page .proposta-hero-rotator {
  position: relative;
  min-height: 2.7em;
  overflow: visible;
}

body.proposta-page .proposta-hero-rotator__slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  filter: blur(10px);
  clip-path: none;
  transform: none;
  transition: opacity 0.85s ease, filter 0.9s ease;
  pointer-events: none;
}

body.proposta-page .proposta-hero-rotator__slide.is-active {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

body.proposta-page .proposta-hero-rotator__slide.is-leaving {
  opacity: 0;
  filter: blur(8px);
}

body.proposta-page .proposta-hero-rotator__slide .hero-word-chip {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  body.proposta-page .hero-image-container {
    transform: none !important;
  }

  body.proposta-page .benefit-row,
  body.proposta-page .benefit-row__text,
  body.proposta-page .benefit-row__ic--g,
  body.proposta-page .benefits-rail__head,
  body.proposta-page .benefits-rail__head-m,
  body.proposta-page .benefits-rail__head-g,
  body.proposta-page .benefits-fan__ic {
    transition: none;
  }

  body.proposta-page .proposta-hero-rotator {
    min-height: 0;
  }

  body.proposta-page .proposta-hero-rotator__slide,
  body.proposta-page .proposta-hero-rotator__slide .hero-word-chip {
    position: static;
    opacity: 1;
    filter: none;
    transform: none;
    clip-path: none;
    transition: none;
  }

  body.proposta-page .proposta-hero-rotator__slide:not(.is-active) {
    display: none;
  }
}

body.proposta-page .hero .content > h2 {
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ph-muted);
  max-width: 34rem;
  margin: 0;
  padding: 0;
}

body.proposta-page .hero .button-group {
  justify-content: flex-start;
  padding: 0;
  margin-top: 22px;
  gap: 14px;
}

body.proposta-page .hero .button-group button,
body.proposta-page .home-bottom-cta .button-group button {
  min-width: 0;
  flex-grow: 0;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 12px;
  color: var(--ph-ink);
  opacity: 1;
  animation: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.proposta-page .hero .button-group button:focus-visible,
body.proposta-page .home-bottom-cta .button-group button:focus-visible {
  outline: 2px solid rgba(0, 102, 204, 0.45);
  outline-offset: 2px;
}

/* Stessa goccia della barra anche sulle pillole e su Registrati. */
body.proposta-page .hph-cta,
body.proposta-page .signup .home-signup-submit {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.proposta-page .hph-cta > i {
  position: relative;
  z-index: 1;
}

/*
 * Telefono: sale sulla fascia in alto e sborda nella sezione gialla sotto.
 * Resta sotto la barra numeri (body.proposta-page .proposta-proof).
 */
body.proposta-page .hero-image-container {
  position: relative;
  z-index: 5;
  flex: 1 1 48%;
  height: 620px;
  margin-top: -64px;
  margin-bottom: -170px;
}

@media (max-width: 768px) {
  /* Sul telefono le card non devono inseguire il dito con un ritardo, e i blob sfocati non restano in animazione durante lo scroll. */
  body.proposta-page .hero-float-layer > a.hero-live-card.bottom {
    transition: none;
    will-change: auto;
  }

  body.proposta-page .animated-background::before,
  body.proposta-page .animated-background::after,
  body.proposta-page .animated-background .blob-yellow {
    animation: none;
  }
}

/*
 * Sezione della barra numeri, sotto la hero.
 * Nessun fondo giallo: resta trasparente come il resto.
 */
body.proposta-page .proposta-after-hero {
  position: relative;
  z-index: auto;
  margin: 0;
  padding: 64px 7% 64px;
  background: transparent;
  pointer-events: none;
}

body.proposta-page .proposta-proof {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

body.proposta-page #home-platform-intro {
  position: relative;
  z-index: 4;
  padding-top: 78px;
}

body.proposta-page .proposta-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(980px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.proposta-page .proposta-proof div {
  padding: 22px 16px 18px;
  text-align: center;
}

body.proposta-page .proposta-proof div + div {
  border-left: 1px solid var(--ph-line);
}

body.proposta-page .proposta-proof strong {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ph-ink);
}

body.proposta-page .proposta-proof strong.is-tick {
  animation: propostaCountTick 0.55s ease;
}

@keyframes propostaCountTick {
  0% {
    opacity: 0.4;
    transform: translateY(5px) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translateY(0) scale(1.07);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.proposta-page .proposta-proof span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ph-soft);
}

@media (max-width: 900px) {
  body.proposta-page .proposta-light-bar {
    height: 60px;
    padding: 0 18px;
  }

  body.proposta-page .proposta-hero-rotator {
    min-height: 3.6em;
  }

  body.proposta-page .hero {
    padding: 40px 18px 0;
  }

  body.proposta-page .proposta-after-hero {
    padding: 64px 16px 48px;
  }

  body.proposta-page #home-platform-intro {
    padding-top: 64px;
  }

  body.proposta-page .hero .content,
  body.proposta-page .hero h1,
  body.proposta-page .hero .content > h2,
  body.proposta-page .hero .button-group {
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.proposta-page .hero-image-container {
    height: auto;
    min-height: 460px;
    margin-top: 12px;
    margin-bottom: -100px;
  }
}

/* Prova separata /proposta-home-flip: su desktop testo a destra e telefono a sinistra. */
@media (min-width: 901px) {
  body.proposta-page .hero-image-container {
    align-self: flex-end;
  }

  body.proposta-page-flip .hero {
    flex-direction: row-reverse;
  }
}

@media (max-width: 600px) {
  body.proposta-page .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    line-height: 1.12;
  }

  body.proposta-page .proposta-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.proposta-page .proposta-proof div {
    padding: 14px 6px 12px;
  }

  body.proposta-page .proposta-proof div + div {
    border-left: 1px solid var(--ph-line);
    border-top: 0;
  }

  body.proposta-page .proposta-proof strong {
    font-size: 1.05rem;
  }

  body.proposta-page .proposta-proof span {
    font-size: 0.72rem;
    line-height: 1.25;
  }
}

/* Velo minimo sui blob. Non alzare: al 85% la grana si vedeva e dava fastidio. */
body.proposta-page .proposta-blob-noise {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  background-image: url('/img/proposta-grain.png?v=3');
  background-repeat: repeat;
  background-size: 220px 220px;
}

body.proposta-page .animated-background::before {
  background: radial-gradient(
    circle,
    #dcff90 0%,
    rgba(220, 255, 144, 0.86) 8%,
    rgba(220, 255, 144, 0.72) 16%,
    rgba(220, 255, 144, 0.58) 26%,
    rgba(220, 255, 144, 0.44) 36%,
    rgba(220, 255, 144, 0.32) 48%,
    rgba(220, 255, 144, 0.22) 60%,
    rgba(220, 255, 144, 0.14) 72%,
    rgba(220, 255, 144, 0.07) 84%,
    rgba(220, 255, 144, 0.02) 93%,
    transparent 100%
  );
}

body.proposta-page .animated-background::after {
  background: radial-gradient(
    circle,
    #eb7dff 0%,
    rgba(235, 125, 255, 0.84) 8%,
    rgba(235, 125, 255, 0.7) 16%,
    rgba(235, 125, 255, 0.56) 26%,
    rgba(235, 125, 255, 0.42) 36%,
    rgba(235, 125, 255, 0.3) 48%,
    rgba(235, 125, 255, 0.2) 60%,
    rgba(235, 125, 255, 0.12) 72%,
    rgba(235, 125, 255, 0.06) 84%,
    rgba(235, 125, 255, 0.02) 93%,
    transparent 100%
  );
}

body.proposta-page .animated-background .blob-yellow {
  background: radial-gradient(
    circle,
    #ffcb64 0%,
    rgba(255, 203, 100, 0.86) 8%,
    rgba(255, 203, 100, 0.72) 16%,
    rgba(255, 203, 100, 0.58) 26%,
    rgba(255, 203, 100, 0.44) 36%,
    rgba(255, 203, 100, 0.32) 48%,
    rgba(255, 203, 100, 0.22) 60%,
    rgba(255, 203, 100, 0.14) 72%,
    rgba(255, 203, 100, 0.07) 84%,
    rgba(255, 203, 100, 0.02) 93%,
    transparent 100%
  );
}

/* Perché meedico: niente titolo. Griglia proporzionata al testo. Solo queste pagine. */
body.proposta-page .benefits-table-intro {
  display: none;
}

body.proposta-page .benefits-table-section {
  padding-top: 72px;
}

body.proposta-page .benefits-rail {
  --bt-col-m: 128px;
  --bt-col-g: 116px;
  max-width: 880px;
  border-radius: 22px;
  background: var(--ph-glass);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

body.proposta-page .benefits-rail__head-func {
  visibility: hidden;
}

body.proposta-page .benefits-rail__head,
body.proposta-page .benefit-row {
  gap: 8px 12px;
  grid-template-columns: var(--bt-col-m, 128px) var(--bt-col-g, 116px) minmax(0, 1fr);
}

body.proposta-page .benefits-rail__head-m,
body.proposta-page .benefit-row__ic:not(.benefit-row__ic--g) {
  order: 1;
}

body.proposta-page .benefits-rail__head-g,
body.proposta-page .benefit-row__ic--g {
  order: 2;
}

body.proposta-page .benefits-rail__head-func,
body.proposta-page .benefit-row__text {
  order: 3;
}

body.proposta-page .benefits-rail__head {
  padding: 12px 20px;
}

body.proposta-page .benefits-rail__head-m {
  font-size: 1.48rem;
  white-space: nowrap;
  transform: none;
  transition: font-size 0.32s ease, padding 0.32s ease;
}

body.proposta-page .benefits-rail__head-m:hover,
body.proposta-page .benefits-rail__head.is-seq .benefits-rail__head-m {
  font-size: 1.7rem;
  padding: 8px 0;
  transform: none;
}

body.proposta-page .benefits-rail__head-g:hover .benefits-fan,
body.proposta-page .benefits-rail__head.is-seq .benefits-fan {
  --fan-size: 29px;
  --fan-size-mid: 33px;
  --fan-size-center: 37px;
}

body.proposta-page .benefits-rail__head.is-seq .benefits-fan__ic--whatsapp  { --fan-x: -4px; --fan-r: -20deg; }
body.proposta-page .benefits-rail__head.is-seq .benefits-fan__ic--facebook  { --fan-x: -2px; --fan-r: -11deg; }
body.proposta-page .benefits-rail__head.is-seq .benefits-fan__ic--telegram  { --fan-x: 0px;  --fan-r: 0deg; }
body.proposta-page .benefits-rail__head.is-seq .benefits-fan__ic--linkedin  { --fan-x: 2px;  --fan-r: 11deg; }
body.proposta-page .benefits-rail__head.is-seq .benefits-fan__ic--instagram { --fan-x: 4px;  --fan-r: 20deg; }

body.proposta-page .benefits-fan__ic {
  transition: width 0.32s ease, height 0.32s ease, transform 0.2s ease;
}

body.proposta-page .benefits-list {
  gap: 10px;
  padding: 12px 0 16px;
}

body.proposta-page .benefit-row {
  padding: 13px 20px;
  border-radius: 16px;
  gap: 8px 12px;
  background: var(--ph-glass-row);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transform: none;
  transition: padding 0.32s ease, box-shadow 0.32s ease;
}

body.proposta-page .benefit-row:hover,
body.proposta-page .benefit-row.is-seq {
  padding: 24px 20px;
  transform: none;
}

body.proposta-page .benefit-row__text,
body.proposta-page .benefit-row--plain .benefit-row__text {
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  transform: none;
  transition: font-size 0.32s ease, line-height 0.32s ease;
}

body.proposta-page .benefit-row__text strong {
  font-weight: 800;
}

body.proposta-page .benefit-row:hover .benefit-row__text,
body.proposta-page .benefit-row.is-seq .benefit-row__text {
  font-size: 1.42rem;
  line-height: 1.28;
  transform: none;
}

body.proposta-page .benefit-row__ic .custom-icon {
  width: 28px;
  height: 28px;
}

body.proposta-page .benefit-row__ic .custom-icon-check::before {
  width: 7px;
  height: 14px;
  border-width: 0 2.5px 2.5px 0;
}

body.proposta-page .benefit-row__ic .custom-icon-x::before,
body.proposta-page .benefit-row__ic .custom-icon-x::after {
  width: 16px;
  height: 2.5px;
}

body.proposta-page .benefit-row__ic--g {
  margin: -13px 0 -13px -6px;
  padding: 13px 0 13px 6px;
  transition: margin 0.32s ease, padding 0.32s ease;
}

body.proposta-page .benefit-row:hover .benefit-row__ic--g,
body.proposta-page .benefit-row.is-seq .benefit-row__ic--g {
  margin: -24px 0 -24px -6px;
  padding: 24px 0 24px 6px;
}

body.proposta-page .benefits-rail__head-g {
  margin: -12px 0 -12px -6px;
  padding: 12px 0 12px 6px;
}

body.proposta-page .benefits-fan {
  --fan-size: 22px;
  --fan-size-mid: 25px;
  --fan-size-center: 28px;
}

@media (max-width: 768px) {
  body.proposta-page .benefits-table-section {
    padding-top: 48px;
  }

  body.proposta-page .benefits-rail {
    --bt-col-m: 96px;
    --bt-col-g: 86px;
  }

  body.proposta-page .benefits-rail__head {
    padding: 10px 12px;
  }

  body.proposta-page .benefits-list {
    gap: 8px;
    padding: 10px 0 12px;
  }

  body.proposta-page .benefit-row {
    padding: 12px 12px;
  }

  body.proposta-page .benefits-fan {
    --fan-size: 16px;
    --fan-size-mid: 18px;
    --fan-size-center: 20px;
  }

  body.proposta-page .benefit-row:hover,
  body.proposta-page .benefit-row.is-seq {
    padding: 20px 12px;
  }

  body.proposta-page .benefit-row__text {
    font-size: 0.98rem;
  }

  body.proposta-page .benefit-row:hover .benefit-row__text,
  body.proposta-page .benefit-row.is-seq .benefit-row__text {
    font-size: 1.22rem;
  }

  body.proposta-page .benefit-row__ic--g {
    margin: -12px 0 -12px -6px;
    padding: 12px 0 12px 6px;
  }

  body.proposta-page .benefit-row:hover .benefit-row__ic--g,
  body.proposta-page .benefit-row.is-seq .benefit-row__ic--g {
    margin: -20px 0 -20px -6px;
    padding: 20px 0 20px 6px;
  }

  body.proposta-page .benefits-rail__head-g {
    margin: -10px 0 -10px -6px;
    padding: 10px 0 10px 6px;
  }

  body.proposta-page .benefits-rail__head-m {
    font-size: 1.28rem;
  }

  body.proposta-page .benefits-rail__head-m:hover,
  body.proposta-page .benefits-rail__head.is-seq .benefits-rail__head-m {
    font-size: 1.48rem;
    padding: 6px 0;
  }

  body.proposta-page .benefits-rail__head-g:hover .benefits-fan,
  body.proposta-page .benefits-rail__head.is-seq .benefits-fan {
    --fan-size: 21px;
    --fan-size-mid: 24px;
    --fan-size-center: 26px;
  }
}

/* Iscrizione: fascia e titolo come prima. Solo i campi di testo hanno la grafica nuova. */
body.proposta-page .signup form > input {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
