/* ==========================================================
   Frayno — hardware.css
   Stili per la pagina Hardware / Accessori
   Estende main.css — usa variabili esistenti
   ========================================================== */

/* ----------------------------------------------------------
   HERO HARDWARE
   ---------------------------------------------------------- */
.hw-hero {
  background: var(--white);
  padding: 60px 0 40px;
}

.hw-hero__breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hw-hero__breadcrumb span { color: #9ca3af; }

.hw-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hw-hero__badge-cta { color: var(--orange); font-weight: 700; }

.hw-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

/* ----------------------------------------------------------
   PRODUCT CARDS GRID
   ---------------------------------------------------------- */
.hw-products {
  background: var(--white);
  padding: 40px 0 80px;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Category badge */
.product-card__cat-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #EEF2FF;
  color: var(--blue);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
  white-space: nowrap;
}

.product-card__cat-badge--restaurant {
  background: #FFF7ED;
  color: #d97706;
}

/* Image area */
.product-card__img-wrap {
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.product-card__img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-radius: 8px;
  position: absolute;
  inset: 0;
}

/* Card body */
.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.product-card__price {
  color: var(--blue);
  font-weight: 800;
  font-size: 1.5rem;
  margin-top: 8px;
  line-height: 1;
}

.product-card__specs {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__specs li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.product-card__specs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

.product-card__best-for {
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: italic;
  margin-top: 12px;
}

.product-card__actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--blue);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.product-card__btn-primary:hover { background: var(--blue-dark); color: #fff; }

.product-card__btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--blue);
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.product-card__btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* ----------------------------------------------------------
   RENTAL BANNER
   ---------------------------------------------------------- */
.hw-rental {
  background: var(--section-alt-bg, #f0f4ff);
  border-radius: 20px;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 48px;
}

.hw-rental__inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.hw-rental__left { flex: 0 0 240px; }

.hw-rental__mockup {
  width: 240px;
  height: 280px;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.hw-rental__mockup-ui {
  position: absolute;
  inset: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.hw-rental__mockup-bar {
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 99px;
}

.hw-rental__right { flex: 1; }

.hw-rental__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
}

.hw-rental__desc {
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

/* Trust badges */
.hw-rental__badges {
  display: flex;
  gap: 0;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(43,58,158,0.15);
}

.hw-rental__badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}

.hw-rental__badge:first-child { padding-left: 0; }

.hw-rental__badge + .hw-rental__badge {
  border-left: 1px solid var(--border);
}

.hw-rental__badge-icon { font-size: 1.5rem; flex-shrink: 0; }

.hw-rental__badge-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.hw-rental__badge-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ----------------------------------------------------------
   PRODUCT FINDER
   ---------------------------------------------------------- */
.hw-finder {
  background: var(--white);
  padding: 80px 0;
}

.hw-finder__inner {
  display: flex;
  gap: 64px;
  align-items: center;
}

.hw-finder__left { flex: 0 0 50%; max-width: 50%; }

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

.hw-finder__desc {
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

.hw-finder__right { flex: 1; }

.hw-finder__mockup {
  height: 320px;
  width: 100%;
  background: linear-gradient(135deg, #374151, #1f2937);
  border-radius: 20px;
}

/* ----------------------------------------------------------
   WHY CHOOSE SECTION
   ---------------------------------------------------------- */
.hw-why {
  background: var(--white);
  padding: 80px 0;
}

.hw-why__inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.hw-why__left { flex: 0 0 45%; }

.hw-why__photo {
  height: 480px;
  width: 100%;
  background: linear-gradient(160deg, #374151, #111827);
  border-radius: 20px;
}

.hw-why__right { flex: 1; }

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

.hw-why__subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 12px;
  margin-bottom: 32px;
}

/* Why accordion */
.hw-accordion-item {
  border-bottom: 1px solid var(--border);
}

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

.hw-accordion-header h4 {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hw-accordion-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--blue);
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.hw-accordion-item.is-open .hw-accordion-icon {
  content: '×';
}

.hw-accordion-content {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
}

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

/* ----------------------------------------------------------
   PRICING TIERS
   ---------------------------------------------------------- */
.hw-pricing {
  background: var(--section-alt-bg, #f0f4ff);
  padding: 80px 0;
}

.hw-pricing__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
}

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

.hw-pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 48px auto 0;
}

.hw-pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border);
}

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

.hw-pricing-card__tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.hw-pricing-card--featured .hw-pricing-card__tier { color: var(--blue); }

.hw-pricing-card__badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hw-pricing-card__stat-val {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.hw-pricing-card__stat-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hw-pricing-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 16px 0;
}

.hw-pricing-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: 24px;
  transition: var(--transition);
}

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

/* ----------------------------------------------------------
   HOW IT WORKS (riuso struttura prodotto)
   ---------------------------------------------------------- */
.hw-steps {
  background: var(--white);
  padding: 80px 0;
}

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

.hw-steps__row {
  position: relative;
  display: flex;
  margin-top: 60px;
}

.hw-steps__line {
  position: absolute;
  top: 24px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: var(--border);
  z-index: 0;
  transform-origin: left center;
}

.hw-steps__step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.hw-steps__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hw-steps__step-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-top: 20px;
}

.hw-steps__step-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 8px auto 0;
}

.hw-steps__cta-wrap { text-align: center; margin-top: 40px; }

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

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

/* ----------------------------------------------------------
   SOCIAL PROOF
   ---------------------------------------------------------- */
.hw-social {
  background: var(--white);
  padding: 80px 0;
}

.hw-social__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 48px;
}

.hw-social__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hw-social__track::-webkit-scrollbar { display: none; }

.hw-social-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.hw-social-card__stars { color: var(--orange); font-size: 0.9rem; margin-bottom: 12px; }

.hw-social-card__quote {
  font-style: italic;
  color: var(--dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hw-social-card__name {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
  margin-top: 16px;
}

.hw-social-card__meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ----------------------------------------------------------
   COMPARISON TABLE
   ---------------------------------------------------------- */
.hw-comparison {
  background: var(--white);
  padding: 80px 0;
}

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

.hw-comparison__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hw-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

/* Header row with product cards */
.hw-comparison-table thead th {
  padding: 16px 12px;
  text-align: center;
  vertical-align: top;
  min-width: 140px;
}

.hw-comparison-table thead th:first-child {
  min-width: 180px;
  text-align: left;
}

.comparison-product-img {
  height: 80px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.comparison-product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.comparison-product-img .img-fallback {
  font-size: 2rem;
  position: static;
  width: auto;
  height: auto;
  background: none;
}

.comparison-product-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.comparison-product-price {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.comparison-product-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.comparison-product-btn:hover { background: var(--blue-dark); }

/* Category header rows */
.comparison-row--category td {
  background: #f8f9fa;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Feature rows */
.hw-comparison-table tbody tr:not(.comparison-row--category) td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--dark);
}

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

.hw-comparison-table tbody tr:not(.comparison-row--category):hover td {
  background: #fafafa;
}

.check { color: #059669; font-weight: 700; }
.dash  { color: #d1d5db; }

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

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

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

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

.hw-faq__left-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.hw-faq__right { flex: 1; }

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

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

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

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

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

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

/* ----------------------------------------------------------
   BOTTOM CTA BANNER
   ---------------------------------------------------------- */
.hw-cta-banner {
  background: #FFF9F0;
  border-radius: 20px;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 64px;
  text-align: center;
}

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

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

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

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .hw-products__grid   { grid-template-columns: repeat(2, 1fr); }
  .hw-why__inner       { flex-direction: column; }
  .hw-why__left        { flex: none; width: 100%; }
  .hw-why__photo       { height: 320px; }
  .hw-finder__inner    { flex-direction: column; gap: 32px; }
  .hw-finder__left     { flex: none; max-width: 100%; }
}

@media (max-width: 768px) {
  .hw-products__grid   { grid-template-columns: 1fr; }
  .hw-rental__inner    { flex-direction: column; gap: 32px; }
  .hw-rental__badges   { flex-direction: column; gap: 20px; }
  .hw-rental__badge + .hw-rental__badge { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .hw-pricing__cards   { grid-template-columns: 1fr; }
  .hw-steps__row       { flex-direction: column; gap: 32px; }
  .hw-steps__line      { display: none; }
  .hw-faq__inner       { flex-direction: column; gap: 32px; }
  .hw-faq__left        { flex: none; max-width: 100%; position: static; }
  .hw-cta-banner       { padding: 40px 24px; margin-bottom: 40px; }
}
