/*------------------------------------------------------------------
[Variabili e Stili di Base]
*/
:root {
    --blu-notte: #0D1B2A;
    --grigio-acciaio: #415A77;
    --blu-ghiaccio: #778DA9;
    --bianco-sporco: #E0E1DD;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--bianco-sporco);
    color: var(--blu-notte);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/*------------------------------------------------------------------
[Pre-Header]
*/
.pre-header {
    background-color: var(--grigio-acciaio);
    color: var(--bianco-sporco);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.pre-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Permette di andare a capo su schermi piccoli */
}

.pre-header-left {
    flex-grow: 1;
    /* Occupa lo spazio disponibile */
    text-align: center;
    /* Centra il testo su mobile */
    padding: 0.25rem 0;
}

.pre-header-link {
    font-weight: 700;
    text-decoration: underline;
}

.pre-header-link:hover {
    color: var(--white);
}

.pre-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    /* Occupa tutta la larghezza su mobile */
    justify-content: center;
    /* Centra gli elementi su mobile */
    padding-top: 0.5rem;
}

.cart-link i {
    width: 20px;
    height: 20px;
}

/*------------------------------------------------------------------
[Header e Navigazione]
*/
.site-header {
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    border: none;
}

.nav-desktop {
    display: none;
}

.nav-desktop a {
    padding: 0.5rem 1rem;
}

.nav-desktop a:hover {
    color: var(--blu-ghiaccio);
}

.mobile-menu-button {
    background: none;
    border: none;
    color: var(--bianco-sporco);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--grigio-acciaio);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/*------------------------------------------------------------------
[Sezioni Generiche]
*/
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-right: auto;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/*------------------------------------------------------------------
[Sezione Hero con Video]
*/
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding: 1rem;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 27, 42, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--bianco-sporco);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    background-color: var(--blu-ghiaccio);
    color: var(--blu-notte);
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--bianco-sporco);
}

/*------------------------------------------------------------------
[Sezione Chi Siamo]
*/
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: var(--blu-notte);
}

.about-text p {
    color: var(--grigio-acciaio);
    font-size: 1.125rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/*------------------------------------------------------------------
[Sezione Corsi]
*/
#corsi {
    background-color: var(--grigio-acciaio);
    color: var(--bianco-sporco);
}

#corsi .section-subtitle {
    color: var(--blu-ghiaccio);
}

.courses-grid {
    display: grid;
    gap: 2rem;
}

.course-card {
    background-color: var(--blu-notte);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.course-card i {
    margin: 0 auto 1rem;
    color: var(--blu-ghiaccio);
}

.course-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-card p {
    color: var(--blu-ghiaccio);
    flex-grow: 1;
}

.course-dates {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0;
}

.course-dates .icon-small {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.course-excerpt {
    /* Assicura che l'excerpt non spinga il pulsante info troppo in basso */
    /* min-height: 80px; */
}

.day-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--blu-notte);
}

.course-detail-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--grigio-testo);
}

/*------------------------------------------------------------------
[Sezione Docenti]
*/
#docenti .section-subtitle {
    color: var(--grigio-acciaio);
}

.faculty-grid {
    display: grid;
    gap: 2.5rem;
}

.teacher-card {
    text-align: center;
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.teacher-card img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--blu-ghiaccio);
}

.teacher-card h3 {
    color: var(--blu-notte);
    font-size: 1.25rem;
}

.teacher-card .role {
    color: var(--blu-ghiaccio);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-card .bio {
    color: var(--grigio-acciaio);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.teacher-card .read-more {
    font-weight: 700;
    color: var(--blu-notte);
}

.teacher-card .read-more:hover {
    color: var(--blu-ghiaccio);
}

/*------------------------------------------------------------------
[Sezione Risorse]
*/
#risorse {
    background-color: var(--blu-ghiaccio);
    color: var(--blu-notte);
}

.resources-grid {
    display: grid;
    gap: 2rem;
}

.resource-card {
    background-color: var(--bianco-sporco);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.resource-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.resource-card-content {
    padding: 1.5rem;
}

.resource-card .category {
    font-size: 0.75rem;
    color: var(--grigio-acciaio);
    font-weight: 600;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.resource-card p {
    color: var(--grigio-acciaio);
    margin-bottom: 1rem;
}

.resource-card a {
    font-weight: 700;
}

.resource-card a:hover {
    color: var(--grigio-acciaio);
}

/*------------------------------------------------------------------
[Sezione Contatti]
*/
#contatti .section-subtitle {
    color: var(--grigio-acciaio);
}

.contact-wrapper {
    max-width: 100%;
    /* Full width on mobile */
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    /* Removed card styling for mobile */
    padding: 0;
}

.contact-form label {
    display: block;
    font-weight: 700;
    color: var(--grigio-acciaio);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--blu-ghiaccio);
    border-radius: 8px;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--blu-ghiaccio);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form button {
    width: 100%;
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: var(--grigio-acciaio);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-item i {
    color: var(--blu-ghiaccio);
    margin-top: 4px;
}

.contact-info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--grigio-acciaio);
}

.contact-info-item a:hover {
    color: var(--blu-notte);
}

/*------------------------------------------------------------------
[Footer]
*/
.site-footer {
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
    padding: 3rem 0;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-socials a:hover {
    color: var(--blu-ghiaccio);
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--blu-ghiaccio);
}

.footer-links a:hover {
    text-decoration: underline;
}

.site-footer .copyright {
    color: var(--blu-ghiaccio);
}

.site-footer .credits {
    font-size: 0.875rem;
    color: var(--grigio-acciaio);
    margin-top: 0.5rem;
}

/*------------------------------------------------------------------
[Pulsante Torna Su]
*/
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    /* Inizialmente nascosto */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn.visible {
    display: flex;
    opacity: 1;
}

.back-to-top-btn:hover {
    background-color: var(--grigio-acciaio);
    transform: translateY(-5px);
}

/*------------------------------------------------------------------
[Banner Cookie]
*/
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
    padding: 1.5rem 0;
    z-index: 1001;
    display: none;
    /* Nascosto di default */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cookie-banner p {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
}

.cookie-banner a {
    color: var(--bianco-sporco);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cookie-btn.accept {
    background-color: var(--blu-ghiaccio);
    color: var(--blu-notte);
}

.cookie-btn.accept:hover {
    background-color: var(--bianco-sporco);
}

.cookie-btn.reject {
    background-color: transparent;
    color: var(--bianco-sporco);
    border: 2px solid var(--grigio-acciaio);
}

.cookie-btn.reject:hover {
    background-color: var(--grigio-acciaio);
}

/*------------------------------------------------------------------
[Stili Pagine Dedicate (Privacy, Cookie, NewTo3D)]
*/
.dedicated-page-header {
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
}

.dedicated-page-header a:hover {
    color: var(--blu-ghiaccio);
}

.page-content {
    padding: 2rem 0;
}

.page-content .container {
    max-width: 100%;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.content-section {
    width: 100%;
    background-color: transparent;
    padding: 0;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--blu-ghiaccio);
    padding-bottom: 0.5rem;
}

.page-content p,
.page-content ul {
    color: var(--grigio-acciaio);
}

.page-content ul {
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Stili specifici per Intro-Strip con Immagine */
.intro-strip {
    position: relative;
    padding: 4rem 1rem;
    text-align: center;
    color: var(--bianco-sporco);
    background-image: url('3dprint.png');
    background-size: cover;
    background-position: center;
}

.intro-strip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 27, 42, 0.7);
    /* Overlay --blu-notte */
    z-index: 1;
}

.intro-strip-content {
    position: relative;
    z-index: 2;
}

.intro-strip .subtitle {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.intro-strip h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-strip .lead {
    font-size: 1.25rem;
    color: var(--bianco-sporco);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}


/*------------------------------------------------------------------
[Media Queries per Responsività]
*/
@media (min-width: 768px) {
    .pre-header-container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .pre-header-left {
        display: block;
        text-align: left;
    }

    .pre-header-right {
        width: auto;
        justify-content: flex-end;
        padding-top: 0;
    }

    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-menu-button {
        display: none;
    }

    .hero-logo {
        max-width: 500px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section {
        padding: 6rem 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 3rem;
        /* Add card styling back for desktop */
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-width: 900px;
        /* Restore max-width */
    }

    .cookie-banner-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-banner p {
        text-align: left;
    }

    .page-content .container {
        max-width: 800px;
        background-color: var(--white);
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        margin: 0 auto;
    }

    .content-section {
        background-color: var(--white);
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
}

@media (min-width: 1024px) {
    .nav-desktop {
        gap: 1.5rem;
    }

    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .faculty-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-subtitle {

        margin-left: auto;
        margin-bottom: 3rem;
    }
}

/*
==============================================
Stili per la Modale CV Docenti (Fancybox)
==============================================
*/
.speaker-single {
    padding: 20px;
    color: #333;
}

.speaker-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.speaker-top-section img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    /* Rende l'immagine circolare */
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.speaker-info-wrapper .name {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 5px;
}

.speaker-info-wrapper .titles {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.speaker-info-wrapper .formatted-text {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.speaker-info-wrapper .formatted-text p {
    margin-bottom: 1rem;
}

/* Stili specifici per Fancybox per adattarsi meglio */
.fancybox__content {
    background: #f8f9fa;
}

/* Astile per far sembrare il pulsante un link */

.btn-link-style {
    background: none;
    border: none;
    padding: 0;
    color: #0d6efd;
    /* Colore del link di Bootstrap */
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-link-style:hover {
    text-decoration: underline;
}

/*------------------------------------------------------------------
[Area Cliente]
*/
.customer-mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    /* O all'altezza dell'header se fisso */
    z-index: 1000;
}

.customer-mobile-nav .nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: var(--blu-ghiaccio);
    transition: color 0.2s ease-in-out;
}

.customer-mobile-nav .nav-icon.active,
.customer-mobile-nav .nav-icon:hover {
    color: var(--white);
}

.customer-mobile-nav .nav-icon i {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.section-title-customer {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blu-notte);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--blu-ghiaccio);
    padding-bottom: 0.5rem;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--bianco-sporco);
}

/*------------------------------------------------------------------
[Auth Pages (Login/Register)]
*/
.auth-wrapper {
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

@media (min-width: 768px) {
    .auth-wrapper {
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.125);
        padding: 0;
        /* Card body has padding */
    }

    .auth-wrapper .card-body {
        padding: 3rem;
    }

    .auth-page-container {
        width: 90% !important;
    }
}

.auth-page-container {
    width: 100% !important;
}

.item-details {
    flex-grow: 1;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-type {
    font-size: 0.8rem;
    color: var(--grigio-acciaio);
    display: block;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.item-meta .price {
    font-weight: 700;
    color: var(--blu-notte);
}

.btn-cart-icon {
    background: none;
    border: none;
    padding: 0;
    color: var(--grigio-acciaio);
    cursor: pointer;
}

.btn-cart-icon:hover {
    color: var(--blu-notte);
}

.item-thumb {
    flex-shrink: 0;
    margin-left: 1rem;
}

.item-thumb img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

/* NUOVI STILI PER LA SEZIONE CORSI */
.courses-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.course-card-new {
    background-color: var(--blu-notte);
    color: var(--bianco-sporco);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.course-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--blu-ghiaccio);
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-new h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.course-card-new p {
    color: var(--blu-ghiaccio);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.btn-info-round {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--blu-ghiaccio);
    color: var(--blu-notte);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.btn-info-round:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

/* NUOVI STILI PER LA PAGINA DETTAGLIO CORSO */
.course-detail-page .course-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.course-detail-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 7px solid var(--blu-ghiaccio);
    overflow: hidden;
    flex-shrink: 0;
}

.course-detail-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-detail-page h1 {
    font-size: 2.5rem;
}

.course-body {
    margin-bottom: 3rem;
}

.course-program {
    margin-bottom: 3rem;
}

.course-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bianco-sporco);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-share span {
    font-weight: 600;
}

.social-share a {
    color: var(--grigio-acciaio);
}

.social-share a:hover {
    color: var(--blu-notte);
}

@media (min-width: 768px) {
    .course-detail-page .course-header {
        flex-direction: row;
        text-align: left;
    }

    .course-actions {
        flex-direction: row;
        justify-content: space-between;
    }



}

@media (max-width: 768px) {

    .course-section table,
    .course-section tbody,
    .course-section tr,
    .course-section td {
        display: block;
        width: 100%;
        background-color: #fff;
    }

    .course-section td {}
}



#aboutCarousel {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-item {
    height: 400px;
    /* Altezza fissa per lo slideshow */
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    /* Assicura che l'immagine copra l'area senza deformarsi */
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 1.5rem;
    padding-top: 2rem;
}


svg.feather {
    width: 16px;
    height: 16px;
}

.prenota-ora {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    /* blu acceso, puoi cambiarlo */
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.prenota-ora:hover {
    background-color: #0056b3;
    cursor: pointer;
}