/* ============================================================
   STEDASIGN — LANDING 2.0
   Desktop: impaginazione a viewport, senza scroll.
   Mobile / tablet verticale: scroll fluido + reveal animato.
   ============================================================ */
:root {
  --wine: #782239;
  --wine-dark: #4d1428;
  --wine-light: #963a50;
  --ink: #17263a;
  --muted: #697483;
  --line: #e7e8ec;
  --canvas: #f9f9fa;
  --white: #fff;
  --shadow: 0 20px 60px rgba(29, 37, 58, .075);
  --radius: 24px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body { margin: 0; }
button { font: inherit; }
img, svg { display: block; }

body.landing-body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  /* Un'unica superficie cromatica, dalla testata al footer. */
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.landing-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 90% at 102% 53%, rgba(95, 22, 46, .105) 0%, rgba(120, 34, 57, .040) 43%, transparent 77%),
    radial-gradient(ellipse 52% 72% at -10% 84%, rgba(98, 25, 48, .052), transparent 76%),
    linear-gradient(112deg, #ffffff 0%, #fdfcfc 37%, #f8f5f6 70%, #f3eef0 100%);
}

/* TESTATA */
.landing-header {
  z-index: 2;
  position: relative;
  min-height: clamp(80px, 12dvh, 116px);
  padding: 8px clamp(22px, 4.6vw, 88px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: transparent;
  border-bottom: 0;
}
.landing-header__brand { display: flex; align-items: center; }
.landing-header__logo {
  height: clamp(68px, 10dvh, 102px);
  max-width: min(38vw, 260px);
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.landing-header__context {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: clamp(.7rem, .85vw, .85rem);
  font-weight: 600;
  letter-spacing: .035em;
}
.landing-header__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 5px rgba(122, 32, 53, .085);
}

/* STRUTTURA PRINCIPALE */
.landing-main {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 110px);
  padding: clamp(12px, 2dvh, 32px) clamp(24px, 7vw, 132px);
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.landing-main__glow { position: absolute; pointer-events: none; z-index: -1; border-radius: 50%; }
.landing-main__glow--one {
  width: min(48vw, 710px); aspect-ratio: 1;
  left: -22%; top: 12%;
  background: radial-gradient(circle, rgba(89, 22, 45, .040), transparent 69%);
}
.landing-main__glow--two {
  width: min(37vw, 550px); aspect-ratio: 1;
  right: -14%; bottom: -48%;
  border: 1px solid rgba(98, 29, 50, .095);
  box-shadow: 0 0 0 65px rgba(98, 29, 50, .015),
              0 0 0 130px rgba(98, 29, 50, .012);
}

/* HERO */
.landing-hero {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.3dvh, 18px);
}
.landing-hero__mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-height: min(29dvh, 240px);
  margin-bottom: clamp(0px, 1.2dvh, 12px);
}
.landing-hero__logo {
  width: auto;
  max-width: min(100%, 350px);
  height: auto;
  max-height: min(29dvh, 240px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 9px 14px rgba(77, 21, 34, .095));
}
.landing-hero__copy { width: 100%; max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--wine); font-size: clamp(.63rem, .8vw, .75rem);
  font-weight: 800; letter-spacing: .15em;
}
.eyebrow__line { width: 21px; height: 2px; background: var(--wine); }
.landing-hero__claim {
  font-size: clamp(2rem, 3.3vw, 4.15rem);
  line-height: 1.07; letter-spacing: -.052em;
  margin: clamp(9px, 1.5dvh, 19px) 0 clamp(10px, 1.8dvh, 22px);
  max-width: 640px; font-weight: 800;
}
.landing-hero__claim em {
  display: block; font-weight: 750; font-style: normal;
  color: var(--wine);
}
.landing-hero__sub {
  color: var(--muted);
  font-size: clamp(.85rem, 1.05vw, 1.08rem);
  line-height: 1.65; max-width: 530px;
  margin: 0;
}
.landing-hero__assurance {
  display: flex; align-items: center; gap: 12px;
  margin-top: clamp(14px, 3dvh, 34px);
  font-size: clamp(.72rem, .85vw, .9rem);
  font-weight: 600; line-height: 1.5;
  color: #526075;
}
.assurance-icon {
  flex: 0 0 32px; width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 12px; background: #f5e8ec; color: var(--wine);
}
.assurance-icon svg { width: 18px; height: 18px; }

/* PANNELLO DI CONVERSIONE */
.landing-scelta {
  min-width: 0;
  width: 100%; max-width: 570px;
  justify-self: end;
  padding: clamp(20px, 2.75vw, 42px);
  border-radius: clamp(22px, 2.5vw, 34px);
  background: rgba(255, 255, 255, .91);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 28px 85px rgba(57, 23, 39, .085), 0 3px 18px rgba(57, 23, 39, .025);
}
.landing-scelta__step {
  display: block; font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; color: var(--wine);
}
.landing-scelta__intro h2 {
  font-size: clamp(1.35rem, 2.05vw, 2.3rem);
  line-height: 1.13; letter-spacing: -.035em;
  margin: clamp(10px, 1.5dvh, 16px) 0 7px;
}
.landing-scelta__intro p {
  color: var(--muted); font-size: clamp(.8rem, .95vw, .96rem);
  margin: 0; line-height: 1.55;
}
.landing-scelta__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(9px, 1.3dvh, 15px);
  margin: clamp(17px, 2.7dvh, 30px) 0 clamp(15px, 2.25dvh, 24px);
}
.scelta-card {
  appearance: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  width: 100%; min-height: clamp(94px, 13dvh, 126px);
  padding: clamp(13px, 1.55vw, 20px);
  text-align: left;
  border: 1.5px solid #e9e8eb;
  background: #fff;
  color: var(--ink);
  border-radius: 19px;
  box-shadow: 0 5px 20px rgba(30, 39, 59, .025);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .25s ease,
              box-shadow .3s ease, background .3s ease;
}
.scelta-card:hover { transform: translateY(-3px); border-color: #d4adb6; box-shadow: 0 12px 29px rgba(85, 28, 45, .09); }
.scelta-card:focus-visible, .landing-procedi:focus-visible { outline: 3px solid #b45269; outline-offset: 3px; }
.scelta-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--wine);
  background: #f3eaee;
  transition: transform .3s ease, background .3s ease;
}
.scelta-card__icon svg { width: 24px; height: 24px; }
.scelta-card__content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.scelta-card__kicker { font-size: clamp(.56rem, .62vw, .66rem); letter-spacing: .08em; color: var(--wine); font-weight: 750; }
.scelta-card__titolo { font-size: clamp(.95rem, 1.12vw, 1.17rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.scelta-card__sotto { color: var(--muted); font-size: clamp(.73rem, .79vw, .86rem); line-height: 1.48; }
.scelta-card__indicator {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1.5px solid #d9d7dd;
  border-radius: 50%;
  color: transparent;
  transition: color .25s, background .25s, border-color .25s;
}
.scelta-card__indicator svg { width: 13px; height: 13px; }
.scelta-card.is-selected {
  border-color: var(--wine);
  background: linear-gradient(110deg, #fff, #f8f1f4);
  box-shadow: 0 10px 35px rgba(122, 32, 53, .11);
}
.scelta-card.is-selected .scelta-card__icon { transform: scale(1.05); background: #eaddE3; }
.scelta-card.is-selected .scelta-card__indicator { background: var(--wine); border-color: var(--wine); color: #fff; }
.landing-procedi {
  width: 100%; min-height: 55px;
  border: 0; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; gap: 15px;
  padding: 14px 18px;
  background: linear-gradient(115deg, #8c2b44, var(--wine-dark));
  color: white; font-weight: 750; font-size: .98rem;
  box-shadow: 0 12px 26px rgba(122, 32, 53, .18);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .25s, filter .25s;
}
.landing-procedi svg { width: 20px; height: 20px; transition: transform .25s; }
.landing-procedi:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(122, 32, 53, .26); }
.landing-procedi:not(:disabled):hover svg { transform: translateX(4px); }
.landing-procedi:disabled { opacity: .46; cursor: not-allowed; box-shadow: none; }
.landing-scelta__hint { text-align: center; color: #858b95; font-size: .75rem; margin: 10px 0 0; line-height: 1.4; min-height: 1.4em; }

/* PIEDE: NED BEN VISIBILE */
.landing-footer {
  z-index: 2; position: relative;
  min-height: clamp(78px, 10dvh, 106px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(22px, 4.6vw, 88px);
  border-top: 0;
  background: transparent;
}
.landing-footer__legal { display: flex; align-items: center; gap: 12px; color: #9296a1; font-size: clamp(.68rem, .8vw, .82rem); }
.landing-footer__name { font-weight: 800; letter-spacing: .07em; color: var(--wine); }
.landing-footer__separator { height: 18px; width: 1px; background: #d5d8de; }
.landing-footer__powered { display: flex; align-items: center; gap: 18px; }
.landing-footer__label { font-size: .72rem; color: #9296a1; white-space: nowrap; }
.landing-footer__logo {
  width: auto; height: clamp(55px, 8dvh, 80px);
  max-width: min(35vw, 250px);
  object-fit: contain;
  /* Il file originale NED usa fondo nero: nessun filtro forzato. */
}

/* EFFETTI INGRESSO */
.animate-in.will-animate { opacity: 0; transform: translateY(18px); }
.animate-in.will-animate.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity .75s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.landing-scelta.will-animate.is-visible { transition-delay: .12s; }

/* DESKTOP: 100dvh, zero scroll. Spazi ridotti per laptop bassi. */
@media (min-width: 861px) {
  html, body.landing-body { height: 100%; overflow: hidden; }
  .landing-shell { height: 100vh; height: 100dvh; }
}
@media (min-width: 861px) and (max-height: 740px) {
  .landing-header { min-height: 74px; }
  .landing-header__logo { height: min(9dvh, 75px); }
  .landing-main { padding-block: 8px; gap: clamp(18px, 3vw, 55px); }
  .landing-hero__mark, .landing-hero__logo { max-height: 23dvh; }
  .landing-hero__claim { font-size: clamp(1.7rem, 3vw, 3.15rem); margin-block: 8px 10px; }
  .landing-hero__assurance { margin-top: 12px; }
  .landing-scelta { padding: 18px 22px; }
  .landing-scelta__cards { margin-block: 12px; gap: 8px; }
  .scelta-card { min-height: 86px; padding: 11px 13px; }
  .landing-procedi { min-height: 46px; padding: 10px; }
  .landing-footer { min-height: 65px; }
  .landing-footer__logo { height: 55px; }
}
@media (min-width: 861px) and (max-height: 590px) {
  .landing-header { min-height: 56px; }
  .landing-header__logo { height: 49px; }
  .landing-header__context { display: none; }
  .landing-footer { min-height: 52px; }
  .landing-footer__logo { height: 42px; }
  .landing-hero__mark, .landing-hero__logo { max-height: 17dvh; }
  .landing-hero__claim { font-size: clamp(1.5rem, 2.5vw, 2.5rem); }
  .landing-hero__sub { font-size: .79rem; line-height: 1.45; }
  .landing-hero__assurance { margin-top: 8px; font-size: .7rem; }
  .landing-scelta { padding: 12px 16px; }
  .landing-scelta__intro h2 { font-size: 1.25rem; margin: 5px 0; }
  .landing-scelta__cards { margin: 8px 0; }
  .scelta-card { min-height: 70px; padding: 7px 10px; grid-template-columns: 35px minmax(0, 1fr) 20px; }
  .scelta-card__icon { width: 35px; height: 35px; }
  .scelta-card__kicker { display: none; }
  .scelta-card__sotto { line-height: 1.25; }
  .landing-procedi { min-height: 40px; }
  .landing-scelta__hint { margin-top: 4px; }
}

/* MOBILE / TABLET VERTICALE: SCROLL AMMESSO, FLUIDO E ANIMATO */
@media (max-width: 860px) {
  html, body.landing-body { height: auto; overflow-x: clip; overflow-y: auto; scroll-behavior: smooth; }
  .landing-shell { display: flex; flex-direction: column; min-height: 100dvh; overflow: clip; background-attachment: scroll; }
  .landing-header { min-height: 96px; padding: 12px 5vw; }
  .landing-header__logo { height: 77px; max-width: 180px; }
  .landing-header__context { font-size: .7rem; }
  .landing-main {
    display: flex; flex-direction: column;
    align-items: stretch; justify-content: flex-start;
    gap: 30px;
    padding: 30px 5vw 42px;
    overflow: visible;
    flex: 1 0 auto;
  }
  .landing-hero { align-items: center; text-align: center; }
  .landing-hero__mark { justify-content: center; max-height: none; margin: 0 0 6px; }
  .landing-hero__logo { max-width: min(64vw, 300px); max-height: none; }
  .landing-hero__claim { font-size: clamp(2.1rem, 6vw, 3.7rem); }
  .landing-hero__claim em { display: inline; }
  .landing-hero__sub { font-size: 1rem; max-width: 620px; margin-inline: auto; }
  .landing-hero__assurance { justify-content: center; margin-top: 22px; }
  .landing-scelta { max-width: 630px; margin-inline: auto; justify-self: center; padding: clamp(22px, 4vw, 38px); }
  .landing-scelta__intro h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
  .scelta-card { min-height: 105px; }
  .landing-footer { min-height: 100px; padding: 14px 5vw; }
  .landing-footer__logo { height: 68px; max-width: 200px; }
}
@media (max-width: 520px) {
  .landing-header { min-height: 83px; }
  .landing-header__logo { height: 65px; max-width: 155px; }
  .landing-header__context { max-width: 135px; font-size: .65rem; line-height: 1.4; }
  .landing-main { gap: 26px; padding: 22px 16px 32px; }
  .landing-hero__logo { max-width: min(70vw, 255px); }
  .eyebrow { font-size: .58rem; letter-spacing: .12em; }
  .landing-hero__claim { font-size: clamp(2rem, 9vw, 2.9rem); margin: 11px 0 15px; }
  .landing-hero__sub { font-size: .92rem; line-height: 1.65; }
  .landing-hero__assurance { font-size: .76rem; text-align: left; }
  .landing-scelta { padding: 22px 17px; border-radius: 22px; }
  .landing-scelta__cards { margin: 18px 0; gap: 11px; }
  .scelta-card { grid-template-columns: 41px minmax(0, 1fr) 20px; min-height: 111px; padding: 13px 10px; gap: 10px; }
  .scelta-card__icon { width: 41px; height: 41px; }
  .scelta-card__icon svg { width: 21px; height: 21px; }
  .scelta-card__titolo { font-size: .94rem; }
  .scelta-card__sotto { font-size: .77rem; }
  .scelta-card__kicker { font-size: .55rem; }
  .landing-footer { flex-direction: column; gap: 6px; padding: 14px 16px; }
  .landing-footer__powered { flex-direction: column; gap: 0; }
  .landing-footer__label { font-size: .65rem; }
  .landing-footer__logo { height: 67px; max-width: 210px; }
  .landing-footer__legal { font-size: .67rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .animate-in.will-animate { opacity: 1; transform: none; }
}


/* ==============================================================
   STEDASIGN | AMARANTO ISTITUZIONALE — REV. 5
   Solo identità visiva. Mantiene responsive, animazioni e logica.
   Stessa superficie continua fra header, main e footer.
   ============================================================== */
:root {
  --wine: #912e4d;
  --wine-dark: #481324;
  --wine-light: #c66d8a;
  --steda-bg: #3b1427;
  --steda-ivory: #fff9f8;
}
html { background-color: #32101e; }
body.landing-body {
  color: #fff6f7;
  background-color: #32101e;
}
body.landing-body .landing-shell {
  background:
    radial-gradient(ellipse 62% 76% at 88% 16%, rgba(166, 56, 91, .45), transparent 75%),
    radial-gradient(ellipse 50% 68% at 5% 85%, rgba(115, 35, 65, .38), transparent 77%),
    linear-gradient(125deg, #381020 0%, #641b37 51%, #421329 100%);
}
body.landing-body .landing-header,
body.landing-body .landing-main,
body.landing-body .landing-footer {
  background: transparent;
  border-color: transparent;
}
/* Testi su sfondo scuro */
body.landing-body .landing-header__context,
body.landing-body .landing-hero__sub,
body.landing-body .landing-hero__assurance,
body.landing-body .landing-footer__legal,
body.landing-body .landing-footer__label {
  color: #f1dce4;
}
body.landing-body .landing-hero__claim { color: #fff8f8; }
body.landing-body .landing-hero__claim em { color: #ffbdcf; }
body.landing-body .eyebrow,
body.landing-body .landing-footer__name { color: #ffcad8; }
body.landing-body .eyebrow__line { background-color: #e9a3b8; }
body.landing-body .landing-header__dot { background: #f4c0cf; box-shadow: 0 0 0 5px rgba(255,200,220,.13); }
body.landing-body .landing-footer__separator { background: rgba(255,237,243,.32); }
body.landing-body .assurance-icon { background: rgba(255,232,240,.15); color: #ffd3df; }
/* Mantieni il pannello di scelta luminoso e leggibile */
body.landing-body .landing-scelta {
  color: #263041;
  background: rgba(255,250,251,.97);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 26px 80px rgba(24,4,15,.28);
}
body.landing-body .landing-scelta__intro h2 { color: #292633; }
body.landing-body .landing-scelta__intro p,
body.landing-body .landing-scelta__hint { color: #626474; }
body.landing-body .landing-scelta__step,
body.landing-body .scelta-card__kicker { color: #812443; }
body.landing-body .scelta-card { color: #263041; background: #fff; border-color: #e9dce2; }
body.landing-body .scelta-card__titolo { color: #293343; }
body.landing-body .scelta-card__sotto { color: #5e6877; }
body.landing-body .scelta-card.is-selected { background: linear-gradient(105deg, #fff, #f9eef2); border-color: #862a47; }
body.landing-body .scelta-card__icon { background: #f3e4eb; color: #852c48; }
body.landing-body .scelta-card.is-selected .scelta-card__icon { background: #ecd2de; }
body.landing-body .scelta-card.is-selected .scelta-card__indicator { background: #832844; border-color: #832844; }
/* Le immagini originali possono contenere un fondo bianco: piccola targa neutra */
body.landing-body .landing-header__logo {
  mix-blend-mode: normal;
  background: #fff;
  border-radius: 13px;
  padding: 4px 9px;
  box-shadow: 0 9px 22px rgba(22,2,12,.12);
}
body.landing-body .landing-hero__logo {
  background: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  filter: drop-shadow(0 9px 18px rgba(14,3,8,.17));
}
/* PNG NED su sfondo nero: il nero sparisce in modalità screen */
body.landing-body .landing-footer__logo { mix-blend-mode: screen; }
body.landing-body .landing-main__glow--two { border-color: rgba(255,210,225,.09); box-shadow: 0 0 0 65px rgba(255,205,220,.018), 0 0 0 130px rgba(255,205,220,.012); }
body.landing-body .landing-main__glow--one { background: radial-gradient(circle, rgba(240,139,169,.09), transparent 69%); }


/* Header: area destra con badge + bottone login */
.landing-header__right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
}
.landing-header__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid #e6d5da;
  background: #ffffff;
  color: var(--wine);
  font-weight: 750;
  font-size: clamp(.75rem, .85vw, .85rem);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(122, 32, 53, .06);
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.landing-header__login svg { width: 16px; height: 16px; }
.landing-header__login:hover {
  background: #fdf5f7;
  border-color: #d4adb6;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(122, 32, 53, .10);
}
.landing-header__login:focus-visible {
  outline: 3px solid #b45269;
  outline-offset: 3px;
}

/* Su mobile il badge contesta può stare più stretto */
@media (max-width: 720px) {
  .landing-header__context span:last-child { display: none; }
  .landing-header__login { padding: 8px 14px; font-size: .78rem; }
  .landing-header__login svg { width: 14px; height: 14px; }
}