/* ==========================================================
   Frayno — prezzi.css
   Stili per la pagina Prezzi (Pricing)
   Estende main.css — usa variabili esistenti
   ========================================================== */

:root {
  --plan-light-bg: #f0f4ff;
  --check-green:   #059669;
  --cross-color:   #d1d5db;
}

/* ----------------------------------------------------------
   HERO PREZZI
   ---------------------------------------------------------- */
.pz-hero {
  background: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.pz-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto;
}

.pz-hero__subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 16px;
  line-height: 1.7;
}

/* Included features grid */
.pz-features-grid {
  background: var(--plan-light-bg);
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.pz-feature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(43,58,158,0.1);
  gap: 16px;
}

.pz-feature-row:last-child { border-bottom: none; }

.pz-feature-row__name {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.9rem;
}

.pz-feature-row__val {
  color: var(--check-green);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.pz-hero__disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 16px;
  max-width: 700px;
  margin-inline: auto;
}

/* ----------------------------------------------------------
   MAIN PLANS SECTION
   ---------------------------------------------------------- */
.pz-plans {
  background: var(--white);
  padding: 80px 0;
}

.pz-plans__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
}

.pz-plans__subtitle {
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Billing toggle */
.pz-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.pz-toggle {
  display: inline-flex;
  background: #f8f9fa;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--border);
}

.toggle-btn {
  border-radius: 999px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font);
}

.toggle-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pz-toggle-annual-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  display: none;
}

.pz-toggle-annual-badge.visible { display: inline-block; }

/* Plan cards */
.pz-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 48px auto 0;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card--featured {
  border: 2px solid var(--blue);
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.plan-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.6;
}

/* Price row */
.plan-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 24px;
  gap: 16px;
}

.plan-card__price-left { flex: 1; }
.plan-card__price-right { text-align: right; }

.plan-card__price-label {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
}

.plan-card__price-label--muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  display: block;
}

.plan-card__price-suffix {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.plan-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
  min-height: 1.2em;
  display: block;
}

.plan-card__stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  display: block;
  line-height: 1;
}

.plan-card__stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* Feature list */
.plan-card__features {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.plan-card__feat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  gap: 8px;
}

.plan-card__feat-name { color: var(--dark); }

.plan-card__feat-val { flex-shrink: 0; }
.feat-check { color: var(--check-green); font-weight: 700; }
.feat-dash  { color: var(--cross-color); }

/* CTA */
.plan-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--blue);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 28px;
  transition: var(--transition);
}

.plan-card__cta:hover { background: var(--blue-dark); }

.plan-card__fine {
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   HARDWARE BANNER (nel pricing)
   ---------------------------------------------------------- */
.pz-hw-banner {
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 900px;
  margin: 48px auto;
  overflow: hidden;
  display: flex;
}

.pz-hw-banner__img {
  flex: 0 0 40%;
  min-height: 200px;
  background: linear-gradient(135deg, #374151, #1f2937);
  position: relative;
}

.pz-hw-banner__img::after {
  content: '👨‍💼';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.4;
}

.pz-hw-banner__body {
  flex: 1;
  padding: 36px;
}

.pz-hw-banner__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.pz-hw-banner__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
}

.pz-hw-banner__cta {
  display: inline-block;
  margin-top: 20px;
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pz-hw-banner__cta:hover { background: var(--blue-dark); }

.pz-hw-banner__fine {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 12px;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   LIFESTYLE FULL-WIDTH + HIGH-VOLUME BOX
   ---------------------------------------------------------- */
.pz-lifestyle {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, var(--blue) 0%, #374151 50%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.pz-lifestyle__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.pz-highvol {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--white);
}

.pz-highvol__left { flex: 1; }

.pz-highvol__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.pz-highvol__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
}

.pz-highvol__cta {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.pz-highvol__cta:hover { background: var(--blue-dark); }

/* ----------------------------------------------------------
   ENTERPRISE SECTION
   ---------------------------------------------------------- */
.pz-enterprise {
  background: var(--white);
  padding: 80px 0;
}

.pz-enterprise__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
}

.pz-enterprise__subtitle {
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
}

.pz-enterprise__cards {
  display: flex;
  gap: 20px;
  margin-top: 48px;
}

.ent-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.ent-card--special {
  border: 2px solid var(--orange);
  background: #FFF9F0;
}

.ent-card__name {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.ent-card__val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-top: 16px;
  display: block;
  line-height: 1;
}

.ent-card__val--orange { color: var(--orange); }

.ent-card__label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.pz-enterprise__footnote {
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 24px;
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   COMPARISON TABLE
   ---------------------------------------------------------- */
.pz-comparison {
  background: #f8f9fa;
  padding: 80px 0;
}

.pz-comparison__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
}

.pz-comparison__scroll {
  max-width: 900px;
  margin: 48px auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pz-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pz-table thead th {
  padding: 24px 16px;
  text-align: center;
  vertical-align: top;
}

.pz-table thead th:first-child {
  text-align: left;
  width: 200px;
}

.pz-table__plan-name {
  font-weight: 800;
  color: var(--dark);
  font-size: 1rem;
  display: block;
}

.pz-table__plan-price {
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 800;
  display: block;
  margin: 8px 0;
}

.pz-table__plan-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.pz-table__plan-btn:hover { background: var(--blue-dark); }

.pz-table th.col-pro {
  border-top: 3px solid var(--blue);
  background: var(--plan-light-bg);
}

/* Category rows */
.pz-table tr.cat-row td {
  background: var(--plan-light-bg);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  text-align: left;
}

/* Data rows */
.pz-table tbody tr:not(.cat-row) td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--dark);
}

.pz-table tbody tr:not(.cat-row) td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
}

.pz-table tbody tr:not(.cat-row).col-pro-row td:nth-child(3) {
  background: #f8faff;
}

.pz-table tbody tr:not(.cat-row):hover td { background: #fafafa; }

.pz-check { color: var(--check-green); font-weight: 700; }
.pz-dash  { color: var(--cross-color); }
.pz-val   { color: var(--blue); font-weight: 600; }

/* ----------------------------------------------------------
   CHALLENGE BANNER
   ---------------------------------------------------------- */
.pz-challenge {
  background: var(--plan-light-bg);
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 64px;
  text-align: center;
}

.pz-challenge__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
}

.pz-challenge__contact {
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.95rem;
}

.pz-challenge__cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--blue);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.pz-challenge__cta:hover { background: var(--blue-dark); }

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.pz-faq {
  background: var(--white);
  padding: 80px 0;
}

.pz-faq__inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.pz-faq__left {
  flex: 0 0 30%;
  max-width: 30%;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.pz-faq__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.pz-faq__sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.pz-faq__right { flex: 1; }

.pz-faq-item { border-bottom: 1px solid var(--border); }

.pz-faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}

.pz-faq-header__q {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pz-faq-header__icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--blue);
  width: 20px;
  text-align: center;
}

.pz-faq-content {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
}

.pz-faq-content__inner {
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.pz-faq__more-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  text-decoration: none;
}

.pz-faq-item--hidden { display: none; }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .pz-features-grid          { grid-template-columns: 1fr; gap: 0; padding: 24px; }
  .pz-cards                  { grid-template-columns: 1fr; }
  .pz-hw-banner              { flex-direction: column; }
  .pz-hw-banner__img         { min-height: 160px; flex: none; }
  .pz-highvol                { flex-direction: column; gap: 24px; padding: 32px 24px; border-radius: 0 0 12px 12px; }
  .pz-enterprise__cards      { flex-direction: column; }
  .pz-challenge              { padding: 40px 24px; }
  .pz-faq__inner             { flex-direction: column; gap: 32px; }
  .pz-faq__left              { flex: none; max-width: 100%; position: static; }
}

@media (max-width: 1024px) {
  .pz-enterprise__cards      { flex-wrap: wrap; }
  .ent-card                  { flex: 0 0 calc(50% - 10px); }
}
