/* ==========================================================
   SINGOLO CORSO – Layout immagine con box sovrapposti
   ========================================================== */

.corso-img-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr 160px;
    align-items: center; /* era stretch */
    margin: 0;
    min-height: 200px; /* segue l'immagine */
}

.corso-img-central {
    position: relative;
    z-index: 0;
    border-radius: 6px;
    min-height: 200px; /* era 300px */
}

.corso-boxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.corso-boxes--left {
    justify-content: center;
    transform: translateX(50%);
    z-index: 2;
}

.corso-boxes--right {
    justify-content: center;
    transform: translateX(-50%);
    z-index: 2;
}

.corso-box {
    background: #fff;
    border: 2px solid var(--bordeaux); /* bordo uguale su tutti i lati */
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    height: 100px; /* altezza fissa */
    box-sizing: border-box;
}

.corso-boxes--left .corso-box {
    border-radius: 10px;
    padding-right: 16px;
    /* rimosso border-right: 3px solid */
}

.corso-boxes--right .corso-box {
    border-radius: 10px;
    padding-left: 16px;
    /* rimosso border-left: 3px solid */
}

.corso-box__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.corso-box__label {
    font-size: 12px;
    font-weight: 500;
    color: #7a5c52;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
}

.corso-box__value {
    font-size: 16px;
    font-weight: 500;
    color: #2d1f1b;
    line-height: 1.3;
    word-break: break-word;
}

.corso-box__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--bordeaux);
    background: #f5f0ee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.corso-box__icon svg { width: 100%; height: 100%; }

.corso-box--cta {
    text-decoration: none;
    text-align: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 500;
    color: var(--bordeaux);
    background: #fff;
    padding: 14px 12px;
    cursor: pointer;
    transition: background .18s, color .18s;
    line-height: 1.3;
}

.corso-box--cta:hover {
    background: #f5f0ee;
    color: #4a2f28;
    text-decoration: none;
}

@media (max-width: 768px) {
    .corso-img-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .corso-boxes--left,
    .corso-boxes--right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
    }
    .corso-boxes--left .corso-box,
    .corso-boxes--right .corso-box--cta {
        border-radius: 10px;
        border: 1.5px solid #c8b8b0;
        flex: 1 1 140px;
    }
    .corso-img-central {
        min-height: 220px;
        order: -1;
    }
}

/* ==========================================================
   CATALOGO CORSI – Archivio tre colonne per categoria
   ========================================================== */

.corsi-content h1{
	color: var(--bordeaux) !important;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2.5rem;
	margin-bottom: 4.5rem;
}

/* Separatori verticali tra colonne */
.catalogo-col {
	background: var(--white);
    border-radius: 24px;
    box-shadow: 0 0 10px 10px #cccccc30;
    overflow: hidden;
    transition: 0.3s;
    height: 360px;
    display: flex;
    flex-direction: column;
	padding: 40px 30px;
}

.catalogo-col__title {
	font-size: 24px;
    font-weight: 500;
    color: #2d1f1b;
    margin: 0 0 1.25rem;
    padding-bottom: .6rem;
}

/* Lista corsi */
.catalogo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.catalogo-list__item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.catalogo-list__item a {
    font-size: .95rem;
    color: #2d1f1b;
    text-decoration: underline;
    line-height: 1.4;
}

.catalogo-list__item a:hover {
    color: #7a5c52;
}

.catalogo-list__date {
    font-size: .82rem;
    color: #9c7b72;
    font-weight: 500;
}

.catalogo-coming-soon {
    font-size: .9rem;
    color: #b0a09a;
    font-style: italic;
    margin: 0;
}

/* Mobile: una colonna */
@media (max-width: 768px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix: forza la griglia a tre colonne su desktop */
.catalogo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .catalogo-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================
   SINGOLO CORSO – Info boxes sotto l'immagine (layout verticale)
   ========================================================== */

.corso-info-sotto {
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #c8b8b0;
    border-radius: 10px;
    overflow: hidden;
}

.corso-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8deda;
    background: #fff;
}

.corso-info-item:last-child {
    border-bottom: none;
}

.corso-info-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #9c7b72;
    background: #f5f0ee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
}

.corso-info-item__icon svg {
    width: 100%;
    height: 100%;
}

.corso-info-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.corso-info-item__label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9c7b72;
    line-height: 1.2;
}

.corso-info-item__value {
    font-size: .95rem;
    font-weight: 700;
    color: #2d1f1b;
}

.corso-info-item__link {
    font-size: .9rem;
    font-weight: 600;
    color: #7a5c52;
    text-decoration: underline;
}

.corso-info-item__link:hover {
    color: #4a2f28;
}

.corso-info-sotto {
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border: 1.5px solid #c8b8b0;
    border-radius: 10px;
    overflow: hidden;
}

.corso-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-right: 1px solid #e8deda;
    border-bottom: none;
    background: #fff;
}

.corso-info-item:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .corso-info-sotto {
        grid-template-columns: 1fr;
    }

    .corso-info-item {
        border-right: none;
        border-bottom: 1px solid #e8deda;
    }

    .corso-info-item:last-child {
        border-bottom: none;
    }
}

/* ==========================================================
   SINGOLO CORSO – Box sovrapposti all'immagine
   ========================================================== */

.corso-img-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr 160px;
    align-items: center;
    margin: 2rem 0 0;
    min-height: 200px;
}

.corso-img-central {
    position: relative;
    z-index: 0;
    border-radius: 6px;
    min-height: 200px;
}

.corso-boxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
    justify-content: center;
}

.corso-box {
    background: #fff;
    border: 1.5px solid var(--bordeaux);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    height: 100px;
    box-sizing: border-box;
}

.corso-boxes--left .corso-box {
    border-radius: 10px;
    padding-right: 16px;
}

.corso-boxes--right .corso-box {
    border-radius: 10px;
    padding-left: 16px;
}

.corso-box__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.corso-box__label {
    font-size: .75rem;
    font-weight: 600;
    color: #7a5c52;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
}

.corso-box__value {
    font-size: .92rem;
    font-weight: 700;
    color: #2d1f1b;
    line-height: 1.3;
    word-break: break-word;
}

.corso-box__link {
    font-size: .88rem;
    font-weight: 600;
    color: var(--bordeaux);
    text-decoration: underline;
}

.corso-box__link:hover { color: #4a2f28; }

.corso-box__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #9c7b72;
    background: #f5f0ee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.corso-box__icon svg { width: 100%; height: 100%; }

.corso-box--cta {
    text-decoration: none;
    text-align: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 600;
    color: var(--bordeaux);
    background: #fff;
    padding: 14px 12px;
    transition: background .18s, color .18s;
    line-height: 1.3;
}

.corso-box--cta:hover {
    background: #f5f0ee;
    color: #4a2f28;
    text-decoration: none;
}

/* Mobile: tutto in colonna */
@media (max-width: 768px) {
    .corso-img-wrapper {
        grid-template-columns: 1fr;
    }

    .corso-img-central {
        min-height: 220px;
        order: -1;
    }

    .corso-boxes--left,
    .corso-boxes--right {
        flex-direction: column;
        gap: 8px;
        padding: 8px 0;
    }

    .corso-boxes--left .corso-box,
    .corso-boxes--right .corso-box {
        border-radius: 10px;
        border: 1.5px solid #c8b8b0;
        height: auto;
        padding: 10px 12px;
    }
}

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

.corso-docenti-sezione__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d1f1b;
    margin: 0 0 1.5rem;
}

.corso-docenti-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.corso-docente {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8deda;
    border-radius: 10px;
}

.corso-docente__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #9c7b72;
    background: #f5f0ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.corso-docente__icon svg { width: 100%; height: 100%; }

.corso-docente__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.corso-docente__nome   { font-weight: 700; font-size: 1rem; color: #2d1f1b; }
.corso-docente__ateneo { font-size: .88rem; color: #7a5c52; font-weight: 500; }
.corso-docente__corso  { font-size: .85rem; color: #9c7b72; font-style: italic; }

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

.corso-docenti-sezione{
	padding-bottom: 60px;
    max-width: 840px;
    margin: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.corso-docenti-sezione__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d1f1b;
    margin: 0 0 1.5rem;
}

.corso-docenti-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.corso-docente {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8deda;
    border-radius: 10px;
}

.corso-docente__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #9c7b72;
    background: #f5f0ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.corso-docente__icon svg {
    width: 100%;
    height: 100%;
}

.corso-docente__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.corso-docente__nome {
    font-weight: 700;
    font-size: 1rem;
    color: #2d1f1b;
}

.corso-docente__ateneo {
    font-size: .88rem;
    color: #7a5c52;
    font-weight: 500;
}

.corso-docente__corso {
    font-size: .85rem;
    color: #9c7b72;
    font-style: italic;
}

/* Desktop: nasconde il wrapper mobile */
.corso-boxes-mobile {
    display: none;
}

/* Desktop: nasconde i box dentro .corso-img-wrapper su mobile
   e mostra invece .corso-boxes-mobile */
@media (max-width: 768px) {

    /* Nasconde i box laterali dentro il wrapper griglia */
    .corso-img-wrapper .corso-boxes--left,
    .corso-img-wrapper .corso-boxes--right {
        display: none;
    }

    /* L'immagine occupa tutta la larghezza */
    .corso-img-wrapper {
        grid-template-columns: 1fr;
		margin: 0 0 0;
    }

    /* Mostra i box sotto l'immagine, uno per riga */
    .corso-boxes-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 1rem;
    }

    .corso-boxes-mobile .corso-box {
        border-radius: 10px;
        border: 1px solid #e8deda;
        height: auto;
        min-height: 64px;
        padding: 12px 14px;
    }

    .corso-boxes-mobile .corso-box--cta {
        border-radius: 10px;
        border: 1px solid #e8deda;
        padding: 14px;
        text-align: left;
        justify-content: flex-start;
    }
	
	.corso-docenti-sezione{
		padding-bottom: 60px;
		padding-right: 0px;
		padding-left: 0px;
		padding-top: 60px;
	}
	
	.single-content .corso-img-wrapper .img-single{
		margin-bottom: 60px !important;
	}

}