/* ========================================
   Xayawuke - Piattaforma Corsi AI
   Foglio di Stile Principale
   ======================================== */

/* ========== Import Font ========== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Serif:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========== Variabili CSS ========== */
:root {
    /* Colori */
    --theme-color: #1CB098;
    --theme-color2: #FFBF00;
    --title-color: #1E1E1E;
    --body-color: #556377;
    --smoke-color: #F3F5F4;
    --smoke-color2: #F0FBF8;
    --white-color: #ffffff;
    --black-color: #000000;
    --dark-color: #0a2540;
    
    /* Font */
    --title-font: "Plus Jakarta Sans", sans-serif;
    --title-font2: "Noto Serif", serif;
    --body-font: "Inter", sans-serif;
    
    /* Transizioni */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Ombre */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* ========== Stili Globali ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--body-color);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
    padding-left: 0;
}

/* ========== Classi Utility ========== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-smoke {
    background-color: var(--smoke-color);
}

.bg-smoke2 {
    background-color: var(--smoke-color2);
}

.text-theme {
    color: var(--theme-color);
}

.text-theme2 {
    color: var(--theme-color2);
}

/* Titolo Sezione */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .subtitle {
    font-family: var(--title-font2);
    color: var(--theme-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.section-title .subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2));
}

.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--body-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Pulsanti ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--title-font);
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #1CB098;
    color: var(--white-color);
    /* box-shadow: 0 4px 15px rgba(28, 176, 152, 0.3); */
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1CB098;
    box-shadow: 0 6px 20px rgba(28, 176, 152, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--theme-color2), #e6ac00);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 191, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
}

.btn-outline:hover {
    background: var(--theme-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* ========== Header ========== */
.header {
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    text-transform: uppercase;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--title-font);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--title-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
}

.nav-link {
    font-family: var(--title-font);
    font-weight: 500;
    color: var(--title-color);
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--theme-color);
}

.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(240, 251, 248, 0.65) 0%, rgba(255, 255, 255, 0.65) 100%), url('images/129794.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(28, 176, 152, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 191, 0, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--title-color), var(--theme-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--body-color);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ========== Griglia Corsi ========== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.course-card:hover::before {
    opacity: 0.05;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.course-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    padding: 1rem;
    
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.5s ease;
}



.course-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--theme-color2), #e6ac00);
    color: var(--white-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.course-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.course-icon {
    width: 180px;
    height: 60px;
    background: white;
    border-radius: 0 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: start;
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding: 1rem 0.5rem;
    position: absolute;
        top: -55px;
        left: 0;
}

.course-icon img{
    margin-left: 1.5rem;
}

.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--title-color);
}

.course-content p {
    color: var(--body-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    background-color: #e3e3e3;
    padding: 2rem;
    border-radius: 0.5rem;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--body-color);
    font-size: 0.9rem;
}

.course-meta-item i {
    color: var(--theme-color);
}

/* ========== Sezione Prezzi ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--white-color);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2));
}

.pricing-card.featured {
   
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured::after {
    content: 'Popolare';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--theme-color2);
    color: var(--white-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pricing-header {
    flex-shrink: 0;
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--theme-color);
    font-family: var(--title-font);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1.2rem;
    color: var(--body-color);
    font-weight: 500;
}

.pricing-duration {
    color: var(--body-color);
    margin-bottom: 2rem;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--smoke-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--theme-color);
    font-size: 1.1rem;
}

.pricing-card .btn {
    margin-top: auto;
}

/* ========== Sezione Caratteristiche ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white-color);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--smoke-color2), var(--smoke-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--theme-color);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: var(--white-color);
    transform: rotate(360deg);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--body-color);
    margin-bottom: 0;
}

/* ========== Sezione Passi ========== */
.steps-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--theme-color), var(--theme-color2));
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--title-font);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    background: var(--white-color);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--body-color);
    margin-bottom: 0;
}

/* ========== Sezione CTA ========== */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/129789.jpg') center/cover;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========== Testimonianze ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white-color);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--theme-color);
    opacity: 0.1;
    font-family: var(--title-font2);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    color: var(--theme-color2);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--body-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.testimonial-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--body-color);
    margin: 0;
}

/* ========== Footer ========== */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--theme-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--theme-color);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--theme-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== Stili Popup ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: var(--white-color);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--smoke-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--title-color);
    transition: var(--transition-fast);
    z-index: 10;
}

.popup-close:hover {
    background: var(--theme-color);
    color: var(--white-color);
    transform: rotate(90deg);
}

.popup-header {
    padding: 40px;
    border-bottom: 1px solid var(--smoke-color);
}

.popup-header h2 {
    margin-bottom: 0.5rem;
}

.popup-body {
    padding: 40px;
}

/* Stili Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--smoke-color);
    border-radius: 10px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 4px rgba(28, 176, 152, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Popup Cookie */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--white-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-xl);
    z-index: 9998;
    display: none;
    animation: slideInUp 0.5s ease;
}

.cookie-popup.active {
    display: block;
}

.cookie-popup h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cookie-popup p {
    color: var(--body-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.cookie-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--smoke-color);
    display: none;
}

.cookie-settings.active {
    display: block;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.cookie-option label {
    font-size: 0.9rem;
    color: var(--body-color);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition-fast);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--theme-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Messaggio di Successo */
.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--white-color);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.success-message.active {
    display: block;
}

.success-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ========== Spinner Caricamento ========== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white-color);
    animation: spin 0.8s linear infinite;
}

/* ========== Animazioni ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Classi Animazione Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pagina FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white-color);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white-color);
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--smoke-color);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--title-color);
}

.faq-icon {
    color: var(--theme-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 25px 20px;
    color: var(--body-color);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Pagina Contatti */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white-color);
    font-size: 1.5rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--body-color);
    margin: 0;
}

.contact-card a {
    color: var(--theme-color);
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* Dettagli Corso */
.course-detail-hero {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}

.course-detail-hero h1 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.course-detail-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.course-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: -50px;
}

.course-main {
    background: var(--white-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.course-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.course-info-card {
    background: var(--white-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.course-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--smoke-color);
}

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

.course-info-item i {
    width: 40px;
    height: 40px;
    background: var(--smoke-color2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
}

.module-item {
    background: var(--smoke-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.module-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.module-item ul {
    padding-left: 20px;
}

.module-item li {
    color: var(--body-color);
    margin-bottom: 0.5rem;
    list-style: disc;
}

/* ========== Design Responsive ========== */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .courses-grid,
    .pricing-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .course-detail-content {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .navbar-collapse {
        background: var(--white-color);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 10px 0;
    }
    
    .steps-container::before {
        left: 15px;
    }
    
    .step-item {
        gap: 15px;
    }
    
    .step-number {
        min-width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .popup-header,
    .popup-body {
        padding: 25px;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .courses-grid,
    .pricing-grid,
    .features-grid,
    .testimonials-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .course-main {
        padding: 25px;
    }
}

/* ========== Stili Stampa ========== */
@media print {
    .header,
    .footer,
    .btn,
    .popup-overlay,
    .cookie-popup {
        display: none;
    }
}
