/* ========================================================================
   VOTIX — Inner pages (SEO verticals + conformita)
   Extends styles.css. Reuses homepage hero, feature cards, process steps.
   ======================================================================== */

/* ========================================================================
   INNER HERO — reuses .hero-shell / .hero-rounded from styles.css
   Overrides: no full-viewport height, breadcrumb, smaller title
   ======================================================================== */
.inner-hero .hero-rounded {
  min-height: auto;
  padding: clamp(56px, 7vh, 96px) 24px clamp(48px, 6vh, 80px);
}
.inner-hero .hero-title {
  font-size: clamp(36px, 6vw, 76px);
  max-width: 20ch;
}
.inner-hero .hero-lede {
  max-width: 62ch;
}

/* Breadcrumb (inside hero-content) */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb svg { color: var(--muted-2); flex-shrink: 0; }
.breadcrumb .breadcrumb-current { color: var(--ink-2); }

/* ========================================================================
   CONTENT SECTIONS — for sections that don't reuse homepage components
   ======================================================================== */
.page-content {
  padding: clamp(48px, 6vw, 80px) 0 0;
}

/* Standard content section (normativa, segments, modes, etc.) */
.content-section {
  max-width: 1080px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.content-section:last-child { margin-bottom: 0; }

/* Section header */
.section-intro {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-intro.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-intro p {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}

.content-section h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 20px;
}
.content-section h2 em {
  font-family: var(--f-serif);
  font-style: italic; font-weight: 400;
  color: var(--green-700);
}

.content-section p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section .highlight-box + p,
.content-section .feature-grid + p,
.content-section .req-table-wrap + p {
  margin-top: 24px;
}
.content-section strong { font-weight: 700; color: var(--ink); }

/* Internal link arrow */
.content-section .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-700);
  margin-top: 16px;
  transition: gap .18s ease;
}
.content-section .link-arrow:hover { gap: 10px; }

/* ========================================================================
   BULLET LISTS
   ======================================================================== */
.content-section ul {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.content-section ul li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.content-section ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--green-700);
}
.content-section ul li::after {
  display: none;
}
.content-section ul li strong { color: var(--ink); }

/* Ordered lists */
.content-section ol {
  margin: 20px 0 24px;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-section ol li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 4px;
}
.content-section ol li strong { color: var(--ink); }

/* ========================================================================
   METRICS STRIP — stats in horizontal cards
   ======================================================================== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.metric-card:hover { transform: translateY(-2px); }
.metric-num {
  display: block;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--green-700);
  line-height: 1.1;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

/* ========================================================================
   HIGHLIGHT BOX — normativa callout
   ======================================================================== */
.highlight-box {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 24px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.highlight-box-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-700);
}
.highlight-box p {
  color: var(--green-900);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}
.highlight-box strong { color: var(--green-900); }

/* Reset list styles inside highlight-box */
.highlight-box ul {
  margin: 0;
  gap: 10px;
}
.highlight-box ul li {
  color: var(--green-900);
  font-size: 15px;
}
.highlight-box ul li::before {
  background: var(--green-200);
}
.highlight-box ul li::after {
  border-color: var(--green-700);
}

/* ========================================================================
   SEGMENTS GRID — with icon cards
   ======================================================================== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.segment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.segment-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.segment-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-700);
}
.segment-icon svg { width: 20px; height: 20px; }
.segment-text h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.segment-text p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ========================================================================
   MODES — Autonomo / Chiavi in mano — matches homepage
   ======================================================================== */
.inner-modes-section {
  max-width: 880px;
  margin: 0 auto;
}
.inner-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.inner-mode-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 32px 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.inner-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.inner-mode-card--featured {
  border-color: var(--green-400);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px var(--green-400),
    0 18px 40px -18px rgba(6, 95, 70, 0.15);
}
.inner-mode-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--green-700);
  color: #fff;
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.inner-mode-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--green-700);
}
.inner-mode-icon svg { width: 26px; height: 26px; }
.inner-mode-card h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.inner-mode-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
}
.inner-mode-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inner-mode-list li {
  position: relative;
  padding-left: 22px !important;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.inner-mode-list li::before {
  content: "" !important;
  position: absolute;
  left: 0 !important; top: 5px !important;
  width: 12px !important; height: 12px !important;
  border-radius: 999px !important;
  background: var(--green-50) !important;
  border: 1.5px solid var(--green-400) !important;
}
.inner-mode-list li::after { display: none !important; }
.inner-mode-fit {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}
.inner-mode-cta {
  margin-top: 24px;
  align-self: stretch;
  text-align: center;
  justify-content: center;
  padding: 16px 28px;
  font-size: 15px;
}
.inner-modes-bottom {
  text-align: center;
  margin-top: 32px;
}
.inner-modes-bottom p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ========================================================================
   REQUIREMENTS TABLE (conformita)
   ======================================================================== */
.req-table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.req-table thead th {
  text-align: left;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.req-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.5;
}
.req-table tbody td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.req-table tbody td:last-child {
  color: var(--green-700);
  font-weight: 600;
}
.req-table tbody tr:last-child td { border-bottom: 0; }
.req-table tbody tr:hover td { background: rgba(236,253,245,0.3); }

/* ========================================================================
   BOTTOM CTA — dark box with dot pattern
   ======================================================================== */
.page-cta {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 100px;
  text-align: center;
}
.page-cta-box {
  background: linear-gradient(145deg, #064E3B 0%, #047857 50%, #059669 100%);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  color: #fff;
  position: relative;
  overflow: visible;
}
.page-cta-box::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.page-cta-box::after {
  content: ""; position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 60%;
  background: radial-gradient(ellipse, rgba(167,243,208,0.12), transparent 70%);
  pointer-events: none;
}
.page-cta h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  position: relative; z-index: 2;
  max-width: 22ch;
}
.page-cta h3 em {
  font-family: var(--f-serif);
  font-style: italic; font-weight: 400;
  color: var(--green-200);
}
.page-cta p {
  font-size: 17px;
  color: #fff;
  margin: 0 0 32px;
  position: relative; z-index: 2;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.page-cta .btn {
  position: relative; z-index: 2;
}
.page-cta .btn-primary {
  background: #fff; color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(255,255,255,0.3);
}

/* ========================================================================
   INNER PRODUCT SECTION — overrides for inner pages
   ======================================================================== */
.inner-product .product-section {
  padding-top: 100px;
}

/* Feature cards 3-column variant for conformita */
.feature-cards--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ========================================================================
   FEATURE GRID — icon + text cards (used in conformità, etc.)
   ======================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.feature-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
.conformita-footer-note {
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0 !important;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ========================================================================
   CASE STUDY — metrics with accent bar
   ======================================================================== */
.case-study-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-top: 32px;
}
.case-study-box h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.case-study-box .case-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.55;
}
.case-study-box .metrics-strip {
  margin-top: 0;
}
.case-study-box .case-footer {
  font-size: 14.5px;
  color: var(--muted);
  margin: 24px 0 0;
  line-height: 1.55;
}

/* ========================================================================
   CASE STUDY — reuses homepage .casestudy / .cs-card from styles.css
   ======================================================================== */
.content-section.casestudy {
  max-width: 1200px;
}

/* ========================================================================
   BLOG LISTING — index page cards
   ======================================================================== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card-date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.blog-card-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.blog-card-excerpt {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 72ch;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-700);
  transition: gap .18s ease;
}
.blog-card:hover .blog-card-link { gap: 10px; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 900px) {
  .inner-hero .hero-rounded {
    border-radius: 36px;
    padding: 48px 20px 40px;
  }
  .content-section { margin-bottom: 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid--3col { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: 1fr; }
  .inner-modes-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; gap: 28px; }
  .inner-mode-card { padding: 32px 24px 28px; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .page-cta { padding-bottom: 70px; }
  .page-cta-box { padding: 48px 28px; }
  .feature-cards--3col { grid-template-columns: 1fr; }
  .case-study-box { padding: 36px 24px; }
  .req-table tbody td:first-child { white-space: normal; }
}

@media (max-width: 620px) {
  .inner-hero .hero-rounded {
    border-radius: 28px;
    padding: 40px 18px 32px;
  }
  .breadcrumb { font-size: 12px; gap: 6px; margin-bottom: 18px; }
  .content-section { padding: 0 18px; margin-bottom: 56px; }
  .content-section h2 { font-size: clamp(22px, 6vw, 30px); }
  .metrics-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 18px 14px; }
  .metric-num { font-size: 24px; }
  .page-cta-box { padding: 36px 22px; border-radius: 28px; }
  .page-cta h3 { font-size: clamp(22px, 7vw, 30px); max-width: none; }
  .feature-card { padding: 24px 22px; }
  .req-table { font-size: 13px; }
  .req-table thead th { padding: 10px 14px; font-size: 10px; }
  .req-table tbody td { padding: 12px 14px; }
  .req-table tbody td:first-child { white-space: normal; }
  .highlight-box { flex-direction: column; gap: 12px; padding: 22px 20px; }
  .segment-card { flex-direction: column; gap: 10px; }
  .page-cta p { font-size: 15px; }
  .conformita-footer-note { font-size: 14px; }
  .section-intro p { font-size: 15px; }
}
