/* ════════════════════════════════════════════════
   CallKeet — Stili pagine di contenuto (pillar, confronti, guide)
   Additivo a style.css (usa le stesse variabili e i componenti base).
   ════════════════════════════════════════════════ */

/* ── Hero interno (page header) ── */
.page-header {
    position: relative;
    background: var(--teal-grad);
    color: #fff;
    text-align: center;
    padding: 60px 24px 92px;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
    top: -120px; right: -80px;
    pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-header h1 {
    color: #fff;
    font-size: clamp(28px, 5.5vw, 44px);
    font-weight: 800;
    margin-bottom: 14px;
}
.page-header p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255,255,255,.92);
    font-size: 17px;
}
.page-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.page-wave svg { width: 100%; height: 80px; display: block; }

/* ── Breadcrumbs ── */
.breadcrumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.85);
}
.breadcrumbs a { color: #fff; text-decoration: none; opacity: .9; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { opacity: .55; }
.breadcrumbs strong { font-weight: 500; color: #fff; }

/* ── Articolo / prosa ── */
.article { max-width: 900px; margin: 0 auto; padding: 64px 24px; }
.prose h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--ink);
    margin: 44px 0 14px;
    scroll-margin-top: 80px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 26px 0 10px; }
.prose p { font-size: 16px; color: var(--text); line-height: 1.65; margin-bottom: 12px; }
.prose .lead { font-size: 15px; color: var(--text); line-height: 1.6; background: var(--surface); border-left: 4px solid var(--teal-2); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 0 0 26px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { font-size: 16px; color: var(--text); line-height: 1.6; margin-bottom: 5px; }
.prose a { color: var(--red); font-weight: 500; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); }

/* ── Box nota nel testo ── */
.note-box {
    background: linear-gradient(135deg, rgba(10,123,128,.06), rgba(31,184,200,.10));
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal-2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 26px 0;
    font-size: 15px;
    color: var(--text);
}
.note-box strong { color: var(--ink); }

/* ── Lista con spunte ── */
.check-list { list-style: none !important; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 18px; height: 18px;
    background: var(--green);
    border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5 6 12 2.5 8.5'/></svg>") center/14px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5 6 12 2.5 8.5'/></svg>") center/14px no-repeat;
}

/* ── Tabella comparativa ── */
.cmp-wrap { overflow-x: auto; margin: 26px 0; -webkit-overflow-scrolling: touch; }
.cmp {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--surface); font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--ink); }
.cmp thead th.is-ck { color: var(--red); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .cmp-feature { font-weight: 500; color: var(--ink); }
.cmp .yes { color: var(--green); font-weight: 600; }
.cmp .no { color: var(--text-soft); }

/* ── Pro / contro ── */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; }
.pc { border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; background: #fff; }
.pc h3 { margin: 0 0 12px; font-size: 17px; }
.pc.pro h3 { color: var(--green); }
.pc.con h3 { color: var(--text-soft); }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.pc li::before { position: absolute; left: 0; top: -1px; font-size: 16px; font-weight: 700; }
.pc.pro li::before { content: '+'; color: var(--green); }
.pc.con li::before { content: '−'; color: var(--text-soft); }

/* ── Pagine correlate (hub) ── */
.related { background: var(--surface); padding: 64px 24px; }
.related-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    justify-content: center;
    gap: 18px;
}
.related-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.related-card p { font-size: 14px; color: var(--text-soft); margin: 0; }
.related-card .arrow { color: var(--red); transition: transform .2s; }
.related-card:hover .arrow { transform: translateX(3px); }

/* ── Lista guide/risorse (una per riga, con riga laterale) ── */
.doc-list {
    max-width: 760px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal-2);
    border-radius: 12px;
    padding: 18px 24px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-left-color .2s;
}
.doc-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-left-color: var(--red); }
.doc-text { flex: 1; min-width: 0; }
.doc-text h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 0 0 3px; }
.doc-text p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.doc-arrow { flex-shrink: 0; color: var(--red); font-size: 18px; font-weight: 700; transition: transform .2s; }
.doc-item:hover .doc-arrow { transform: translateX(3px); }
@media (max-width: 560px) {
    .doc-item { padding: 16px 18px; }
}

@media (max-width: 640px) {
    .proscons { grid-template-columns: 1fr; }
    .article { padding: 48px 22px; }
}
