/**
 * Corsi Page Styles
 * Stili specifici per la pagina dettaglio corso
 */

/* ===========================================
   ELEMENTI BASE
   =========================================== */
h2.titolocard {
    font-size: 18px;
    color: #777777;
    text-transform: uppercase;
}

.course-card {
    display: block;
    margin-bottom: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 30px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.course-card h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Titolo sezioni corso */
.course-section-title {
    color: #2695DA;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2695DA;
}

.course-section-title i {
    margin-right: 10px;
}

.course-card h3 i {
    color: #2695DA;
    margin-right: 10px;
}

.course-card p {
    line-height: 1.7;
    color: #555;
}

.course-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.course-card li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

/* Tabella piano di studio */
.table-piano-studi-container {
    border: 1px solid #2695DA;
    border-radius: 8px;
    overflow: hidden;
}

.table-responsive {
    margin-bottom: 0;
}

.table-piano-studi {
    margin-bottom: 0;
}

.table-piano-studi>thead>tr>th {
    background-color: #2695DA;
    color: white;
    border: 1px solid #fff;
    vertical-align: middle !important;
    border-top: 1px solid #2695DA !important;
}

.table-piano-studi>thead>tr>th:first-child {
    border-left: 1px solid #2695DA;
}

.table-piano-studi>thead>tr>th:last-child {
    border-right: 1px solid #2695DA;
}

.table-piano-studi>tbody>tr>td {
    vertical-align: middle !important;
    text-align: center;
}

.table-piano-studi>tbody>tr>td:first-child {
    text-align: left;
}

/* List */
ul.list {
    margin-left: 20px;
    margin-bottom: 20px;
}

ul.list li:before {
    top: 5px;
}

/* Thumbnails */
.img-thumbnail-container {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
}

.img-thumbnail-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.img-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 4px;
    color: #999;
    margin: 0 auto;
}

.img-placeholder i {
    font-size: 24px;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.new-hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    color: #fff;
}

.new-hero-overlay {
    background: linear-gradient(90deg, rgba(10,30,50,0.85) 0%, rgba(10,30,50,0.4) 60%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

/* Badge categoria e offerta */
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
    margin-bottom: 10px;
}

.hero-badge-category {
    background: #2695DA;
    color: #fff;
}

.hero-badge-offer {
    background: #F23900;
    color: #fff;
}

/* Titolo hero */
.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
}

.hero-title .highlight {
    color: #61bfff;
}

/* Sottotitolo hero */
.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Lista bullet hero */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hero-features li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

.hero-features li i {
    color: #61bfff;
    margin-right: 10px;
}

/* ===========================================
   HERO PRICE BOX CTA
   =========================================== */
.hero-price-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    text-align: center;
    color: #333;
    overflow: hidden;
}


.hero-price-box-body {
    padding: 25px;
}

.hero-price-box h4 {
    margin: 0 0 15px 0;
    text-transform: uppercase;
    color: #555;
    font-size: 13px;
    letter-spacing: 1px;
}

.hero-btn {
    font-weight: bold;
    padding: 16px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 15px;
    display: block;
    width: 100%;
    margin-top: 20px;
    letter-spacing: 0.5px;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

/* Border top colorato sul box */
.hero-price-box {
    border-top: 4px solid #2695DA;
}

.hero-price-box.has-promo {
    border-top: 4px solid #F23900;
}

/* Countdown header - single line */
.hero-countdown-header {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-countdown-header .pulse-icon {
    color: #F23900;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-countdown-header .countdown-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-countdown-header .countdown-timer {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #F23900;
}

/* Price display */
.hero-price-new {
    font-size: 42px;
    font-weight: 800;
    color: #F23900;
    line-height: 1;
    margin-bottom: 5px;
}

.hero-price-new.no-promo {
    color: #212331;
}

.hero-price-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hero-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.hero-discount-badge {
    background: #F23900;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Notes */
.hero-paypal-note {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    margin: 8px 0 0;
}

.hero-secure-note {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
}

/* ===========================================
   MOBILE BOTTOM BAR
   =========================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 15px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
}

.mobile-bottom-bar .price-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.mobile-bottom-bar .price-value {
    font-size: 22px;
    font-weight: 800;
    color: #F23900;
    line-height: 1;
}

.mobile-bottom-bar .price-value.price-normal {
    color: #212331;
}

.mobile-bottom-bar .price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.mobile-bottom-bar .countdown-mini {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #F23900;
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
}

.mobile-bottom-bar .countdown-mini .pulse-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

.mobile-bottom-bar .btn-mobile-cta {
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-bottom-bar .btn-mobile-cta:hover {
    text-decoration: none;
}

/* ===========================================
   TRUST BAR
   =========================================== */
.trust-bar {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.trust-item i {
    color: #2695DA;
    margin-right: 10px;
    font-size: 22px;
}

/* ===========================================
   SEZIONI CONTENUTO
   =========================================== */
.content-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h3 {
    color: #2695DA;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2695DA;
    display: inline-block;
    font-size: 22px;
}

.content-section h3 i {
    margin-right: 10px;
}

/* ===========================================
   PERCHE NOI - BENEFITS GRID
   =========================================== */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.benefit-card {
    flex: 1 1 calc(50% - 15px);
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2695DA;
}

.benefit-card h5 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.benefit-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.benefit-card i {
    color: #2695DA;
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* ===========================================
   BOX VANTAGGI - "Perché Scegliere Questo Corso"
   =========================================== */
.vantaggi-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2695DA;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.vantaggi-box .vantaggi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vantaggi-box .vantaggi-header i {
    font-size: 36px;
    color: #F23900;
}

.vantaggi-box .vantaggi-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1565c0;
    border: none;
    padding: 0;
}

.vantaggi-box .vantaggi-content {
    color: #333;
    line-height: 1.7;
}

.vantaggi-box .vantaggi-content ul {
    padding-left: 20px;
    margin: 0;
}

.vantaggi-box .vantaggi-content li {
    margin-bottom: 10px;
}

/* ===========================================
   BOX GARANZIA - verde gradiente, testo bianco
   =========================================== */
.guarantee-box-new {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    color: #fff;
}

.guarantee-box-new .guarantee-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.guarantee-box-new .guarantee-icon i {
    font-size: 32px;
    color: #fff;
}

.guarantee-box-new .guarantee-title {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
}

.guarantee-box-new .guarantee-content {
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    text-align: center;
}

.guarantee-box-new .guarantee-content p {
    margin-bottom: 10px;
}

.guarantee-box-new .guarantee-content p:last-child {
    margin-bottom: 0;
}

.guarantee-box-new .guarantee-content ul {
    margin: 10px 0 0;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
}

.guarantee-box-new .guarantee-content li {
    margin-bottom: 8px;
}

/* ===========================================
   SOCIAL PROOF / TESTIMONIALS
   =========================================== */
.testimonials-section {
    margin: 30px 0;
}

.review-box {
    border: 1px solid #eee;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
}

.review-stars {
    color: #FFD700;
    margin-bottom: 12px;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.verified-badge {
    color: #28a745;
    font-size: 12px;
    margin-left: 5px;
}

/* ===========================================
   STATS BAR - con icone e sfondo chiaro
   =========================================== */
.stats-bar-new {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 12px;
    margin: 0 0 25px 0;
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.stat-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item-new .stat-icon {
    width: 50px;
    height: 50px;
    background: #2695DA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-item-new .stat-icon i {
    color: #fff;
    font-size: 20px;
}

.stat-item-new .stat-content {
    display: flex;
    flex-direction: column;
}

.stat-item-new .stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #212529;
    line-height: 1.1;
}

.stat-item-new .stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .stats-bar-new {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .stat-item-new {
        justify-content: center;
    }
}

/* Sidebar perché sceglierci */
.sidebar-benefits {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-benefits h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.sidebar-benefits .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
}

.sidebar-benefits .benefit-item:last-child {
    margin-bottom: 0;
}

.sidebar-benefits .benefit-item i {
    color: #28a745;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-price-box {
        margin-top: 30px;
    }
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 767px) {
    .new-hero-section {
        padding: 50px 0;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-features li {
        font-size: 14px;
    }
    body {
        padding-bottom: 70px;
    }

    /* Mobile bottom bar visible */
    .mobile-bottom-bar {
        display: flex;
    }

    /* Trust bar mobile */
    .trust-item {
        margin-bottom: 12px;
        justify-content: flex-start;
        font-size: 14px;
    }

    /* Benefits grid mobile */
    .benefit-card {
        flex: 1 1 100%;
    }

    /* Stats bar mobile */
    .stats-bar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .stat-item .number {
        font-size: 24px;
    }

    /* Review boxes mobile */
    .review-box {
        height: auto;
    }

    /* Sposta WhatsApp sopra la bottom bar */
    #whatsapp-icon {
        bottom: 95px !important;
    }
    #preview-message {
        bottom: 175px !important;
    }
    #jumping-dots {
        bottom: 175px !important;
    }
    #chat-widget {
        bottom: 155px !important;
    }

    /* CookieScript badge */
    #cookiescript_badge {
        bottom: 95px !important;
    }

    /* CookieScript banner pannello */
    #cookiescript_injected {
        bottom: 85px !important;
    }

    /* Google reCAPTCHA badge - nascondi su mobile */
    .grecaptcha-badge {
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   SEZIONE RECENSIONI
═══════════════════════════════════════════════════════════ */
.reviews-section {
    background: #f8f9fa;
    padding: 50px 0;
    margin-top: 30px;
}

.reviews-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.review-stars {
    margin-bottom: 15px;
}

.review-stars .fa-star {
    font-size: 16px;
    margin-right: 2px;
}

.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.review-author strong {
    display: block;
    color: #333;
    font-size: 15px;
}

.review-role {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

/* Box Recensioni - stile Trustpilot */
.reviews-box {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 30px;
}

.reviews-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.reviews-list .review-item {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .reviews-list .review-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.reviews-list .review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.reviews-list .review-stars .star-box {
    width: 20px;
    height: 20px;
    background: #00b67a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-list .review-stars .star-box i {
    color: #fff;
    font-size: 11px;
}

.reviews-list .review-stars .star-box.empty {
    background: #dcdce6;
}

.reviews-list .review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    flex: 1;
}

.reviews-list .review-author {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   VANTAGGI E GARANZIA CONTENT
═══════════════════════════════════════════════════════════ */
.vantaggi-content,
.garanzia-content {
    line-height: 1.7;
}

.vantaggi-content ul,
.garanzia-content ul {
    padding-left: 20px;
}

.vantaggi-content li,
.garanzia-content li {
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - REVIEWS
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .reviews-section {
        padding: 30px 0;
    }

    .reviews-section h3 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .review-card {
        padding: 20px;
    }
}

/* ===========================================
   SIDEBAR BOX RIEPILOGO (senza CTA)
   =========================================== */
.sidebar-box-riepilogo {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-box-riepilogo .box-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-box-riepilogo .box-header h4 {
    color: #333;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-box-riepilogo .box-header h4 i {
    color: #2695DA;
    margin-right: 8px;
}

.sidebar-box-riepilogo .box-body {
    padding: 15px 20px;
}

.sidebar-box-riepilogo .list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box-riepilogo .list-check li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.sidebar-box-riepilogo .list-check li:last-child {
    border-bottom: none;
}

.sidebar-box-riepilogo .check-icon {
    color: #28a745;
}

/* ===========================================
   CART STICKY BOX
   =========================================== */
#cart-sticky-wrapper {
    margin-bottom: 20px;
    position: relative;
}

#cart-sticky-box {
    z-index: 100;
}

/* ===========================================
   FAQ PANEL GROUP (Bootstrap Accordion Style)
   =========================================== */
.faq-section-new {
    margin: 30px 0;
}

.faq-panel-group {
    margin-top: 20px;
}

.faq-panel-group .panel {
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    box-shadow: none;
}

.faq-panel-group .panel-heading {
    padding: 0;
    border-radius: 8px;
    background: #fafafa;
}

.faq-panel-group .panel-heading + .panel-collapse > .panel-body {
    border-top: none;
}

.faq-panel-group .panel-title {
    margin: 0;
}

.faq-panel-group .panel-title a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.faq-panel-group .panel-title a:hover,
.faq-panel-group .panel-title a:focus {
    text-decoration: none;
    color: #333;
}

.faq-panel-group .panel-title a:not(.collapsed) {
    background: #2695DA;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.faq-panel-group .panel-title a span {
    flex: 1;
    padding-right: 15px;
}

.faq-panel-group .panel-title a i {
    transition: transform 0.3s;
    font-size: 12px;
}

.faq-panel-group .panel-title a:not(.collapsed) i {
    transform: rotate(180deg);
}

.faq-panel-group .panel-body {
    padding: 20px;
    color: #555;
    line-height: 1.7;
    background: #fff;
}

.faq-panel-group .panel-body p {
    margin-bottom: 10px;
}

.faq-panel-group .panel-body p:last-child {
    margin-bottom: 0;
}
