/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 2rem 0;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

/* Home Button */
.home-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.home-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.home-button:active {
    transform: translateY(0);
}

.home-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.home-text {
    white-space: nowrap;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.language-selector label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.language-selector select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background: white;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-selector select:hover {
    border-color: #3b82f6;
}

.language-selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 2rem 0;
}

.search-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.search-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Search Form */
.search-form {
    margin-bottom: 2rem;
}

.search-input-container {
    position: relative;
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

#productCode {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1.125rem;
    background: transparent;
    color: #1e293b;
}

#productCode::placeholder {
    color: #94a3b8;
}

.search-button {
    background: #3b82f6;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.search-button:active {
    transform: scale(0.95);
}

.search-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.search-icon {
    width: 24px;
    height: 24px;
    color: white;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    animation: slideIn 0.3s ease;
}

.error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results */
.results-container {
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

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

.product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    min-height: 300px;
}

/* Layout desktop: foto sopra, info sotto */
@media (min-width: 769px) {
    .product-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .product-image-container {
        order: 1;
        max-height: 400px;
    }
    
    .product-info {
        order: 2;
        padding: 2rem;
    }
}

/* Layout quando non c'è immagine */
.product-card.no-image {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.product-card.no-image .product-image-container {
    display: none;
}

.product-image-container {
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-height: 400px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    width: auto;
    height: auto;
}

.brand-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    height: 32px;
    width: auto;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-code {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

.product-description {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-label {
    font-weight: 500;
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.detail-value.price {
    color: #059669;
    font-size: 1.125rem;
}

.detail-value.availability {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-value.availability.available {
    background: #dcfce7;
    color: #166534;
}

.detail-value.availability.unavailable {
    background: #fef2f2;
    color: #dc2626;
}

/* Sezione Smaltimento */
.smaltimento-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.smaltimento-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smaltimento-title::before {
    content: "♻️";
    font-size: 1.5rem;
}

.smaltimento-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.smaltimento-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.smaltimento-link:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.smaltimento-link.external:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Popup Tabella Riciclo */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.popup-close svg {
    width: 24px;
    height: 24px;
}

.popup-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.riciclo-content {
    display: grid;
    gap: 1.5rem;
}

.riciclo-categoria {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.categoria-header {
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.categoria-header::before {
    content: "📦";
    font-size: 1.25rem;
}

.categoria-body {
    padding: 1.5rem;
}

.codici-grid {
    display: grid;
    gap: 1rem;
}

.codice-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.codice-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.codice-codice {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.codice-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.codice-materiale {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.codice-descrizione {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.codice-conferimento {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    text-align: right;
}

.codice-categoria {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: white;
}

.codice-note {
    color: #64748b;
    font-size: 0.75rem;
    font-style: italic;
}

/* Colori per categorie */
.categoria-carta .categoria-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.categoria-carta .codice-item { border-left-color: #059669; }
.categoria-carta .codice-categoria { background: #059669; }

.categoria-plastica .categoria-header { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.categoria-plastica .codice-item { border-left-color: #dc2626; }
.categoria-plastica .codice-categoria { background: #dc2626; }

.categoria-vetro .categoria-header { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.categoria-vetro .codice-item { border-left-color: #0891b2; }
.categoria-vetro .codice-categoria { background: #0891b2; }

.categoria-metalli .categoria-header { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.categoria-metalli .codice-item { border-left-color: #7c3aed; }
.categoria-metalli .codice-categoria { background: #7c3aed; }

.categoria-indifferenziato .categoria-header { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }
.categoria-indifferenziato .codice-item { border-left-color: #64748b; }
.categoria-indifferenziato .codice-categoria { background: #64748b; }

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 16px;
        align-items: center;
        justify-content: space-between;
    }
    
    .home-button {
        order: 1;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .home-text {
        display: none;
    }
    
    .logo-container {
        order: 2;
        flex: 1;
        text-align: center;
        margin: 0 0.5rem;
    }
    
    .logo-container img {
        max-height: 35px;
    }
    
    .language-selector {
        order: 3;
        flex-shrink: 0;
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }
    
    .language-selector label {
        font-size: 0.75rem;
        display: none;
    }
    
    .language-selector select {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-subtitle {
        font-size: 1rem;
    }
    
    .search-input-container {
        flex-direction: column;
        border-radius: 12px;
    }
    
    #productCode {
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .search-button {
        border-radius: 0 0 12px 12px;
    }
    
    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-card.no-image {
        grid-template-columns: 1fr;
    }
    
    .product-image-container {
        padding: 1.5rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    /* Popup mobile */
    .popup-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .popup-header {
        padding: 1rem 1.5rem;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-body {
        padding: 1rem;
        max-height: 70vh;
    }
    
    /* Allineamento generale popup su mobile */
    .riciclo-content {
        text-align: left;
    }
    
    .categoria-body {
        text-align: left;
    }
    
    .codici-grid {
        text-align: left;
    }
    
    .codice-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: left;
    }
    
    .codice-conferimento {
        align-items: flex-start;
        text-align: left;
    }
    
    .smaltimento-links {
        gap: 0.5rem;
    }
    
    .smaltimento-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 60px;
    }
    
    .search-title {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 0.5rem 0 1rem 0;
    }
    
    .search-container {
        margin-bottom: 1rem;
    }
    
    .home-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .language-selector {
        padding: 0.2rem 0.4rem;
    }
    
    .language-selector select {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
#productCode:focus {
    outline: none;
}

.search-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .search-input-container {
        border: 2px solid #000;
    }
    
    .product-card {
        border: 2px solid #000;
    }
}

/* Box Informazioni Principali */
.main-info-box {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .main-info-box .product-name {
        margin: 0 0 0.75rem 0;
        color: #1e293b;
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
    }

.main-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.main-details .detail-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.main-details .detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    min-width: fit-content;
}

.main-details .detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

/* Box Dettagli Prodotto */
.multimedia-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.multimedia-download-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.multimedia-download-btn:active {
    transform: translateY(0);
}

.download-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.product-details-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-details-box h3 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-group {
    margin-bottom: 1rem;
}

.detail-group:last-child {
    margin-bottom: 0;
}

.detail-group h4 {
    margin: 0 0 0.25rem 0;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.detail-label {
    font-weight: 500;
    color: #666;
    min-width: 100px;
    font-size: 0.8rem;
}

.detail-value {
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
}

.detail-value.availability.available {
    color: #28a745;
    font-weight: 500;
}

.detail-value.availability.unavailable {
    color: #dc3545;
    font-weight: 500;
}

/* Responsive per dettagli prodotto */
@media (max-width: 768px) {
    .main-info-box {
        padding: 0.75rem;
    }
    
    .main-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .main-details .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        white-space: normal;
    }
    
    .product-details-box {
        padding: 0.75rem;
    }
    
    .product-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-label {
        min-width: auto;
        font-weight: 600;
        font-size: 0.75rem;
        text-align: left;
    }
    
    .detail-value {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .main-info-box .product-name {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .main-details .detail-value {
        text-align: left;
    }
    
    .product-details {
        text-align: left;
    }
    
    .detail-group h4 {
        text-align: left;
    }
    
    .riciclo-subtitle {
        font-size: 0.85rem;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .riciclo-footer {
        font-size: 0.8rem;
        padding: 0.75rem;
        margin-top: 1rem;
    }
}

/* Colori Brand */
.brand-due-esse-distribuzioni {
    color: #1e40af !important; /* Blu scuro */
    font-weight: 600;
}

.brand-due-esse-christmas {
    color: #dc2626 !important; /* Rosso scuro */
    font-weight: 600;
}

.brand-la-nuova-pirotecnica {
    color: #16a34a !important; /* Verde scuro */
    font-weight: 600;
}

/* Stili per popup riciclo */
.riciclo-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    line-height: 1.4;
}

.riciclo-footer {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

/* Stili per popup RAEE */
.raee-info {
    padding: 1rem;
}

.raee-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.raee-content-text {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

/* Allineamento mobile per RAEE */
@media (max-width: 768px) {
    .raee-content-text {
        text-align: left;
        padding: 1rem;
        font-size: 0.85rem;
    }
}

.raee-loading {
    text-align: center;
    padding: 2rem;
}

.raee-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.raee-loading p {
    color: #64748b;
    font-size: 0.9rem;
}
