/* Peasy Doctor – Landing: professional medical studio design */

:root {
  /* Medical palette: calm, trustworthy */
  --medical-navy: #1e3a5f;
  --medical-navy-light: #2d4a6f;
  --indigo: #4f46e5;
  --indigo-light: #4338ca;
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --white: #ffffff;
  --off-white: #fafbfc;
  --surface: #ffffff;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-accent: 0 4px 14px -3px rgba(79, 70, 229, 0.25);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--slate-900);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ─── Container ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  padding: 14px 28px;
  transition: all 0.22s ease;
  position: relative;
  letter-spacing: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--indigo-600);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -4px rgba(79, 70, 229, 0.22);
}

.btn-outline {
  background: var(--white);
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--indigo-200);
  background: var(--indigo-50);
  color: var(--indigo-700);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--slate-200);
  box-shadow: var(--shadow-xs);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--slate-900);
  background: var(--slate-50);
}

.nav-cta {
  margin-left: 8px;
  background: var(--indigo-600) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-accent);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--indigo-700) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-700);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ─── Hero ─── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, black 15%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  animation: fadeSlideUp 0.6s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius-full);
  color: var(--indigo-700);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo-500);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--indigo);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--slate-500);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}


.hero-visual {
  position: relative;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}

.hero-float-1 {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-float-2 {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-mockup {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--slate-200);
  width: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-mockup:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ─── Section headers ─── */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--indigo-600);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--slate-900);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ─── Features — split layout ─── */
.features {
  padding: 100px 0;
  background: var(--white);
}

.features-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

.features-header {
  position: sticky;
  top: 96px;
  text-align: left;
}

.features-header .section-eyebrow {
  margin-bottom: 14px;
}

.features-header .section-title {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  text-align: left;
  margin-bottom: 14px;
}

.features-header .section-subtitle {
  font-size: 0.95rem;
  text-align: left;
}

.features-items {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--slate-100);
  align-items: flex-start;
}

.feature-item:first-child { padding-top: 0; }
.feature-item:last-child  { border-bottom: none; padding-bottom: 0; }

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  will-change: transform;
}

.feature-item:hover .feature-icon { transform: scale(1.07); }

.feature-icon-patients   { background: var(--indigo-50); color: var(--indigo-600); }
.feature-icon-visits     { background: #eef2ff;           color: #4f46e5; }
.feature-icon-calendar   { background: #ecfdf5;           color: #059669; }
.feature-icon-invoices   { background: #fffbeb;           color: #d97706; }
.feature-icon-treatments { background: #fdf2f8;           color: #be185d; }
.feature-icon-stats      { background: #f0f9ff;           color: #0284c7; }

.feature-text h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 100px 0;
  background: var(--slate-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 36px);
  right: calc(16.66% + 36px);
  height: 1px;
  background: var(--slate-200);
  border-radius: 2px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--indigo-200);
  color: var(--indigo-600);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.step-card:hover .step-number {
  border-color: var(--indigo-400);
  color: var(--indigo-700);
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── Pricing ─── */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--indigo-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.pricing-header {
  background: linear-gradient(160deg, var(--indigo-600) 0%, var(--indigo-700) 100%);
  padding: 36px 36px 28px;
  text-align: center;
  position: relative;
}

.pricing-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}

.pricing-price {
  color: var(--white);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

.pricing-price-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  margin-top: 6px;
}

.pricing-annual-note {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  display: inline-block;
}

.pricing-body {
  padding: 36px;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--slate-600);
}

.pricing-features li + li {
  border-top: 1px solid var(--slate-100);
}

.pricing-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--indigo-50);
  color: var(--indigo-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.pricing-check svg {
  width: 12px;
  height: 12px;
}

.pricing-cta {
  width: 100%;
  text-align: center;
}

.pricing-trial {
  text-align: center;
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-top: 14px;
}

/* ─── FAQ ─── */
.faq {
  padding: 100px 0;
  background: var(--slate-50);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-bottom: -1px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.faq-item:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 0;
}

.faq-item[open] {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.faq-question {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--slate-900);
  padding: 20px 24px 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234f46e5' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  background: var(--slate-50);
}

.faq-answer {
  padding: 0 24px 20px 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--slate-100);
}

/* ─── CTA Section ─── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--indigo-50) 0%, var(--white) 100%);
}

.cta-content {
  background: linear-gradient(160deg, var(--indigo-700) 0%, var(--indigo-800) 100%);
  border-radius: var(--radius-2xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-content .btn {
  position: relative;
  z-index: 1;
}

.cta-content .btn-primary {
  background: var(--white);
  color: var(--indigo-700);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.cta-content .btn-primary:hover {
  background: var(--indigo-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ─── Footer ─── */
.footer {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-800);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--slate-400);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--slate-500);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--indigo-600);
}

/* ─── Cookie banner (solo cookie tecnici) ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-link {
  color: var(--indigo-600);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-link:hover {
  color: var(--indigo-700);
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--indigo-600);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-banner-btn:hover {
  background: var(--indigo-700);
}

.cookie-banner-btn:focus-visible {
  outline: 2px solid var(--indigo-300);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 14px 20px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-text {
    min-width: 0;
  }

  .cookie-banner-btn {
    width: 100%;
  }
}

/* ─── Nav toggle icons (class-based, no innerHTML) ─── */
.nav-toggle-close { display: none; }
.nav-toggle.open .nav-toggle-menu { display: none; }
.nav-toggle.open .nav-toggle-close { display: block; }

/* ─── Hero spec pills ─── */
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.spec-pill:hover {
  border-color: var(--indigo-300);
  color: var(--indigo-600);
}

.spec-pill-more {
  background: var(--indigo-50);
  border-color: var(--indigo-200);
  color: var(--indigo-600);
  font-weight: 600;
}

/* ─── Trust Strip ─── */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  padding: 20px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
  color: var(--slate-500);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--indigo-500);
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--slate-200);
  flex-shrink: 0;
}

/* ─── Specializations section ─── */
.specializations-section {
  padding: 100px 0;
  background: var(--slate-50);
}

/* Border-collapse table grid: container left+top, cells right+bottom */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--slate-200);
  border-left: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
  transition: background 0.2s ease;
}

.spec-item:hover {
  background: var(--slate-50);
}

.spec-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.spec-icon-general    { background: var(--indigo-50); color: var(--indigo-600); }
.spec-icon-eye        { background: #f0f9ff; color: #0284c7; }
.spec-icon-aesthetics { background: #fdf2f8; color: #be185d; }
.spec-icon-derm       { background: #fffbeb; color: #d97706; }
.spec-icon-cardio     { background: #fff1f2; color: #e11d48; }
.spec-icon-pediatrics { background: #ecfdf5; color: #059669; }

.spec-item-body h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 5px;
}

.spec-item-body p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0;
}

/* ─── Why us section ─── */
.why-us {
  padding: 100px 0;
  background: var(--white);
}

.why-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}

.why-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.15;
  margin: 0;
}

.why-header-desc {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin: 0;
  align-self: end;
  padding-bottom: 4px;
}

.why-list {
  display: flex;
  flex-direction: column;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--slate-100);
}

.why-item:first-child {
  border-top: 1px solid var(--slate-100);
}

.why-item-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--indigo-50);
  color: var(--indigo-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background 0.2s ease;
}

.why-item:hover .why-item-icon {
  background: var(--indigo-100);
}

.why-item-body h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.why-item-body p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin: 0;
}

/* ─── FAQ link ─── */
.faq-link {
  color: var(--indigo-600);
  font-weight: 500;
}

.faq-link:hover {
  text-decoration: underline;
}

/* ─── Animations ─── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text { order: 1; }
  .hero-visual {
    order: 2;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions { justify-content: center; }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-header {
    position: static;
    text-align: center;
  }

  .features-header .section-title,
  .features-header .section-subtitle {
    text-align: center;
  }

  .why-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .nav-inner {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 200;
  }

  .nav-links.open a {
    font-size: 1.15rem;
    padding: 14px 28px;
  }

  .nav-toggle {
    display: block;
    z-index: 300;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps-grid::before {
    display: none;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 4px;
  }

  .trust-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }

  .trust-item {
    padding: 10px 12px;
  }

  .hero-specs {
    justify-content: center;
  }

  .specializations-section {
    padding: 72px 0;
  }

  .why-us {
    padding: 72px 0;
  }

  .why-item {
    gap: 18px;
  }

  .why-item-icon {
    width: 44px;
    height: 44px;
  }

  .cta-content {
    padding: 48px 24px;
  }

  .pricing-card {
    margin: 0 12px;
  }

  .pricing-header {
    padding: 28px 24px 24px;
  }

  .pricing-body {
    padding: 28px 24px;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px 16px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Hardening ─── */

/* Flex text containers: prevent long words from overflowing */
.feature-text,
.spec-item-body,
.why-item-body,
.trust-item {
  min-width: 0;
}

/* Break long words in prose — Italian compound words can be long */
.feature-text p,
.spec-item-body p,
.why-item-body p,
.faq-answer p,
.hero-subtitle,
.section-subtitle,
.cta-content p {
  overflow-wrap: break-word;
}

/* Hero image fallback: renders a neutral surface if the file fails to load */
.hero-mockup {
  background-color: var(--slate-100);
}

/* Keyboard focus: clear ring on interactive elements */
:focus-visible {
  outline: 2px solid var(--indigo-400);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion: respect vestibular/neurological sensitivity */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Make reveal elements immediately visible — they start at opacity:0 */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Print: strip chrome, preserve readable content */
@media print {
  .nav,
  .cookie-banner,
  .hero-grid,
  .hero-float-1,
  .hero-float-2,
  .trust-strip,
  .cta-section,
  .hero-specs {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    padding: 20px 0;
    background: none;
  }

  .btn {
    border: 1px solid currentColor;
    box-shadow: none;
  }

  a[href^="https://"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
    font-weight: 400;
  }
}
