/* ==========================================================================
   AICARM EVENT PAGE - FULL STYLESHEET 
   Tutte le classi integrate e collegate alle variabili colore
   ========================================================================== */

:root {
    --evt-primary: #A80058;      /* Magenta Istituzionale */
    --evt-secondary: #790040;    /* Magenta Scuro */
    --evt-accent: #8A80EA;       /* Colore Hover / Accento */
    --evt-whatsapp: #25D366;     /* Verde WhatsApp */
    --evt-bg-sticky: #e5e5e5;    /* Grigio Barra Nav */
    --evt-text-light: #ffffff;
    --evt-text-muted: #666666;
    --evt-border: #a80058;
}

/* 1. RESET & STRUTTURA BASE
   ========================================================================== */
.evt-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    position: relative;
}

.evt-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.evt-clearfix { clear: both; height: 0px; width: 100%; display: block; }

#sticky-spacer {
    display: block;
    height: 0px;
    width: 100%;
    background: transparent;
}

/* Fix per le ancore (scroll fluido sotto la barra) */
.evt-container :target {
    scroll-margin-top: 100px;
}

/* 2. HEADER EVENTO (HERO)
   ========================================================================== */
.evt-header-image {
    width: 100%;
    min-height: 600px; 
    background-color: var(--evt-primary);
    display: flex;
    align-items: center;
    padding: 20px 20px 40px 20px;
    color: var(--evt-text-light);
}

.evt-header-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.evt-overlay-content { flex: 2; text-align: left; padding-right: 30px; z-index: 2; }
.evt-header-image-container { flex: 1; display: flex; justify-content: center; align-items: center; }
.evt-header-image-container img { max-width: 100%; max-height: 400px; border-radius: 8px; }

/* Tipografia Header */
.evt-main-title { font-size: 40px !important; margin-bottom: 10px; font-weight: bold !important; color: var(--evt-text-light) !important; }
.evt-subtitle { font-size: 32px; margin-bottom: 20px; color: var(--evt-text-light); }
.evt-date-location { font-size: 24px; font-weight: bold; margin-bottom: 5px; }
.evt-location { font-size: 28px; margin-bottom: 20px; }
.evt-description { font-size: 18px; margin-bottom: 30px; line-height: 1.6; }
.evt-description-relat { font-size: 18px; font-style: italic; margin-bottom: 30px; line-height: 1.6; }

.evt-header-buttons { display: flex; gap: 15px; margin-top: 30px; }

/* 3. STICKY BAR & NAVIGAZIONE
   ========================================================================== */
.evt-sticky-bar {
    width: 100%;
    background-color: var(--evt-bg-sticky) !important;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    margin-bottom: 60px;
}

.evt-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Counter */
.evt-counter { display: flex; gap: 20px; }
.evt-count-item { text-align: center; color: var(--evt-primary); }
.evt-count-value { font-size: 40px; font-weight: bold; }
.evt-count-label { font-size: 12px; color: var(--evt-text-muted); }

/* Nav Links */
.evt-nav-links { display: flex; gap: 30px; }
.evt-nav-link {
    text-decoration: none;
    color: var(--evt-primary);
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
}
.evt-nav-link:hover { color: var(--evt-accent); }

/* Status & Buttons Container */
.evt-buttons-container { display: flex; align-items: center; gap: 15px; }
.evt-event-status { font-weight: bold; color: var(--evt-primary); margin-right: 10px; }
.evt-buttons { display: flex; gap: 10px; }

/* 4. PULSANTI (BUTTONS)
   ========================================================================== */
.evt-btn {
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.evt-btn-primary { background-color: #A00058 !important; color: var(--evt-text-light) !important; }
.evt-btn-secondary { background-color: var(--evt-primary) !important; color: var(--evt-text-light) !important; }

.evt-btn-header {
    padding: 15px 25px;
    font-size: 16px;
    color: var(--evt-text-light) !important;
}
.evt-btn-header.evt-btn-primary { background-color: var(--evt-secondary) !important; }

.evt-btn:hover { background-color: var(--evt-accent) !important; color: var(--evt-text-light) !important; }

/* 5. CONTENUTO CENTRALE (BODY TEXT)
   ========================================================================== */
.evt-content { padding: 20px; margin-top: 40px; line-height: 1.6; }
.evt-content h1, .evt-content p { margin-bottom: 15px; }

.evt-content h2, .evt-content h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--evt-primary);
    border-bottom: 1px solid var(--evt-border);
    padding-bottom: 10px;
}
.evt-content-first h2 { margin-top: 5px; margin-bottom: 5px; }
.evt-content h3 { font-size: 24px !important; }

/* 6. RELATORI (SPEAKERS SPOSTATO IN AICARM STYLE)
   ========================================================================== 
.evt-relatore-container { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; transition: all 0.3s ease; }

.evt-relatore-img {
    width: 120px; height: 120px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0; box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    position: relative; transition: transform 0.3s ease;
}
.evt-relatore-img img { width: 100%; height: 100%; object-fit: cover; }
.evt-relatore-img:hover { transform: scale(1.05); }

.evt-relatore-info { flex: 1; }
.evt-relatore-nome {
    font-weight: bold; color: var(--evt-secondary);
    font-size: 18px; margin-bottom: 5px; position: relative; display: inline-block;
}
.evt-relatore-nome::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -2px; left: 0; background-color: var(--evt-primary); transition: width 0.3s ease;
}
.evt-relatore-nome:hover::after { width: 100%; }

.evt-relatore-ruolo { font-style: italic; color: var(--evt-text-muted); margin-bottom: 10px; font-size: 16px; }
.evt-relatore-desc { line-height: 1.6; }
.evt-relatore-link { text-decoration: none; color: inherit; display: block; }
*/

/* 7. UTILITY & SHARING
   ========================================================================== */
.evt-share-container-mini { margin: 8px 0; display: flex; justify-content: flex-start; }
.evt-share-btn-mini {
    display: inline-flex; align-items: center; padding: 6px 12px;
    border-radius: 4px; background-color: var(--evt-whatsapp);
    color: var(--evt-text-light) !important; text-decoration: none; font-size: 14px;
}
.evt-share-btn-mini svg { margin-right: 5px; width: 16px; height: 16px; }

/* 8. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .evt-header-content-wrapper { flex-direction: column; }
    .evt-header-image-container { order: -1; margin-bottom: 30px; }
    .evt-sticky-bar { justify-content: center; gap: 15px; }
    .evt-counter { width: 100%; justify-content: center; }
    .evt-nav-links { order: 3; width: 100%; justify-content: center; margin-top: 10px; }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .evt-header-image { min-height: 400px; padding: 30px 15px 60px; }
    .evt-main-title { font-size: 28px !important; }
    .evt-subtitle { font-size: 22px !important; }
    .evt-relatore-container { flex-direction: column; align-items: center; text-align: center; }
    
    /* Mobile Sticky Bar Row */
    .evt-mobile-top-row { display: flex !important; justify-content: space-between !important; width: 100%; margin-bottom: 10px; }
    .evt-mobile-date { font-size: 20px !important; font-weight: bold; color: var(--evt-primary); }
    
    #stickyBar .evt-counter, #stickyBar .evt-event-status { display: none !important; }
    .evt-buttons-container { flex-direction: column; align-items: center; }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .evt-nav-links { flex-direction: column !important; align-items: center; gap: 10px; }
    .evt-buttons { flex-direction: column; width: 100%; }
    .evt-btn { width: 100%; text-align: center; }
}