/* =========================================================
   BPlanning.it — Foglio di stile principale
   Colori del brand estratti dal logo:
   - Arancione: #F26F21
   - Blu:       #2B7DC9
   ========================================================= */

:root {
  /* Brand */
  --orange:        #F26F21;
  --orange-dark:   #d95d13;
  --blue:          #2B7DC9;
  --blue-dark:     #1f5e9c;
  --blue-light:    #eaf3fb;

  /* Neutri */
  --dark:          #1a2b3c;
  --gray:          #5b6b7b;
  --light:         #f6f9fc;
  --white:         #ffffff;
  --border:        #e5ebf1;

  /* Sistema */
  --font:          'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius:        14px;
  --shadow:        0 6px 24px rgba(43, 125, 201, 0.10);
  --shadow-lg:     0 12px 40px rgba(26, 43, 60, 0.12);
  --header-h:      88px;
  --maxw:          1180px;
  --transition:    0.25s ease;
}

/* ----------- Reset ----------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* le ancore non finiscono sotto l'header */
}

body {
  font-family: var(--font);
  color: var(--dark);
  /* sfondo continuo: elimina le "cuciture" tra sezioni */
  background:
    radial-gradient(1000px 600px at 100% 8%, rgba(242,111,33,.05), transparent 55%),
    radial-gradient(1000px 600px at 0% 40%, rgba(43,125,201,.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #eef4fb 45%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ----------- Barra di avanzamento scroll ----------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  z-index: 1200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  box-shadow: 0 0 10px rgba(242,111,33,.5);
  transition: width .1s linear;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ----------- Layout ----------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------- Header ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26, 43, 60, 0.04);
  transition: box-shadow var(--transition), background var(--transition);
}
/* stato "scrolled": header più compatto ed elegante */
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(26, 43, 60, 0.10);
  background: rgba(255, 255, 255, 0.92);
}
.site-header.scrolled .header-inner { height: calc(var(--header-h) - 20px); }
.site-header.scrolled .logo img { height: 46px; }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center; /* logo al centro */
  transition: height var(--transition);
}

.logo img {
  height: 58px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.logo:hover img { transform: scale(1.03); }

/* =========================================================
   BOTTONI (globali)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #ff8a3d 0%, var(--orange) 55%, var(--orange-dark) 100%);
  box-shadow: 0 10px 26px rgba(242, 111, 33, 0.38);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(242, 111, 33, 0.48);
}
.btn-primary svg { transition: transform var(--transition); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-lg {
  font-size: 1.06rem;
  padding: 18px 34px;
}

/* riflesso animato sul bottone */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.btn-primary:hover::after { left: 130%; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--blue-light) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, rgba(246, 249, 252, 0) 100%);
  padding: 88px 0 104px;
  text-align: center;
  perspective: 1000px;
}

/* --- sfondo decorativo --- */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

/* aurora animata */
.aurora {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    conic-gradient(from 120deg at 30% 40%, rgba(43,125,201,.30), transparent 40%),
    conic-gradient(from 300deg at 70% 30%, rgba(242,111,33,.28), transparent 45%),
    conic-gradient(from 200deg at 50% 60%, rgba(43,125,201,.22), transparent 50%);
  filter: blur(70px);
  opacity: .8;
  animation: auroraSpin 22s linear infinite;
}
@keyframes auroraSpin {
  0%   { transform: rotate(0deg)   scale(1.05); }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1.05); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  will-change: transform;
}
.blob-1 {
  width: 460px; height: 460px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(43,125,201,.55), transparent 70%);
  animation: float1 14s ease-in-out infinite;
}
.blob-2 {
  width: 420px; height: 420px;
  top: -60px; right: -100px;
  background: radial-gradient(circle, rgba(242,111,33,.45), transparent 70%);
  animation: float2 16s ease-in-out infinite;
}
.blob-3 {
  width: 380px; height: 380px;
  bottom: -160px; left: 45%;
  background: radial-gradient(circle, rgba(43,125,201,.35), transparent 70%);
  animation: float1 18s ease-in-out infinite reverse;
}
.grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(43,125,201,.14) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  mask-image: radial-gradient(760px 460px at 50% 32%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(760px 460px at 50% 32%, #000 0%, transparent 75%);
  opacity: .55;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 30px 30px; }
}

/* raggi diagonali luminosi */
.hero-rays {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 600px;
  background: repeating-linear-gradient(115deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 48px,
    rgba(43,125,201,.05) 49px,
    rgba(43,125,201,.05) 50px);
  mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 70%);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, 40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-40px, 30px); }
}

/* --- chips fluttuanti --- */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(43,125,201,.18);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(26,43,60,.10);
  white-space: nowrap;
  will-change: transform;
}
.chip b { color: var(--orange); font-weight: 800; }
.chip-1 { top: 20%;  left: 6%;   animation: chipFloat 9s  ease-in-out infinite; }
.chip-2 { top: 34%;  right: 7%;  animation: chipFloat 11s ease-in-out infinite .6s; }
.chip-3 { bottom: 26%; left: 9%; animation: chipFloat 10s ease-in-out infinite .3s; }
.chip-4 { bottom: 18%; right: 9%; animation: chipFloat 12s ease-in-out infinite .9s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

/* --- luce che segue il cursore --- */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 30%),
    rgba(242,111,33,.14), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
}
.hero:hover .hero-spotlight { opacity: 1; }

/* --- contenuto --- */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.eyebrow {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  font-weight: 600;
  font-size: 1.02rem;
  background: rgba(242, 111, 33, .08);
  border: 1px solid rgba(242, 111, 33, .22);
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: 0 4px 16px rgba(242,111,33,.10);
}
.eyebrow::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-20deg);
  animation: eyebrowShine 4.5s ease-in-out infinite;
}
@keyframes eyebrowShine {
  0%, 60% { left: -120%; }
  100%    { left: 160%; }
}
.eyebrow-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242,111,33,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242,111,33,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(242,111,33,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,111,33,0); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  line-height: 1.16;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero-title .hl {
  position: relative;
  font-style: italic;
  white-space: nowrap;
  background: linear-gradient(100deg, #ff9a4d, var(--orange) 45%, var(--orange-dark) 55%, #ff9a4d 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hlShift 5s linear infinite;
}
@keyframes hlShift {
  to { background-position: 220% center; }
}
.hero-title .count {
  font-variant-numeric: tabular-nums;
  font-style: normal;
}
/* linea disegnata a mano sotto l'80% */
.hl-underline {
  position: absolute;
  left: -4%;
  bottom: -0.28em;
  width: 108%;
  height: .5em;
  color: var(--orange);
  overflow: visible;
}
.hl-underline path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawLine 1.1s ease .8s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--gray);
  font-weight: 500;
  max-width: 720px;
  margin: 0 auto 38px;
}

/* --- pillole vantaggi --- */
.hero-pills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: left;
  transform-style: preserve-3d;
}
.pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: .96rem;
  font-weight: 500;
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(26, 43, 60, .05);
  transition: transform .18s ease, box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}
/* bordo gradiente luminoso all'hover */
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}
.pill:hover::before { opacity: 1; }
.pill:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.pill-check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, #ff8a3d, var(--orange));
  box-shadow: 0 3px 8px rgba(242,111,33,.35);
  transition: transform var(--transition);
}
.pill:hover .pill-check { transform: scale(1.12) rotate(-6deg); }

.hero-cta { margin-top: 4px; }

/* micro-prova sociale */
.hero-trust {
  margin-top: 20px;
  font-size: .92rem;
  color: var(--gray);
  font-weight: 500;
}
.hero-trust b { color: var(--dark); }
.stars {
  color: var(--orange);
  letter-spacing: 2px;
  margin-right: 6px;
}

/* bottone magnetico: la label si muove leggermente */
.btn .btn-label { display: inline-block; transition: transform .2s ease; }

/* --- indicatore scroll --- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1;
}
.mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(43,125,201,.5);
  border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--orange);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   CTA BAND — WhatsApp + Recensioni
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  background: transparent; /* si fonde con lo sfondo continuo del body */
}
.band-bg { position: absolute; inset: 0; pointer-events: none; }
.band-glow {
  position: absolute;
  width: 620px; height: 620px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(43,125,201,.10), transparent 65%);
}

.band-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 26px;
  align-items: stretch;
}

/* --- Card WhatsApp --- */
.wa-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 48px 44px;
  border-radius: 26px;
  background: linear-gradient(150deg, #eafaf0 0%, #ffffff 70%);
  border: 1px solid #d6f0e0;
  box-shadow: 0 10px 34px rgba(18, 161, 80, .10);
}
.wa-orbit {
  position: absolute;
  width: 320px; height: 320px;
  right: -140px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,.16), transparent 70%);
  animation: float1 12s ease-in-out infinite;
}
.wa-eyebrow {
  position: relative;
  color: var(--blue);
  font-weight: 600;
  font-size: 1.02rem;
}
.wa-title {
  position: relative;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  max-width: 440px;
}
.wa-word { color: #12a150; white-space: nowrap; }

.btn-whatsapp {
  position: relative;
  color: #fff;
  font-size: 1.06rem;
  padding: 16px 30px;
  background: linear-gradient(135deg, #3ad07a 0%, #25D366 55%, #12a150 100%);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .40);
  margin-top: 6px;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, .52);
}
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* --- Card Recensioni --- */
.review-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(26,43,60,.16); }

.review-top { display: flex; align-items: center; gap: 18px; }
.review-avatar {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 50%;
  padding: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--orange), var(--blue));
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 6px 16px rgba(26,43,60,.10);
}
.review-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.review-info { display: flex; flex-direction: column; gap: 4px; }
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 600;
  color: #12a150;
  background: rgba(18,161,80,.10);
  padding: 3px 10px;
  border-radius: 999px;
}
.review-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .92rem;
  color: var(--gray);
  font-weight: 500;
}
.review-meta b { color: var(--dark); font-weight: 700; }
.dot-sep { color: #c3ccd6; }

.tp-stars { display: inline-flex; gap: 3px; }
.tp-star {
  width: 24px; height: 24px;
  border-radius: 5px;
  background: #00b67a;
  display: grid;
  place-items: center;
  color: #fff;
  transform: scale(0);
  animation: starPop .4s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay: calc(.25s + var(--s) * .1s);
}
.tp-star--partial {
  background: linear-gradient(90deg, #00b67a 90%, #d7e6df 90%);
}
@keyframes starPop { to { transform: scale(1); } }

.review-rating { font-size: 1.05rem; }

.review-link {
  color: var(--blue);
  font-weight: 600;
  font-size: .96rem;
  width: fit-content;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.review-link:hover { color: var(--blue-dark); border-color: var(--blue); }

/* =========================================================
   VANTAGGI — 4 card blu con icone arancioni
   ========================================================= */
.benefits {
  position: relative;
  overflow: hidden;
  padding: 78px 0 84px;
  background: transparent; /* si fonde con lo sfondo continuo del body */
}
.benefits-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(43,125,201,.07), transparent 60%),
    radial-gradient(600px 300px at 85% 80%, rgba(242,111,33,.06), transparent 60%);
}
.benefits-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 34px; /* spazio per le icone che sporgono */
}

.feature-card {
  position: relative;
  text-align: center;
  padding: 50px 24px 32px;
  border-radius: 22px;
  background: linear-gradient(160deg, #1c3f78 0%, #15315f 45%, #0c1f3d 100%);
  box-shadow: 0 20px 44px rgba(12, 31, 61, .30);
  color: #eaf1fb;
  transition: transform .2s ease, box-shadow var(--transition);
  will-change: transform;
  transform-style: preserve-3d;
}
/* riflesso lucido in alto */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 42%);
  pointer-events: none;
}
/* alone arancione che segue il cursore */
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 0%),
    rgba(242,111,33,.30), transparent 62%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.feature-card:hover { box-shadow: 0 30px 60px rgba(12, 31, 61, .40); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d 0%, var(--orange) 60%, var(--orange-dark) 100%);
  box-shadow: 0 10px 24px rgba(242, 111, 33, .45), inset 0 2px 4px rgba(255,255,255,.35);
  z-index: 2;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.feature-card:hover .feature-icon {
  transform: translate(-50%, -50%) scale(1.12) rotate(8deg);
}
.feature-icon svg { position: relative; z-index: 1; }
.icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(242,111,33,.5);
  animation: iconRing 2.4s ease-out infinite;
}
@keyframes iconRing {
  0%   { box-shadow: 0 0 0 0 rgba(242,111,33,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(242,111,33,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,111,33,0); }
}

.feature-text {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.45;
  color: #eef4fc;
}

/* =========================================================
   STORIA — Problemi / Soluzioni + immagine
   ========================================================= */
.story {
  position: relative;
  overflow: hidden;
  padding: 86px 0 90px;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
}

.story-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 18px;
}
.story-title-sm {
  display: block;
  font-size: .82em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.story-hl {
  position: relative;
  color: var(--orange);
  white-space: nowrap;
}
.story-intro {
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 22px;
}

.story-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.story-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 14px;
  transition: background var(--transition), transform var(--transition);
}
.story-item:hover { background: rgba(43, 125, 201, .05); transform: translateX(4px); }

/* entrata dal basso, più marcata, per ogni punto */
.story-item[data-reveal] { transform: translateY(46px); }
.story-item[data-reveal].in { transform: none; }

.sl-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, var(--orange));
  box-shadow: 0 4px 10px rgba(242,111,33,.4);
  transition: transform var(--transition);
}
.story-item:hover .sl-icon { transform: scale(1.15) translateX(2px); }

.story-item p {
  font-size: .97rem;
  line-height: 1.6;
  color: var(--gray);
}
.story-item b { color: var(--dark); font-weight: 700; }
.sol {
  color: var(--blue);
  font-style: italic;
  font-weight: 600;
}

/* --- immagine --- */
.story-media { position: relative; }
.media-shape {
  position: absolute;
  border-radius: 30px;
  z-index: 0;
}
.media-shape-1 {
  width: 70%; height: 70%;
  top: -22px; right: -22px;
  background: linear-gradient(135deg, rgba(242,111,33,.16), rgba(242,111,33,0));
  animation: float2 13s ease-in-out infinite;
}
.media-shape-2 {
  width: 60%; height: 60%;
  bottom: -20px; left: -24px;
  background-image: radial-gradient(rgba(43,125,201,.30) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  border-radius: 20px;
}
.story-photo {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--blue-light), #dfe9f4);
  border: 5px solid #fff;
}
.story-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
/* segnaposto mostrato finché non c'è la foto */
.photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--blue);
  text-align: center;
  font-weight: 600;
}
.photo-placeholder small { color: var(--gray); font-weight: 500; font-size: .74rem; }

.photo-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  animation: chipFloat 6s ease-in-out infinite;
}
.photo-badge .stars { color: #00b67a; font-size: 1rem; letter-spacing: 1px; }
.photo-badge b { display: block; font-size: 1.15rem; color: var(--dark); line-height: 1; }
.photo-badge small { color: var(--gray); font-size: .74rem; font-weight: 500; }

/* --- chiusura --- */
.story-close {
  text-align: center;
  margin-top: 60px;
}
.story-close-text {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--dark);
}
.story-close-text b { color: var(--orange); }

/* =========================================================
   TEAM — Piattaforma + citazione
   ========================================================= */
.team {
  position: relative;
  overflow: hidden;
  padding: 90px 0 96px;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.team-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.4px;
  color: var(--dark);
  margin-bottom: 22px;
}
.brand-name { color: var(--blue); }
.team-hl {
  position: relative;
  color: var(--orange);
  font-style: italic;
  white-space: nowrap;
}
.team-lead {
  color: var(--blue-dark);
  font-size: 1.06rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.team-lead b { font-weight: 700; }
.team-strong {
  color: var(--dark);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* --- media + citazione --- */
.team-media { position: relative; }
.team-shape-1 {
  width: 65%; height: 65%;
  top: -24px; left: -24px;
  background: linear-gradient(135deg, rgba(43,125,201,.18), rgba(43,125,201,0));
  animation: float1 14s ease-in-out infinite;
}
.team-shape-2 {
  width: 55%; height: 55%;
  bottom: 40px; right: -26px;
  background-image: radial-gradient(rgba(242,111,33,.30) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  border-radius: 20px;
}
.team-photo {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--blue-light), #dfe9f4);
  border: 5px solid #fff;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.team-quote {
  position: relative;
  z-index: 3;
  margin: -74px 20px 0 40px;   /* si sovrappone alla foto */
  padding: 30px 30px 26px;
  border-radius: 20px;
  color: #eaf1fb;
  background: linear-gradient(155deg, #1c3f78 0%, #14315f 50%, #0c1f3d 100%);
  box-shadow: 0 24px 50px rgba(12, 31, 61, .34);
  overflow: hidden;
}
.team-quote::before { /* riflesso lucido */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.quote-mark {
  position: absolute;
  top: -6px; right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--orange);
  opacity: .5;
}
.team-quote blockquote {
  position: relative;
  font-size: .98rem;
  line-height: 1.62;
  color: #dfe8f5;
}
.team-quote blockquote b { color: #fff; font-weight: 700; }
.team-quote blockquote i { color: #ffd9bf; font-style: italic; }

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: .9rem;
  color: #bcd0e8;
}
.quote-author b { color: #fff; }
.qa-line {
  width: 34px; height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* =========================================================
   PULSANTE WHATSAPP FLUTTUANTE
   ========================================================= */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3ad07a 0%, #25D366 55%, #12a150 100%);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  transition: transform var(--transition), box-shadow var(--transition);
  transform: translateY(120px);          /* nascosto finché non si scrolla */
  opacity: 0;
}
.wa-float.show { transform: translateY(0); opacity: 1; }
.wa-float:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 36px rgba(37,211,102,.55); }
.wa-float svg { position: relative; z-index: 1; }
.wa-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: waPulse 2.2s ease-out infinite;
}
.wa-float-tip {
  position: absolute;
  right: 74px;
  white-space: nowrap;
  background: var(--dark);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.wa-float-tip::after {
  content: "";
  position: absolute;
  top: 50%; right: -5px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark);
}
.wa-float:hover .wa-float-tip { opacity: 1; transform: translateX(0); }

@media (max-width: 640px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float-tip { display: none; }
}

/* =========================================================
   ANIMAZIONE DI ENTRATA (reveal)
   ========================================================= */
/* reveal-on-scroll per le sezioni sotto la piega */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: revealUp .7s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .blob, .eyebrow-dot, .aurora, .grid-dots, .chip,
  .eyebrow::after, .hero-title .hl, .wheel { animation: none; }
  .hl-underline path { stroke-dashoffset: 0; animation: none; }
  .hero-title .hl { -webkit-text-fill-color: var(--orange); color: var(--orange); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .chip { display: none; }
}

@media (max-width: 980px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-media { max-width: 440px; margin: 0 auto; width: 100%; }
  .team-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-media { max-width: 480px; margin: 0 auto; width: 100%; }
  .team-quote { margin: -74px 24px 0; }
}

@media (max-width: 860px) {
  .band-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .benefits-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .benefits { padding: 60px 0 66px; }
}

@media (max-width: 760px) {
  .hero-pills { grid-template-columns: 1fr; max-width: 460px; }
  .hero { padding: 60px 0 84px; }
  .scroll-cue { display: none; }
  .cta-band { padding: 60px 0; }
  .wa-card { padding: 38px 26px; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .logo img { height: 42px; }
  .container { padding: 0 18px; }
  .eyebrow { font-size: .9rem; padding: 8px 14px; }
  .btn-lg { font-size: .98rem; padding: 16px 26px; white-space: normal; }
}
