/* ============================================================
   alamacs — Hi-fi internal pages (Solution / Company / Article)
   Loads AFTER homepage.css. Reuses its tokens & chrome.
   ============================================================ */

/* ============================================================
   PHARMASHOP24 (Divisione Medical) landing
   ============================================================ */
.div-ribbon {
  background: var(--charcoal-900); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 32px; font-size: 13px; gap: 16px; flex-wrap: wrap;
}
.div-ribbon .tag { font-family: var(--ff-mono); letter-spacing: .06em; color: #C8C8C8; }
.div-ribbon .tag b { color: #fff; }
.div-ribbon .langs { display: flex; gap: 14px; }
.div-ribbon a { color: #C8C8C8; }
.div-ribbon a:hover { color: #fff; }

.ps-hero { background: var(--charcoal-900); color: #fff; }
.ps-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.ps-hero h1 { font-size: clamp(40px,5.5vw,66px); color: #fff; margin: 14px 0 0; }
.ps-hero h1 .hl { color: var(--red); }
.ps-hero p { color: #C8C8C8; font-size: 19px; margin: 18px 0 0; max-width: 520px; }
.ps-hero .hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.ps-hero .shot { width: 100%; height: 420px; }
.ps-hero .chips { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.ps-hero .chips .n { font-family: var(--ff-display); font-weight: 900; font-size: 34px; color: var(--red); line-height: 1; }
.ps-hero .chips .l { font-size: 13px; color: #C8C8C8; margin-top: 4px; }

.ps-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ps-badge { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; }
.ps-badge .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--red-050); color: var(--red); display: grid; place-items: center; font-weight: 800; font-family: var(--ff-mono); }
.ps-badge h4 { font-size: 16px; margin: 14px 0 6px; }
.ps-badge p { margin: 0; font-size: 13.5px; color: var(--muted); }

.ps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ps-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: .2s; display: flex; flex-direction: column; }
.ps-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ps-card .ph { position: relative; width: 100%; height: 220px; background: var(--mist); }
.ps-card .badge { position: absolute; top: 14px; left: 14px; font-family: var(--ff-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: 5px 11px; border-radius: 999px; }
.ps-card .bd { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ps-card .bd h3 { font-size: 23px; margin: 0 0 10px; }
.ps-card .bd p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ps-tags span { font-family: var(--ff-mono); font-size: 11.5px; font-weight: 700; color: var(--charcoal); background: var(--mist); border-radius: 6px; padding: 5px 10px; }
.ps-card .go { margin-top: 16px; font-weight: 700; font-size: 14.5px; color: var(--red); display: inline-flex; gap: 7px; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 3px solid var(--red); }
.step .n { font-family: var(--ff-display); font-weight: 900; font-size: 30px; color: var(--red); }
.step h4 { font-size: 18px; margin: 8px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.tcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tcard { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: #fff; }
.tcard .stars { color: var(--red); letter-spacing: 2px; font-size: 15px; }
.tcard blockquote { margin: 14px 0 18px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .av { width: 44px; height: 44px; border-radius: 50%; background: var(--red-050); color: var(--red); display: grid; place-items: center; font-weight: 800; font-family: var(--ff-mono); font-size: 13px; }
.tcard .who .n { font-weight: 700; font-size: 14.5px; }
.tcard .who .r { color: var(--muted); font-size: 12.5px; }

@media (max-width: 1024px){ .ps-hero .wrap { grid-template-columns: 1fr; gap: 32px; } .ps-hero .shot { height: 300px; } .ps-badges { grid-template-columns: repeat(2,1fr); } .ps-grid { grid-template-columns: repeat(2,1fr); } .steps { grid-template-columns: repeat(2,1fr); } .tcards { grid-template-columns: 1fr; } }
@media (max-width: 680px){ .ps-badges, .ps-grid, .steps { grid-template-columns: 1fr; } }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; gap: 9px; align-items: center; font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: var(--line); }
.crumbs b { color: var(--ink); font-weight: 700; }

/* ---------- page hero (solution / generic) ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 34px; padding-bottom: 0; }
.sol-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-bottom: 64px; padding-top: 28px; }
.sol-hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 16px 0 0; }
.sol-hero .sub { font-family: var(--ff-display); font-weight: 700; font-size: clamp(19px,2.2vw,24px); color: var(--charcoal); margin: 14px 0 0; }
.sol-hero p.lead { margin-top: 18px; max-width: 520px; }
.sol-hero .hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.sol-hero .shot { width: 100%; height: 440px; border-radius: 16px; box-shadow: var(--shadow-md); }

/* quick spec chips under hero */
.spec-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.spec-chip { font-family: var(--ff-mono); font-size: 12.5px; font-weight: 700; color: var(--charcoal); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; display: inline-flex; gap: 8px; align-items: center; }
.spec-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ---------- benefit cards ---------- */
.bn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bn-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; transition: .2s; }
.bn-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.bn-ico { width: 48px; height: 48px; border-radius: 11px; background: var(--red-050); color: var(--red); display: grid; place-items: center; font-family: var(--ff-mono); font-weight: 700; font-size: 15px; }
.bn-card h3 { font-size: 20px; margin: 18px 0 10px; }
.bn-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- alternating feature rows ---------- */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feat-row + .feat-row { margin-top: 72px; }
.feat-row.flip .feat-media { order: 2; }
.feat-media { width: 100%; height: 380px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.feat-body .eyebrow { margin-bottom: 14px; }
.feat-body h3 { font-size: clamp(24px,2.8vw,32px); margin: 0 0 14px; }
.feat-body p { color: var(--muted); margin: 0 0 16px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.check-list li::before { content: "✓"; color: var(--red); font-weight: 900; margin-top: 1px; }

/* ---------- spec table ---------- */
.spec-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.spec-table .r { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 15.5px; }
.spec-table .r + .r { border-top: 1px solid var(--line); }
.spec-table .r .k { font-weight: 600; }
.spec-table .r .v { color: var(--red); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--ff-display); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--red); font-size: 24px; font-weight: 400; transition: .2s; flex: 0 0 auto; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; max-width: 760px; }

/* ---------- band CTA (red / charcoal) ---------- */
.band { padding: 80px 0; }
.band.red { background: var(--red); color: #fff; }
.band.dark { background: var(--charcoal-900); color: #fff; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(28px,3.6vw,42px); color: #fff; max-width: 640px; }
.band p { color: rgba(255,255,255,.85); margin: 10px 0 0; max-width: 540px; }

/* ============================================================
   COMPANY PROFILE
   ============================================================ */
.manifesto { background: var(--charcoal-900); color: #fff; }
.manifesto .wrap { padding-top: 84px; padding-bottom: 84px; }
.manifesto .crumbs, .manifesto .crumbs a, .manifesto .crumbs b { color: rgba(255,255,255,.6); }
.manifesto .crumbs b { color: #fff; }
.manifesto h1 { font-size: clamp(42px,6vw,78px); color: #fff; margin: 22px 0 0; max-width: 16ch; }
.manifesto h1 .hl { color: var(--red); }
.manifesto p.lead { color: #C8C8C8; max-width: 620px; margin-top: 22px; font-size: 20px; }
.manifesto .hero-actions { margin-top: 32px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { border: 1px solid var(--line); border-radius: 14px; padding: 30px; background: #fff; }
.pillar .num { font-family: var(--ff-mono); font-size: 13px; font-weight: 700; color: var(--red); }
.pillar h3 { font-size: 22px; margin: 12px 0 12px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }

.quote-band { background: var(--mist); }
.quote-band .wrap { padding-top: 72px; padding-bottom: 72px; }
.big-quote { font-family: var(--ff-display); font-weight: 800; font-size: clamp(26px,3.4vw,40px); line-height: 1.2; letter-spacing: -.02em; max-width: 980px; margin: 0; }
.big-quote .mk { color: var(--red); }

/* catalog grid (full offering) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; }
.cat-card h4 { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.cat-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-card li a { display: flex; gap: 9px; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--charcoal); }
.cat-card li a::before { content: "›"; color: var(--red); font-weight: 800; }
.cat-card li a:hover { color: var(--red); }

/* download row */
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--mist); flex-wrap: wrap; }
.dl-row h3 { font-size: 24px; margin: 0; }
.dl-row p { margin: 8px 0 0; color: var(--muted); }

/* timeline */
.timeline { display: flex; flex-direction: column; }
.timeline .ev { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline .ev .y { font-family: var(--ff-mono); font-weight: 700; color: var(--red); font-size: 18px; }
.timeline .ev .t { font-family: var(--ff-display); font-weight: 700; font-size: 19px; }
.timeline .ev .d { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ============================================================
   ARTICLE
   ============================================================ */
.art-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.art-grid { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 56px; padding: 56px 0; }
.art-head { max-width: 800px; margin: 0 auto; padding: 48px 32px 0; }
.art-head .chip { display: inline-flex; font-family: var(--ff-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: var(--red-050); padding: 6px 13px; border-radius: 999px; }
.art-head h1 { font-size: clamp(34px,5vw,56px); margin: 18px 0 0; }
.art-meta { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.art-meta .av { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px; }
.art-meta .who { font-weight: 700; font-size: 15px; }
.art-meta .when { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); }
.art-cover { width: 100%; height: 460px; border-radius: 16px; margin: 32px 0 0; box-shadow: var(--shadow-md); }

/* sticky aside */
.art-aside { position: sticky; top: 100px; align-self: start; }
.toc-box { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.toc-box .hd { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.toc-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.toc-box a { font-size: 14px; font-weight: 600; color: var(--charcoal); border-left: 2px solid var(--line); padding-left: 12px; }
.toc-box a.active, .toc-box a:hover { color: var(--red); border-left-color: var(--red); }
.share { display: flex; gap: 9px; margin-top: 18px; }
.share a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; font-family: var(--ff-mono); font-size: 13px; font-weight: 700; color: var(--charcoal); }
.share a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* article body */
.prose { max-width: 720px; }
.prose > * { margin: 0 0 22px; }
.prose h2 { font-size: clamp(26px,3vw,34px); margin-top: 44px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose p { color: #333; font-size: 18px; line-height: 1.7; }
.prose img, .prose .inline-fig { width: 100%; height: 320px; border-radius: 14px; }
.pullquote { border-left: 4px solid var(--red); padding: 6px 0 6px 24px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(22px,2.6vw,30px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.takeaways { background: var(--red-050); border: 1px solid #F3C9C9; border-radius: 14px; padding: 26px 28px; }
.takeaways h4 { margin: 0 0 14px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.takeaways li { display: flex; gap: 12px; font-size: 16px; font-weight: 500; }
.takeaways li::before { content: "✓"; color: var(--red); font-weight: 900; }

/* author + related */
.author-box { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 40px; }
.author-box .av { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 72px; }
.author-box .n { font-family: var(--ff-display); font-weight: 800; font-size: 18px; }
.author-box .b { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rel-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: .2s; }
.rel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.rel-card .th { width: 100%; height: 150px; }
.rel-card .bd { padding: 18px; }
.rel-card .bd .k { font-family: var(--ff-mono); font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: .06em; }
.rel-card .bd h4 { font-size: 17px; margin: 8px 0 0; line-height: 1.25; }

/* SERP preview */
.serp { border: 1px dashed var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; max-width: 600px; }
.serp .u { font-family: var(--ff-mono); font-size: 12.5px; color: #1a7f37; }
.serp .t { color: #1a0dab; font-size: 20px; font-weight: 600; margin: 5px 0 3px; font-family: var(--ff-body); }
.serp .d { color: #4d5156; font-size: 14px; line-height: 1.5; }

/* ---------- layout utility ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .feat-highlight { min-height: 120px; }
  .sol-hero .shot { height: 260px; }
  .ps-hero .wrap { text-align: center; }
  .ps-hero .hero-actions, .ps-hero .chips { justify-content: center; }
  .ps-badges { grid-template-columns: repeat(2,1fr); }
  .sol-hero { grid-template-columns: 1fr; gap: 32px; }
  .bn-grid, .cat-grid, .pillars, .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-row { grid-template-columns: 1fr; gap: 28px; }
  .feat-row.flip .feat-media { order: 0; }
  .feat-media { height: 300px; }
  .art-grid { grid-template-columns: 1fr; gap: 32px; }
  .art-aside { position: static; }
  .toc-box { display: none; }
}
@media (max-width: 680px) {
  .split { grid-template-columns: 1fr; }
  .spec-table .r { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spec-table .r .v { font-size: 14px; }
  .sol-hero { grid-template-columns: 1fr; }
  .sol-hero .shot { height: 220px; }
  .sol-hero h1 { font-size: 32px; }
  .faq summary { font-size: 16px; padding: 16px 18px; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
  .bn-grid, .cat-grid, .pillars, .rel-grid { grid-template-columns: 1fr; }
  .spec-row { gap: 8px; }
  .spec-chip { font-size: 11.5px; padding: 6px 12px; }
  .feat-row { gap: 20px; }
  .feat-highlight { padding: 24px 20px; }
  .page-hero .wrap { padding-top: 20px; }
  .dl-row { flex-direction: column; align-items: flex-start; }
  .timeline .ev { grid-template-columns: 80px 1fr; gap: 16px; }
  .art-cover { height: 240px; }
}
@media (max-width: 380px) {
  .sol-hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .ps-tags span { font-size: 10.5px; padding: 4px 8px; }
}
