/* ============================================================================
   AC-226: Nuova Landing Page SEO Editoriale Homepage (Bento Grid System)
   Palette ufficiale AstaCerta: Navy (#0f172a / #153050), Cyan (#0ea5e9),
   Emerald (#10b981), Amber/Gold (#f59e0b), Superfici neutre (#f8fafc / #fff)
   ============================================================================ */

.ac-home-landing {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Previene micro-salti verticali di scroll (layout shift) quando il carosello #blog in cima alla Home cambia slide ogni 7s */
#blog {
    overflow-anchor: none;
}
#blogCarousel .card-title {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
}
#blogCarousel .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
}

.ac-home-section {
    padding: 3.5rem 0;
}

.ac-home-section--white {
    background-color: #ffffff;
    border-top: 1px solid rgba(15, 34, 56, 0.06);
    border-bottom: 1px solid rgba(15, 34, 56, 0.06);
}

.ac-home-section--navy {
    background: linear-gradient(145deg, #0f172a 0%, #153050 65%, #1a3d66 100%);
    color: #f8fafc;
}

.ac-home-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: #e0f2fe;
    color: #0369a1;
    margin-bottom: 0.85rem;
    max-width: 100%;
    line-height: 1.25;
}

.ac-home-eyebrow .material-icons-outlined {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.ac-verified-icon {
    color: #16a34a !important;
}

.ac-home-eyebrow--gold {
    background-color: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ac-home-eyebrow--emerald {
    background-color: #d1fae5;
    color: #047857;
}

.ac-home-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.18;
}

.ac-home-section--navy .ac-home-heading {
    color: #ffffff;
}

.ac-home-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #475569;
    max-width: 780px;
}

.ac-home-section--navy .ac-home-lead {
    color: #cbd5e1;
}

/* --- Sezione 1: Vetrina 6 Aste Attive --- */
.ac-home-featured-cta-wrap {
    margin-top: 2.5rem;
    text-align: center;
}

.ac-home-btn-catalog {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #153050 0%, #0d6efd 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 24px -6px rgba(13, 110, 253, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.ac-home-btn-catalog:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -6px rgba(13, 110, 253, 0.45);
}

/* --- Sezione 2: Bento Grid 3 Ruoli --- */
.ac-bento-roles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 2.25rem;
}

.ac-bento-role-card {
    background: #ffffff;
    border: 1px solid rgba(15, 34, 56, 0.08);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px -6px rgba(15, 34, 56, 0.06);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.ac-bento-role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -10px rgba(15, 34, 56, 0.12);
}

.ac-bento-role-card--navy {
    background: linear-gradient(160deg, #0f172a 0%, #153050 100%);
    color: #f8fafc;
    border-color: rgba(14, 165, 233, 0.25);
}

.ac-bento-role-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.ac-bento-role-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ac-bento-role-icon .material-icons-outlined {
    font-size: 26px;
}

.ac-bento-role-icon--cyan {
    background: rgba(14, 165, 233, 0.16);
    color: #38bdf8;
}

.ac-bento-role-icon--emerald {
    background: #d1fae5;
    color: #059669;
}

.ac-bento-role-icon--amber {
    background: #fef3c7;
    color: #d97706;
}

.ac-bento-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ac-bento-role-badge--emerald {
    background-color: #10b981;
    color: #ffffff;
}

.ac-bento-role-badge--gold {
    background-color: #f59e0b;
    color: #0f172a;
}

.ac-bento-role-badge--cyan {
    background-color: rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
}

.ac-bento-role-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #0f172a;
}

.ac-bento-role-card--navy .ac-bento-role-title {
    color: #ffffff;
}

.ac-bento-role-intro {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 1.25rem;
}

.ac-bento-role-card--navy .ac-bento-role-intro {
    color: #cbd5e1;
}

.ac-bento-role-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.ac-bento-role-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
}

.ac-bento-role-card--navy .ac-bento-role-list li {
    color: #e2e8f0;
}

.ac-bento-check-icon {
    font-size: 19px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #10b981;
}

.ac-bento-role-card--navy .ac-bento-check-icon {
    color: #38bdf8;
}

.ac-bento-role-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 34, 56, 0.08);
}

.ac-bento-role-card--navy .ac-bento-role-actions {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.ac-bento-cta-btn {
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.15rem;
    width: 100%;
    max-width: 280px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.2;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ac-bento-cta-btn:hover {
    transform: translateY(-1px);
}

.ac-bento-cta-btn--cyan {
    background-color: #0ea5e9;
    color: #ffffff;
}

.ac-bento-cta-btn--cyan:hover {
    color: #ffffff;
    background-color: #0284c7;
}

.ac-bento-cta-btn--ghost-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.ac-bento-cta-btn--ghost-light:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.18);
}

.ac-bento-cta-btn--emerald {
    background-color: #10b981;
    color: #ffffff;
}

.ac-bento-cta-btn--emerald:hover {
    color: #ffffff;
    background-color: #059669;
}

.ac-bento-cta-btn--navy {
    background-color: #153050;
    color: #ffffff;
}

.ac-bento-cta-btn--navy:hover {
    color: #ffffff;
    background-color: #0f172a;
}

.ac-bento-cta-btn--outline {
    background-color: #f8fafc;
    color: #153050;
    border: 1px solid #cbd5e1;
}

.ac-bento-cta-btn--outline:hover {
    color: #0f172a;
    background-color: #e2e8f0;
}

/* --- Sezione 3: Bento Grid 4 Box Strumenti & Tecnologia --- */
.ac-bento-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.ac-bento-tool-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ac-bento-tool-box:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(14, 165, 233, 0.35);
    transform: translateY(-2px);
}

.ac-bento-tool-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(14, 165, 233, 0.16);
    color: #38bdf8;
}

.ac-bento-tool-icon--emerald {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.ac-bento-tool-icon--gold {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.ac-bento-tool-icon--indigo {
    background: rgba(129, 140, 248, 0.2);
    color: #a5b4fc;
}

.ac-bento-tool-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.45rem;
}

.ac-bento-tool-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

.ac-bento-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: none;
}

.ac-bento-tool-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* --- Sezione 4: FAQ Accordion --- */
.ac-home-faq-wrap {
    max-width: 900px;
    margin: 2rem auto 0;
}

.ac-home-faq-item {
    border: 1px solid rgba(15, 34, 56, 0.09);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #ffffff;
    box-shadow: 0 3px 12px -4px rgba(15, 34, 56, 0.05);
}

.ac-home-faq-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: #0f172a;
    background-color: #ffffff;
    padding: 1.1rem 1.35rem;
    box-shadow: none !important;
}

.ac-home-faq-btn:not(.collapsed) {
    color: #153050;
    background-color: #f0f9ff;
}

.ac-home-faq-body {
    padding: 1rem 1.35rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    background-color: #ffffff;
}

@media (max-width: 991.98px) {
    .ac-bento-roles-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 767.98px) {
    .ac-home-section {
        padding: 2.5rem 0;
    }
    .ac-bento-tools-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .ac-bento-role-card {
        padding: 22px;
    }
    .ac-home-btn-catalog {
        width: 100%;
        font-size: 0.98rem;
        padding: 0.85rem 1.25rem;
    }
    .ac-home-eyebrow {
        font-size: 0.68rem;
        padding: 5px 11px;
        letter-spacing: 0.03em;
        gap: 5px;
    }
    .ac-home-eyebrow .material-icons-outlined {
        font-size: 14px;
    }
}
