/* ==========================================================================
   POD - Pazienti On Demand — Stylesheet
   ========================================================================== */

:root {
  --color-navy: #0F2A3D;
  --color-navy-light: #123C5C;
  --color-teal: #0F6E63;
  --color-teal-light: #15A896;
  --color-accent: #FF6B4A;
  --color-accent-dark: #E5573A;
  --color-bg: #F7FAFB;
  --color-bg-alt: #EEF3F5;
  --color-card: #FFFFFF;
  --color-text: #16262F;
  --color-muted: #56707C;
  --color-border: #E1E9EC;

  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(15, 42, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 42, 61, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 42, 61, 0.16);

  --container-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--color-muted); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-navy);
}
.btn-ghost:hover { border-color: var(--color-navy); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-nav { margin-left: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: var(--color-navy);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .56rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-weight: 500;
  font-size: .92rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(15, 110, 99, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.center { display: block; text-align: center; width: fit-content; margin-inline: auto; }

.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 107, 74, 0.08);
  border: 1px solid rgba(255, 107, 74, 0.25);
  color: var(--color-text);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  max-width: fit-content;
  margin-bottom: 34px;
}
.hero-guarantee .shield-icon { width: 22px; height: 22px; color: var(--color-accent-dark); flex-shrink: 0; }
.hero-guarantee strong { color: var(--color-accent-dark); }

.hero-trust {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-navy); }
.trust-item span { font-size: .82rem; color: var(--color-muted); max-width: 16ch; }

/* Mock dashboard illustration */
.mock-dashboard {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--color-navy);
}
.mock-header .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #FF6B4A; }
.dot.yellow { background: #F2C14E; }
.dot.green { background: #15A896; }
.mock-title { color: #fff; font-size: .78rem; margin-left: 10px; opacity: .85; font-weight: 500; }
.mock-columns { display: flex; gap: 14px; padding: 18px; background: var(--color-bg-alt); }
.mock-col { flex: 1; min-width: 0; }
.mock-col-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.mock-col-title em { font-style: normal; color: var(--color-teal); }
.mock-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .74rem;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  border-left: 3px solid var(--color-teal-light);
}
.mock-card.accent { border-left-color: var(--color-accent); font-weight: 600; }
.mock-card.ghost { opacity: .5; }

.mock-dashboard.alt { transform: rotate(-1deg); }
.mock-stats { display: flex; gap: 10px; padding: 16px 18px 4px; background: var(--color-bg-alt); }
.mock-stat {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.mock-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-navy);
}
.mock-stat span:last-child { font-size: .68rem; color: var(--color-muted); }
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  padding: 18px;
  background: var(--color-bg-alt);
}
.mock-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--color-teal-light), var(--color-teal));
  border-radius: 6px 6px 0 0;
}

/* ---------- Sections generic ---------- */
section { padding: 90px 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-title.center { text-align: center; }
.section-sub { color: var(--color-muted); max-width: 56ch; }
.section-sub.center { text-align: center; margin-inline: auto; margin-bottom: 50px; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Problems ---------- */
.problems { background: var(--color-bg-alt); }
.problem-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--color-border);
}
.problem-card .icon {
  width: 34px; height: 34px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.problem-card h3 { font-size: 1.05rem; }
.problem-card p { font-size: .92rem; margin: 0; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.step {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-teal-light);
  margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--color-bg-alt); }
.service-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--color-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-navy-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; color: #fff; }
.service-card h3 { font-size: 1.05rem; }
.service-card p { font-size: .92rem; margin: 0; }

/* ---------- CRM spotlight ---------- */
.crm-spotlight { background: var(--color-navy); color: #fff; }
.crm-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.crm-spotlight .eyebrow { background: rgba(255,255,255,.12); color: #7FD9CB; }
.crm-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.crm-copy p { color: #C7D6DC; }
.check-list { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: #E3ECEF;
  font-size: .95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-teal-light);
  color: var(--color-navy);
  font-size: .72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Results ---------- */
.stats-grid { text-align: center; }
.stat-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 34px 20px;
  border: 1px solid var(--color-border);
}
.stat-number, .stat-suffix {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--color-teal);
}
.stat-card p { margin-top: 8px; font-size: .9rem; }
.stats-disclaimer { text-align: center; font-size: .78rem; margin-top: 30px; color: var(--color-muted); opacity: .8; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--color-border);
  margin: 0;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--color-text);
  font-style: italic;
}
.testimonial-card footer strong { display: block; color: var(--color-navy); font-style: normal; }
.testimonial-card footer span { font-size: .82rem; color: var(--color-muted); }
.testimonial-note { text-align: center; font-size: .78rem; color: var(--color-muted); margin-top: 24px; opacity: .8; }

/* ---------- Why us / compare table ---------- */
.compare-table {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: .92rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div:first-child { text-align: left; font-weight: 600; color: var(--color-navy); }
.compare-head { font-weight: 700; color: var(--color-navy); background: var(--color-bg-alt); }
.compare-head .highlight { color: var(--color-teal); }
.compare-row .highlight { background: rgba(15,110,99,.06); font-weight: 700; }
.compare-row .yes { color: var(--color-teal); font-size: 1.1rem; }
.compare-row .no { color: #C7550F; opacity: .5; }
.compare-row .maybe { color: var(--color-muted); }

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
}
.accordion-icon {
  flex-shrink: 0;
  color: var(--color-teal);
  font-size: 1.3rem;
  transition: transform .2s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 24px;
}
.accordion-panel p { padding-bottom: 20px; margin: 0; font-size: .94rem; }

/* ---------- Contact ---------- */
.contact { background: var(--color-bg-alt); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-points { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.contact-points li { font-size: .95rem; color: var(--color-text); font-weight: 500; }
.contact-info p { margin-bottom: 6px; }
.contact-info a { color: var(--color-teal); font-weight: 600; }

.contact-form {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-row-2 .form-row { margin-bottom: 0; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--color-navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-teal-light);
}
textarea { resize: vertical; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--color-muted);
  margin-bottom: 20px;
  font-weight: 400;
}
.checkbox-row input { width: auto; margin-top: 3px; }
.checkbox-row a { color: var(--color-teal); font-weight: 600; }
.form-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(21, 168, 150, 0.12);
  color: var(--color-teal);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: #C7D6DC; padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-text small { color: #9AB2BC; }
.footer-brand p { color: #9AB2BC; font-size: .9rem; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: #C7D6DC; }
.footer-col a:hover { color: #fff; }
.footer-col li { font-size: .88rem; }
.footer-bottom { padding: 22px 24px; text-align: center; font-size: .8rem; color: #7F97A1; }

/* ---------- Floating CTA (mobile) ---------- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 90;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .crm-inner { grid-template-columns: 1fr; }
  .crm-visual { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 20px 24px; gap: 18px; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .floating-cta { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: .78rem; padding: 12px 10px; }
  section { padding: 64px 0; }
  .hero { padding-bottom: 110px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-trust { gap: 20px; }
  .mock-columns { flex-direction: column; }
}
