 /* ============================
       BASE & TIPOGRAFIA
    ============================ */
#page-menu-wrap{
    background-color: var(--burnt-orange);
}

body {
    background: #f8f8f8;
    font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wrapper {
    background: transparent;
}

p{
    font-size: 1.05rem;
    line-height: 1.7;
    color: #424242;
}

.postcontent,
.destinatari,
.certificazioni{
    font-size: 1.05rem;
}

.page-section {
    padding-top: 20px;
    padding-bottom: 20px;
}


/* ============================
   HERO CORSO
============================ */

#page-title.course-hero {
    background: linear-gradient(160deg, #02101f 0%, #042a46 35%, #0B2E4A 70%, #134c74 100%);
    padding: 72px 0 110px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#page-title.course-hero .container {
    position: relative;
    z-index: 2;
    text-align: left;
}

#page-title.course-hero .row.align-items-center {
    align-items: flex-start !important;
}

#page-title.course-hero .hero-left {
    text-align: left !important;
}

#page-title.course-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.course-subtitle {
    font-size: 1.1rem;
    max-width: 650px;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

/* Breadcrumb piccolo sopra titolo */
.hero-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    font-size: 0.78rem;
    opacity: 0.9;
}

.hero-breadcrumb li {
    color: rgba(255,255,255,0.8);
}

.hero-breadcrumb li a {
    color: rgba(255,255,255,0.85);
}

.hero-breadcrumb li + li::before {
    content: "/";
    margin: 0 6px;
    color: rgba(255,255,255,0.5);
}

/* CTA HERO */
.hero-cta {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-cta .button {
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ISCRIVITI ORA (principale) */
.hero-cta .primary-cta {
    background: #ff7416;
    border-color: #ff7416;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.22);
    transform: translateY(0) scale(1);
    transition: transform .18s ease-out, box-shadow .18s ease-out, background .18s;
    animation: ctaPulse 4s ease-in-out infinite;
}

.hero-cta .primary-cta:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 16px 34px rgba(0,0,0,0.26);
}

/* RICHIEDI INFORMAZIONI (secondaria) */
.hero-cta .secondary-cta {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    opacity: 0.9;
    transition: opacity .18s ease-out, background .18s ease-out, transform .18s ease-out;
}

.hero-cta .secondary-cta:hover {
    background: rgba(255,255,255,0.12);
    opacity: 1;
    transform: translateY(-1px);
}

@keyframes ctaPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-1px) scale(1.03); }
}

/* Meta sotto il titolo: accreditamenti + attestato */
.hero-meta-block {
    margin-top: 1.4rem;
    margin-bottom: 1.8rem;
    padding-left: 18px;
    border-left: 2px solid rgba(255,255,255,0.22);
}

.hero-meta-block .meta-item {
    margin-bottom: 1rem;
}

.hero-meta-block .meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    margin-bottom: 3px;
}

.hero-meta-block .meta-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.88);
}

.hero-meta-block .meta-text a {
    color: rgba(255,255,255,0.95);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-meta-block .meta-text a:hover {
    color: #fff;
}

/* Blob animati sfondo hero */
#page-title.course-hero::before,
#page-title.course-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

#page-title.course-hero::before {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 116, 22, 0.45), transparent 65%);
    top: -60px;
    right: -40px;
    animation: floatBlob1 22s ease-in-out infinite alternate;
}

#page-title.course-hero::after {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(238, 169, 40, 0.45), transparent 65%);
    bottom: -80px;
    left: -40px;
    animation: floatBlob2 26s ease-in-out infinite alternate;
}

#page-title.course-hero .container::before,
#page-title.course-hero .container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

#page-title.course-hero .container::before {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(11, 46, 74, 0.5), transparent 60%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: floatBlob3 30s ease-in-out infinite alternate;
}

#page-title.course-hero .container::after {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(91, 167, 187, 0.6), transparent 60%);
    bottom: 8%;
    right: 8%;
    animation: floatBlob4 28s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-10px, 18px, 0) scale(1.05); }
    100% { transform: translate3d(15px, -12px, 0) scale(1.02); }
}
@keyframes floatBlob2 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(12px, -20px, 0) scale(1.08); }
    100% { transform: translate3d(-18px, 8px, 0) scale(1.03); }
}
@keyframes floatBlob3 {
    0%   { transform: translate3d(-50%, 0, 0) scale(1); }
    50%  { transform: translate3d(-52%, -12px, 0) scale(1.06); }
    100% { transform: translate3d(-48%, 10px, 0) scale(1.02); }
}
@keyframes floatBlob4 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-8px, -16px, 0) scale(1.07); }
    100% { transform: translate3d(10px, 6px, 0) scale(1.03); }
}

/* Attacco hero + menu */
#page-title {
    margin-bottom: 0;
}
#page-menu {
    margin-top: 0 !important;
}
#page-menu-wrap {
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Sidebar hero (card immagine) + animazione */
.course-sidebar-card {
    border-radius: 20px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
    transition: transform .28s ease, box-shadow .28s ease;
}

.course-sidebar-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}

.course-sidebar-card .imgcorso img {
    border-radius: 18px;
    transition: transform .35s ease;
}

.course-sidebar-card:hover .imgcorso img {
    transform: scale(1.02);
}

.course-sidebar-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

.course-sidebar-card .meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #888;
    margin-bottom: 4px;
}

.sidebar-cta {
    background: #0B2E4A;
    color: #fff !important;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    padding: 12px 20px;
    transition: background .2s ease, transform .2s ease;
}

.sidebar-cta:hover {
    background: #06365a;
    transform: translateY(-2px);
}


/* ============================
   STRIP INFO 4 CARD (Durata/Modalità/ECM/Quota)
============================ */

.course-info-strip {
    margin-top: 32px;
    margin-bottom: 0;
}

.course-info-strip .info-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 18px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.course-info-strip .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.15);
    background-color: #ffffff;
}

.course-info-strip .info-icon {
    font-size: 2rem;
    line-height: 1;
    opacity: 1;
    color: #0B2E4A;
    transition: transform .25s ease, opacity .25s ease;
}

.course-info-strip .info-card:hover .info-icon {
    transform: scale(1.12);
    opacity: 1;
}

.course-info-strip h4 {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 2px;
    color: #777;
}

.course-info-strip p {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    color: #222;
}


/* ============================
   CARD DI CONTENUTO GENERICHE
============================ */

.section-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.section-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.section-card li {
    margin-bottom: .35rem;
}

.fancy-title.title-border h2,
.fancy-title.title-border h3 {
    font-weight: 700;
    letter-spacing: .04em;
}

/* ============================
   GRID 3 CARD – Programma / Sceglilo se / Cosa imparerai
============================ */

.modern-feature-row {
    margin-top: 40px;
    margin-bottom: 20px;
    row-gap: 28px !important;
}

.modern-feature-row .col-lg-6,
.modern-feature-row .col-lg-12,
.modern-feature-row .col-lg-4 {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.modern-feature-card {
    position: relative;
    background: rgba(255,255,255,0.92);
    border-radius: 26px;
    padding: 30px 26px 26px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.09);
    border: 1px solid rgba(255,255,255,0.75);
    backdrop-filter: blur(10px) saturate(140%);
    overflow: hidden;
    height: 100%;
    transition: all .28s ease;
    border-left: 6px solid transparent;
    padding-left: 24px;
}

.modern-feature-card.card-blue {
    border-left-color: rgba(11, 46, 74, 0.55);
}

.modern-feature-card.card-teal {
    border-left-color: rgba(91, 167, 187, 0.55);
}

.modern-feature-card.card-orange {
    border-left-color: rgba(255, 116, 22, 0.55);
}

.modern-feature-card:hover {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 22px 46px rgba(0,0,0,0.15);
    border-color: rgba(11,46,74,0.22);
    border-left-color: rgba(255,255,255,0.45);
    transform: translateY(-6px);
}

.mfc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mfc-step {
    font-size: 2.1rem;
    font-weight: 700;
    color: rgba(11,46,74,0.28);
}

.mfc-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    flex-shrink: 0;
    transition: transform .26s ease, box-shadow .26s ease;
    background: linear-gradient(135deg, #0B2E4A, #315d88);
}

.mfc-icon-circle.icon-green {
    background: linear-gradient(135deg, #5BA7BB, #3b869a);
}

.mfc-icon-circle.icon-orange {
    background: linear-gradient(135deg, #ff7416, #EEA928);
}

.modern-feature-card:hover .mfc-icon-circle {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.20);
}

.mfc-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0B2E4A;
    margin-bottom: 16px;
    position: relative;
}

.mfc-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, #ff7416, #EEA928);
    border-radius: 8px;
    opacity: .8;
}

.mfc-text,
.mfc-list li {
    color: #333 !important;
    font-size: 1rem;
}

.mfc-text {
    line-height: 1.65;
    margin-bottom: 8px;
}

.mfc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mfc-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 7px;
    line-height: 1.55;
}

.mfc-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.68em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7416, #EEA928);
    transform: translateY(-50%);
}

.mfc-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0B2E4A;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mfc-link:hover {
    color: #ff7416;
}


/* ============================
   CALENDARIO
============================ */

.calendar-card {
    background: rgba(255,255,255,0.96);
    border-radius: 22px;
    padding: 22px 22px 18px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.85);
    backdrop-filter: blur(8px) saturate(130%);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(11,46,74,0.12);
}

.calendar-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0B2E4A, #315d88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.calendar-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0B2E4A;
    margin: 0;
    position: relative;
}

.calendar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 38px;
    height: 3px;
    background: linear-gradient(90deg, #ff7416, #EEA928);
    border-radius: 4px;
    opacity: .85;
}

.ateneo-calendar-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.ateneo-calendar-table thead th {
    background: linear-gradient(135deg, #0B2E4A, #315d88);
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    padding: 10px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.ateneo-calendar-table thead th:first-child {
    border-top-left-radius: 16px;
}
.ateneo-calendar-table thead th:last-child {
    border-top-right-radius: 16px;
}

.ateneo-calendar-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background-color .18s ease, transform .18s ease;
}

.ateneo-calendar-table tbody tr:nth-child(even) {
    background-color: rgba(245,247,251,0.75);
}

.ateneo-calendar-table tbody tr:hover {
    background-color: rgba(232,244,252,0.95);
    transform: translateY(-1px);
}

.ateneo-calendar-table tbody td {
    padding: 10px 12px;
    font-size: 0.96rem;
    vertical-align: middle;
    color: #333;
}

.ateneo-calendar-table tbody td:first-child {
    font-weight: 600;
    color: #0B2E4A;
    white-space: nowrap;
}

.ateneo-calendar-table tbody td:last-child {
    white-space: nowrap;
    font-size: 0.9rem;
}

.ateneo-calendar-table tbody td:last-child::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7416, #EEA928);
    margin-right: 6px;
    transform: translateY(-1px);
}

.calendar-cta {
    margin-top: 4px;
    border-radius: 999px;
    padding: 8px 24px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border-width: 1px;
}

.calendar-cta:hover {
    background-color: #0B2E4A;
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .calendar-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .ateneo-calendar-table thead {
        display: none;
    }

    .ateneo-calendar-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border-radius: 14px;
        padding: 10px 10px 8px;
        background-color: rgba(245,247,251,0.9);
    }

    .ateneo-calendar-table tbody td {
        display: block;
        padding: 4px 0;
        font-size: 0.9rem;
    }

    .ateneo-calendar-table tbody td:first-child {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .ateneo-calendar-table tbody td:last-child::before {
        margin-left: 0;
    }
}


/* ============================
   DOCENTI
============================ */

.docenti-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.docenti-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0B2E4A, #315d88);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.docenti-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0B2E4A;
    margin: 0;
    position: relative;
    letter-spacing: -0.5px;
}

.docenti-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 46px;
    height: 3px;
    background: linear-gradient(90deg, #ff7416, #EEA928);
    border-radius: 3px;
    opacity: 0.85;
}

/* Card responsabile scientifico (versione bianca) */
.docente-lead-card {
    background: rgba(255,255,255,0.96);
    border-radius: 26px;
    padding: 26px 26px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.10);
    border: 1px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(8px) saturate(130%);
    color: #0B2E4A;
    overflow: hidden;
    position: relative;
}

.docente-lead-image img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.docente-lead-body {
    padding: 12px 18px;
    position: relative;
    z-index: 2;
}

.docente-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(11,46,74,0.08);
    border: 1px solid rgba(11,46,74,0.22);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #0B2E4A;
}

.docente-lead-name {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 800;
    color: #0B2E4A;
}

.docente-lead-text {
    font-size: 0.97rem;
    margin-bottom: 14px;
    color: #333;
}

.docente-lead-body .btnDocente {
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.85rem;
}

.btnDocente{
    color: #fff;
    background-color: var(--prussian-blue);
}

.btnDocente:hover{
    color: #fff;
    background-color: var(--moonstone);
}

/* Grid docenti */
.docenti-grid {
    margin-top: 10px;
}

.docenti-grid .col-xl-3,
.docenti-grid .col-md-4,
.docenti-grid .col-sm-6 {
    margin-bottom: 26px;
}

.docente-card {
    background: rgba(255,255,255,0.96);
    border-radius: 20px;
    padding: 10px 10px 14px;
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
    backdrop-filter: blur(6px) saturate(110%);
}

.docente-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(0,0,0,0.14);
    border-color: rgba(11,46,74,0.22);
}

.docente-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}

.docente-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform .3s ease;
}

.docente-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,46,74,0.9), rgba(11,46,74,0.0));
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    transition: opacity .25s ease;
}

.docente-overlay .btnDocente {
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.docente-card:hover .docente-overlay {
    opacity: 1;
}

.docente-card:hover img {
    transform: scale(1.06);
}

.docente-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: #0B2E4A;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .docente-lead-card {
        padding: 16px;
    }
    .docente-lead-body {
        padding: 12px 4px 4px 4px;
    }
    .docente-lead-name {
        font-size: 1.25rem;
    }
}


/* ============================
   DESTINATARI & CERTIFICAZIONI
============================ */

.info-section-card {
    background: rgba(255,255,255,0.96);
    border-radius: 22px;
    padding: 28px 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.92);
    backdrop-filter: blur(8px) saturate(130%);
    transition: transform .22s ease, box-shadow .22s ease;
    margin-bottom: 32px;
}

.info-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.10);
}

.info-section-card--wide {
    width: 100%;
    margin-bottom: 32px;
}

.info-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0B2E4A, #2e95ae);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.info-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0B2E4A;
    margin-bottom: 18px;
    position: relative;
}

.info-section-title::after {
    content: "";
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, #ff7416, #EEA928);
    border-radius: 4px;
    position: absolute;
    bottom: -6px;
    left: 0;
    opacity: .85;
}

.info-section-body p {
    margin-bottom: 0.7rem;
    color: #333;
}

.info-section-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.info-section-list li {
    padding: 6px 0;
    font-size: 1rem;
    position: relative;
    padding-left: 18px;
    color: #333;
}

.info-section-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 3px;
    color: #0B2E4A;
    opacity: 0.8;
    font-size: 1.2rem;
}

.cert-gallery {
    margin-top: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(11,46,74,0.18);
}

.cert-gallery-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.9);
}

.cert-gallery-item img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.cert-badge-strip {
    margin-top: 26px;
    padding: 18px 16px 10px;
    border-radius: 18px;
    background: linear-gradient(135deg,
    rgba(11,46,74,0.02),
    rgba(255,255,255,0.96));
}

.cert-badge-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0B2E4A;
    margin-bottom: 14px;
}

.cert-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    justify-content: center;
}

.cert-badge {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cert-badge:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

@media (max-width: 767.98px) {
    .info-section-card {
        padding: 22px 18px;
    }
    .cert-badge {
        height: 60px;
    }
}


/* ============================
   COSTI / PRICING
============================ */

.costi-card {
    margin-bottom: 40px;
}

.costi-intro p {
    color: #333;
}

.costi-block {
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(11,46,74,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    height: 100%;
}

.costi-block-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #0B2E4A;
    margin-bottom: 6px;
    opacity: 0.9;
}

.costi-block p,
.costi-block li {
    font-size: 0.96rem;
}

.costi-block .info-section-list li {
    padding-top: 4px;
    padding-bottom: 4px;
}

@media (max-width: 991.98px) {
    .costi-row .col-md-4 {
        margin-bottom: 10px;
    }
}

.pricing-section {
    background: linear-gradient(180deg, #0B2E4A 0%, #1e4e65 50%, #5BA7BB 100%);
    border-radius: 32px 32px 0 0;
    margin-top: 40px;
}

.pricing-header .pricing-title {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 800;
}

.pricing-header .pricing-subtitle {
    color: rgba(255,255,255,0.82);
    max-width: 720px;
    margin: 0 auto;
    font-size: 0.98rem;
}

.pricing-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255,255,255,0.9);
    color: #0B2E4A;
    z-index: 2;
}

.pricing-badge--active {
    background: linear-gradient(135deg, #ff7416, #EEA928);
    color: #0B2E4A;
}

.pricing [class^=col-] {
    margin-top: 0;
}

.pricing-box {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
    padding-bottom: 14px;
}

.pricing-box.disabled {
    border: 0;
    pointer-events: none;
    cursor: default;
    opacity: 0.65;
}

.pricing-box.disabled::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
    z-index: 1;
}

.pricing-box--expired {
    opacity: 0.7;
}

.pricing-box--expired::after {
    content: "Scaduta";
    position: absolute;
    top: 18px;
    right: -40px;
    transform: rotate(35deg);
    background: rgba(0,0,0,0.08);
    color: #0B2E4A;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 46px;
    pointer-events: none;
}

.pricing-price {
    padding-bottom: 8px;
}

.pricing-persons {
    padding: 8px 16px;
    text-align: left;
    font-size: 0.95rem;
}

.pricing-persons hr{
    margin: 7px;
}

.prezzo-partenza{
    font-size: 2.3rem;
    font-weight: 700;
}

.strike {
    position: relative;
    display: inline-block;
    opacity: 0.8;
}
.strike::before {
    content: '';
    border-bottom: 3px solid red;
    width: 120%;
    position: absolute;
    top: 50%;
    left: -10%;
}

.button-iscriviti {
    background: #ff7416 !important;
    border-color: #ff7416 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 12px 26px !important;
    font-weight: 600;
    letter-spacing: .03em;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    animation: pulseGlow 2.8s ease-out infinite;
}

.button-iscriviti:hover {
    transform: scale(1.05) translateY(-2px);
    background: #e96412 !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(255,116,22,0.45); }
    50%  { box-shadow: 0 0 0 12px rgba(255,116,22,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,116,22,0.45); }
}

.button-contattaci {
    border: 2px solid #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 12px 28px !important;
    font-weight: 600;
    letter-spacing: .03em;
    transition: 0.25s ease-in-out;
}

.button-contattaci:hover {
    background: #ffffff !important;
    color: #0B2E4A !important;
}

.alinkcontattaci{
    color: var(--white-smoke);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.alinkcontattaci:hover{
    color: var(--hunyadi-yellow);
}


/* ============================
   ALLEGATI
============================ */

.attachments-card {
    margin-bottom: 40px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    padding: 10px 14px;
    text-decoration: none;
    color: #0B2E4A;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    border: 1px solid rgba(11,46,74,0.05);
    transition: transform .18s ease-out, box-shadow .18s ease-out, background .18s ease-out;
}

.attachment-item:hover {
    transform: translateY(-2px);
    background: #f4f9ff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.attachment-icon img {
    height: 40px;
    width: auto;
    display: block;
}

.attachment-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.attachment-meta {
    font-size: 0.8rem;
    color: #777;
}


/* ============================
   FAQ
============================ */

#faq {
    margin-top: 60px;
    padding-bottom: 80px;
}

/* Titolo FAQ "premium" */
#faq-title {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out;
}

.faq-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(11,46,74,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B2E4A;
    font-size: 2rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.07);
}

.faq-title-heading {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0B2E4A;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.faq-title-heading::after {
    content: "";
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #0B2E4A, #2e95ae);
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.faq-subtitle {
    margin-top: 10px;
    font-size: 1rem;
    color: #5f6b75;
    opacity: 0.9;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

#faq .accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 0;
}

#faq .accordion-header {
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    margin-bottom: 10px;
    padding: 12px 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(11,46,74,0.08);
    position: relative;
    cursor: pointer;
    transition: background .18s ease-out,
    box-shadow .18s ease-out,
    transform .16s ease-out,
    border-color .18s ease-out;
}

#faq .accordion-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff7416, #EEA928);
    opacity: 0.9;
}

#faq .accordion-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(11,46,74,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .18s ease;
}

#faq .accordion-icon i {
    font-size: 1.1rem;
    color: #0B2E4A;
}

#faq .accordion-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1f2933;
}

#faq .accordion-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
    border-color: rgba(11,46,74,0.18);
}

#faq .accordion-header.ui-accordion-header-active,
#faq .accordion-header.accordion-active {
    background: #f4f9ff;
    border-color: rgba(11,46,74,0.32);
}

#faq .accordion-header.ui-accordion-header-active::before,
#faq .accordion-header.accordion-active::before {
    background: linear-gradient(180deg, #0B2E4A, #2e95ae);
}

#faq .accordion-header.ui-accordion-header-active .accordion-icon,
#faq .accordion-header.accordion-active .accordion-icon {
    background: rgba(11,46,74,0.14);
}

#faq .accordion-content {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 15px 20px 18px;
    margin: -6px 0 12px 26px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
    border: none;
    font-size: 0.95rem;
    color: #424242;
}

#faq .accordion-content p {
    margin-bottom: 8px;
}

#faq .fancy-title,
#faq .fancy-title * {
    text-align: center !important;
}

#faq .fancy-title.title-border::before {
    display: none !important;
}

#faq .fancy-title h3 {
    font-size: 1.3rem;
    letter-spacing: .05em;
    font-weight: 700;
    color: #0B2E4A;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

#faq .fancy-title h3::after {
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0B2E4A, #2e95ae);
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 767.98px) {
    #faq .accordion {
        max-width: 100%;
    }

    #faq .accordion-header {
        padding: 10px 14px;
    }

    #faq .accordion-content {
        margin-left: 18px;
        padding: 12px 14px 14px;
    }

    #faq .accordion-title {
        font-size: 0.95rem;
    }
}


/* ============================
   VARIE
============================ */

.card-title > a{
    color: #222;
}
.card-title > a:hover{
    color: #ff7416;
}

.toggle-bg.toggle-active .toggle-header .toggle-icon {
    transform: rotate(45deg);
    color: #ff7416;
}

/* Spaziatura extra su alcune sezioni “macro” */
.section-card,
.card-calendar-wrapper,
.teachers-wrapper,
.dest-cert-wrapper,
.cost-card-wrapper,
.attachments-card,
.faq-wrapper {
    margin-bottom: 48px;
}

.faq-wrapper {
    padding-bottom: 40px;
}
/* ============================
FIX ICONA ALLEGATI
============================ */
.attachment-icon {
    width: 46px;            /* larghezza fissa → stabilità */
    height: 46px;           /* quadrato → non distorce */
    flex-shrink: 0;         /* impedisce che si rimpicciolisca */
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-icon img {
    width: 100%;
    height: auto;           /* mantiene proporzioni corrette */
    object-fit: contain;    /* nessuna deformazione */
}

.attachment-item {
    margin-bottom: 26px;      /* più spazio verticale tra una card e l’altra */
}

/* Ultimo allegato senza spazio extra */
.attachment-item:last-child {
    /*margin-bottom: 0;*/
}

/* Mobile: ancora più respiro per lettura confortevole */
@media (max-width: 767.98px) {
    .attachment-item {
        margin-bottom: 28px;
        padding: 14px 18px;   /* un filo più grande → migliore leggibilità */
    }
}
/* ============================
MOBILE / TABLET FIX
============================ */

/* Tablet & mobile generico */
@media (max-width: 991.98px) {

    /* Hero un po’ più compatta */
    #page-title.course-hero {
        padding: 50px 0 80px;
    }

    #page-title.course-hero h1 {
        font-size: 1.9rem;
    }

    .course-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    /* Hero: tutto un filo più arioso */
    .hero-meta-block {
        margin-top: 1rem;
        margin-bottom: 1.4rem;
        padding-left: 14px;
    }

    /* Sidebar con immagine: va sotto e staccata bene */
    .course-sidebar-card {
        margin-top: 24px;
    }

    /* 4 card Durata/Modalità/ECM/Quota:
       un po’ più spazio sopra e sotto */
    .course-info-strip {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .course-info-strip .info-card {
        padding: 14px 14px;
    }

    /* Card Programma / Sceglilo se / Cosa imparerai
       con un po’ più di respiro */
    .modern-feature-card {
        padding: 22px 20px;
        margin-bottom: 10px;
    }

    .mfc-title {
        font-size: 1.25rem;
    }

    /* Docente responsabile: meno padding ai lati */
    .docente-lead-card {
        padding: 18px 16px;
    }

    .docente-lead-body {
        padding: 10px 4px 4px;
    }

    /* Docenti grid: più spazio verticale */
    .docenti-grid .col-xl-3,
    .docenti-grid .col-md-4,
    .docenti-grid .col-sm-6 {
        margin-bottom: 22px;
    }

    /* Card Destinatari / Certificazioni */
    .info-section-card {
        padding: 22px 18px;
    }

    /* Pricing: card un filo più leggere */
    .pricing-box {
        margin-bottom: 18px;
    }
}

/* Mobile “piccolo” */
@media (max-width: 575.98px) {

    /* Hero: testo allineato a sinistra ma CTA centrate */
    #page-title.course-hero .hero-left {
        text-align: left !important;
    }

    .hero-cta {
        justify-content: flex-start;
        gap: 8px;
    }

    .hero-cta .button {
        width: 100%;
        text-align: center;
    }

    /* Breadcrumb: un filo più piccolo e vicino al bordo */
    .hero-breadcrumb {
        font-size: 0.72rem;
        margin-bottom: 6px;
    }

    /* Sidebar card: full width con margine laterale ridotto */
    .course-sidebar-card {
        margin-top: 20px;
        box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    }

    /* 4 card info: 2 per riga o 1 a seconda di bootstrap.
       Aggiungiamo spazio verticale. */
    .course-info-strip .col-6 {
        margin-bottom: 10px;
    }

    .course-info-strip .info-card {
        align-items: flex-start;
    }

    .course-info-strip .info-icon {
        font-size: 1.7rem;
    }

    /* Programma / Sceglilo se / Cosa imparerai */
    .modern-feature-card {
        padding: 20px 16px;
        border-left-width: 4px;
    }

    .mfc-step {
        font-size: 1.7rem;
    }

    .mfc-title {
        font-size: 1.18rem;
    }

    /* Calendario: card più compatta */
    .calendar-card {
        padding: 18px 14px;
    }

    .calendar-title {
        font-size: 1.2rem;
    }

    /* Docenti: card leggermente più grandi ma ordinate */
    .docente-card {
        padding: 10px 8px 12px;
    }

    .docente-name {
        font-size: 0.95rem;
    }

    /* Destinatari / Certificazioni – testo più leggibile */
    .info-section-title {
        font-size: 1.25rem;
    }

    .info-section-body p,
    .info-section-list li {
        font-size: 0.95rem;
    }

    /* Card Allegati: full width comoda da tappare */
    .attachment-item {
        padding: 10px 12px;
    }

    .attachment-title {
        font-size: 0.95rem;
    }

    /* FAQ: un po’ meno margine laterale */
    #faq .accordion-header {
        padding: 10px 14px;
    }

    #faq .accordion-content {
        margin-left: 14px;
        padding: 10px 12px 12px;
    }

    @media (max-width: 575.98px) {

        /* 1) Più spazio tra i pulsanti della hero e
              la card con immagine + titolo + iscriviti */
        .course-sidebar-card {
            margin-top: 40px;      /* prima 20px, ora un po' più aria */
            padding-top: 10px;     /* leggero respiro interno */
        }

        /* 2) Le 4 card Durata / Modalità / ECM / Quota
              diventano UNA PER RIGA su telefono */
        .course-info-strip .col-6 {
            flex: 0 0 100%;
            max-width: 100%;
        }

        /* un filo di respiro in più sopra/sotto il blocco card */
        .course-info-strip {
            margin-top: 40px;
            margin-bottom: 5px;
        }
    }
}
