/* ROSSO — Landing (responsive)
   Desktop default. @media (max-width: 900px) overrides at bottom.
*/

/* ============ HERO — centered, full-stage ============ */
.hero {
  padding: 36px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Big ambient red glow behind the headline (desktop) */
.hero::before {
  content: '';
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.085) 0%, rgba(200, 16, 46, 0.025) 38%, transparent 66%);
  pointer-events: none;
  z-index: 0;
  animation: rosso-glow-pulse-desktop 9s ease-in-out infinite;
}
@keyframes rosso-glow-pulse-desktop {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.85; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 1; }
}
.hero-content {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Small pill badge at top */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 7px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  color: var(--ink2);
  letter-spacing: -0.005em;
  margin: 0 0 28px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hero-badge:hover {
  background: var(--cream2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(61, 8, 16, 0.15);
}
.hero-badge strong { color: var(--ink); font-weight: 700; }
.hero-badge-dots {
  display: inline-flex;
  flex-shrink: 0;
}
.hero-badge-dot {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  border: 1.5px solid var(--paper);
  margin-left: -6px;
  display: inline-block;
}
.hero-badge-dot:first-child { margin-left: 0; }
.hero-badge-dot.d1 { background: #E8C0C8; }
.hero-badge-dot.d2 { background: #F5DCE0; }
.hero-badge-dot.d3 { background: var(--plasma); }
.hero-badge-dot.d4 { background: var(--red); }

/* Big editorial headline */
.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 76px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 auto 22px;
  color: var(--ink);
  max-width: 880px;
  --shrink-scale: 1;
  --shrink-y: 0;
  transform-origin: top center;
}
/* Scroll-shrink applied via CSS vars (after entrance reveal) */
.hero h1.reveal.is-visible {
  transform: translateY(var(--shrink-y)) scale(var(--shrink-scale));
}
.hero h1.shrink-ready {
  transition: transform 0.08s linear !important;
  will-change: transform;
}

/* Word-by-word stagger entrance (desktop + mobile) — JS adds .words-split + .word spans */
.hero h1.words-split {
  /* Suppress the .reveal fade — individual words handle the entrance */
  opacity: 1 !important;
}
.hero h1.words-split:not(.is-visible) {
  transform: none !important;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: rosso-word-in 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rosso-word-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink2);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-main-cta {
  padding: 20px 36px;
  font-size: 17px;
  box-shadow: 0 18px 36px -16px rgba(200, 16, 46, 0.45);
}
.hero-stores {
  display: flex;
  gap: 10px;
}

.hero-meta {
  margin: 28px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-meta a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line2);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.hero-meta a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}
.hero-meta-sep { color: var(--muted2); }

/* ============ HERO VISUAL — PHONE MOCKUP ============ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}
.hero-phone-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.08) 0%, transparent 70%);
  z-index: 0;
}

/* iPhone-style frame */
.hero-phone {
  position: relative;
  width: 300px;
  height: 612px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1a0a0e 0%, #2A1418 50%, #1a0a0e 100%);
  padding: 9px;
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 40px 90px -30px rgba(61, 8, 16, 0.4);
  z-index: 1;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 30px;
  background: #000;
  border-radius: 99px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--cream);
  overflow: hidden;
  padding: 56px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.phone-greeting {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.phone-greeting strong {
  font-weight: 800;
  font-size: 26px;
  display: inline-block;
}
.phone-greeting .wave {
  display: inline-block;
  animation: rosso-wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes rosso-wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30%      { transform: rotate(14deg); }
  20%           { transform: rotate(-8deg); }
  40%, 50%      { transform: rotate(14deg); }
}

.phone-main-card {
  background: var(--red);
  color: #fff;
  border-radius: 18px;
  padding: 18px 18px 20px;
}
.phone-card-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 8px;
}
.phone-card-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.phone-card-title em {
  font-style: italic;
  font-weight: 500;
}
.phone-card-loc {
  font-size: 12px;
  opacity: 0.9;
  letter-spacing: -0.005em;
}

.phone-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phone-mini-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone-mini-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mini-ico.red {
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
}
.phone-mini-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.phone-mini-val {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.phone-perte {
  margin-top: 2px;
}
.phone-perte-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.phone-perte-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.phone-perte-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F5DCE0 0%, #E8C0C8 100%);
  flex-shrink: 0;
}
.phone-perte-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.phone-perte-sub {
  font-size: 11px;
  color: var(--muted);
}

/* Hero floating pills (around phone) */
.hero-pill {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 38px -18px rgba(61, 8, 16, 0.3);
  z-index: 2;
  white-space: nowrap;
}
.hero-pill-tr {
  top: 80px;
  right: -10px;
}
.hero-pill-bl {
  bottom: 90px;
  left: -20px;
}
.hero-pill-ico {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-pill-ico.red { background: rgba(200, 16, 46, 0.1); color: var(--red); }
.hero-pill-ico.plasma { background: rgba(241, 225, 20, 0.3); color: #8A7D00; }
.hero-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hero-pill-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.hero-pill-value {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ============ LOGIN CARD ============ */
.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 32px 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 24px 48px -32px rgba(61, 8, 16, 0.15);
  position: relative;
}
.login-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--red);
}
.login-icon { display: inline-flex; color: var(--red); }
.login-card-head h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--red);
}
.login-intro {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  margin: 0 0 22px;
}
.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-form { display: block; }
.login-label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 4px 0 6px;
}
.login-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.18s;
}
.login-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}
.login-input::placeholder { color: var(--muted2); }
.login-input-wrap { position: relative; }
.login-input-wrap .login-input { padding-right: 44px; }
.login-input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: inline-flex;
  cursor: pointer;
}
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 18px;
  font-size: 13px;
  gap: 10px;
  flex-wrap: wrap;
}
.login-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink2);
  cursor: pointer;
}
.login-check input { width: 16px; height: 16px; accent-color: var(--red); margin: 0; }
.login-forgot { color: var(--red); font-weight: 600; }
.login-forgot:hover { text-decoration: underline; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-sso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.sso-btn:hover {
  background: var(--paper);
  transform: translateY(-1px);
  border-color: var(--line);
}
.login-bottom {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink2);
}
.login-bottom a {
  color: var(--red);
  font-weight: 700;
  margin-left: 6px;
}
.login-bottom a:hover { text-decoration: underline; }

/* Swipe indicator — hidden on desktop, shown on mobile via @media */
.steps-swipe-indicator { display: none; }

/* Touch-reactive blob — hidden on desktop */
.hero-blob { display: none; }

/* ============ SOCIAL PROOF ============ */
.social-proof {
  padding: 16px 80px 36px;
  display: flex;
  justify-content: center;
}
.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px 12px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 18px 40px -28px rgba(61, 8, 16, 0.18);
}
.proof-dots {
  display: flex;
}
.proof-dots .proof-dot {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  border: 2px solid var(--paper);
  margin-left: -10px;
  display: inline-block;
}
.proof-dots .proof-dot:first-child { margin-left: 0; }
.proof-dots .d1 { background: #E8C0C8; }
.proof-dots .d2 { background: #F5DCE0; }
.proof-dots .d3 { background: var(--plasma); }
.proof-dots .d4 { background: var(--red); }
.social-proof-pill p {
  margin: 0;
  font-size: 15px;
  color: var(--ink2);
  letter-spacing: -0.005em;
}
.social-proof-pill p strong { color: var(--ink); font-weight: 700; }

/* ============ COME FUNZIONA ============ */
.howitworks {
  padding: 40px 80px 88px;
  position: relative;
}
.howitworks-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 48px;
}
.howitworks-header h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.03em;
}
.howitworks-header h2 em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}
.howitworks-header .descr { padding-bottom: 0; }
.howitworks-header .descr p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink2);
  margin: 0 0 16px;
  max-width: 540px;
}
.howitworks-header .descr p.muted {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.howitworks-header .descr strong { color: var(--ink); font-weight: 600; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(61, 8, 16, 0.18);
}

/* Floating notification pills around mocks */
.float-pill {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 32px -16px rgba(61, 8, 16, 0.28);
  z-index: 2;
  animation: rosso-float 5s ease-in-out infinite;
  pointer-events: none;
}
.float-pill.d1 { animation-delay: 0s; }
.float-pill.d2 { animation-delay: 1.2s; }
.float-pill.d3 { animation-delay: 2.4s; }
.float-pill-icon {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-pill-icon.red { background: rgba(200, 16, 46, 0.1); color: var(--red); }
.float-pill-icon.plasma { background: rgba(241, 225, 20, 0.3); color: #8A7D00; }
.float-pill-icon.green { background: rgba(72, 187, 120, 0.16); color: #1E8E4F; }
.float-pill-icon.gold {
  background: linear-gradient(135deg, #FFE9A6 0%, #F1E114 100%);
  color: #7A5A00;
}
.float-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.float-pill-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1px;
}
.float-pill-value {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* Position presets (inside step cards) */
.float-pill.pos-tr { top: 38%; right: -10px; }
.float-pill.pos-bl { bottom: 18%; left: -10px; }

/* Position presets (inside hero — surround the centered content) */
.hero > .float-pill {
  z-index: 3;
  animation-name: rosso-float-rot;
}
/* Pills are anchored to a fixed distance from the centered content edge.
   Math: content max-width 980 (half = 490). Pill width ≈ 150. Pill anchored at calc(50% - 660px)
   places its right edge at 50% - 510, leaving a 20px gap before content (50% - 490). */
.float-pill.hero-pos-1 {
  --rot: -4deg;
  top: 14%;
  left: max(20px, calc(50% - 660px));
  transform: rotate(var(--rot));
}
.float-pill.hero-pos-2 {
  --rot: 3deg;
  top: 22%;
  right: max(20px, calc(50% - 660px));
  transform: rotate(var(--rot));
}
.float-pill.hero-pos-3 {
  --rot: -2.5deg;
  bottom: 20%;
  left: max(20px, calc(50% - 660px));
  transform: rotate(var(--rot));
}
.float-pill.hero-pos-4 {
  --rot: 4deg;
  bottom: 26%;
  right: max(20px, calc(50% - 660px));
  transform: rotate(var(--rot));
}

/* Hide pills on viewports too narrow to safely contain them without overlapping content */
@media (max-width: 1319px) {
  .hero > .float-pill { display: none; }
}
@keyframes rosso-float-rot {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-7px); }
}
.step-card .step-num {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.step-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.step-card .step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 26px;
  min-height: 66px;
}

.app-mock {
  aspect-ratio: 5 / 6;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line2);
  padding: 26px 22px;
  font-family: 'Raleway', var(--sans);
  color: #0E0A0B;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* QUIZ */
.mock-quiz .topbar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8E8E8E;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mock-quiz .topbar .section { color: #BA0F31; padding: 0; }
.mock-quiz .progress { height: 4px; background: #F0E9EA; border-radius: 99px; overflow: hidden; }
.mock-quiz .progress .fill { width: 23%; height: 100%; background: #BA0F31; }
.mock-quiz .question {
  font-family: 'Raleway', var(--sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  margin-top: 4px;
}
.mock-quiz .options { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mock-quiz .opt {
  padding: 11px 14px;
  border-radius: 99px;
  border: 1.5px solid #E1E1E1;
  background: #fff;
  color: #0E0A0B;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-quiz .opt.sel { border-color: #0E0A0B; background: #0E0A0B; color: #fff; }

/* BOOKING */
.mock-booking .title { font-family: 'Raleway', var(--sans); font-weight: 700; font-size: 14px; }
.mock-booking .tabs { display: flex; gap: 6px; }
.mock-booking .tab {
  flex: 1; padding: 7px 4px; border-radius: 99px; text-align: center;
  font-size: 11px; font-weight: 700; background: #fff;
  border: 1px solid #E1E1E1; color: #8E8E8E;
}
.mock-booking .tab.sel-plasma { background: #F1E114; border: none; color: #0E0A0B; }
.mock-booking .sub { font-family: 'Raleway', var(--sans); font-weight: 700; font-size: 13px; }
.mock-booking .days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.mock-booking .day {
  padding: 6px 0 4px; border-radius: 10px; text-align: center;
  border: 1px solid #E8E8E8;
}
.mock-booking .day .d { font-size: 13px; font-weight: 700; line-height: 1; }
.mock-booking .day .w { font-size: 7px; font-weight: 600; margin-top: 2px; letter-spacing: 0.04em; }
.mock-booking .day.muted { color: #CCC; }
.mock-booking .day.sel { background: #BA0F31; border: none; color: #fff; }
.mock-booking .hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mock-booking .h {
  padding: 5px 0; border-radius: 99px; text-align: center;
  font-size: 10px; font-weight: 600; background: #fff;
  border: 1px solid #E1E1E1; color: #0E0A0B;
}
.mock-booking .h.sel { background: #BA0F31; border: none; color: #fff; }

/* DIARIO */
.mock-diario .title { font-family: 'Raleway', var(--sans); font-weight: 800; font-size: 22px; line-height: 1.1; }
.mock-diario .tabs { display: flex; border-bottom: 1px solid #EEE; }
.mock-diario .tab { padding: 8px 0; font-weight: 600; font-size: 12px; margin-right: 18px; color: #8E8E8E; }
.mock-diario .tab.active { border-bottom: 2px solid #BA0F31; color: #BA0F31; font-weight: 700; }
.mock-diario .booking {
  padding: 14px; border-radius: 14px; border: 1px solid #EEE;
  display: flex; flex-direction: column; gap: 10px;
}
.mock-diario .booking-row { display: flex; gap: 12px; align-items: flex-start; }
.mock-diario .booking-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #FFF8DC;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mock-diario .booking-icon .bag {
  width: 22px; height: 28px; border-radius: 6px 6px 4px 4px;
  background: #F1E114; border: 1.5px solid #0E0A0B;
}
.mock-diario .booking-meta { flex: 1; min-width: 0; }
.mock-diario .booking-meta .status {
  font-size: 9px; color: #BA0F31; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 2px;
}
.mock-diario .booking-meta h4 { font-family: 'Raleway', var(--sans); font-weight: 700; font-size: 13px; line-height: 1.2; margin: 0; }
.mock-diario .booking-meta .addr { font-size: 10px; color: #8E8E8E; margin-top: 2px; line-height: 1.3; }
.mock-diario .booking-when {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: #FFFBE6; border: 1px dashed #F1E114;
  font-size: 10px; font-weight: 600; color: #0E0A0B;
}
.mock-diario .booking-when .bullet { color: #D4C800; }

.howitworks-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* ============ MANIFESTO ============ */
.manifesto {
  padding: 8px 80px 56px;
  position: relative;
}
.manifesto-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.manifesto-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--red);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.manifesto h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.035em;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-align: center;
}
.manifesto h2 em { color: var(--red); font-style: normal; font-weight: 800; }
.manifesto-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink2);
}
.manifesto-cols p { margin: 0; }
.manifesto-cols p.muted { color: var(--muted); }
.manifesto-cols strong { color: var(--ink); }

/* ============ LA STRUTTURA ============ */
.structure {
  padding: 0 80px 72px;
}
.structure-card {
  padding: 48px 56px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.structure-card .spark.s1 { top: 28px; right: 38px; }
.structure-card .spark.s2 { top: 50%; right: 28px; }
.structure-card .spark.s3 { bottom: 50px; right: 60px; }
.structure-head { max-width: 880px; margin-bottom: 36px; }
.structure-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--red);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.structure-head h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.structure-head h3 em { color: var(--red); font-style: normal; font-weight: 800; }
.structure-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink2);
  margin: 0;
}
.structure-lead strong { color: var(--ink); font-weight: 600; }

.team-photo {
  margin: 0 0 36px;
  max-width: 720px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.team-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 28 / 9;
  object-fit: cover;
  object-position: center 30%;
}

.structure-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  margin-bottom: 36px;
}
.structure-stats .stat {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}
.structure-stats .stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--red);
}
.stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 8px;
}

.structure-split {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
}
.split-product {
  padding: 36px 40px;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.split-product.split-link { cursor: pointer; }
.split-product.split-link:hover {
  background: var(--paper);
}
.split-product:hover .split-name {
  transform: rotate(-1deg) translateX(2px);
}
.split-arrow {
  position: absolute;
  top: 36px;
  right: 36px;
  font-size: 22px;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
}
.split-product.split-link:hover .split-arrow {
  opacity: 1;
  transform: translateX(4px);
}
.split-divider {
  height: 1px;
  background: var(--line);
}
.split-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}
.split-name {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.04em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  display: inline-block;
}
.split-product p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink2);
  margin: 0;
}

/* Rosso × EmaHealth brand block (sits between stats and product split) */
.brand-by-ema {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line2);
}
.brand-by-ema .duallogo,
.brand-by-ema .ema-brand-logo {
  height: 64px;
  width: auto;
}
.brand-by-ema .ema-brand-logo {
  height: 38px;
}
.brand-by-ema-copy {
  max-width: 720px;
}
.brand-by-ema-lead {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}
.brand-by-ema-lead em {
  color: var(--red);
  font-style: italic;
}
.brand-by-ema-lead strong { font-weight: 600; color: var(--ink); }
.brand-by-ema-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}
.brand-by-ema-sub em {
  color: var(--red);
  font-style: normal;
  font-weight: 500;
}

/* ============ CORPORATE INTRO ============ */
.corporate-intro {
  padding: 8px 80px 24px;
  text-align: center;
}
.corporate-intro-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.corporate-intro h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.corporate-intro h2 em { color: var(--red); font-style: normal; font-weight: 800; }

/* ============ CORPORATE CARD ============ */
.corporate {
  padding: 0 80px 72px;
}
.corporate-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 48px;
  background: var(--red-ink);
  color: var(--cream);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.corporate-card .bg-art {
  position: absolute;
  right: -40px;
  top: -40px;
  opacity: 0.15;
  width: 400px;
  height: 240px;
}
.corporate-card .body { position: relative; }
.corporate-card .kicker { color: var(--cream); opacity: 0.6; margin-bottom: 14px; }
.corporate-card h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.corporate-card h2 em { font-style: normal; font-weight: 800; }
.corporate-card p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(245, 239, 230, 0.78);
  margin: 0 0 18px;
}
.corporate-card p.cta-line {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 19px;
  color: var(--cream);
  margin-bottom: 28px;
}
.corporate-card p strong { color: var(--cream); }

/* ====================================================== */
/* ============ MOBILE OVERRIDES (≤ 900px) ============== */
/* ====================================================== */
@media (max-width: 900px) {

  /* ============ HERO (mobile v3 — editorial, 1 hero CTA + compact stores + WOW bg) ============ */
  .hero {
    padding: 24px 20px 56px;
    position: relative;
    overflow: hidden;
  }
  /* Multi-layer gradient mesh + animated red glow */
  .hero::before {
    content: '';
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.1) 0%, rgba(200, 16, 46, 0.04) 35%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: rosso-glow-pulse 7s ease-in-out infinite;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: -20px;
    background:
      radial-gradient(ellipse at 15% 25%, rgba(232, 192, 200, 0.18) 0%, transparent 40%),
      radial-gradient(ellipse at 85% 15%, rgba(241, 225, 20, 0.08) 0%, transparent 35%),
      radial-gradient(ellipse at 80% 80%, rgba(200, 16, 46, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    animation: rosso-mesh-shift 14s ease-in-out infinite;
  }
  @keyframes rosso-glow-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.85; }
    50%      { transform: translateX(-50%) scale(1.18); opacity: 1; }
  }
  @keyframes rosso-mesh-shift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-2%, 2%) scale(1.05); }
    66%      { transform: translate(2%, -2%) scale(1.03); }
  }
  .hero-content {
    position: relative;
    z-index: 1;
  }
  .hero > .float-pill { display: none; }

  /* Cinematic entrance choreography (mobile only) */
  .hero .reveal { transform: translateY(40px); transition-duration: 1s; }
  .hero .reveal.delay-1 { transition-delay: 0.25s; }
  .hero .reveal.delay-2 { transition-delay: 0.55s; }
  .hero .reveal.delay-3 { transition-delay: 0.85s; }

  /* Touch-reactive red blob (feature #8) */
  .hero-blob {
    display: block;
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.18) 0%, rgba(200, 16, 46, 0.05) 45%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 30%;
    left: 50%;
    transition: top 0.7s cubic-bezier(.2,.7,.2,1), left 0.7s cubic-bezier(.2,.7,.2,1);
    z-index: 0;
    filter: blur(8px);
  }


  /* Badge: animated entrance */
  .hero-badge {
    font-size: 12px;
    padding: 7px 14px 7px 8px;
    margin-bottom: 24px;
    gap: 10px;
    animation: rosso-badge-mobile 0.6s cubic-bezier(.2,.7,.2,1) 0.1s both;
  }
  @keyframes rosso-badge-mobile {
    0%   { opacity: 0; transform: scale(0.8) translateY(-8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
  }
  .hero-badge-dot { width: 16px; height: 16px; }

  /* Headline — punchy ma deve respirare su schermi stretti.
     text-wrap: balance distribuisce le righe in modo uniforme (no parole orfane). */
  .hero h1 {
    font-size: 40px;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
    text-wrap: balance;
    -webkit-hyphens: none;
            hyphens: none;
    padding: 0 4px;
  }
  .hero-sub {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 auto 30px;
    max-width: none;
    color: var(--ink2);
  }

  /* CTA wrap: 1 single normal button on mobile */
  .hero-cta-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 14px;
    align-items: center;
  }

  /* Main CTA: normal-sized red button, no glow pulse */
  .hero-main-cta {
    display: inline-flex;
    width: auto;
    min-width: 220px;
    padding: 15px 28px;
    font-size: 15.5px;
    font-weight: 600;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 99px;
    box-shadow: 0 10px 22px -10px rgba(200, 16, 46, 0.4);
    animation: none;
  }
  .hero-main-cta .arrow { color: #fff; }

  /* Hide store badges on mobile — main CTA handles routing */
  .hero-stores { display: none; }

  .hero-meta {
    margin-top: 22px;
    font-size: 12.5px;
    flex-direction: column;
    gap: 10px;
  }
  .hero-meta-sep { display: none; }

  /* ============ COME FUNZIONA — horizontal scroll carousel ============ */
  .howitworks {
    padding: 32px 0 64px;
  }
  .howitworks-header {
    padding: 0 18px;
  }
  .steps-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px 18px 24px;
    margin: 0 -18px;
  }
  .steps-grid::-webkit-scrollbar { display: none; }
  .step-card {
    flex: 0 0 84%;
    min-width: 260px;
    max-width: 320px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  /* First card animation hint — slight wiggle on load to suggest swipeable */
  .steps-grid .step-card:first-child {
    animation: rosso-swipe-hint 1.6s ease-in-out 1.2s 2;
  }
  @keyframes rosso-swipe-hint {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-12px); }
    40%      { transform: translateX(0); }
  }
  .howitworks-cta {
    padding: 0 18px;
    margin-top: 28px;
    flex-direction: column;
    gap: 10px;
  }
  .howitworks-cta .store-badge { width: 100%; justify-content: center; }

  /* Swipe indicator dots below carousel */
  .steps-swipe-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .steps-swipe-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--line2);
    transition: width 0.3s ease, background 0.3s ease;
  }
  .steps-swipe-indicator .dot.active {
    width: 22px;
    background: var(--red);
  }


  /* Hero helper */
  .hero-helper {
    text-align: center;
    margin-top: 12px;
    font-size: 13.5px;
  }

  /* Social proof */
  .social-proof {
    padding: 8px 16px 24px;
  }
  .social-proof-pill {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 18px;
    gap: 12px;
    border-radius: 16px;
  }
  .social-proof-pill p { font-size: 13.5px; text-align: center; }
  .proof-dots .proof-dot { width: 26px; height: 26px; }

  /* Float pills on mobile — keep them but smaller and not overflowing */
  .float-pill {
    padding: 8px 12px 8px 10px;
    border-radius: 12px;
  }
  .float-pill.pos-tr { top: 32%; right: -6px; }
  .float-pill.pos-bl { bottom: 16%; left: -6px; }
  .float-pill-icon { width: 26px; height: 26px; }
  .float-pill-label { font-size: 9px; }
  .float-pill-value { font-size: 12px; }

  /* Come funziona */
  .howitworks {
    padding: 16px 16px 64px;
  }
  .howitworks-header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }
  .howitworks-header h2 { font-size: 44px; line-height: 0.98; }
  .howitworks-header .descr p { font-size: 15px; }
  .howitworks-header .descr p.muted { font-size: 14px; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-card { padding: 22px 18px; border-radius: 18px; }
  .step-card h3 { font-size: 22px; }
  .step-card .step-desc { min-height: 0; }
  .step-card:hover { transform: none; box-shadow: none; }
  .howitworks-cta {
    flex-direction: column;
    margin-top: 36px;
    gap: 10px;
  }
  .howitworks-cta .store-badge { width: 100%; }

  /* Manifesto */
  .manifesto {
    padding: 8px 16px 56px;
  }
  .manifesto h2 {
    font-size: 36px;
    margin: 0 0 24px;
    line-height: 1.08;
    text-align: left;
  }
  .manifesto-kicker { text-align: left; }
  .manifesto-cols {
    grid-template-columns: 1fr;
    gap: 18px;
    font-size: 15.5px;
  }

  /* Structure (chi siamo) — compact on mobile */
  .structure {
    padding: 0 16px 36px;
  }
  .structure-card {
    padding: 24px 18px 24px;
    border-radius: 20px;
  }
  .structure-head { margin-bottom: 18px; }
  .structure-kicker { font-size: 10.5px; margin-bottom: 10px; }
  .structure-head h3 {
    font-size: 28px;
    margin: 0 0 12px;
    line-height: 1.05;
  }
  .structure-lead { font-size: 14px; line-height: 1.55; }

  .team-photo {
    margin: 0 0 20px;
    max-width: 100%;
    border-radius: 12px;
  }
  .team-photo img {
    aspect-ratio: 21 / 9;
  }

  /* Stats: horizontal scroll on mobile (was 2x2 grid) */
  .structure-stats {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--line2);
    border-bottom: 1px solid var(--line2);
    margin: 0 -18px 22px;
    padding: 0 18px;
  }
  .structure-stats::-webkit-scrollbar { display: none; }
  .structure-stats .stat {
    flex: 0 0 130px;
    padding: 16px 4px;
    border-right: 1px solid var(--line);
    border-bottom: none !important;
    scroll-snap-align: center;
  }
  .structure-stats .stat:last-child { border-right: none; padding-right: 18px; }
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 9px; margin-top: 6px; }

  /* Brand-by-ema: tight on mobile */
  .brand-by-ema {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 22px;
  }
  .brand-by-ema .duallogo { height: 44px; }
  .brand-by-ema .ema-brand-logo { height: 26px; }
  .brand-by-ema-lead { font-size: 17px; line-height: 1.4; margin: 0 0 8px; }
  .brand-by-ema-sub { font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }

  /* Rosso/EmaOS split: nascosto su mobile — la sezione si chiude con brand-by-ema */
  .structure-split { display: none; }

  /* Bottone "Vai a emahealth.it": più piccolo su mobile (override di .btn.size-md) */
  .brand-by-ema .btn.size-md { padding: 10px 18px; font-size: 13px; }

  /* Corporate intro + card */
  .corporate-intro {
    padding: 0 16px 18px;
  }
  .corporate-intro h2 {
    font-size: 38px;
  }
  .corporate {
    padding: 0 16px 56px;
  }
  .corporate-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 36px 22px;
    border-radius: 22px;
  }
  .corporate-card h2 { font-size: 32px; }
  .corporate-card p { font-size: 14.5px; }
  .corporate-card p.cta-line { font-size: 17px; margin-bottom: 18px; }
  .corporate-card .btn { width: 100%; }
}
