/* ============================================================
   NEAR — Page Styles (pagine interne)
   ============================================================ */

/* ---- Page Hero (interno) ---- */
.page-hero {
  position: relative;
  padding: 160px 0 40px;
  background: var(--c-bg-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* Tighten gap between page-hero and the first section that follows */
.page-hero + .section-pad {
  padding-top: clamp(40px, 5vw, 64px);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: url('../images/bg-blue.jpg') center / cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(7,22,51,0.85) 0%, rgba(10,30,63,0.6) 60%, rgba(49,93,171,0.3) 100%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.page-hero-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--c-cyan);
}
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
  max-width: 18ch;
  margin: 0 0 24px;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-cyan);
}
.page-hero-sub {
  font-size: clamp(16px, 1.2vw, 20px);
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
  line-height: 1.55;
}
/* KPI stats strip — product flagship hero */
.hero-kpis {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-kpi {
  border-left: 2px solid var(--c-cyan);
  padding-left: 18px;
}
.hero-kpi-val {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.hero-kpi-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.page-hero-media {
  position: absolute; inset: 0; z-index: -3;
}
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* ---- Page Hero — light two-col variant ---- */
.page-hero--light {
  background: var(--c-bg) !important;
  color: var(--c-ink);
  padding: 140px 0 80px;
}
.page-hero--light::before,
.page-hero--light::after { display: none; }
.page-hero--light .page-hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.page-hero--light h1 {
  color: var(--c-ink);
  max-width: 20ch;
}
.page-hero--light h1 em { color: var(--c-blue); }
.page-hero--light .page-hero-eyebrow { color: var(--c-blue); }
.page-hero--light .page-hero-eyebrow::before { background: var(--c-blue); }
.page-hero--light .page-hero-sub { color: var(--c-ink-soft); }
.page-hero-right {
  padding-top: 80px;
}
.page-hero-right-text {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.page-hero-right-text p { margin: 0 0 16px; }
.page-hero-right-text p:last-child { margin: 0; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.35); }
.page-hero--light .breadcrumb,
.page-hero--light .breadcrumb a,
.page-hero--light .breadcrumb span { color: var(--c-ink-soft); }
.page-hero--light .breadcrumb a:hover { color: var(--c-blue); }

/* ---- Section layouts ---- */
/* .section-two-col is a semantic marker only — grid lives on .tcc-grid inside the block */
.section-sticky-head { position: sticky; top: 120px; }

/* ---- Pull quote ---- */
.pull-quote {
  border-left: 3px solid var(--c-blue);
  padding: 24px 32px;
  background: var(--c-bg-alt);
  border-radius: 0 4px 4px 0;
  margin: 40px 0;
}
.pull-quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--c-ink);
  margin: 0 0 12px;
}
.pull-quote cite,
.pull-quote .pull-cite {
  display: block;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin: 0;
}

/* ---- Spec table ---- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table tr { border-bottom: 1px solid var(--c-line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td {
  padding: 14px 16px;
  vertical-align: top;
  line-height: 1.5;
}
.spec-table td:first-child {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-mute);
  width: 45%;
  padding-right: 24px;
}
.spec-table td:last-child {
  font-weight: 500;
  color: var(--c-ink);
}
.spec-table-wrap {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  overflow-x: auto;
}
.spec-table-wrap table { min-width: 360px; }

/* ---- Feature cards / innovation grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { box-shadow: 0 16px 40px -12px rgba(49,93,171,0.15); border-color: var(--c-blue); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,159,227,0.1), rgba(49,93,171,0.12));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--c-blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h4 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
}
.feature-card p {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0;
}
.feature-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-blue);
  margin-bottom: 2px;
}

/* ---- Numbered steps — cards (horizontal) ---- */
.near-values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.value-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 20px;
  background: var(--c-bg-alt);
  border-radius: 4px;
  border: 1px solid var(--c-line);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.value-item:hover { box-shadow: 0 12px 32px -8px rgba(49,93,171,0.12); border-color: var(--c-blue); }
.value-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.value-item h3 {
  font-family: var(--f-display);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.3;
}
.value-item p {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 960px) {
  .near-values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .near-values-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Cert badges ---- */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-deep);
  font-weight: 500;
  gap: 8px;
}
.cert-badge::before {
  content: "✓";
  color: var(--c-blue);
  font-family: sans-serif;
}

/* ---- Product card ---- */
.product-card {
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -16px rgba(49,93,171,0.2);
  border-color: var(--c-blue);
}
.product-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--c-bg-alt);
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 10px;
  background: var(--c-deep);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.product-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.product-model {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.product-card-body h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0;
}
.product-card-body p {
  font-size: 13.5px;
  color: var(--c-ink-soft);
  line-height: 1.55;
  margin: 0;
}
.product-specs-mini {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  margin-top: auto;
}
.mini-spec-val {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-deep);
  letter-spacing: -0.02em;
}
.mini-spec-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-top: 2px;
}

/* ---- Process / timeline steps ---- */
.process-steps { position: relative; }
.process-track {
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 1px;
  background: var(--c-line);
}
.process-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 28px;
  padding-bottom: 48px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 2px solid var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-blue);
  letter-spacing: 0.05em;
}
.process-step.active .process-dot {
  background: var(--c-deep);
  border-color: var(--c-deep);
  color: #fff;
}
.process-body h4 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--c-ink);
  margin: 8px 0 10px;
}
.process-body p {
  font-size: 14.5px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---- Category label ---- */
.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-bg);
  background: var(--c-deep);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ---- Section divider ---- */
.section-divider {
  height: 1px;
  background: var(--c-line);
  margin: 0;
}

/* ---- Highlight box ---- */
.highlight-box {
  background: linear-gradient(135deg, var(--c-deep) 0%, #1e4589 60%, var(--c-blue) 100%);
  color: #fff;
  border-radius: 4px;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 300px; height: 300px;
  background: url('../images/bg01.jpg') center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.highlight-box h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 16px;
}
.highlight-box p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 28px;
}

/* ---- Form ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
}
.form-group label .req { color: var(--c-blue); margin-left: 2px; }
.form-control {
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0,159,227,0.12);
}
.form-control::placeholder { color: var(--c-mute); }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--c-blue);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .section-sticky-head { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 40px; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .pull-quote { padding: 18px 20px; }
  .spec-table td:first-child { width: 40%; font-size: 10px; }
  .highlight-box { padding: 32px 28px; }
}
@media (max-width: 600px) {
  /* Page hero mobile */
  .page-hero { padding: 96px 0 24px; }
  .page-hero h1 { font-size: clamp(26px, 7.5vw, 38px); line-height: 1.15; }
  .page-hero-sub { font-size: 15px; }
  .page-hero + .section-pad { padding-top: 36px; }

  /* Hero KPIs: riduce gap su mobile, wrap naturale */
  .hero-kpis { gap: 16px 24px; }

  /* Two-col: riduci il testo h2 nelle sezioni interne */
  .tcc-grid h2, .h2 { font-size: clamp(24px, 6.5vw, 36px); }

  /* Spec table: rendi testo leggibile */
  .spec-table { font-size: 13px; }
  .spec-table td { padding: 10px 12px; }
  .spec-table td:first-child { width: 42%; }

  /* Product-spec supplemental: 1 col su mobile */
  .torre-grid { grid-template-columns: 1fr !important; }
  .cert-badges { grid-template-columns: 1fr 1fr; }

  /* Gamma-hero card: riduzione padding */
  .gamma-hero { padding: 96px 0 40px; }

  /* Contact form */
  .cic-two-col { grid-template-columns: 1fr; }
}

/* =====================================================
   PRODUCT HERO (single-product.php)
   ===================================================== */
.product-hero { background: var(--c-bg-deep); color: var(--c-text-inv); }
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.product-hero-content { display: flex; flex-direction: column; gap: 24px; }
.product-hero-content .section-label { color: var(--c-cyan); }
.product-hero-content h1 { color: var(--c-text-inv); font-size: clamp(28px, 4vw, 48px); }
.product-tagline { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0; }
.product-hero-kpis {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-kpi { display: flex; flex-direction: column; gap: 4px; }
.hero-kpi-val {
  font-family: var(--f-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--c-cyan);
  line-height: 1;
}
.hero-kpi-unit { font-size: 0.55em; color: rgba(0,220,230,0.7); margin-left: 2px; }
.hero-kpi-label { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }
.product-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.product-hero-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.product-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Product Gallery */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.product-gallery-item { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.product-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-gallery-item:hover img { transform: scale(1.04); }

/* Product Features */
.product-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.product-feat-item { padding: 24px; background: var(--c-bg-alt); border-radius: 6px; border: 1px solid var(--c-line); }
.product-feat-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.product-feat-body { font-size: 14px; color: var(--c-text-muted); margin: 0; line-height: 1.6; }

/* Extended description prose */
.product-desc-extended { max-width: 72ch; }
.product-desc-extended p { line-height: 1.8; margin-bottom: 1em; color: var(--c-text-muted); }

@media (max-width: 768px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-hero-img { order: -1; }
  .product-hero-kpis { gap: 20px; }
}
