/**
 * GDPR Styles - Studio Audino Gnatologia
 * Stili per banner GDPR e conformità privacy
 * 
 * @author DadoMediaWeb
 * @version 1.0
 * @since 2025-01-29
 */

/* GDPR Banner */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

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

.gdpr-banner h5 {
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gdpr-banner p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.gdpr-banner a {
    color: #3498db;
    text-decoration: underline;
}

.gdpr-banner a:hover {
    color: #5dade2;
}

.gdpr-banner .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
}

.gdpr-banner .btn-outline-light {
    border-color: #ecf0f1;
    color: #ecf0f1;
}

.gdpr-banner .btn-outline-light:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.gdpr-banner .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.gdpr-banner .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Privacy Policy Styles */
.privacy-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.privacy-hero .container {
    position: relative;
    z-index: 2;
}

.privacy-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.privacy-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.privacy-hero-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.privacy-document {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 3rem;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border: 1px solid #e9ecef;
}

.privacy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.privacy-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.privacy-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

.privacy-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    position: relative;
}

.privacy-section li::marker {
    color: #667eea;
}

.privacy-section p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.privacy-contacts {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid #667eea;
}

.privacy-contacts a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.privacy-contacts a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Form GDPR Styles */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.form-check-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-settings.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-settings h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cookie-category h4 {
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-category p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-toggle .form-check {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gdpr-banner {
        padding: 1rem 0;
    }
    
    .gdpr-banner .row {
        text-align: center;
    }
    
    .gdpr-banner .col-lg-4 {
        margin-top: 1rem;
    }
    
    .privacy-hero-title {
        font-size: 2rem;
    }
    
    .privacy-document {
        padding: 2rem 1.5rem;
        margin-top: -30px;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .privacy-contacts {
        padding: 1.5rem;
    }
    
    .cookie-settings {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gdpr-banner .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .gdpr-banner .btn:last-child {
        margin-bottom: 0;
    }
    
    .privacy-hero {
        padding: 100px 0 60px;
    }
    
    .privacy-hero-title {
        font-size: 1.8rem;
    }
    
    .privacy-document {
        padding: 1.5rem 1rem;
        margin-top: -20px;
    }
}

/* Print Styles */
@media print {
    .gdpr-banner,
    .cookie-settings {
        display: none !important;
    }
    
    .privacy-document {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}



