/* =========================================================
   Dendria — Prezzo (prezzo.css)
   Stile coerente con il resto del sito:
   bianco, testo quasi nero, sage green per accenti/CTA.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --sage:        #9FB89A;
  --sage-dark:   #7F9E7A;
  --sage-border: rgba(159, 184, 154, 0.45);
  --sage-bg:     rgba(159, 184, 154, 0.10);

  --ink:         #111110;
  --ink-muted:   #5a5a52;
  --ink-faint:   #9a9a8e;

  --surface:     #ffffff;
  --surface-alt: #f7f6f2;
  --divider:     #e8e6e0;

  --red-cross:   #c94040;
  --check:       #4a7c52;

  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;

  --radius-card: 1.5rem;
}

/* ── Page shell ── */
.pricing-page {
  min-height: calc(100vh - 70px); /* lascia spazio all'header */
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
}

/* ── Two-column layout ── */
.pricing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1020px;
  width: 100%;
}

/* ══════════════════════════════════════
   LEFT — ILLUSTRAZIONE
   ══════════════════════════════════════ */
.dendria-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dendria-img {
  width: min(420px, 100%);
  height: auto;
  display: block;
  /* Drop shadow discreto, coerente con le altre illustrazioni del sito */
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.10));
}

/* ══════════════════════════════════════
   RIGHT — PRICING CARD
   ══════════════════════════════════════ */
.card-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--divider);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.07);
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ── Header verde sage ── */
.card-header {
  width: 100%;
  background: var(--sage);
  padding: 2rem 2rem 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  /* Curva morbida verso il body */
  clip-path: ellipse(100% 90% at 50% 8%);
}

/* Luce interna leggera */
.card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 35% 15%, rgba(255,255,255,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.card-header-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Bolla prezzo */
.price-bubble {
  width: 104px;
  height: 104px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  margin: 0.35rem 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.price-period {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.card-plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-plan-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

/* ── Card body ── */
.card-body {
  padding: 1.75rem 1.75rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Feature list */
.features-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.feat-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  font-weight: 800;
}

.feat-icon.check {
  background: rgba(74, 124, 82, 0.10);
  color: var(--check);
}

.feat-icon.cross {
  background: rgba(201, 64, 64, 0.09);
  color: var(--red-cross);
}

.feat-text strong {
  font-weight: 600;
  color: var(--ink);
}

/* Divider */
.card-divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
}

/* ── CTA button — sage, stile "ACCEDI" della login page ── */
.btn-dendria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.9rem 2rem;
  background-color: var(--sage);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 12px rgba(159, 184, 154, 0.35);
}

.btn-dendria:hover {
  background-color: var(--sage-dark);
  box-shadow: 0 4px 18px rgba(159, 184, 154, 0.45);
}

/* Nota sotto il bottone */
.card-note {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 760px) {
  .pricing-page {
    padding: 2rem 1rem 3rem;
  }

  .pricing-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Card prima, Dendria sotto */
  .card-side   { order: 1; }
  .dendria-side { order: 2; }

  .dendria-img {
    width: min(280px, 80%);
  }
}

@media (max-width: 420px) {
  .card-body { padding: 1.5rem 1.25rem 1.75rem; }
}