/* Centri Cura Vita — stylesheet
   Palette derivata dal logo: blu #0A6ED1 → #00559A */

:root {
  --blue-900: #073b6f;
  --blue-800: #0a4c8c;
  --blue-700: #00559a;
  --blue-600: #0a6ed1;
  --blue-500: #1c8ae8;
  --blue-100: #dceafb;
  --blue-50:  #f2f7fe;

  --teal-600: #0e9384;
  --teal-50:  #e8f7f5;

  --ink-900: #0f1b2a;
  --ink-700: #2c3e52;
  --ink-500: #5a6b7d;
  --ink-300: #9aa8b6;

  --line: #e3eaf1;
  --surface: #ffffff;
  --surface-alt: #f6f9fc;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --shadow-s: 0 1px 2px rgba(15, 27, 42, .06), 0 2px 8px rgba(15, 27, 42, .04);
  --shadow-m: 0 8px 24px rgba(10, 76, 140, .10);
  --shadow-l: 0 24px 60px rgba(10, 76, 140, .14);

  --wrap: 1140px;
  --gutter: 20px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .75rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 1.08rem; color: var(--ink-500); margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

.lead { font-size: 1.15rem; color: var(--ink-500); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-700); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-m); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--blue-700); }
.btn--light:hover { background: var(--blue-50); transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; flex: none; }
.brand img { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { white-space: nowrap; font-weight: 800; color: var(--blue-800); font-size: 1.12rem; letter-spacing: -.02em; }
.brand__tag { white-space: nowrap; font-size: .7rem; color: var(--ink-500); letter-spacing: .08em; text-transform: uppercase; }

.nav { flex: 0 1 auto; }
.nav ul { display: flex; flex-wrap: nowrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__cta { display: none; }
@media (max-width: 1080px) { .nav__cta { display: block; } }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-700); text-decoration: none; font-weight: 500; font-size: .96rem; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-700); }

.header-cta { display: inline-flex; gap: 10px; flex: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-900); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink-900);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% -8%, var(--blue-100), transparent 62%),
    linear-gradient(180deg, var(--blue-50), #fff 78%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-500); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.hero__note { margin-top: 22px; font-size: .95rem; color: var(--ink-500); display: flex; align-items: center; gap: 10px; }
.hero__note svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; }

.hero__card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); padding: clamp(28px, 4vw, 44px); text-align: center;
}
.hero__card img { width: min(210px, 56%); margin: 0 auto 20px; }
.hero__card h2 { font-size: 1.35rem; margin-bottom: .35em; }
.hero__card p { color: var(--ink-500); font-size: .98rem; margin-bottom: 0; }
.hero__badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge {
  font-size: .82rem; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px 24px; box-shadow: var(--shadow-s);
}
.stat__value { font-size: 2.1rem; font-weight: 800; color: var(--blue-700); line-height: 1.1; letter-spacing: -.03em; }
.stat__label { font-size: .95rem; color: var(--ink-500); margin-top: 6px; }

/* ---------- Cards / servizi ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px 28px; box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--blue-100); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-500); font-size: .98rem; margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-weight: 700; font-size: 1.1rem;
  display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--shadow-m);
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--ink-500); font-size: .98rem; margin-bottom: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values svg { width: 22px; height: 22px; color: var(--teal-600); flex: none; margin-top: 3px; }
.values strong { display: block; color: var(--ink-900); }
.values span { color: var(--ink-500); font-size: .97rem; }

.about__panel {
  background: linear-gradient(160deg, var(--blue-700), var(--blue-600) 55%, var(--blue-500));
  color: #fff; border-radius: var(--radius-l); padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--shadow-l); position: relative; overflow: hidden;
}
.about__panel h3 { color: #fff; font-size: 1.45rem; }
.about__panel p { color: rgba(255,255,255,.88); margin-bottom: 0; }
.about__panel img {
  position: absolute; right: -40px; bottom: -40px; width: 200px; opacity: .14;
}

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 28px; box-shadow: var(--shadow-s);
}
.contact-card__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600);
  display: grid; place-items: center; margin-bottom: 16px;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { margin-bottom: .3em; }
.contact-card p { margin-bottom: 0; color: var(--ink-500); font-size: .98rem; }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff; text-align: center;
  padding: clamp(48px, 7vw, 88px) 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 620px; margin-inline: auto; font-size: 1.08rem; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #b9c6d3; padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #8fa1b3; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9c6d3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: .88rem; color: #8fa1b3;
}

/* ---------- Pagine di testo (privacy, 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.note {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-s); padding: 16px 20px; font-size: .95rem; color: var(--ink-700);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .about { grid-template-columns: 1fr; }
  .hero__card { order: 1; }
  .cards, .steps, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1240px) {
  .header-cta .btn--ghost { display: none; }
  .nav a { padding: 8px 10px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 74px 0 auto; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
    display: none; padding: 12px var(--gutter) 20px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 1.02rem; }
  .nav .nav__cta { margin-top: 10px; }
  .nav .nav__cta a {
    background: var(--blue-600); color: #fff; text-align: center;
    border-radius: 999px; font-weight: 600;
  }
  .nav .nav__cta a:hover { background: var(--blue-700); color: #fff; }
  .header-cta .btn--ghost { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .steps, .contact-grid, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Header compatto: logo + nome su una riga, solo il pulsante menu */
  .site-header__inner { gap: 12px; min-height: 64px; }
  .site-header .brand img { width: 36px; height: 36px; }
  .site-header .brand__name { font-size: 1.02rem; white-space: nowrap; }
  .site-header .brand__tag { display: none; }
  .header-cta .btn { display: none; }
  .nav { inset: 64px 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta, .hero__actions, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}

/* ================= Landing commerciale ================= */


/* Blocco contatto: testo + form */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-alt { margin-top: 24px; color: var(--ink-500); font-size: .98rem; }

.lead-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-l);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-900); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink-900);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); outline: none; box-shadow: 0 0 0 3px rgba(28,138,232,.18); }
.field input:user-invalid { border-color: #c0392b; }
.field textarea { resize: vertical; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-500); }
.consenso input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue-600); }

.btn--block { width: 100%; justify-content: center; }
.form-msg { margin: 0; font-size: .95rem; min-height: 1.2em; }
.form-msg--ok { color: var(--teal-600); font-weight: 600; }
.form-msg--ko { color: #c0392b; font-weight: 600; }

@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
  .price-table { padding: 20px 16px; }
  .price-table th, .price-table td { padding: 12px 6px; font-size: .95rem; }
}

@media (min-width: 961px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--4 .card { padding: 26px 22px; }
  .cards--4 .card h3 { font-size: 1.08rem; }
}

/* Elenco delle professioni ospitate */
.professioni { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; }
.professioni li {
  font-size: .92rem; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 7px 13px; border-radius: 999px;
}
.professioni li:last-child { background: transparent; border-style: dashed; color: var(--ink-500); font-weight: 500; }

/* Card "cosa non c'è": icona in negativo */
.card--neg .card__icon { background: #fdeceb; color: #c0392b; }

.formula-cta { text-align: center; margin: 32px 0 0; }
