/* ── PAGE HEADER ── */
.page-header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 40px;
}

.page-title-block { padding: 40px 0 36px; }
.page-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; text-transform: uppercase;
  color: var(--dark); line-height: 1.0;
  margin-bottom: 12px;
}
.page-subtitle { font-size: 16px; color: var(--mid); font-weight: 400; }

/* ── LAYOUT PRINCIPALE ── */
.page-body {
  max-width: var(--max); margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

/* ── CONTENUTO ── */
.content { min-width: 0; }

.content-section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0; padding-bottom: 0;
}

.content-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--dark); margin-bottom: 20px;
  padding-top: 4px;
  display: flex; align-items: center; gap: 14px;
}
.content-section h2::before {
  content: ''; display: block;
  width: 3px; height: 24px;
  background: var(--red); flex-shrink: 0;
}

.content-section h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--dark); margin-bottom: 20px;
  padding-top: 4px;
  display: flex; align-items: center; gap: 14px;
}
.content-section h3::before {
  content: ''; display: block;
  width: 3px; height: 20px;
  background: var(--mid); flex-shrink: 0;
}

.content-section h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--dark); margin-bottom: 20px;
  padding-top: 4px;
  display: flex; align-items: center; gap: 14px;
}

.content-section img {
  max-width: 100%; height: auto;
  border-radius: 4px;
  margin: 24px 0;
  display: block;}


.content-section p {
  font-size: 15px; line-height: 1.80;
  color: #3a3a3a; margin-bottom: 18px;
}
.content-section p:last-child { margin-bottom: 0; }

.content-section p a {
  color: var(--red); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(192,32,42,0.3);
  transition: border-color .15s;
}
.content-section p a:hover { border-color: var(--red); }

/* anno/data in evidenza */
.year-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  background: rgba(192,32,42,0.07);
  border: 1px solid rgba(192,32,42,0.18);
  padding: 3px 10px; border-radius: 3px;
  margin-bottom: 20px; display: block;
}

/* highlight box */
.highlight {
  background: var(--light);
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px; line-height: 1.75; color: var(--mid);
}
.highlight strong { color: var(--dark); font-weight: 600; }

/* lista puntata custom */
.content-section ul {
  list-style: none; margin: 16px 0 20px;
}
.content-section ul li {
  font-size: 15px; line-height: 1.7; color: #3a3a3a;
  padding: 6px 0 6px 18px; position: relative;
  border-top: 1px solid var(--border);
}
.content-section ul li:first-child { border-top: none; }
.content-section ul li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--red); font-weight: 700;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky; top: 82px;
}

/* sommario navigazione */
.sidebar-nav {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-nav-header {
  background: var(--dark);
  padding: 14px 18px;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.sidebar-nav ul { list-style: none; padding: 8px 0; }
.sidebar-nav ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 500; color: var(--mid);
  text-decoration: none; transition: all .15s;
  border-left: 3px solid transparent;
  line-height: 1.3;
}
.sidebar-nav ul li a:hover {
  color: var(--dark); background: rgba(0,0,0,0.03);
  border-left-color: var(--border);
}
.sidebar-nav ul li a.active {
  color: var(--red); background: rgba(192,32,42,0.05);
  border-left-color: var(--red);
}
.sidebar-nav ul li a .nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  transition: background .15s;
}
.sidebar-nav ul li a.active .nav-dot { background: var(--red); }
.sidebar-nav ul li + li { border-top: 1px solid var(--border); }

/* box software */
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
}

.sidebar-sw-item a:link, .sidebar-sw-item a:visited {
  color: var(--red); text-decoration: none;
  transition: color .15s;
}

.sidebar-box-header {
  background: var(--red); padding: 14px 18px;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.sidebar-sw-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background .15s;
}
.sidebar-sw-item:last-child { border-bottom: none; }
.sidebar-sw-item:hover { background: var(--light); }
.sidebar-sw-item:hover .sw-arrow { color: var(--red); }
.sw-info .sw-name { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; }
.sw-info .sw-tag { font-size: 11px; color: var(--mid); }
.sw-arrow { font-size: 16px; color: var(--border); transition: color .15s; }


/* ── PREZZI ─────────────────────────────────────────── */
.prezzi-wrap {
  max-width: var(--max, 1280px);
  margin: 0 auto;
  padding: 48px 40px 80px;
}
 
.prezzi-intro {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.prezzi-intro p { font-size: 14px; color: var(--mid); line-height: 1.6; }
 
.btn-download-order {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 11px 22px; border-radius: 4px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .15s; flex-shrink: 0;
}
.btn-download-order:hover { background: var(--red-dark, #96181f); }
.btn-download-order svg { width: 16px; height: 16px; }
 
/* tabella */
.prezzi-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 28px;
}
.prezzi-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px; font-family: 'Barlow', sans-serif;
}
.prezzi-table thead tr {
  background: #1a1a1a;
}
.prezzi-table thead th {
  padding: 14px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  text-align: left; white-space: nowrap;
}
.prezzi-table thead th span {
  display: block; font-size: 10px;
  font-weight: 400; color: rgba(255,255,255,0.4);
  text-transform: none; letter-spacing: 0;
  margin-top: 2px;
}
.col-software { width: 120px; }
.col-desc     { width: auto; }
.col-price, .col-offer, .col-extra { width: 130px; text-align: right !important; }
 
/* righe gruppo */
.group-header td {
  background: var(--light, #f4f2ef);
  padding: 10px 16px;
  font-size: 12px; font-weight: 600;
  color: var(--mid); border-top: 2px solid var(--border);
}
.group-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); background: rgba(192,32,42,0.08);
  padding: 2px 8px; border-radius: 3px;
  margin-right: 8px;
}
 
/* righe normali */
.prezzi-table tbody tr:not(.group-header):not(.bundle-row) {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.prezzi-table tbody tr:not(.group-header):not(.bundle-row):hover {
  background: #fdf9f9;
}
.prezzi-table tbody td { padding: 14px 16px; vertical-align: top; }
 
.sw-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 700;
   color: var(--dark);
}
.sw-variant {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--mid); text-transform: none; letter-spacing: 0;
}
.sw-desc { font-size: 13px; color: var(--mid); line-height: 1.55; }
.sw-desc em { color: #aaa; font-style: normal; font-size: 12px; }
 
.price {
  text-align: right; font-weight: 600;
  color: var(--dark); white-space: nowrap;
}
.price.offer { color: var(--red); }
.price.extra { color: var(--mid); font-weight: 400; font-size: 12px; }
.price.extra span { color: #aaa; }
 
.offer-badge {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  margin-right: 4px; vertical-align: middle;
}
 
/* bundle */
.bundle-row {
  background: rgba(192,32,42,0.04);
  border-top: 2px solid var(--red) !important;
  border-bottom: 2px solid var(--red) !important;
}
.bundle-row td { padding: 16px; }
.bundle-desc {
  display: block; font-size: 12px; color: var(--mid);
  font-weight: 400; font-family: 'Barlow', sans-serif;
  text-transform: none; letter-spacing: 0; margin-top: 3px;
}
.bundle-price {
  text-align: right; vertical-align: middle;
}
.bundle-price strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; color: var(--red);
  display: block;
}
.bundle-full {
  font-size: 12px; color: #aaa;
  text-decoration: line-through;
  display: block; margin-bottom: 2px;
}
 
/* note e rinnovo */
.prezzi-note {
  font-size: 12px; color: #aaa; line-height: 1.7;
  margin-bottom: 32px;
}
.prezzi-note p { margin-bottom: 4px; }
 
.prezzi-rinnovo,
.prezzi-pagamento {
  background: var(--light, #f4f2ef);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.prezzi-rinnovo-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--dark); margin-bottom: 12px;
}
.prezzi-rinnovo p,
.prezzi-pagamento p {
  font-size: 13px; color: var(--mid);
  line-height: 1.7; margin-bottom: 8px;
}
.prezzi-rinnovo a,
.prezzi-pagamento a { color: var(--red); }
 
/* responsive */
@media (max-width: 768px) {
  .prezzi-wrap { padding: 32px 20px 56px; }
  .prezzi-intro { flex-direction: column; align-items: flex-start; }
  .col-offer { display: none; }
  .prezzi-table thead th:nth-child(4),
  .prezzi-table tbody td:nth-child(4) { display: none; }
}
@media (max-width: 480px) {
  .col-extra { display: none; }
  .prezzi-table thead th:nth-child(5),
  .prezzi-table tbody td:nth-child(5) { display: none; }
  .bundle-row td:last-child { display: none; }
}



/* Tablet: 1024px */
@media (max-width: 1024px) {
  .page-header-inner { padding: 0 24px; }
  .page-body { padding: 40px 24px 64px; gap: 40px; }
  .sidebar { position: static; }
}

/* Tablet stretto: 768px */
@media (max-width: 768px) {
  .page-header-inner { padding: 0 20px; }
  .page-title-block { padding: 28px 0 24px; }
  .page-title { font-size: 32px; }

  .page-body {
    padding: 32px 20px 56px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* sidebar va SOPRA il contenuto su mobile */
  .sidebar {
    order: -1;
    position: static;
    margin-bottom: 32px;
  }

  /* sidebar nav compatta */
  .sidebar-nav ul li a { padding: 10px 14px; font-size: 13px; }

  /* box software in griglia 2 colonne */
  .sidebar-box-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-sw-item:nth-child(odd) { border-right: 1px solid var(--border); }

  .content-section { padding-bottom: 40px; margin-bottom: 40px; }
  .content-section h2 { font-size: 22px; }
  .content-section p { font-size: 14px; }
}

/* Mobile: 480px */
@media (max-width: 480px) {

  .page-title { font-size: 26px; }
  .page-subtitle { font-size: 14px; }

  .sidebar-box-items { grid-template-columns: 1fr; }
  .sidebar-sw-item:nth-child(odd) { border-right: none; }

  .content-section h2 { font-size: 20px; }
  .highlight { padding: 14px 16px; font-size: 13px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .seo-links { display: none; }
}