/* ========================================
   FOOTER MODAL - MODERN LAYOUT
   Sfondo bianco con accenti arancioni
   ======================================== */

@font-face {
    font-family: 'Titillium Web';
    src: url(https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap);
}

/* Footer Info Button */
.footer-info-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1499!important;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Titillium Web', sans-serif;
}

.footer-info-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 153, 0, 0.5);
    background: linear-gradient(135deg, #ff8800 0%, #ff5500 100%);
}

.footer-info-btn i {
    font-size: 18px;
}

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 25px;
    border: 3px solid #ff9900;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) 4;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Footer Modal Overlay */
.footer-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2400;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-modal-overlay.show {
    display: block;
    opacity: 1;
}

/* Footer Modal */
.footer-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    z-index: 2500;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.footer-modal.open {
    bottom: 0;
}

/* Header */
.footer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    flex-shrink: 0;
}

.footer-modal-header h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Tabs */
.footer-modal-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 32px 0;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    flex-shrink: 0;
    overflow-x: auto;
}

.footer-tab {
    padding: 12px 20px;
    background: #ffffff;
    border: none;
    border-radius: 8px 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid #e5e7eb;
    border-bottom: none;
    font-family: 'Titillium Web', sans-serif;
}

.footer-tab:hover {
    background: #fff7ed;
    color: #ff9900;
    border-color: #fed7aa;
}

.footer-tab.active {
    background: #ffffff;
    color: #ff9900;
    border-color: #ff9900;
    border-bottom: 2px solid #ffffff;
    box-shadow: 0 -2px 8px rgba(255, 153, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* Content */
.footer-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #ffffff;
}

.footer-modal-content::-webkit-scrollbar {
    width: 10px;
}

.footer-modal-content::-webkit-scrollbar-track {
    background: #f9fafb;
}

.footer-modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

.footer-modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.footer-tab-content {
    display: none;
}

.footer-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Info Cards */
.info-card {
    background: #ffffff;
    padding: 2px;
    margin-bottom: 2px;
    /*  border-radius: 12px;
  border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
}

.info-card h4 {
    color: #ff9900;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: #ff9900;
}

.info-card p {
    color: #374151;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.info-card strong {
    color: #1f2937;
    font-weight: 700;
}

.info-card a {
    color: #ff9900;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #ff6600;
    text-decoration: underline;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.info-card ul li {
    color: #374151;
    font-size: 15px;
    line-height: 1.8;
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}

.info-card ul li::before {
    content: '▸';
    position: absolute;
    left: 8px;
    color: #ff9900;
    font-weight: bold;
    font-size: 18px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #ff9900;
    transition: all 0.3s ease;
}

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

.info-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

/* Info Note */
.info-note {
    background: #fff7ed;
    border-left: 4px solid #ff9900;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-note strong {
    color: #ff9900;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.info-note p, .info-note ul {
    margin: 10px 0;
}

/* License Box */
.license-box {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.license-box strong {
    color: #10b981;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.license-box ul {
    margin: 12px 0;
}

/* Credits Section */
.credits-section p {
    margin: 16px 0;
}

.credits-section strong {
    color: #ff9900;
    display: block;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    z-index: 2600;
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top-btn.show {
    display: flex;
    opacity: 1;
    animation: fadeInUp 0.3s ease;
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ff5500 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

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

/* Article Content Styling */
h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.8em;
    color:  #1f2937;
    margin-top: 40px;
    margin-bottom: 20px;
  /*  border-left: 5px solid #ff9900;*/
    padding-left: 15px;
    font-weight: 700;
}

h3 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.4em;
    color: #374151;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1em;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 40px;
    font-style: italic;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #ff9900;
}

.category-list ul {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.category-list ul li {
   /* padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;*/
}

.category-list ul li:last-child {
    border-bottom: none;
}

.highlight-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #ff9900;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.15);
}

.highlight-box p {
    margin: 0;
    color: #92400e;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.8;
}

/* Double Underline */
.doppia-sottolineatura {
    position: relative;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    color: #ff9900;
    --distanza-linee: 6px;
    --distanza-testo: 2px;
}

.doppia-sottolineatura::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--distanza-testo));
    height: 2px;
    background-color: #ff9900;
}

.doppia-sottolineatura::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * (var(--distanza-testo) + var(--distanza-linee)));
    height: 2px;
    background-color: #ff9900;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-info-btn {
        bottom: 90px !important;
        padding: 12px 24px;
        font-size: 13px;
		left: 122px !important;
    }
    
    .footer-modal {
        max-height: 100vh;
    }
    
    .footer-modal-header {
        padding: 20px;
    }
    
    .footer-modal-header h3 {
        font-size: 18px;
    }
    
    .footer-modal-tabs {
        padding: 12px 16px 0;
        gap: 4px;
    }
    
    .footer-tab {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .footer-modal-content {
        padding: 24px 16px;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .info-card h4 {
        font-size: 18px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .back-to-top-btn {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}