/* ========================================
   MOBILE FIRST CSS - Privacy Policy Valkora
   ======================================== */

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

/* Base Mobile (320px+) */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 15px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.7;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 3px solid #667eea;
}

.header h1 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .update-date {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

/* Sezioni */
.section {
    margin-bottom: 35px;
}

.section h2 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h3 {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 12px;
    margin-top: 20px;
    font-weight: 600;
}

.section p {
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Liste */
.list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f9fafb;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.list.green li {
    border-left-color: #10b981;
    background: #ecfdf5;
}

.list.red li {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.list.yellow li {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.list li .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.list li .text {
    flex: 1;
}

.list li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Box Informativo */
.info-box {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.info-box.warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.info-box.success {
    background: #ecfdf5;
    border-color: #10b981;
}

.info-box.danger {
    background: #fef2f2;
    border-color: #ef4444;
}

.info-box h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box p {
    margin-bottom: 0;
}

/* Separator */
.separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #667eea, transparent);
    margin: 30px 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: #f9fafb;
    border-radius: 15px;
    margin-top: 40px;
}

.footer h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer p {
    color: #6b7280;
    margin-bottom: 10px;
}

.footer .contact-info {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.footer .contact-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer .contact-info a:hover {
    text-decoration: underline;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.badge.primary { background: #dbeafe; color: #1e40af; }
.badge.success { background: #d1fae5; color: #065f46; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table th {
    background: #667eea;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.highlight-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.highlight-box p,
.highlight-box li {
    color: rgba(255, 255, 255, 0.95);
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   TABLET (min-width: 480px)
   ======================================== */
@media (min-width: 480px) {
    body {
        font-size: 16px;
        padding: 20px;
    }

    .container {
        padding: 30px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   TABLET LARGE (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
    body {
        padding: 30px;
    }

    .container {
        max-width: 750px;
        padding: 40px;
    }

    .header h1 {
        font-size: 2.3rem;
    }

    .section h2 {
        font-size: 1.7rem;
    }

    .list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .list.single-column {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DESKTOP (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 50px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section h3 {
        font-size: 1.2rem;
    }
}

/* ========================================
   DESKTOP LARGE (min-width: 1400px)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1100px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .back-button {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus visibile per accessibilità */
a:focus,
button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

