/* =========================================================
   PLUS DIMENSIONE SALUTE — Design System
   Soft & warm premium · glicine / arancio / azzurro
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* --- Brand --- */
  --glicine-50:  #f3effb;
  --glicine-100: #e7ddf6;
  --glicine-200: #d3c2ee;
  --glicine-300: #b7a0e2;
  --glicine-400: #9d7fd6;
  --glicine-500: #8a6fd1;
  --glicine-600: #6f54b8;

  --arancio-50:  #fff2ea;
  --arancio-100: #ffe1cd;
  --arancio-300: #ffb585;
  --arancio-400: #ff9a57;
  --arancio-500: #fb7e2f;
  --arancio-600: #ed6817;

  --azzurro-50:  #ecf6ff;
  --azzurro-100: #d6ecff;
  --azzurro-300: #91c8fb;
  --azzurro-400: #5fadf3;
  --azzurro-500: #3f9bf0;
  --azzurro-600: #2580dd;

  /* --- Neutrals (warm, faintly violet) --- */
  --ink:    #1b1822;
  --ink-2:  #2c2838;
  --muted:  #6a6577;
  --muted-2:#928da0;
  --line:   #ece8f3;
  --line-2: #f4f1f9;
  --paper:  #ffffff;
  --paper-2:#faf8fd;
  --paper-3:#f5f2fb;

  /* --- Semantic --- */
  --bg: var(--paper);
  --fg: var(--ink);

  /* --- Gradients --- */
  --grad-brand: linear-gradient(120deg, var(--glicine-500) 0%, var(--azzurro-500) 100%);
  --grad-warm:  linear-gradient(120deg, var(--glicine-500) 0%, var(--arancio-500) 100%);
  --grad-tri:   linear-gradient(120deg, var(--glicine-500) 0%, var(--azzurro-500) 50%, var(--arancio-500) 100%);
  --grad-soft:  linear-gradient(160deg, var(--glicine-50) 0%, var(--azzurro-50) 100%);

  /* --- Radii --- */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-2xl: 48px;
  --r-pill: 999px;

  /* --- Shadows (soft, layered) --- */
  --sh-xs: 0 1px 2px rgba(27,24,34,.05);
  --sh-sm: 0 2px 8px rgba(27,24,34,.06);
  --sh-md: 0 10px 30px -12px rgba(60,42,110,.22);
  --sh-lg: 0 24px 60px -20px rgba(60,42,110,.30);
  --sh-xl: 0 40px 90px -30px rgba(60,42,110,.38);
  --sh-glow-g: 0 20px 60px -18px rgba(138,111,209,.55);
  --sh-glow-o: 0 18px 50px -16px rgba(251,126,47,.50);

  /* --- Type --- */
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* --- Layout --- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* --- Type scale --- */
.display   { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -0.035em; }
.h1        { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.h2        { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3        { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.eyebrow   {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--glicine-600);
  font-weight: 700;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }

.grad-text {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-cool {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Layout helpers --- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-sm { padding-block: clamp(48px, 7vw, 88px); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  padding: .92em 1.5em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: var(--sh-glow-o);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(251,126,47,.62); }
.btn-cool {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-glow-g);
}
.btn-cool:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(138,111,209,.66); }
.btn-ghost {
  background: rgba(255,255,255,.6);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--sh-md); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.06rem; }

/* =========================================================
   Glass surfaces
   ========================================================= */
.glass {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--sh-md);
}
.glass-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

/* =========================================================
   Decorative blobs / mesh
   ========================================================= */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; }
.blob-g { background: radial-gradient(circle, var(--glicine-300), transparent 70%); }
.blob-o { background: radial-gradient(circle, var(--arancio-300), transparent 70%); }
.blob-a { background: radial-gradient(circle, var(--azzurro-300), transparent 70%); }

.mesh-bg {
  background:
    radial-gradient(40% 50% at 12% 8%, var(--glicine-100) 0%, transparent 60%),
    radial-gradient(45% 55% at 92% 18%, var(--azzurro-100) 0%, transparent 60%),
    radial-gradient(50% 50% at 70% 95%, var(--arancio-100) 0%, transparent 55%),
    var(--paper);
}

/* =========================================================
   Image placeholders (elegant, intentional)
   ========================================================= */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, var(--glicine-100), var(--azzurro-100));
  display: flex; align-items: center; justify-content: center;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 2px, transparent 2px 14px);
  opacity: .5;
}
.ph::after {
  content: attr(data-label);
  position: relative;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--glicine-600);
  background: rgba(255,255,255,.7);
  padding: .5em .9em;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.ph-warm { background: linear-gradient(135deg, var(--arancio-100), var(--glicine-100)); }
.ph-cool { background: linear-gradient(135deg, var(--azzurro-100), var(--glicine-100)); }
/* real image fill — hides stripes + label, gradient stays as fallback layer */
.ph.img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ph.img::before, .ph.img::after { display: none; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(60,42,110,.4);
}
.nav .wrap-wide { display: flex; align-items: center; gap: 2rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand-logo { height: 64px; width: auto; flex: none; display: block; max-width: none; }
@media (max-width: 600px){ .brand-logo { height: 50px; } }
.footer-logo { height: 54px; margin-bottom: .4rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-tri);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 1.05rem;
  box-shadow: var(--sh-glow-g);
  flex: none;
}
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .58rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: .4rem; margin-left: auto; align-items: center; }
.nav-links a {
  font-weight: 500; font-size: .95rem; color: var(--ink-2);
  padding: .6em .9em; border-radius: var(--r-pill);
  transition: background .25s, color .25s;
}
.nav-links a:hover { background: var(--paper-3); color: var(--glicine-600); }
.nav-links a.active { color: var(--glicine-600); }
.nav-cta { margin-left: .6rem; }
.nav-burger { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: #cfc9dc;
  padding-block: clamp(56px, 8vw, 96px) 32px;
  position: relative; overflow: hidden;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .04em; }
.footer a { color: #cfc9dc; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted-2); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Floating contact bar
   ========================================================= */
.float-bar {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px);
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; border: none;
  box-shadow: var(--sh-lg);
  transition: transform .3s var(--ease-out);
  position: relative;
}
.float-btn:hover { transform: scale(1.08) translateY(-2px); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: #25d366; }
.float-call { background: var(--grad-brand); }
.float-btn .pulse {
  position: absolute; inset: 0; border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}
.float-wa .pulse { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
.float-call .pulse { box-shadow: 0 0 0 0 rgba(138,111,209,.5); }
@keyframes pulse { to { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .float-btn .pulse { animation: none; } }

/* =========================================================
   Misc utilities
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 600;
  padding: .5em 1em; border-radius: var(--r-pill);
  background: var(--paper-3); color: var(--glicine-600);
  border: 1px solid var(--line);
}
.divider { height: 1px; background: var(--line); border: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--paper-3); border: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (max-width: 430px) {
  /* bottoni a tutta larghezza sui telefoni stretti (hero e CTA) */
  .hero .cta-row .btn, .cta-band .cta-row .btn { width: 100%; justify-content: center; }
}
