/* Template dedicato ai corsi di laurea: orientamento e richiesta, non vendita diretta. */

.degree-detail-page .degree-hero {
    position: relative;
    min-height: 0;
    padding: 38px 0;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-color: var(--fd-hero-blue);
    color: #fff;
}

.degree-detail-page .degree-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--fd-hero-overlay);
}

.degree-detail-page .degree-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 0;
}

.degree-detail-page .degree-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(370px, .78fr);
    gap: 42px;
    align-items: start;
}

.degree-detail-page .degree-hero-copy {
    min-width: 0;
}

.degree-detail-page .degree-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.degree-detail-page .degree-hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 7px;
    background: rgba(10, 57, 84, .62);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.degree-detail-page .degree-hero-title {
    max-width: 800px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(35px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 10px rgba(0, 18, 31, .45);
}

.degree-detail-page .degree-hero-title--long {
    font-size: clamp(31px, 2.55vw, 40px);
}

.degree-detail-page .degree-hero-title--very-long {
    font-size: clamp(28px, 2.2vw, 35px);
    line-height: 1.12;
}

.degree-detail-page .degree-hero-summary {
    max-width: 780px;
    margin: 0;
    color: #f4f9fc;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 15, 27, .5);
}

.degree-detail-page .degree-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    max-width: 780px;
    margin: 22px 0 0;
}

.degree-detail-page .degree-hero-fact {
    display: grid;
    align-content: center;
    min-width: 0;
    min-height: 68px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    background: rgba(10, 46, 68, .67);
    box-shadow: 0 8px 22px rgba(0, 19, 31, .13);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.degree-detail-page .degree-hero-fact dt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.degree-detail-page .degree-hero-fact dt i {
    flex: 0 0 24px;
    width: 24px;
    color: #8edcff;
    font-size: 19px;
    text-align: center;
}

.degree-detail-page .degree-hero-fact dt span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.degree-detail-page .degree-hero-fact dd {
    margin: 3px 0 0 34px;
    color: #d5e7f0;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.25;
}

.degree-detail-page .degree-orientation-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 16px;
    background: rgba(250, 253, 255, .94);
    box-shadow: 0 22px 48px rgba(0, 20, 34, .28);
    color: #24445e;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.degree-detail-page .degree-orientation-kicker,
.degree-detail-page .degree-sidebar-kicker,
.degree-detail-page .degree-final-kicker {
    margin: 0 0 7px;
    color: #1477b3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.degree-detail-page .degree-orientation-intro {
    margin: 0 0 15px;
    color: #405c72;
    font-size: 14.5px;
    line-height: 1.45;
}

.degree-detail-page .degree-orientation-institution {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid #d8e7ef;
    border-radius: 10px;
    background: #f4f9fc;
}

.degree-detail-page .degree-orientation-institution > i {
    flex: 0 0 34px;
    width: 34px;
    color: #1477b3;
    font-size: 22px;
    text-align: center;
}

.degree-detail-page .degree-orientation-institution span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.degree-detail-page .degree-orientation-institution small {
    color: #637c90;
    font-size: 11.5px;
    font-weight: 600;
}

.degree-detail-page .degree-orientation-institution strong {
    color: #173b5b;
    font-size: 14px;
    line-height: 1.3;
}

.degree-detail-page .degree-orientation-steps {
    display: grid;
    gap: 9px;
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.degree-detail-page .degree-orientation-steps li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #294a64;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}

.degree-detail-page .degree-orientation-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #dff2fc;
    color: #126a9f;
    font-size: 12px;
    font-weight: 800;
}

.degree-detail-page .degree-orientation-primary,
.degree-detail-page .degree-sidebar-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 49px;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: #1477b3;
    box-shadow: 0 9px 22px rgba(20, 119, 179, .22);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

.degree-detail-page .degree-orientation-primary:hover,
.degree-detail-page .degree-orientation-primary:focus,
.degree-detail-page .degree-sidebar-primary:hover,
.degree-detail-page .degree-sidebar-primary:focus {
    background: #0f6194;
    color: #fff;
    text-decoration: none;
}

.degree-detail-page .degree-orientation-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    margin-top: 7px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #176fa6;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.degree-detail-page .degree-orientation-secondary:hover,
.degree-detail-page .degree-orientation-secondary:focus {
    background: #eaf6fc;
    color: #0f5f92;
}

.degree-detail-page .degree-detail-nav {
    position: sticky;
    top: 70px;
    z-index: 90;
    padding: 10px 0;
    border-bottom: 1px solid #d8e4eb;
    background: #f3f8fb;
}

.degree-detail-page .degree-detail-nav > .container {
    padding-top: 0;
    padding-bottom: 0;
}

.degree-detail-page .course-detail-nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 4px 6px;
    border: 1px solid #d7e4ec;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 14px rgba(33, 64, 95, .10);
}

.degree-detail-page .degree-detail-nav-links {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.degree-detail-page .degree-detail-nav-links::-webkit-scrollbar {
    display: none;
}

.degree-detail-page .course-detail-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #294a64;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.degree-detail-page .course-detail-nav-link:hover,
.degree-detail-page .course-detail-nav-link:focus {
    background: #edf6fc;
    color: #126fa9;
    text-decoration: none;
}

.degree-detail-page .course-detail-nav-link:focus-visible,
.degree-detail-page .degree-detail-nav-cta:focus-visible {
    outline: 3px solid rgba(38, 149, 218, .30);
    outline-offset: 1px;
}

.degree-detail-page .course-detail-nav-link i {
    color: #2695da;
    font-size: 15px;
}

.degree-detail-page .degree-detail-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 8px;
    background: #1477b3;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.degree-detail-page .degree-detail-nav-cta:hover,
.degree-detail-page .degree-detail-nav-cta:focus {
    background: #0f6194;
    color: #fff;
    text-decoration: none;
}

.degree-detail-page .course-detail-nav-mobile {
    display: none;
}

.degree-detail-page .degree-content {
    background: #f4f7f9;
    padding: 34px 0 40px;
}

.degree-detail-page .degree-content > .container {
    padding-top: 0;
    padding-bottom: 0;
}

.degree-detail-page .degree-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, .82fr);
    gap: 30px;
    align-items: start;
}

.degree-detail-page .degree-main-content,
.degree-detail-page .degree-detail-aside {
    min-width: 0;
}

.degree-detail-page .degree-detail-aside {
    align-self: stretch;
}

.degree-detail-page .degree-content-card {
    scroll-margin-top: 158px;
    padding: 28px;
}

.degree-detail-page .degree-content-card .course-section-title {
    margin: 0 0 22px;
    padding: 0 0 13px;
    color: #173b5b;
    border-bottom: 2px solid #2695da;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.degree-detail-page .degree-content-card .course-section-title i {
    color: #2695da;
}

.degree-detail-page .degree-rich-text {
    color: #41566b;
    font-size: 15.5px;
    line-height: 1.7;
}

.degree-detail-page .degree-rich-text > :last-child {
    margin-bottom: 0;
}

.degree-detail-page .degree-study-card {
    padding: 0;
    overflow: hidden;
}

.degree-detail-page .degree-study-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #173b5b;
}

.degree-detail-page .degree-study-card-header h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.degree-detail-page .degree-study-card-header h2 i {
    color: #8edcff;
}

.degree-detail-page .degree-study-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-left: auto;
}

.degree-detail-page .degree-study-card-meta span {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.degree-detail-page .degree-study-content {
    padding: 22px;
    overflow-x: auto;
}

.degree-detail-page .degree-sidebar-decision {
    padding: 21px;
    border: 1px solid #d4e3ec;
    border-top: 3px solid #2695da;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(33, 64, 95, .12);
}

.degree-detail-page .degree-sidebar-decision h2 {
    margin: 0;
    color: #173b5b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.degree-detail-page .degree-sidebar-decision > p:not(.degree-sidebar-kicker) {
    margin: 8px 0 15px;
    color: #536b80;
    font-size: 13.5px;
    line-height: 1.45;
}

.degree-detail-page .degree-sidebar-nav {
    display: grid;
    gap: 3px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #dfe9ef;
}

.degree-detail-page .degree-sidebar-nav > span {
    margin-bottom: 4px;
    color: #6b8192;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.degree-detail-page .degree-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 39px;
    padding: 8px 9px;
    border-radius: 7px;
    color: #294a64;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.degree-detail-page .degree-sidebar-nav a:hover,
.degree-detail-page .degree-sidebar-nav a:focus {
    background: #eaf6fc;
    color: #126a9f;
}

.degree-detail-page .degree-sidebar-nav a i {
    flex: 0 0 17px;
    width: 17px;
    color: #2695da;
    text-align: center;
}

.degree-detail-page .degree-final-cta {
    padding: 46px 18px;
    background: linear-gradient(120deg, #13294b, #176fa6);
    color: #fff;
    text-align: center;
}

.degree-detail-page .degree-final-kicker {
    color: #9de2ff;
}

.degree-detail-page .degree-final-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.degree-detail-page .degree-final-cta > .container > p:not(.degree-final-kicker) {
    margin: 0 0 19px;
    color: rgba(255, 255, 255, .9);
}

.degree-detail-page .degree-final-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #fff;
    color: #126a9f;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.degree-detail-page .degree-final-primary:hover,
.degree-detail-page .degree-final-primary:focus {
    background: #eaf6fc;
    color: #0f5f92;
    text-decoration: none;
}

.degree-detail-page .degree-final-contact {
    display: block;
    margin-top: 13px;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
}

.degree-detail-page .degree-final-contact a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.degree-detail-page .degree-mobile-cta {
    display: none;
}

@media (min-width: 992px) {
    .degree-detail-page .degree-sidebar-decision {
        position: sticky;
        top: 154px;
        max-height: calc(100vh - 174px);
        overflow-y: auto;
    }
}

@media (max-width: 1199px) {
    .degree-detail-page .degree-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .72fr);
        gap: 28px;
    }

    .degree-detail-page .degree-content-grid {
        grid-template-columns: minmax(0, 1.8fr) minmax(275px, .8fr);
        gap: 24px;
    }

    .degree-detail-page .course-detail-nav-link {
        padding-inline: 8px;
        font-size: 12.5px;
    }
}

@media (max-width: 1000px) {
    .degree-detail-page .degree-detail-nav {
        position: static;
        padding: 8px 0;
    }

    .degree-detail-page .course-detail-nav-shell {
        display: none;
    }

    .degree-detail-page .course-detail-nav-mobile {
        display: block;
        overflow: hidden;
        border: 1px solid #d7e4ec;
        border-radius: 10px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 3px 12px rgba(33, 64, 95, .08);
    }

    .degree-detail-page .course-detail-nav-mobile summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 10px 13px;
        color: #294b64;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
        list-style: none;
    }

    .degree-detail-page .course-detail-nav-mobile summary::-webkit-details-marker {
        display: none;
    }

    .degree-detail-page .course-detail-nav-mobile summary:focus-visible {
        outline: 3px solid rgba(38, 149, 218, .30);
        outline-offset: 2px;
    }

    .degree-detail-page .course-detail-nav-mobile summary > span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .degree-detail-page .course-detail-nav-mobile summary i {
        color: #2695da;
    }

    .degree-detail-page .course-detail-nav-mobile-chevron {
        transition: transform .18s ease;
    }

    .degree-detail-page .course-detail-nav-mobile[open] .course-detail-nav-mobile-chevron {
        transform: rotate(180deg);
    }

    .degree-detail-page .course-detail-nav-mobile-links {
        display: grid;
        gap: 4px;
        padding: 5px 7px 8px;
        border-top: 1px solid #e1ebf1;
    }

    .degree-detail-page .course-detail-nav-mobile-links .course-detail-nav-link {
        width: 100%;
        min-height: 42px;
        padding: 9px 10px;
    }
}

@media (max-width: 991px) {
    .degree-detail-page .degree-hero-grid,
    .degree-detail-page .degree-content-grid {
        grid-template-columns: 1fr;
    }

    .degree-detail-page .degree-orientation-card {
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .degree-detail-page .degree-detail-nav {
        position: static;
    }

    .degree-detail-page .degree-detail-aside {
        display: none;
    }

    .degree-detail-page .degree-content-card {
        scroll-margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .degree-detail-page {
        padding-bottom: 76px;
    }

    .degree-detail-page .degree-hero {
        padding: 25px 0 28px;
    }

    .degree-detail-page .degree-hero-overlay {
        background: linear-gradient(180deg, rgba(var(--fd-hero-rgb), .60), rgba(var(--fd-hero-rgb), .45));
    }

    .degree-detail-page .degree-hero-grid {
        gap: 17px;
    }

    .degree-detail-page .degree-hero-title,
    .degree-detail-page .degree-hero-title--long,
    .degree-detail-page .degree-hero-title--very-long {
        margin-bottom: 11px;
        font-size: clamp(27px, 7.6vw, 33px);
        line-height: 1.12;
    }

    .degree-detail-page .degree-hero-summary {
        font-size: 15px;
        line-height: 1.45;
    }

    .degree-detail-page .degree-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 17px;
    }

    .degree-detail-page .degree-hero-fact {
        min-height: 69px;
        padding: 9px 10px;
    }

    .degree-detail-page .degree-hero-fact:nth-child(3):last-child {
        grid-column: 1 / -1;
    }

    .degree-detail-page .degree-orientation-card {
        padding: 19px;
    }

    .degree-detail-page .degree-content {
        padding: 23px 0 28px;
    }

    .degree-detail-page .degree-content-card {
        padding: 21px 18px;
        border-radius: 10px;
    }

    .degree-detail-page .degree-content-card .course-section-title {
        font-size: 20px;
    }

    .degree-detail-page .degree-study-card {
        padding: 0;
    }

    .degree-detail-page .degree-study-card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 17px;
    }

    .degree-detail-page .degree-study-card-meta {
        margin-left: 0;
    }

    .degree-detail-page .degree-study-content {
        padding: 18px;
    }

    .degree-detail-page .degree-final-cta {
        padding: 35px 16px;
    }

    .degree-detail-page .degree-final-cta h2 {
        font-size: 23px;
    }

    .degree-detail-page .degree-mobile-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        min-height: 70px;
        padding: 10px 13px;
        border-top: 1px solid #dbe7ee;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -5px 18px rgba(20, 57, 82, .15);
    }

    .degree-detail-page .degree-mobile-cta > span {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .degree-detail-page .degree-mobile-cta strong {
        color: #173b5b;
        font-size: 13px;
        line-height: 1.2;
    }

    .degree-detail-page .degree-mobile-cta small {
        color: #637c90;
        font-size: 11px;
        line-height: 1.25;
    }

    .degree-detail-page .degree-mobile-cta .btn {
        flex: 0 0 auto;
        min-height: 45px;
        padding: 10px 13px;
        border: 0;
        border-radius: 9px;
        background: #1477b3;
        color: #fff;
        font-size: 12.5px;
        font-weight: 700;
        text-decoration: none;
        text-transform: none;
    }

    .degree-detail-page #chat-assistenza-btn,
    .degree-detail-page #whatsapp-icon,
    .degree-detail-page #cookiescript_badge {
        bottom: 90px !important;
    }
}
