/* CSS MODERNO - PARTE 1: BASE E COLORI */

:root {
    --primary-color: #c0af6e;
    --primary-dark: #a89654;
    --primary-light: #d4c58a;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}


.text-left{text-align:left;display:block}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO SECTION - MANTENIAMO QUELLA BUONA */
.event-hero {
    position: relative;
    min-height: 47vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-banner-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-placeholder-content {
    text-align: center;
    color: white;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
}

.event-featured-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
	text-align:center;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.1rem;
}

.meta-icon {
    font-size: 2rem;
}

.event-status {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.event-status.active {
    background: var(--success);
    color: white;
}

.event-status.ended {
    background: var(--error);
    color: white;
}

/* QUICK ACTIONS - MODERNIZZIAMO */
.quick-actions-fixed {
    position: fixed;
    top: 30%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
 background: #0000000a !important;
    color: #7b7878;
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-meta {
        gap: 1rem;
    }
    
    .quick-actions-fixed {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 30px 0;
		
    }
}
/* CSS MODERNO - PARTE 2: TABS E LAYOUT */

/* TABS NAVIGATION - DESIGN MODERNO */
.event-tabs-container {
    margin-top: 20px;
	margin-bottom:60px;
}

.tabs-navigation {
    display: flex;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
justify-content: space-between;
}
.hidden{display:none !important}

.tabs-navigation::-webkit-scrollbar {
    display: none;
}

.tab-btn {
	display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #878466;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    position: relative;
    background: #121212;
}

.tab-btn:hover {
    color: var(--text-primary);
	background: #3c3d3d;
	color:#ccc;
}

.tab-btn.active {
    color: var(--primary-color);
border: 1px solid;
}

.tab-icon {
   
}

.tab-count {
    background: #817b52;
    color: white;
    padding: 8px 15px;
    font-size: 20px;
    font-weight: 600;
    margin-left: 4px;
}

.tab-btn.active .tab-count {
    background: var(--primary-dark);
}

/* TABS CONTENT */
.tabs-content {
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* INFO GRID - LAYOUT MODERNO */
.info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap:10px;
    margin-bottom: 20px;
	
}

.info-card {
    background: #121212;
    padding: 0;

}

.pt40{padding-top: 40px;}

.card-header {
    padding: 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-alt);
	display:none;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-content {
    padding: 24px;
	    background: #121212;
}

.event-description {
      font-size: 18px;
    line-height: 1.7;
    color: #dbdbdb;
}

/* DETAIL GRID - INFO EVENTO */
.detail-grid {
    display: grid;
    gap: 10px;
}



.detail-item:last-child {
    border-bottom: none;
}


.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.detail-info strong {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-info span {
    font-size: 16px;
    color: var(--text-secondary);
}

.price {
    font-weight: 600;
    color: var(--text-primary);
}

.free-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* STATUS BADGES */
.status-badge {
font-weight: 600;
    text-transform: uppercase;
    font-size: 18px;
    text-align: center;
}

.status-badge.ended {
    color: #ff0000;
}

.status-icon {
    font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tabs-navigation {
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .card-header,
    .card-content {
        padding: 20px;
    }
    
    .detail-item {
        padding: 12px 0;
    }
    
    .detail-icon {
        font-size: 18px;
    }
}
/* CSS MODERNO - PARTE 3: GALLERY */

/* GALLERY HEADER */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gallery-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* GALLERY GRID - MODERNO E PULITO */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-item-large {
    position: relative;
 
    overflow: hidden;
    cursor: pointer;
    background: var(--background-alt);
    transition: transform 0.3s ease;
}

.gallery-item-large:hover {
    transform: translateY(-4px);
}

.gallery-item-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-large:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-large:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    color: white;
    font-size: 32px;
    margin-bottom: 8px;
}

.gallery-index {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 12px;
    letter-spacing: 0.5px;
}

/* LIGHTBOX MODERNO */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

/* RESPONSIVE GALLERY */
@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .gallery-item-large {
        aspect-ratio: 1;
    }
    
    .gallery-zoom {
        font-size: 24px;
    }
    
    .gallery-index {
        font-size: 12px;
        padding: 2px 8px;
        bottom: 8px;
        right: 8px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 12px 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 6px 16px;
    }
}
/* CSS MODERNO - PARTE 4: ESPOSITORI */

/* EXHIBITORS HEADER */
.exhibitors-header {
    text-align: center;
    margin-bottom: 50px;
}

.exhibitors-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.exhibitors-header p {
    font-size: 16px;
        color: #e7e7e7;
}

/* EXHIBITORS SHOWCASE - GRID MODERNO */
.exhibitors-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 24px;
    padding: 20px;
    border-radius: 20px;
    background: #121212;
	    border: 1px solid #a1995b96;
}

.exhibitor-showcase-card {
    background: var(--background);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exhibitor-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* EXHIBITOR IMAGE */
.exhibitor-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--background-alt);
}

.exhibitor-image-fixed {
    position: relative;
    overflow: hidden;
    padding:10px;
}


.exhibitor-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exhibitor-banner-fixed {
    width: 100% !important;
 
}


.exhibitor-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: white;
}

.exhibitor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.exhibitor-initials {
    font-size: 36px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* EXHIBITOR INFO */
.exhibitor-info {
    padding: 24px;
	    text-align: center;
}

.exhibitor-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.exhibitor-contact,
.exhibitor-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.exhibitor-contact:last-of-type,
.exhibitor-location:last-of-type {
    margin-bottom: 16px;
}

/* BOOTH INFO */
.booth-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--background-alt);
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    margin-top: 8px;
}

.booth-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booth-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* CONTACT ACTIONS */
.exhibitor-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.contact-btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    background: var(--background);
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.contact-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.contact-btn.primary:hover {
    background: var(--primary-dark);
}

/* EXHIBITOR STATS */
.exhibitor-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--background-alt);
    border-top: 1px solid var(--border-light);
    margin-top: 16px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* RESPONSIVE EXHIBITORS */
@media (max-width: 768px) {
    .exhibitors-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .exhibitor-showcase-card {
        margin: 0 -20px;
        border-left: none;
        border-right: none;
    }
    
    .exhibitor-image {
        height: 180px;
    }
    
    .exhibitor-info {
        padding: 20px;
    }
    
    .exhibitor-info h4 {
        font-size: 18px;
    }
    
    .exhibitor-initials {
        font-size: 28px;
    }
    
    .booth-info {
        width: 100%;
        justify-content: center;
    }
    
    .exhibitor-actions {
        flex-direction: column;
    }
    
    .contact-btn {
        flex: none;
    }
}
/* CSS MODERNO - PARTE 5: FORM REGISTRAZIONE */

/* REGISTRATION HEADER */
.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #b3b3b3;
    margin-bottom: 8px;
}

.registration-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* FORM MODERNO */
.registration-form-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: var(--background);
    border: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.form-section h4 {
    background: var(--background-alt);
    padding: 20px 24px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.form-section .form-help {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--background-alt);
    border-bottom: 1px solid var(--border-light);
    margin: 0;
}

.form-section > *:not(h4):not(.form-help) {
    padding: 0 24px 24px;
}

/* FORM ELEMENTS */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row.half {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.half {
    flex: 1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    background: var(--background);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* FORM WARNING */
.form-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 8px;
}

/* ADDITIONAL PEOPLE */
#additional-people-container-tabs {
    margin-bottom: 24px;
}

.additional-person {
    background: var(--background-alt);
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
    padding: 0;
}

.person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--border-light);
}

.person-number {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.remove-person-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--error);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-person-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.additional-person .form-row {
    padding: 20px;
    margin-bottom: 0;
}

/* FORM ACTIONS */
.form-actions {
    text-align: center;
    padding: 32px 0;
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 4px solid;
}

.alert-error {
    background: #fef2f2;
    border-color: var(--error);
    color: #991b1b;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 4px;
}

.alert li:last-child {
    margin-bottom: 0;
}

/* SUCCESS MESSAGE */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--success);
}

/* RESPONSIVE FORM */
@media (max-width: 768px) {
    .registration-form-tabs {
        margin: 0 -20px;
    }
    
    .form-section {
        border-left: none;
        border-right: none;
    }
    
    .form-section h4,
    .form-section .form-help,
    .form-section > *:not(h4):not(.form-help) {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .form-row.half {
        grid-template-columns: 1fr;
    }
    
    .form-control {
        font-size: 16px; /* Evita zoom su iOS */
    }
    
    .additional-person .form-row {
        padding: 16px;
    }
    
    .person-header {
        padding: 12px 16px;
    }
    
    .remove-person-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* LOADING STATES */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--primary-color); }
.bg-alt { background: var(--background-alt); }
/* CSS OTTIMIZZATO - FORM REGISTRAZIONE COMPATTO */
/* Aggiungi questo CSS dopo quello esistente, sovrascriverà le regole precedenti */

/* FORM COMPATTO E QUADRATO */
.registration-form-tabs {
    max-width: 1000px; /* Più largo per sfruttare spazio */
    margin: 0 auto;
}

.form-section {
    background: var(--background);
    border: 1px solid var(--border-light);
    margin-bottom: 20px; /* Ridotto da 32px */
}

.form-section h4 {
    background: var(--background-alt);
    padding: 16px 20px; /* Ridotto da 20px 24px */
    margin: 0;
    font-size: 16px; /* Ridotto da 18px */
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
	    margin-bottom: 20px;
}

.form-section .form-help {
    padding: 12px 20px; /* Ridotto da 16px 24px */
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--background-alt);
    border-bottom: 1px solid var(--border-light);
    margin: 0;
}

.form-section > *:not(h4):not(.form-help) {
    padding: 0 20px 20px; /* Ridotto padding */
}

/* FORM ELEMENTS COMPATTI E QUADRATI */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default a 2 colonne per sfruttare spazio */
    gap: 16px; /* Ridotto da 20px */
    margin-bottom: 16px; /* Ridotto da 24px */
}

.form-row.single {
    grid-template-columns: 1fr; /* Classe per singola colonna quando serve */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Ridotto da 6px */
}

.form-label {
    font-size: 12px; /* Ridotto da 14px */
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.form-control {
    padding: 10px 12px; /* Ridotto da 12px 16px */
    font-size: 14px; /* Ridotto da 16px */
    border: 1px solid var(--border-color);
    border-radius: 0; /* QUADRATO! */
    background: var(--background);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    -webkit-appearance: none; /* Rimuove styling default iOS */
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none; /* Nessuna ombra */
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* SELECT QUADRATO */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* FORM WARNING COMPATTO */
.form-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 8px 12px; /* Ridotto da 12px 16px */
    font-size: 13px; /* Ridotto da 14px */
    margin-top: 4px; /* Ridotto da 8px */
}

/* ADDITIONAL PEOPLE COMPATTO */
#additional-people-container-tabs {
    margin-bottom: 16px; /* Ridotto da 24px */
}

.additional-person {
    background: var(--background-alt);
    border: 1px solid var(--border-light);
    margin-bottom: 12px; /* Ridotto da 16px */
    padding: 0;
	margin-top:10px;
}

.person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px; /* Ridotto da 16px 20px */
    background: var(--background);
    border-bottom: 1px solid var(--border-light);
}

.person-number {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px; /* Ridotto da 14px */
}

.remove-person-btn {
    width: 28px; /* Ridotto da 32px */
    height: 28px;
    border: none;
    border-radius: 0; /* QUADRATO! */
    background: var(--error);
    color: white;
    font-size: 16px; /* Ridotto da 18px */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-person-btn:hover {
    background: #dc2626;
    transform: scale(1.05); /* Ridotto da 1.1 */
}

.additional-person .form-row {
    padding: 16px; /* Ridotto da 20px */
    margin-bottom: 0;
    grid-template-columns: 1fr 1fr 1fr; /* 3 colonne per nome, cognome, ruolo */
}

/* BOTTONI QUADRATI E COMPATTI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; /* Ridotto da 12px 24px */
    font-size: 13px; /* Ridotto da 14px */
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 0; /* QUADRATO! */
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-large {
    padding: 14px 28px; /* Ridotto da 16px 32px */
    font-size: 14px; /* Ridotto da 16px */
}

.btn-outline {
    background: transparent;
    color: #c5c5c5;
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(192, 175, 110, 0.05);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* FORM ACTIONS COMPATTO */
.form-actions {
    text-align: center;
    padding: 24px 0; /* Ridotto da 32px */
}

/* ALERTS COMPATTI */
.alert {
    padding: 12px 16px; /* Ridotto da 16px 20px */
    margin-bottom: 16px; /* Ridotto da 24px */
    border-left: 4px solid;
    border-radius: 0; /* QUADRATO! */
}

/* LAYOUT OTTIMIZZATO PER DESKTOP */
@media (min-width: 769px) {
    .form-row {
        grid-template-columns: 1fr 1fr; /* Sempre 2 colonne su desktop */
    }
    
    /* Alcuni campi che stanno meglio in singola colonna */
    .form-row.address {
        grid-template-columns: 1fr;
    }
    
    .form-section > *:not(h4):not(.form-help) {
        padding: 0 24px 0px; /* Più padding sui lati per desktop */
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .registration-form-tabs {
        margin: 0 -10px; /* Meno margine laterale */
    }
    
    .form-row,
    .additional-person .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-section h4,
    .form-section .form-help,
    .form-section > *:not(h4):not(.form-help) {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .additional-person .form-row {
        padding: 12px;
    }
    
    .person-header {
        padding: 10px 12px;
    }
}
.detail-grid-two-columns {
    display: grid;
      grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.location-address {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.detail-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-icon {
    font-size: 18px;
    min-width: 20px;
	width:30px;
	margin-top: 10px;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-info strong {
    font-weight: 600;
    color: #adaaaa;
    font-size: 17px;
}

.detail-info span {
    color: #666;
    font-size: 14px;
}

.price {
    font-weight: 600;
    color: #2c5f2d;
}

.free-badge {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive per schermi piccoli */
@media (max-width: 768px) {
    .detail-grid-two-columns {
    
        gap: 15px;
    }
	
	.detail-column {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    flex-wrap: nowrap;
}
}
/* Stili per form intelligente */
.email-check-section {
    margin-bottom: 2rem;
}

.email-check-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.email-check-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.email-check-card p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.email-input-row {
    display: flex;
    justify-content: center;
}

.email-input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    width: 100%;
	height: 40px;
}

.email-input-group .form-control {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
}

.email-input-group .btn {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 600;
	margin-top:20px;
}

.email-input-group .btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.email-status {
    margin-top: 1rem;
}

.welcome-message {
    margin-bottom: 2rem;
}

.welcome-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.welcome-icon {
    font-size: 1.5rem;
}

.welcome-card h4 {
    margin: 0;
    color: var(--primary-color);
}

.welcome-card p {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
}

.previous-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.previous-title {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.event-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.registration-form-smart {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-help {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

#email_tabs[readonly] {
    background: #f8f9fa;
    color: var(--gray);
}

@media (max-width: 768px) {
    .email-input-group {
        flex-direction: column;
    }
    
    .email-check-card {
        padding: 1.5rem;
    }
}
.verified-field {
    background-color: #f8f9fa !important;
    border-color: #28a745 !important;
    border-width: 2px !important;
}

.manual-edit a {
    color: #007bff;
    text-decoration: none;
}

.manual-edit a:hover {
    text-decoration: underline;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa0;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}
/* CSS per Location Widget */

.location-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.location-detail-item {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #9c9663;
}

.location-detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: #9d9d9d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-value {
    color: #ffffff;
    font-size: 1rem;
}

.detail-value a {
    color: #9d9d9d;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.description-text {
    line-height: 1.5;
}

.location-image-container {
    text-align: center;
    margin-bottom: 1rem;
}

.location-image-container img {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .location-details-grid {
        grid-template-columns: 1fr;
    }
}
/* Hero Image con Overlay */
.location-hero-container {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.location-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.location-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem 1.5rem 1.5rem;
}

.location-hero-title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.hero-star {
    margin-left: 0.5rem;
}
/* Featured Images nella Descrizione */
.featured-images-section {
    margin-top: 1.5rem;
}

.featured-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.featured-image-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.featured-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.featured-image-item:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 1.5rem;
    color: white;
}

/* Popup */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.6);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popupImg {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.popup-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
}

.nav-btn {
    background: #007bff;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #0056b3;
}

.image-counter {
    font-weight: 600;
    color: #495057;
}

/* Mobile */
@media (max-width: 768px) {
    .featured-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}
/* HERO RIBBON SYSTEM */
.hero-ribbon {
position: fixed;

    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    height: 75px;
    z-index: 10;
    overflow: hidden;
}



.hero-ribbon::before,
.hero-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Triangolo sinistro */
.hero-ribbon::before {
    left: -25px;
    border-width: 50px 25px 50px 0;
}

.hero-ribbon.featured::before {
    border-color: transparent #e67e22 transparent transparent;
}

.hero-ribbon.ended::before {
    border-color: transparent #7f8c8d transparent transparent;
}

/* Triangolo destro */
.hero-ribbon::after {
    right: -25px;
    border-width: 50px 0 50px 25px;
}

.hero-ribbon.featured::after {
    border-color: transparent transparent transparent #e67e22;
}

.hero-ribbon.ended::after {
    border-color: transparent transparent transparent #7f8c8d;
}

.ribbon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 2rem;
    gap: 1rem;
}

.ribbon-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
	margin-top: -10px;
}

.ribbon-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Animazione subtle */
.hero-ribbon {
    animation: ribbonFloat 3s ease-in-out infinite;
}

@keyframes ribbonFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-ribbon {
        width: 300px;
        height: 80px;
        top: 30px;
    }
    
    .hero-ribbon::before {
        left: -20px;
        border-width: 40px 20px 40px 0;
    }
    
    .hero-ribbon::after {
        right: -20px;
        border-width: 40px 0 40px 20px;
    }
    
    .ribbon-icon {
        font-size: 1.5rem;
    }
    
    .ribbon-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .hero-ribbon {
        width: 250px;
        height: 70px;
        top: 20px;
    }
    
    .hero-ribbon::before {
        border-width: 35px 18px 35px 0;
    }
    
    .hero-ribbon::after {
        border-width: 35px 0 35px 18px;
    }
    
    .ribbon-text {
        font-size: 0.9rem;
    }
}

.video-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 0px));
    gap: 0.9rem;
	justify-content: center;
}
.video-widgets-section{width:100%;min-width: 600px;}
.video-widget {
       background: rgb(254 254 254 / 10%);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
	box-shadow: 1px 0px 20px 6px rgb(255 255 255 / 82%);
}

.video-widget:hover {
    transform: translateY(-5px);
    box-shadow: 110 10px 30px rgba(120,8,12,0.3);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #333;
    font-size: 2rem;
}

.play-overlay {
     position: absolute;
    top: 75%;
    left: 48%;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 63%);
    width: 30px;
    height: 31px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9b274;
    font-size: 1rem;
    padding-left: 3px;
}

.video-info {
    padding: 1rem;
    color: white;
}

.video-info h4 {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.3;
	text-align:center;
}

.featured-badge {
background: #ffffff;
    color: #000;
    padding: 5px 6px;
    border-radius: 14px;
    font-size: 0.7rem;
}
.video-player-container {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
	
}

.video-header {
    background: #1a1a1a;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.video-frame {
    position: relative;
    width: 100%;
    height: 70vh;
}

.video-frame iframe,
.video-frame video {
    width: 100%;
    height: 100%;
}
/* 🎉 SCHERMATA SUCCESSO STYLES */
.registration-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.success-container {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
}

.success-header {
    background: linear-gradient(135deg, #2c5aa0, #3d6db0);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-out;
}

.success-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.success-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.success-content {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

/* EAN CODE CARD */
.code128-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #2c5aa0;
}

.code128-card h2 {
    color: #2c5aa0;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.code128-display {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5aa0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    letter-spacing: 2px;
    margin: 1rem 0;
    border: 2px dashed #2c5aa0;
}

.code-instruction {
    margin: 1rem 0 0 0;
    color: #2c5aa0;
    font-weight: 600;
}

/* CARDS */
.event-details-card,
.additional-people-card,
.instructions-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.event-details-card h3,
.additional-people-card h3,
.instructions-card h3 {
    color: #2c5aa0;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.detail-grid {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
 
}

.detail-label {
    font-weight: 600;
    color: #ffffff;
}

.detail-value {
    color: #9d9d9d;
    font-weight: 500;
}

/* PEOPLE LIST */
.people-list {
    display: grid;
    gap: 0.5rem;
}

.person-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

/* EMAIL STATUS */
.email-status-card {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
}

.email-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.email-warning {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

/* INSTRUCTIONS */
.instruction-steps {
    display: grid;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.step-number {
    background: #2c5aa0;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    color: #495057;
}

/* ACTIONS */
.success-actions {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.success-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .success-container {
        width: 95%;
        margin: 1rem;
    }
    
    .success-header {
        padding: 1.5rem;
    }
    
    .success-content {
        padding: 1.5rem;
    }
    
    .code128-display {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* PRINT STYLES */
@media print {
    .registration-success-overlay {
        position: static;
        background: white;
    }
    
    .success-container {
        box-shadow: none;
        max-height: none;
    }
    
    .success-actions {
        display: none;
    }
}
.barcode-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border: 2px dashed #ddd;
}

.barcode-image {
    max-width: 100%;
    height: auto;
    background: white;
    padding: 10px;
    border-radius: 4px;
}

.code128-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
    letter-spacing: 2px;
}
.no-loco{
	background: #afaa716b;
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border-radius: 25px;
    margin-top: 15px;
    line-height: normal;
    font-weight: 700;
    color: #000000;
}
.no-location-widget {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #b9b274;
    border-radius: 10px;
    margin: 15px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.location-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.location-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.location-text {
    flex: 1;
    color: #b9b274;
    font-size: 15px;
    line-height: 1.5;
    padding-top: 5px;
    font-weight: 400;
}

.location-text em {
    font-style: normal;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .no-location-widget {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .location-icon {
        align-self: center;
    }
}
/* Stili per le informazioni sulla fonte dei dati */
.source-info {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.source-info.global {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 3px solid #2196f3;
}

.source-info.events {
    background: #f3e5f5;
    color: #7b1fa2;
    border-left: 3px solid #9c27b0;
}

/* Migliora il welcome message */
.welcome-message .welcome-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.welcome-icon {
    font-size: 1.5em;
}

/* Stili per eventi precedenti */
.previous-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.event-tag {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin: 2px;
}