﻿@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html {
  font-size: 14px;
}

/*@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}*/
.hover-lift {
    transition: transform 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);*/
    }

.py-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.py-7 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}
/* Palette principale */
:root {
    --primary-color: #1e5c8d; /* Blu scuro */
    --primary-color-darker: #1a517e;
    --secondary-color: #237ebd; /* Blu intermedio */
    --tertiary-color: #2b3976; /* Blu violaceo */
    --accent-color: #4285f4; /* Azzurro vivo */
    --light-color: #b9d9fe; /* Azzurro chiaro */
    --yellow-color: #f1c40f;
    --gold-color: #9a7d0a;
    --white: #ffffff;
    --light-gray: #f1f1f1;
    /* Semantic mappings for easier use */
    --brand-primary: var(--primary-color);
    --brand-accent-secondary: var(--secondary-color);
    --brand-tertiary-text: var(--tertiary-color);
    --brand-accent: var(--accent-color);
    --background-white: var(--white); /* Explicit white background */

    --heading-color: var(--brand-primary);
    --paragraph-color: var(--tertiary-color); /* Using dark blue for general text for readability */
    --link-color: var(--brand-primary);
    --link-hover-color: var(--tertiary-color);
    --shadow-color-light: rgba(30, 92, 141, 0.1); /* Using primary-blue for light shadow */
    --shadow-color-medium: rgba(30, 92, 141, 0.2); /* Using primary-blue for medium shadow */
}

.mb-6 {
    margin-bottom: 3rem !important; /* come mb-5 */
}

.mb-7 {
    margin-bottom: 3.5rem !important;
}

.page-light-bg {
    background-color: #f7f9fa; /* Grigio chiarissimo moderno */
}

.border-primary {
    border: 1px solid var(--primary-color) !important;
}

.border-primary-2 {
    border: 2px solid var(--primary-color) !important;
}

.border-accent {
    border: 1px solid var(--accent-color) !important;
}

/* Bottoni */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary.active {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active,
    .btn-secondary.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-tertiary {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: white;
}

    .btn-tertiary:hover,
    .btn-tertiary:focus,
    .btn-tertiary:active,
    .btn-tertiary.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

    .btn-accent:hover,
    .btn-accent:focus,
    .btn-accent:active,
    .btn-accent.active {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        color: white;
    }

.btn-light {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: black;
}

    .btn-light:hover,
    .btn-light:focus,
    .btn-light:active,
    .btn-light.active {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: white;
    }

/* bottoni tempo */
input[type="radio"].btn-check:checked + .btn-outline-accent,
input[type="checkbox"].btn-check:checked + .btn btn-outline-accent {
    color: white;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

input[type="radio"].btn-check:hover + .btn-outline-accent,
input[type="checkbox"].btn-check:hover + .btn btn-outline-accent {
    color: white;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Active style fallback for buttons */
.btn-outline-primary.active {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Bottoni Outlined */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active,
    .btn-outline-primary.active {
        color: white;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: transparent;
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus,
    .btn-outline-secondary:active,
    .btn-outline-secondary.active {
        color: white;
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn-outline-tertiary {
    color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    background-color: transparent;
}

    .btn-outline-tertiary:hover,
    .btn-outline-tertiary:focus,
    .btn-outline-tertiary:active,
    .btn-outline-tertiary.active {
        color: white;
        background-color: var(--tertiary-color);
        border-color: var(--tertiary-color);
    }

.btn-outline-accent {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: transparent;
}

    .btn-outline-accent:hover,
    .btn-outline-accent:focus,
    .btn-outline-accent:active,
    .btn-outline-accent.active {
        color: white;
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }

.btn-outline-light {
    color: var(--light-color);
    border-color: var(--light-color);
    background-color: transparent;
}

    .btn-outline-light:hover,
    .btn-outline-light:focus,
    .btn-outline-light:active,
    .btn-outline-light.active {
        color: black;
        background-color: var(--light-color);
        border-color: var(--light-color);
    }

.btn-white {
    color: #212529;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .btn-white:hover {
        color: #212529;
        background-color: #e9ecef;
        border-color: #c6c8ca;
    }

    .btn-white:focus, .btn-white.focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .btn-white:disabled, .btn-white.disabled {
        color: #212529;
        background-color: #ffffff;
        border-color: #ced4da;
        opacity: 0.65;
    }

    .btn-white:not(:disabled):not(.disabled):active,
    .btn-white:not(:disabled):not(.disabled).active,
    .show > .btn-white.dropdown-toggle {
        color: #212529;
        background-color: #dfe3e6;
        border-color: #c6c8ca;
    }

.btn-outline-white {
    color: white;
    border: 1px solid white;
    background-color: transparent;
    transition: all 0.3s ease;
}

    .btn-outline-white:hover,
    .btn-outline-white.active {
        background-color: var(--bs-primary);
        color: white;
        border-color: var(--bs-primary);
    }

/* Testo */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-tertiary {
    color: var(--tertiary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-light {
    color: var(--light-color) !important;
}

.text-yellow {
    color: var(--yellow-color) !important;
}

.text-gold {
    color: var(--gold-color) !important;
}

/* Background */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-tertiary {
    background-color: var(--tertiary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.bg-yellow {
    background-color: var(--yellow-color) !important;
}

.bg-gray {
    background-color: #d6d8db; /* Grigio Bootstrap-like */
    color: #495057; /* Testo leggibile */
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}


/*Pillole categorie*/
.category-pill {
    flex: 1 1 auto;
    min-width: 150px; /* o quanto vuoi come minimo */
    text-align: center;
    justify-content: center;
}

/* Personalizza la navbar */
.navbar-custom {
    background-color: var(--primary-color);
}

    .navbar-custom .nav-link {
        color: white;
    }

        .navbar-custom .nav-link:hover {
            color: var(--accent-color);
        }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3b82f6;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Raleway', sans-serif;
    margin: 0;
    overflow-x: hidden; /* Rimuove la barra di scorrimento orizzontale su tutta la pagina */
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Effetto fade-in Homepage*/
.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

/* Effetto fade-out  Homepage*/
.fade-out {
    opacity: 1;
    animation: fadeOut 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* --- Scorrimento Insegnanti Homepage --- */

/* Contenitore carosello */
#teachers-carousel {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    gap: 20px;
    transition: transform 0.6s ease-in-out;
}

/* - Impostazioni per il carosello - */

/* Item carosello */
#teachers-carousel .carousel-item-custom {
    display: flex;
    flex: 0 0 calc(25% - 20px); /* Mostra 4 elementi */
    justify-content: center;
    align-items: center;
    width: 100%;
    opacity: 0; /* Nasconde le card non attive */
    transition: opacity 0.6s ease-in-out; 
}

    /* Quando item è attivo */
    #teachers-carousel .carousel-item-custom.active {
        opacity: 1; /* Mostra la card */
    }

/* Card semplice con ombra e bordi arrotondati */
.card-simple {
    border: none;
    border-radius: 20px;
    background-color: #fff;
    padding: 20px;
    transition: transform 0.3s ease;
}

/* Immagine tonda centrata con bordo secondario */
/*.teacher-img {
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
}*/

/* Descrizione limitata */
.description {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    min-height: 60px;
}

/* - Stile card - */
/*.card-custom {
    background-color: white;*/ /* Interno bianco */
    /*width: 100%;
    color: var(--primary-color);*/ /* Colore del testo */
    /*border: 4px solid var(--primary-color);*/ /* Bordo del colore principale */
    /*border-radius: 18px;*/ /* Bordo arrotondato più evidente */
    /*padding: 20px;*/ /* Spazio interno maggiore */
    /*box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);*/ /* Aggiungi un'ombra per un effetto elevato */
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/ /* Transizioni per l'effetto hover */
/*}*/

    /* Descrizione card */
    /*.card-custom .card-text {
        display: -webkit-box;*/ /* Abilita l'uso del flexbox per la gestione del testo */
        /*-webkit-line-clamp: 3;*/ /* Imposta il numero massimo di linee per il testo */
        /*-webkit-box-orient: vertical;*/ /* Necessario per il corretto funzionamento di line-clamp */
        /*overflow: hidden;*/ /* Nasconde il testo che esce dai limiti */
        /*text-overflow: ellipsis;*/ /* Aggiunge i puntini di sospensione per il testo troncato */
        /*height: 60px;*/ /* Imposta l'altezza fissa per la descrizione (circa 3 righe di testo) */
        /*font-size: 14px;*/ /* Imposta la grandezza del font */
    /*}*/

        /* Stile bottone */
        /*.card-custom .btn {
            background-color: var(--primary-color);*/ /* Bottone con il colore principale */
            /*color: white;*/ /* Testo bianco per il bottone */
            /*border: none;
            padding: 10px 20px;*/ /* Più spazio nel bottone */
            /*border-radius: 25px;*/ /* Forma arrotondata del bottone */
            /*transition: background-color 0.3s ease;
        }

            .card-custom .btn1 {
                color: var(--primary-color);*/ /* Bottone con il colore principale */
                /*background-color: white;*/ /* Testo bianco per il bottone */
                /*outline: 1px solid;
                border: none;
                padding: 10px 20px;*/ /* Più spazio nel bottone */
                /*border-radius: 25px;*/ /* Forma arrotondata del bottone */
                /*transition: background-color 0.3s ease;
            }

            .card-custom .btn:hover {
                background-color: #3b82f6;*/ /* Colore più chiaro al passaggio del mouse */
            /*}*/

/* Stile immagini */
.fixed-size-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;  /*Arrotonda anche le immagini */
    margin-bottom: 15px;  /*Distanza tra l'immagine e il testo*/ 
}

/* Stile bottoni carosello */
.custom-carousel-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    opacity: 0.5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

    .custom-carousel-btn:hover {
        background-color: var(--secondary-color);
    }

.carousel-control-prev {
    left: -80px;
}

.carousel-control-next {
    right: -80px;
}



/* Barra di ricerca lezioni */

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.search-input {
    width: 50%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

    .search-input:focus {
        border-color: #007FFF;
    }

.search-button {
    background-color: #007FFF;
    color: white;
    padding: 10px 20px;
    border: 2px solid #007FFF;
    border-radius: 0 25px 25px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

    .search-button:hover {
        background-color: #ADD8E6;
        border-color: #ADD8E6;
    }

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    font-size: 2rem;
}

    .rating input {
        display: none;
    }

    .rating label {
        cursor: pointer;
        color: #ddd;
        transition: color 0.2s;
    }

        .rating input:checked ~ label,
        .rating label:hover,
        .rating label:hover ~ label {
            color: #007bff;
        }

/* Area FAQs */

.faq-list {
    max-width: 800px;
    margin: auto;
}

.faq-category {
    margin-bottom: 20px;
}

.category-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    color: #0056b3;
    transition: color 0.3s;
}

    .faq-question:hover {
        color: #003f7f;
    }

.faq-answer {
    font-size: 16px;
    color: #444;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

.arrow-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #0056b3;
    border-bottom: 2px solid #0056b3;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.collapse.show .arrow-icon {
    transform: rotate(-135deg);
}

/* Social */

/*.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    margin: 10px;
}

    .social-link:hover {
        color: #007bff;
    }*/
.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    color: black;
    transition: background-color 0.3s, color 0.3s;
}

    .social-icon:hover {
        background-color: #e0e0e0;
    }
/* --- How it works --- */

.how-it-works-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.how-it-works-section h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
}

.image-container {
    position: relative;
    text-align: center;
}

/* Navbar img */
.navbar-brand img {
    max-width: 100%; 
    height: 40px; 
    display: block; 
    object-fit: contain; 
}

/* custom shape */
.custom-shape-divider-top-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

    .custom-shape-divider-top-wave svg {
        position: relative;
        display: block;
        width: calc(118% + 1.3px);
        height: 127px;
    }

.custom-shape-divider-bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

    .custom-shape-divider-bottom-wave svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 75px;
        transform: rotateY(180deg);
    }

        .custom-shape-divider-top-wave .shape-fill {
            fill: #FFFFFF;
        }

        .custom-shape-divider-bottom-wave .shape-fill {
        fill: #FFFFFF;
        }

img {
    max-width: 100%;
    height: 10px;
    display: block;
    object-fit: contain;
}

/* Chi siamo */
/*.chi-siamo {
    position: relative;
    width: 100%;
    height: 300px;*/ /* Modifica l'altezza in base alle tue esigenze */
    /*background-image: url('image.png');*/ /* Sostituisci con il percorso corretto */
    /*background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;*/ /* Allinea il testo a sinistra */
    /*padding-left: 50px;*/ /* Distanza dal bordo sinistro */
    /*color: white;
}

    .chi-siamo h2 {
        font-size: 2rem;
        font-weight: bold;
    }*/

/* Instructor Search */

#instructorList .card {
    background-color: white; /* Interno bianco */
    width: 100%;
    height: 100%;
    color: var(--primary-color); /* Colore del testo */
    border: 4px solid var(--primary-color); /* Bordo del colore principale */
    border-radius: 18px; /* Bordo arrotondato più evidente */
    padding: 20px; /* Spazio interno maggiore */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); /* Aggiungi un'ombra per un effetto elevato */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transizioni per l'effetto hover */
}


/* Descrizione card */
    #instructorList .card .card-text {
        display: -webkit-box; /* Abilita l'uso del flexbox per la gestione del testo */
        -webkit-line-clamp: 3; /* Imposta il numero massimo di linee per il testo */
        -webkit-box-orient: vertical; /* Necessario per il corretto funzionamento di line-clamp */
        overflow: hidden; /* Nasconde il testo che esce dai limiti */
        text-overflow: ellipsis; /* Aggiunge i puntini di sospensione per il testo troncato */
        height: 60px; /* Imposta l'altezza fissa per la descrizione (circa 3 righe di testo) */
        font-size: 14px; /* Imposta la grandezza del font */
    }

/* Stile bottone */
#instructorList .card .btn {
    background-color: var(--primary-color); /* Bottone con il colore principale */
    color: white; /* Testo bianco per il bottone */
    border: none;
    padding: 5px 20px; /* Più spazio nel bottone */
    border-radius: 25px; /* Forma arrotondata del bottone */
    transition: background-color 0.3s ease;
}

#instructorList .card .btn:hover {
    background-color: #3b82f6; /* Colore più chiaro al passaggio del mouse */
}

#instructorList img {
    width: 150px; /* Dimensione fissa per mantenere il cerchio */
    height: 150px; /* Uguale a width per garantire il cerchio */
    object-fit: cover; /* Ritaglia l'immagine senza distorsioni */
    object-position: center; /* Centra l'immagine */
    border-radius: 50%; /* Crea il cerchio */
    display: block; /* Evita spazi indesiderati */
    margin: 0 auto 15px auto; /* Centra orizzontalmente */
    border: 3px solid var(--primary-color);
}

/* Pagina chi siamo */
.chi-siamo {
    background-image: url('/images/Airlessons_Logo_Outline_White');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

/* Setup profile */ 
.card-header i {
    margin-right: 0.5rem;
}

.form-label.required::after {
    content: "*";
    color: red;
    margin-left: 0.25rem;
}

/* Input Moderni */

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #0d6efd;
    pointer-events: none;
}

.styled-input {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    box-shadow: none;
}

    .styled-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.2);
        outline: none;
    }

textarea.styled-input {
    padding-left: 1rem;
}

/* Immaginina profilo _loginPartial */

.profile-img {
    width: 50px;
    height: 50px;
    object-fit: cover; /* riempi l’area mantenendo il ritaglio proporzionato */
    object-position: center; /* centra la parte visibile */
    border-radius: 50%; /* rende l’immagine circolare */
    display: block; /* rimuove eventuali spazi bianchi sotto */
}


/* About Us */

.section-about {
    position: relative;
    background-color: var(--primary--color);
    overflow: hidden;
    padding: 6rem 0;
}

/* SVG come sfondo assoluto */
/*.section-about svg.bg-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);*/ /* colore bianco molto trasparente */
    /*stroke-width: 1.5px;
    stroke-miterlimit: 10;
    pointer-events: none;*/ /* non interferisce con interazioni */
    /*user-select: none;
    z-index: 0;
}

.section-about .container {
    position: relative;
    z-index: 1;*/ /* testo sopra l'SVG */
/*}*/

.flag-icon {
    width: 12px;
    height: 8px;
    object-fit: cover;
    margin-right: 2px;
}

/* Navbar */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

    .nav-link:hover,
    .nav-link.active {
        color: #1e5c8d; /* nero intenso */
    }

.nav-underline {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1e5c8d;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover .nav-underline,
.nav-link.active .nav-underline {
    width: 100%;
}

/* Footer */
.footer-link {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease;
    font-weight: 500;
}

    .footer-link:hover {
        color: #000;
    }

.footer {
    font-size: 0.95rem;
}

/*.stat-box {
  background-color: white;
  color: #6c757d;*/ /* text-secondary */
  /*border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  max-width: 180px;*/       /* più largo */
  /*height: 100px;*/          /* altezza fissa */
  /*padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;*/         /* centro orizzontale */
  /*transition: transform 0.2s ease;
}

    .stat-box.reviews {
        max-width: none;*/ /* rimuove il max width */
        /*width: fit-content;*/ /* adatta al contenuto */
        /*margin-left: auto;
        margin-right: auto;
    }

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.stat-box .number {
  font-weight: 900;
  font-size: 2.5rem;
  color: black;
  line-height: 1;
}

.stat-box .label {
  font-size: 1.2rem;
  margin-top: 0.25rem;
  font-weight: 700;
}*/

.stats-row {
    display: flex;
    flex: 0 1 auto ;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem; /* spazio tra i box */
}

.stat-box {
    background: #237ebd;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    width: 300px; /* larghezza minima */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .stat-box .number {
        font-weight: 900;
        font-size: 2.5rem;
        color: white;
        line-height: 1;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .stat-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    }

        .stat-box .number span {
            color: white;
            font-size: 1.8rem;
            margin-left: 0;
        }

    .stat-box .label {
        font-size: 1.2rem;
        margin-top: 0.25rem;
    }

.extra-vertical-padding {
    padding-top: 6rem; /* o quello che vuoi */
    padding-bottom: 6rem;
}

/*Slideshow index*/
.overlay-text {
    top: 20px;
    left: 25px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

/*Carosello Index*/

.infinite-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    background-color: #f8f9fa;
    position: relative;
}

.infinite-carousel-track {
    display: flex;
    width: max-content;
    position: relative;
    will-change: transform;
}

.carousel-image {
    position: relative;
    flex: 0 0 auto;
    width: 300px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
}

    .carousel-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.overlay-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.5rem;
    color: white;
    font-weight: 800;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.2;
    white-space: normal;
}



.bg-image-section {
    background-image: url('/Images/Logo_Outline_Blue.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    position: absolute;
    top: -22.7%;
    right: -10%; /* Spostata verso destra, ma visibile */
    width: 150%;
    height: 150%;
    /*opacity: 0.50;*/
    color: #b9d9fe;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1500px) {
    .bg-image-section {
        display: none;
    }
}


.review-text {
    display: -webkit-box;
    overflow: hidden;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.review-author {
    font-size: 1.1rem;
    color: white;
    font-style: italic;
    text-align: center;
}

/* How it works */

.step-box {
    background-color: white;
    color: #003366; /* Primario scuro */
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.how-it-works-section h2 {
    font-weight: bold;
}

.icon i {
    display: inline-block;
}


.faq-question-index {
    width: 100%;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    color: white;
    transition: color 0.3s;
}

    .faq-question-index:hover {
        color: #b9d9fe;
    }

.faq-answer-index {
    font-size: 16px;
    color: white;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

/* SearchBar */
#searchResultsDropdown a.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Step Box */
.step-box {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Hover effects personalizzati */
.step-hover-right:hover {
    transform: translateX(10px);
}

.step-hover-left:hover {
    transform: translateX(-10px);
}

/* Icona cerchiata */
.step-box .icon {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*Pagina email confirmation*/
.background-airlessons {
    background-image: url('/images/Asset_Email_confirmation_picture.svg');
    /*transform: scaleY(-1);*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*.category-badge {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

    .category-badge:hover {
        background-color: #6c757d !important;*/ /* leggero highlight */
    /*}

#topics-popup {
    position: absolute !important;
    z-index: 1050 !important;
    background-color: white !important;
    border: 1px solid #ccc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 10px;
    min-width: 200px;
    display: block;*/ /* per debug */
/*}*/

/*Bottone footer*/
.footer-lang-btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .footer-lang-btn:hover,
    .footer-lang-btn:focus {
        background-color: #f0f8ff;
        color: var(--primary-color);
    }

    .footer-lang-btn:active {
        background-color: #e2e6ea;
        color: var(--primary-color);
    }

/* Bottone orari booking */
.duration-btn {
    border-radius: 50px;
    padding: 2px 12px;
    font-size: 0.85rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    white-space: nowrap;
    transition: all 0.2s;
}

    .duration-btn:hover,
    .duration-btn.active {
        background-color: var(--primary-color);
        color: white;
    }

/*Container Topic e Category CreateLesson */
.topic-container .form-check-label {
    font-weight: 500;
}

.topic-container {
    transition: all 0.3s ease;
}

/*Pagina Legal*/
.legal-section-subtitle {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
}

.legal-title {
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}
/* sistema offset per altezza navbar */
.anchor-offset {
    scroll-margin-top: 90px;
}

/* Register Slider */
.toggle-switch {
    display: flex;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    gap: 0;
}

    .toggle-switch input[type="radio"] {
        display: none;
    }

.toggle-label {
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    z-index: 2;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 120px;
    text-align: center;
}

    .toggle-label:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

.toggle-switch input:checked + .toggle-label {
    color: white;
}

.slider-bg {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: calc(50% - 5px);
    background: var(--primary-color);
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: 1;
}

#roleTeacher:checked ~ .slider-bg {
    transform: translateX(100%);
}
/*------*/
.modern-input {
    width: 100%;
    border: none;
    border-radius: 50px;
    background-color: #fff;
    padding: 12px 48px 12px 44px;
    font-size: 1rem;
    color: #212529;
    box-shadow: 0 0 0 1px #ced4da;
    transition: box-shadow 0.2s ease-in-out;
}

    .modern-input:focus {
        box-shadow: 0 0 0 2px var(--secondary-color);
        outline: none;
    }

/* Icon inside input */
.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #6c757d;
}

/* Password toggle button */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
}

    .toggle-password:focus {
        outline: none;
    }

select.modern-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 22px center;
    background-size: 16px 16px;
    padding-right: 48px;
    cursor: pointer;
}

/* ### PAGINA RULES ### */

/* Hero Section (White background) */
.hero-section {
    padding: 50px 0;

}

    .hero-section h1 {
        font-size: 3.5rem;
        color: var(--brand-primary);
        text-shadow: none;
    }

    .hero-section p.lead {
        font-size: 1.3rem;
        color: var(--paragraph-color);
    }

/* Rules and Requirements Section (PRIMARY BLUE background) */
.rules-requirements-block {
    background-color: var(--brand-primary);
    padding: 5rem 0;
    box-shadow: 0 5px 20px var(--shadow-color-light);
    margin-top: 3rem;
    color: var(--white);
    border-radius: 0;
}

    .rules-requirements-block h2 {
        color: var(--white);
    }

    .rules-requirements-block p, .rules-requirements-block ul, .rules-requirements-block li {
        color: rgba(255, 255, 255, 0.9);
    }

    .rules-requirements-block ul {
        list-style: none; /* Remove default bullet */
        padding-left: 0;
    }

        .rules-requirements-block ul li {
            position: relative;
            padding-left: 1.5em; /* Space for custom bullet */
            margin-bottom: 0.5em;
        }

            .rules-requirements-block ul li::before {
                content: "\2713"; /* Checkmark icon */
                color: var(--accent-color); /* Vibrant blue checkmark */
                position: absolute;
                left: 0;
                font-weight: bold;
            }


/* Compare Plans Section (WHITE background) */
.compare-plans-block {
    background-color: var(--background-white);
    padding: 5rem 0;
    margin-top: 3rem;
    border-radius: 0;
}

    .compare-plans-block h2 {
        color: var(--heading-color);
    }

    .compare-plans-block p {
        color: var(--paragraph-color);
    }

/* Instructor Booking Process Section (PRIMARY BLUE background) */
.instructor-booking-process-block {
    background-color: var(--brand-primary);
    padding: 5rem 0;
    margin-top: 3rem;
    box-shadow: 0 5px 20px var(--shadow-color-light);
    border-radius: 0;
    color: var(--white); /* Base text color for this block */
}

    .instructor-booking-process-block h2 {
        color: var(--white);
    }

    .instructor-booking-process-block p {
        color: rgba(255, 255, 255, 0.9);
    }
/* Style for the visual steps within Instructor Booking Process */
.instructor-process-card-container {
    margin-top: 3rem;
}

.instructor-process-card {
    background-color: var(--white); /* White background for each step card */
    padding: 2rem;
    margin-bottom: 1.5rem; /* Space between cards */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Darker shadow for cards on dark background */
    border-radius: 0; /* No rounded edges */
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    height: 100%; /* Ensure cards fill height in grid */
    border: 1px solid rgba(255,255,255,0.1); /* Subtle white border */
}

    .instructor-process-card .process-icon {
        font-size: 3rem;
        line-height: 1;
        color: var(--brand-primary); /* Primary blue icon */
        flex-shrink: 0;
    }

    .instructor-process-card h4 {
        color: var(--brand-primary); /* Primary blue heading */
        margin-bottom: 0.5rem;
    }

    .instructor-process-card p {
        color: var(--paragraph-color); /* Dark blue paragraph */
        margin-bottom: 0;
    }

    .instructor-process-card h4::before {
        content: counter(step-counter); /* Add step number */
        counter-increment: step-counter;
        background-color: var(--accent-color); /* Vibrant blue circle */
        color: var(--white);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        font-size: 1rem;
        font-weight: bold;
        margin-right: 1rem;
        flex-shrink: 0;
    }

/* Policy Cards Styling */
.policy-card-container {
    margin-top: 3rem;
}

.policy-card {
    background-color: var(--background-white);
    padding: 2rem;
    margin-bottom: 1.5rem; /* Space between cards */
    box-shadow: 0 2px 10px var(--shadow-color-light);
    border-radius: 0; /* No rounded edges */
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    height: 100%; /* Ensure cards fill height in grid */
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

    .policy-card.bg-primary-dark { /* For cards with dark background */
        background-color: var(--brand-primary);
        color: var(--white);
        box-shadow: 0 2px 10px var(--shadow-color-medium);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .policy-card .policy-icon {
        font-size: 3rem;
        line-height: 1;
        color: var(--brand-primary);
        flex-shrink: 0; /* Prevent icon from shrinking */
    }

    .policy-card.bg-primary-dark .policy-icon {
        color: var(--accent-color); /* Lighter icon on dark background */
    }

    .policy-card h4 {
        color: var(--heading-color);
        margin-bottom: 0.5rem;
    }

    .policy-card.bg-primary-dark h4 {
        color: var(--white);
    }

    .policy-card p {
        color: var(--paragraph-color);
        margin-bottom: 0;
    }

    .policy-card.bg-primary-dark p {
        color: rgba(255, 255, 255, 0.9);
    }

/* Payment & Cancellation Policy Section (WHITE background) */
.payment-cancellation-policy-block-white {
    background-color: var(--background-white);
    padding: 5rem 0;
    border-radius: 0;
    color: var(--paragraph-color);
}

    .payment-cancellation-policy-block-white h2,
    .payment-cancellation-policy-block-white h3 {
        color: var(--heading-color);
    }

    .payment-cancellation-policy-block-white p {
        color: var(--paragraph-color);
    }

/* Student Cancellation Policy Section (PRIMARY BLUE background) */
.payment-cancellation-policy-block-blue {
    background-color: var(--brand-primary);
    padding: 5rem 0;
    margin-top: 3rem;
    box-shadow: 0 5px 20px var(--shadow-color-light);
    border-radius: 0;
    color: var(--white);
}

    .payment-cancellation-policy-block-blue h2,
    .payment-cancellation-policy-block-blue h3 {
        color: var(--white);
    }

    .payment-cancellation-policy-block-blue p {
        color: rgba(255, 255, 255, 0.9);
    }


/* Call to Action (NOW WHITE background to maintain alternation) */
.call-to-action-block {
    background-color: var(--background-white); /* Changed to white */
    padding: 5rem 0;
    box-shadow: 0 5px 20px var(--shadow-color-light);
    border-radius: 0;
    color: var(--paragraph-color); /* Default text color for white background */
}

    .call-to-action-block h2 {
        color: var(--heading-color); /* Heading color for white background */
    }

    .call-to-action-block p {
        color: var(--paragraph-color); /* Paragraph color for white background */
    }
    /* Buttons remain white with primary border/fill for contrast on dark background */
    .call-to-action-block .btn-primary {
        background-color: var(--brand-primary); /* Primary blue background for primary button */
        border-color: var(--brand-primary); /* Primary blue border for primary button */
        color: var(--white); /* White text for primary button */
    }

        .call-to-action-block .btn-primary:hover {
            background-color: var(--tertiary-color); /* Darker blue on hover */
            border-color: var(--tertiary-color);
        }

    .call-to-action-block .btn-outline-primary {
        border-color: var(--brand-primary); /* Primary blue border for outline button */
        color: var(--brand-primary); /* Primary blue text for outline button */
    }

        .call-to-action-block .btn-outline-primary:hover {
            background-color: var(--brand-primary); /* Primary blue background on hover */
            color: var(--white); /* White text on hover */
        }


/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p.lead {
        font-size: 1rem;
    }

    .rules-requirements-block, .compare-plans-block, .instructor-booking-process-block, .payment-cancellation-policy-block-white, .payment-cancellation-policy-block-blue, .call-to-action-block {
        padding: 3rem 0;
        margin-top: 2rem;
    }

        .rules-requirements-block ul li {
            padding-left: 0; /* Adjust for smaller screens */
        }

            .rules-requirements-block ul li::before {
                position: static; /* Adjust bullet position on smaller screens */
                margin-right: 0.5em;
            }

    .policy-card, .instructor-process-card {
        flex-direction: column; /* Stack icon and text on small screens */
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

        .policy-card .policy-icon, .instructor-process-card .process-icon {
            margin-bottom: 1rem;
        }

        .instructor-process-card h4::before {
            margin-bottom: 0.5rem;
        }
}

/* Stile tabella subscriptionplans */
.table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    color: #212121;
}

.table-container th {
    background-color: #fff;
    color: #212121;
    padding: 10px 15px;
    font-weight: 700;
    border-bottom: 1px solid #b9d9fe;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

    .table-container th:first-child {
        width: 30%;
        text-align: left;
    }

    .table-container th:nth-child(2),
    .table-container th:nth-child(3),
    .table-container th:nth-child(4) {
        width: 23.33%;
    }

.header-advanced {
    color: #1e5c8d;
}

.header-pro-gold {
    color: #FFD700;
}

.table-container td {
    padding: 8px 15px;
    border-bottom: none;
    border-right: none;
    font-weight: 400;
    vertical-align: middle;
    text-align: center;
}

    .table-container td:first-child {
        text-align: left;
        color: #212121;
        font-weight: 400;
    }

.included {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.not-included {
    color: #212121;
    font-weight: 400;
}

.price-value {
    color: #212121;
    font-weight: 600;
}

/* Colore dei bottoni "prev" e "next" */
.swiper-button-prev,
.swiper-button-next {
    color: var(--white);
}

/* Colore dei pallini */
.swiper-pagination-bullet {
    background-color: var(--color-accent);
    opacity: 0.5; /* pallini inattivi */
}

/* Colore del pallino attivo */
.swiper-pagination-bullet-active {
    background-color: var(--color-accent);
    opacity: 1;
}

.container-plans {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 20px;
}

.plan-card {
    background-color: #ffffff;
    padding: 30px;
    width: 300px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #b9d9fe;
    text-align: left;
    position: relative;
}

.card-header {
    min-height: 210px;
    background-color: #ffffff;
}

.plan-card h2 {
    font-size: 30px;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #212121;
    font-weight: 700;
}

    .plan-card h2 .pro-text-gold {
        color: #d4af37;
    }

.plan-card .tag {
    font-size: 13px;
    font-weight: 400;
    color: #4285f4;
}

.plan-card .fee {
    font-size: 13px;
    font-weight: 400;
    color: #212121;
    margin-bottom: 3px;
}

.plan-card .price {
    font-size: 38px;
    font-weight: 700;
    color: #212121;
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 8px;
}

    .plan-card .price.free {
        font-size: 34px;
        color: #212121;
        display: block;
    }

.price .currency-label {
    font-size: 15px;
    font-weight: 600;
    color: #212121;
}

.plan-card .price small {
    font-size: 13px;
    font-weight: 400;
    color: #212121;
    width: 100%;
    margin-top: 2px;
}

.plan-card .note {
    font-size: 13px;
    color: #212121;
    margin-top: 10px;
    font-weight: 400;
}

.plan-card button {
    background-color: #4285f4;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

    .plan-card button.secondary {
        background-color: #ffffff;
        color: #4285f4;
        border: 1px solid #4285f4;
    }

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}

    .plan-card ul li {
        margin-bottom: 8px;
        color: #212121;
        display: flex;
        align-items: flex-start;
        font-size: 15px;
    }

        .plan-card ul li:before {
            content: '✓';
            color: #4285f4;
            font-weight: bold;
            margin-right: 10px;
        }

.plan-card strong {
    font-weight: 700;
}

.most-popular-badge {
    background-color: #4285f4;
    color: white;
    padding: 8px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 400;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.plan-card.advanced h2 {
    color: #1e5c8d;
}

/* NUOVA REGOLA: Stile per le intestazioni della lista */
.plan-card ul li.list-header {
    font-weight: 700;
    margin-bottom: 12px; /* Aggiunge più spazio sotto l'intestazione */
}

    /* NUOVA REGOLA: Rimuove il segno di spunta solo dall'intestazione */
    .plan-card ul li.list-header:before {
        content: '';
        margin-right: 0;
    }
.note-wrapper {
    min-height: 5rem; /* regola in base al contenuto più lungo */
}

/*Slider progressivo account*/
/*.profile-progress-container {
    position: relative;
    width: 170px;
    height: 170px;
}

.profile-img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.progress-ring {
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.progress-ring-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 10;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 471;*/ /* 2πr, r = 75 */
    /*stroke-dashoffset: 471;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: #007bff;
    z-index: 3;
}*/
.profile-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    margin: auto;
}

.profile-progress-container {
    position: relative;
    width: 170px;
    height: 170px;
}

.profile-img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.progress-ring {
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.progress-ring-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 10;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 10;
    stroke-linecap: square;
    stroke-dasharray: 471;
    stroke-dashoffset: 471;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-label {
    margin-top: 8px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1rem;
}
.custom-validation-banner {
    display: none;
    /* Stile errore */
    background-color: #fdecea;
    color: #b71c1c;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    margin-bottom: 0.75rem;
}

    .custom-validation-banner.field-validation-error {
        display: flex;
        align-items: center;
    }

        .custom-validation-banner.field-validation-error::before {
            content: "";
            display: inline-block;
            width: 1.2rem;
            height: 1.2rem;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b71c1c' viewBox='0 0 16 16'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2'/%3E%3C/svg%3E");
            background-size: 100% 100%;
            background-repeat: no-repeat;
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
        }

.pagination .page-item {
    margin: 0 4px;
}

.pagination .page-link {
    border: 1px solid var(--primary-color);
    border-radius: 8px !important; /* Angoli smussati ovunque */
    color: var(--primary-color);
    background-color: transparent;
    padding: 6px 12px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

    .pagination .page-link:hover {
        background-color: var(--primary-color);
        color: white;
        text-decoration: none;
    }

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.container-wide {
    max-width: 1600px; /* più largo del container standard (che fa max 1140px a lg) */
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}


/*Pillole filtri*/
.filter-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem 0.5rem 0.6rem;
    border-radius: 2rem;
    position: relative;
    padding-right: 2rem;
    line-height: 1;
}

    .filter-pill i {
        margin-right: 0.5rem;
    }

    .filter-pill .remove-filter {
        position: absolute;
        top: 50%;
        right: 0.5rem;
        transform: translateY(-50%);
        color: inherit;
        text-decoration: none;
    }

    .filter-pill.reset-all {
        background-color: #dc3545;
        color: #fff;
        font-weight: 600;
    }

        .filter-pill.reset-all .remove-filter {
            display: none;
        }

/* DASHBOARD */
.icon-btn {
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.2s ease;
    width: 50px;
    height: 50px;
}

    .icon-btn:hover {
        background-color: var(--primary-color-darker);
        color: white;
    }

    .icon-btn:active,
    .icon-btn.active-icon {
        background-color: var(--primary-color-darker);
        color: white;
    }

.nav-link {
    border: none;
}

.lesson-card {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 1rem 1.75rem 1rem 1.75rem;
    min-height: 100px;
    margin-bottom: 1rem;
}

.action-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 2rem 2rem 2rem 2rem;
}

.generic-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 2rem 2rem 2rem 2rem;
}

.profile-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 2rem 2rem 2rem 2rem;
    min-height: 200px;
}

.custom-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0; /* Importante per l'allineamento */
}

    .custom-tabs .nav-link {
        color: #6c757d;
        border: none;
        border-bottom: 2px solid transparent;
        font-weight: 500;
        padding: 0.5rem 1rem;
        margin-bottom: -2px; /* Allinea il bordo del link con quello del tab */
        transition: all 0.2s ease-in-out;
        border-radius: 0;
    }

        .custom-tabs .nav-link:hover {
            color: var(--secondary-color);
            border-color: #cfe2ff;
        }

        .custom-tabs .nav-link.active {
            color: var(--secondary-color);
            border-color: var(--secondary-color);
            background-color: transparent;
            font-weight: 600;
        }



.dashboard-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 4rem 2rem 2rem 2rem;
    min-height: 250px;
}

.dashboard-card-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color, #1e5c8d);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card-title {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.dashboard-card-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/*SubscriptionPlans*/
.sticky-plan-summary {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    z-index: 1000;
    display: none;
}

    .sticky-plan-summary.show {
        display: block;
    }

/* NEW: righe orizzontali */
.plans-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* NEW: stile delle card mini */
.plan-mini-box {
    flex: 1 1 30%;
    min-width: 200px;
    max-width: 300px;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.plan-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

button[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.progress-circle {
    --size: 70px;
    --thickness: 6px;
    --color: #0d6efd;
    --background: #e9ecef;
    --value: 75; /* fallback */

    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--value) * 1%), var(--background) 0);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .progress-circle::before {
        content: "";
        position: absolute;
        width: calc(var(--size) - var(--thickness) * 2);
        height: calc(var(--size) - var(--thickness) * 2);
        background-color: white;
        border-radius: 50%;
        z-index: 1;
    }

    .progress-circle i {
        z-index: 2;
        font-size: 1.5rem;
        color: var(--color);
    }

.circle-icon {
    --size: 70px;
    --thickness: 6px;
    --color: #0d6efd;
    --background: #e9ecef;
    --value: 75;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .circle-icon::before {
        content: "";
        position: absolute;
        width: calc(var(--size) - var(--thickness) * 2);
        height: calc(var(--size) - var(--thickness) * 2);
        background-color: white;
        border-radius: 50%;
        z-index: 1;
    }

    .circle-icon i {
        z-index: 2;
        font-size: 1.4rem;
        color: var(--secondary-color);
    }

.overview-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    padding: 2rem 2rem 2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* puoi usare anche gap: 1.5rem; */
}

.circle-icon-wrapper {
    width: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .circle-icon-wrapper .mt-2 {
        margin-top: 0.5rem;
        line-height: 1.2;
    }


.notification-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
    color: inherit;
}

    .notification-card:hover {
        background: rgba(255, 255, 255, 0.95);
    }

    .notification-card.read {
        opacity: 0.65;
    }

    .notification-card .icon {
        font-size: 1.5rem;
        margin-right: 1rem;
        color: var(--primary-color);
    }

    .notification-card .content {
        flex-grow: 1;
    }

    .notification-card .title {
        font-weight: 600;
        margin-bottom: 0.2rem;
    }

    .notification-card .message {
        font-size: 0.95rem;
        color: #444;
        margin-bottom: 0.2rem;
    }

    .notification-card .date {
        font-size: 0.8rem;
        color: #888;
    }

    .notification-card .action-buttons {
        position: absolute;
        top: 0.3rem;
        right: 0.5rem;
        z-index: 2;
    }

.btn-icon-lg i {
    font-size: 1.5rem;
}

.teacher-card-fixed {
    height: 100%;
    min-height: 450px; /* regola in base alla tua esigenza */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



    .teacher-card-fixed .teacher-img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid var(--primary-color);
    }

    .teacher-card-fixed .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    


