/* ==========================================================================
   CoreForm — CI Components (stile "IDPASS")
   corsi.coreform.it
   Estratto dal <style> inline di resources/views/pages/certificazioni-informatiche.blade.php
   (pagina di riferimento per lo stile: NON stravolgere quella pagina).
   Classi condivise: ci-hero, ci-stat-card, ci-label, ci-feature-item, ci-step,
   bento-card, cert-*, combo-*, comparison-card, accredia-strip, faq-*, ci-cta-section.
   Riusabile in altre pagine certificazioni includendo questo file.
   ========================================================================== */

/* ===== CERTIFICAZIONI INFORMATICHE — stile IDPASS ===== */

/* ---- Hero ---- */
.ci-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}
.ci-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}
.ci-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,44,108,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Logo pill */
.ci-logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px;
    padding: 0.45rem 1rem 0.45rem 0.6rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}
.ci-logo-pill img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}
.ci-logo-pill span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
}

/* Hero badge (GPS pill) */
.ci-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232,44,108,0.15);
    border: 1px solid rgba(232,44,108,0.4);
    color: #ff6b9d;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ci-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.25rem;
}
.ci-hero-title .hl { color: #E82C6C; }

.ci-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 2rem;
}
.ci-hero-subtitle strong { color: #fff; }

/* Stat cards (same as idpass hero-stat-card) */
.ci-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
.ci-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.ci-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.4rem;
}

/* ---- Section labels ---- */
.ci-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E82C6C;
    margin-bottom: 0.5rem;
}
.ci-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
}

/* ---- Feature strip ---- */
.ci-features {
    background: #f8fafc;
    border-top: 3px solid #E82C6C;
    padding: 2.5rem 0;
}
.ci-feature-item {
    text-align: center;
    padding: 1.25rem 1rem;
    position: relative;
}
.ci-feature-item + .ci-feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e5e7eb;
}
@media (max-width: 991px) {
    .ci-feature-item + .ci-feature-item::before { display: none; }
}
.ci-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}
.ci-feature-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.ci-feature-icon.red    { background: #FCE7F0; color: #E82C6C; }
.ci-feature-icon.green  { background: #d1fae5; color: #059669; }
.ci-feature-icon.purple { background: #ede9fe; color: #7c3aed; }
.ci-feature-title { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.3rem; }
.ci-feature-desc  { font-size: 0.84rem; color: #6b7280; line-height: 1.6; margin: 0; }

/* ---- How it works ---- */
.ci-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.ci-step-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #E82C6C, #C91E58);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(232,44,108,0.3);
}
.ci-step-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}
.ci-step-body p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}
.ci-step-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(232,44,108,0.3), transparent);
    margin-left: 23px;
}

/* ---- Bento cards (same as idpass) ---- */
.bento-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
}
.bento-card-digcomp {
    background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
    border: 2px solid #dbeafe;
}
.bento-card-digcompedu {
    background: linear-gradient(135deg, #fff8f9 0%, #ffeef3 100%);
    border: 2px solid #fecdd3;
}
.cert-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.cert-icon-blue { background: #dbeafe; color: #1d4ed8; }
.cert-icon-red  { background: #FCE7F0; color: #E82C6C; }

.cert-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}
.cert-badge-blue { background: #dbeafe; color: #1d4ed8; }
.cert-badge-red  { background: #FCE7F0; color: #E82C6C; }

.cert-title { font-size: 1.3rem; font-weight: 800; color: #1a1a2e; }

.cert-areas {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cert-areas li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    padding: 0.3rem 0;
}
.cert-areas li::before {
    content: '✓';
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}
.cert-areas-blue li::before { color: #1d4ed8; }
.cert-areas-red  li::before { color: #E82C6C; }

.cert-points-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    font-weight: 800;
}
.cert-points-pill-blue { background: #1d4ed8; color: #fff; }
.cert-points-pill-red  { background: #E82C6C; color: #fff; }
.cert-points-number { font-size: 1.9rem; line-height: 1; }
.cert-points-label  { font-size: 0.72rem; opacity: 0.85; }

/* ---- Info strip ---- */
.info-strip {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #78350f;
}
.info-strip i { color: #d97706; flex-shrink: 0; margin-top: 0.1rem; }

/* ---- Combo box (bundle, solo docenti) ---- */
.combo-box {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(232,44,108,0.35);
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    color: #fff;
    overflow: hidden;
}
.combo-box::after {
    content: '';
    position: absolute;
    top: -40%; right: -8%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(232,44,108,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.combo-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(232,44,108,0.18);
    border: 1px solid rgba(232,44,108,0.5);
    color: #ff6b9d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
}
.combo-price-old { font-size: 1.05rem; color: rgba(255,255,255,0.45); text-decoration: line-through; }
.combo-price-new { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1; }
.combo-save {
    display: inline-block;
    background: #059669;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
}
.btn-combo {
    background: #E82C6C;
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    border: none;
    font-size: 0.98rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-combo:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,44,108,0.4); color: #fff; }

/* ---- Comparison table ---- */
.comparison-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.comparison-card .table { margin: 0; }
.comparison-card thead th {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom-width: 2px;
    vertical-align: middle;
    padding: 1rem 1.25rem;
}
.comparison-card tbody td {
    vertical-align: middle;
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    border-color: #f3f4f6;
}
.comparison-card tbody tr:hover { background: #f9fafb; }
.pts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}
.pts-old      { background: #f3f4f6; color: #6b7280; }
.pts-new-blue { background: #dbeafe; color: #1d4ed8; }
.pts-new-red  { background: #FCE7F0; color: #E82C6C; }
.pts-max      { background: #d1fae5; color: #065f46; }

/* ---- ACCREDIA strip ---- */
.accredia-strip {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ---- FAQ ---- */
.faq-wrap {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    padding: 0 1.5rem;
    background: #fff;
}
.faq-item { border: none; border-bottom: 1px solid #f3f4f6; }
.faq-item:last-child { border-bottom: none; }
.faq-item .accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    background: transparent;
    box-shadow: none;
    padding: 1.25rem 0;
}
.faq-item .accordion-button:not(.collapsed) {
    color: #E82C6C;
    background: transparent;
}
.faq-item .accordion-body {
    padding: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
}

/* ---- CTA section (matching idpass rounded card style) ---- */
.ci-cta-section {
    background: linear-gradient(135deg, #E82C6C 0%, #C91E58 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: #fff;
    text-align: center;
}
.ci-cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.ci-cta-section p {
    opacity: 0.85;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.btn-cta-white {
    background: #fff;
    color: #E82C6C;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-decoration: none;
}
.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #E82C6C;
}

@media (max-width: 767px) {
    .ci-hero { padding: 3.5rem 0 3rem; }
    .ci-hero-title { font-size: 1.9rem; }
    .accredia-strip { flex-direction: column; align-items: flex-start; }
    .ci-cta-section { border-radius: 16px; padding: 2rem 1.5rem; }
}
