/* ===========================================
   WEBINAR STYLES - Stili dedicati per le pagine webinar
   =========================================== */

/* ===========================================
   WEBINAR LIST SECTION
   =========================================== */
#webinar-list {
    padding: 5rem 0;
    background: linear-gradient(to bottom, hsl(var(--background)), rgb(249 250 251));
    scroll-margin-top: 5rem;
}

#webinar-list .container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
#webinar-list header {
    text-align: center;
}

#webinar-list .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: 9999px;
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#webinar-list h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

#webinar-list header > p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.625;
}

/* Loading State */
#webinar-list .loading {
    text-align: center;
    padding: 3rem 0;
}

#webinar-list .spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 2px solid hsl(var(--border));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#webinar-list .loading p {
    margin-top: 1rem;
    color: hsl(var(--muted-foreground));
}

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

/* Empty State */
#webinar-list .empty-state {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

#webinar-list .empty-state svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: hsl(var(--muted-foreground));
}

#webinar-list .empty-state p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
}

/* Webinar Items List */
#webinar-list .webinar-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stats Footer */
#webinar-list .stats-footer {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--accent) / 0.1) 50%, hsl(var(--primary) / 0.05) 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

#webinar-list .stats-footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

#webinar-list .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

#webinar-list .stat-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
}

#webinar-list .stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

#webinar-list .stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* Responsive */
@media (min-width: 768px) {
    #webinar-list h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    #webinar-list .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===========================================
   WEBINAR CARD COMPONENT
   =========================================== */
.webinar-card {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid hsl(var(--primary) / 0.1);
    transition: all 0.3s ease;
}

.webinar-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Color variants usando data attributes */
.webinar-card[data-color="white"] {
    background: white;
}

.webinar-card[data-color="blue"] {
    background: rgb(239 246 255);
}

.webinar-card[data-color="orange"] {
    background: rgb(255 247 237);
}

.webinar-card[data-color="green"] {
    background: rgb(240 253 244);
}

.webinar-card[data-color="purple"] {
    background: rgb(250 245 255);
}

.webinar-card[data-color="gray"] {
    background: rgb(249 250 251);
}

.webinar-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.webinar-card .card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--primary) / 0.2);
    text-align: center;
}

.webinar-card .cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
    border-radius: 9999px;
    font-weight: 600;
    color: hsl(var(--primary));
}

.webinar-card .cta-badge svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===========================================
   WEBINAR HEADER COMPONENT (dentro card)
   =========================================== */
.webinar-header {
    margin-bottom: 1.5rem;
}

.webinar-header .header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.webinar-header .number-badge {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    flex-shrink: 0;
}

.webinar-header .number-badge span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.webinar-header .header-info {
    flex: 1;
}

.webinar-header .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.webinar-header .meta svg {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--muted-foreground));
}

.webinar-header .meta span {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

  .webinar-header h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.25;
  }

.webinar-header .subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    font-style: italic;
}

.webinar-header .description {
    color: hsl(var(--foreground));
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.webinar-header .promise-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(to right, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
    border-radius: var(--radius);
    border-left: 3px solid hsl(var(--primary));
    margin-bottom: 1.5rem;
}

.webinar-header .promise-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.webinar-header .promise-badge span {
    font-weight: 500;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

/* ===========================================
   WEBINAR LEARNING COMPONENT
   =========================================== */
.learning-section {
    margin-bottom: 1.5rem;
}

.learning-section header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.learning-section .icon-wrapper {
    width: 2rem;
    height: 2rem;
    background: hsl(var(--primary) / 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-section .icon-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
}

.learning-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.learning-section .learning-points {
    display: grid;
    gap: 0.75rem;
}

.learning-section .point-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: hsl(var(--primary) / 0.05);
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.learning-section .point-item:hover {
    background: hsl(var(--primary) / 0.1);
}

.learning-section .point-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.learning-section .point-item span {
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

/* ===========================================
   WEBINAR PROGRAM COMPONENT
   =========================================== */
.program-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.program-header .icon-wrapper {
    width: 2rem;
    height: 2rem;
    background: hsl(var(--accent) / 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-header .icon-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--accent));
}

.program-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.program-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-sections .section-item {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
}

.program-sections .section-item:not([data-last="true"]) {
    border-left: 2px solid hsl(var(--primary) / 0.2);
}

.program-sections .section-marker {
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    border: 2px solid white;
}

.program-sections h5 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.program-sections ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.program-sections ul li {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.program-sections .bullet-icon {
    color: hsl(var(--primary));
}

/* ===========================================
   WEBINAR EXERCISE COMPONENT
   =========================================== */
.exercise-section {
    padding: 1.25rem;
    background: linear-gradient(to bottom right, rgb(255 247 237), rgb(254 252 232));
    border-radius: var(--radius);
    border: 2px solid hsl(var(--primary) / 0.2);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.exercise-section header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.exercise-section .icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    flex-shrink: 0;
}

.exercise-section .icon-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.exercise-section .header-text {
    flex: 1;
}

.exercise-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.exercise-section .header-text p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.exercise-section .implementation-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exercise-section .step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
}

.exercise-section .step-number {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.exercise-section .step-item span {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    padding-top: 0.125rem;
}

/* ===========================================
   WEBINAR HERO (Page Hero)
   =========================================== */
.webinar-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

  .webinar-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/bg-dark.webp') center/cover;
    z-index: 0;
  }

.webinar-hero .container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    max-width: 72rem;
    margin: 0 auto;
}

.webinar-hero .hero-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.webinar-hero .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.webinar-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.25;
}

.webinar-hero .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.625;
}

.webinar-hero .actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
}

@media (min-width: 640px) {
    .webinar-hero .actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .webinar-hero h1 {
        font-size: 3rem;
    }
    
    .webinar-hero .subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .webinar-hero h1 {
        font-size: 3.75rem;
    }
}
