/* Stili custom ApriFattura (non generati da Tailwind) */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.gradient-bg {
    background: linear-gradient(135deg, #92A3A0 0%, #C9B8A4 50%, #E8D5C4 100%);
    position: relative;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.card-hover {
    transition: all 0.3s ease;
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-shine:hover::before {
    left: 100%;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Modale download PDF (invoice.html) */
.download-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9990;
    align-items: center;
    justify-content: center;
}

.download-overlay.open {
    display: flex;
}

.download-modal {
    background: white;
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    position: relative;
}

.download-modal .dm-icon {
    font-size: 52px;
    margin-bottom: 10px;
}

.download-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.download-modal .dm-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.download-modal .dm-countdown {
    font-size: 60px;
    font-weight: 800;
    color: #16a34a;
    line-height: 1;
}

.download-modal .dm-countdown-label {
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 22px;
}

.download-modal .dm-skip-btn {
    display: none;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.download-modal .dm-skip-btn.visible {
    display: inline-block;
}

.download-modal .dm-support-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 18px;
}
