/* =========================================================
   INFROP — Dettaglio corso / area / correlati
   Palette: #0065AE (blu) · #171F32 (navy) · #FF5421 (arancio)
   Da linkare in canvas.blade.php (con ?v=<filemtime>) oppure
   incollare dentro frontend.css.
   ========================================================= */

.course-hero {
    background: #171F32;
    color: #fff;
    padding: 3rem 0;
}
.course-hero__title {
    color: #fff;
    margin: .5rem 0 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
}
.course-breadcrumb { font-size: .9rem; color: rgba(255, 255, 255, .75); }
.course-breadcrumb a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.course-breadcrumb a:hover { color: #fff; }
.course-breadcrumb .sep { margin: 0 .5rem; opacity: .5; }

.course-detail { padding: 4rem 0; }

.course-cover { margin-bottom: 2rem; }
.course-cover img { width: 100%; height: auto; border-radius: 10px; display: block; }

.course-body { color: #333; line-height: 1.7; }
.course-body h2 { color: #171F32; font-size: 1.6rem; margin: 1.8rem 0 .8rem; }
.course-body h3 { color: #0065AE; font-size: 1.25rem; margin: 1.4rem 0 .6rem; }
.course-body ol,
.course-body ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.course-body a { color: #0065AE; }

.course-block__title {
    color: #171F32;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-bottom: .5rem;
}
.course-block__title::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 48px; height: 3px; background: #0065AE;
}

/* --- Accordion --- */
.course-accordion { margin-top: 2rem; }
.course-accordion__item {
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    margin-bottom: .75rem;
    overflow: hidden;
}
.course-accordion__item > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #171F32;
    background: #f7f8fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.course-accordion__item > summary::-webkit-details-marker { display: none; }
.course-accordion__item > summary::after {
    content: "+";
    color: #0065AE;
    font-size: 1.4rem;
    line-height: 1;
}
.course-accordion__item[open] > summary { background: #0065AE; color: #fff; }
.course-accordion__item[open] > summary::after { content: "\2212"; color: #fff; }
.course-accordion__body { padding: 1.25rem; line-height: 1.6; }
.course-accordion__body ul,
.course-accordion__body ol { padding-left: 1.3rem; }

/* --- Materiali PDF --- */
.course-materials__list { list-style: none; padding: 0; margin: 0; }
.course-materials__list li { margin-bottom: .5rem; }
.course-materials__list a {
    display: inline-flex; align-items: center; gap: .6rem;
    color: #0065AE; text-decoration: none; font-weight: 500;
}
.course-materials__list a:hover { text-decoration: underline; }
.course-materials__list .ico {
    background: #FF5421; color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: .15rem .4rem; border-radius: 4px;
}

/* --- Requisiti --- */
.course-requirements__body { line-height: 1.6; color: #444; }

/* --- Sidebar meta --- */
.course-aside { position: relative; }
.course-metabox {
    position: static;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    overflow: hidden;
}
.course-meta { list-style: none; margin: 0; padding: 0; }
.course-meta li {
    display: flex; justify-content: space-between;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid #eef0f3;
    font-size: .95rem;
}
.course-meta .k { color: #0065AE; font-weight: 600; }
.course-meta .v { color: #333; text-align: right; }
.course-openday {
    padding: 1rem 1.25rem;
    background: #f7f8fa;
    border-bottom: 1px solid #eef0f3;
    display: flex; flex-direction: column; gap: .2rem;
}
.course-openday .k { color: #0065AE; font-weight: 600; font-size: .85rem; }
.course-cta {
    display: block; text-align: center;
    background: #FF5421; color: #fff;
    padding: 1rem; font-weight: 600; text-decoration: none;
    transition: background .2s;
}
.course-cta:hover { background: #FF450C; color: #fff; }

/* --- Correlati / card area --- */
.course-related__card {
    display: block;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #171F32;
    margin-bottom: 1.5rem;
    transition: box-shadow .2s, transform .2s;
}
.course-related__card:hover {
    box-shadow: 0 8px 24px rgba(23, 31, 50, .12);
    transform: translateY(-2px);
    color: #0065AE;
}
.course-related__card .thumb {
    display: block; height: 140px;
    background-size: cover; background-position: center;
    background-color: #dfe3e8;
}
.course-related__card .thumb--empty { background: linear-gradient(135deg, #0065AE, #171F32); }
.course-related__card .title { display: block; padding: .9rem 1rem; font-weight: 600; }
.course-related__card .excerpt { display: block; padding: 0 1rem 1rem; font-size: .85rem; color: #666; }

@media (max-width: 991px) {
    .course-metabox { position: static; margin-top: 2rem; }
    .course-detail { padding: 2.5rem 0; }
}

/* --- Form di contatto nella sidebar della scheda corso --- */
.course-contact {
    margin-top: 1.5rem;
    background: #0064b2;
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
}
.course-contact__title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
}
.course-contact__field { margin-bottom: .85rem; }
.course-contact .form-label {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .3rem;
}
.course-contact .form-control {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem .75rem;
    color: #171F32;
}
.course-contact .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .35);
}
.course-contact__check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: .25rem 0 1rem;
}
.course-contact__check .form-check-input { margin-top: .2rem; }
.course-contact__check .form-check-label { color: #fff; font-size: .85rem; line-height: 1.3; }
.course-contact__check .form-check-label a { color: #fff; text-decoration: underline; }
.course-contact__submit {
    background: #FF5421;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .7rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.course-contact__submit:hover { background: #ff450c; }
.course-contact__submit:disabled { opacity: .6; cursor: default; }
.course-contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.course-contact__feedback { margin-top: .8rem; font-size: .9rem; }
.course-contact__feedback.is-success { color: #d6f5df; font-weight: 600; }
.course-contact__feedback.is-error { color: #ffd9d9; font-weight: 600; }

/* --- Box "prossimi Open Day" nel dettaglio corso --- */
.course-openday__list { list-style: none; margin: .4rem 0 .8rem; padding: 0; }
.course-openday__list li { color: #171F32; font-weight: 600; font-size: .95rem; padding: .1rem 0; }
.course-openday__cta {
    display: inline-block;
    background: #0065AE;
    color: #fff;
    text-decoration: none;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
}
.course-openday__cta:hover { background: #00538f; color: #fff; }
