/* Safeguarding Policy Styles */

/* Sezione introduttiva migliorata */
.intro-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
    border-radius: 15px 15px 0 0;
}

.intro-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-3px);
}

.highlight-box i {
    font-size: 2rem;
    color: #007bff;
}

.highlight-box h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-weight: 600;
}

.highlight-box p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Indice dei contenuti */
.table-of-contents {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.toc-item.active {
    background: #007bff !important;
    color: white !important;
    border-left-color: #0056b3 !important;
    transform: translateX(5px);
}

.toc-item.active i {
    color: white !important;
}

.toc-item:hover {
    background: #007bff;
    color: white;
    border-left-color: #0056b3;
    transform: translateX(5px);
}

.toc-item i {
    font-size: 1.25rem;
    color: #007bff;
    transition: color 0.3s ease;
}

.toc-item:hover i {
    color: white;
}

/* Miglioramento delle griglie esistenti */
.violations-grid,
.organization-grid,
.protections-grid,
.procedures-grid,
.resources-grid {
    gap: 1.5rem;
    margin-top: 2rem;
}

.violation-card,
.org-card,
.protection-card,
.resource-card {
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.violation-card:hover,
.org-card:hover,
.protection-card:hover,
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Sezione emergenza migliorata */
.emergency-section {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.emergency-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-card.featured {
    background: white;
    color: #333;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-avatar i {
    font-size: 4rem;
    color: #dc3545;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 50%;
}

.contact-info h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.contact-role {
    text-align: center;
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item i {
    color: #dc3545;
    font-size: 1.25rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #dc3545;
}

.contact-availability {
    text-align: center;
    background: #e7f3ff;
    padding: 0.75rem;
    border-radius: 8px;
    color: #0056b3;
    font-weight: 500;
}

/* Info boxes nella sezione emergenza */
.emergency-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-box h4 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.info-box li:last-child {
    border-bottom: none;
}

/* Procedure steps migliorati */
.procedure-step {
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.procedure-step:hover {
    border-color: #007bff;
    transform: translateY(-3px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 1.5rem;
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.procedure-step h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* Lista obblighi migliorata */
.obligations-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.obligations-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.obligations-list li:hover {
    background: #e7f3ff;
    border-left-color: #007bff;
    transform: translateX(5px);
}

.obligations-list li i {
    color: #28a745;
    font-size: 1.25rem;
}

/* Nota importante */
.important-note {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #333;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.important-note::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(50px); }
}

.note-icon {
    position: relative;
    z-index: 1;
}

.note-icon i {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.important-note h3,
.important-note p {
    position: relative;
    z-index: 1;
}

/* Sezione download */
.download-section {
    text-align: center;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.download-note {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Training areas */
.training-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.training-area {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.training-area:hover {
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0,123,255,0.1);
}

.training-area h4 {
    color: #007bff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.training-area ul {
    list-style: none;
    padding: 0;
}

.training-area li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.training-area li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.training-area li:last-child {
    border-bottom: none;
}

/* Meta informazioni footer */
.policy-footer {
    border-top: 2px solid #e9ecef;
    margin-top: 3rem;
    padding-top: 2rem;
}

.policy-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-info i {
    color: #007bff;
}

.policy-note {
    text-align: center;
    padding: 1rem;
    background: #e7f3ff;
    border-radius: 8px;
    color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-highlight {
        grid-template-columns: 1fr;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .violations-grid,
    .organization-grid,
    .protections-grid,
    .procedures-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-info {
        grid-template-columns: 1fr;
    }
    
    .training-areas {
        grid-template-columns: 1fr;
    }
    
    .policy-meta {
        grid-template-columns: 1fr;
    }
    
    .contact-card.featured {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .intro-section {
        padding: 1.5rem;
    }
    
    .emergency-section {
        padding: 1.5rem;
    }
}

/* Animazioni e transizioni fluide */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-section {
    animation: fadeInUp 0.6s ease-out;
}

.policy-section:nth-child(even) {
    animation-delay: 0.1s;
}

.policy-section:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Miglioramenti di accessibilità */
.toc-item:focus,
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .toc-item,
    .btn,
    .social-links {
        display: none;
    }
    
    .policy-section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .emergency-section {
        background: white !important;
        color: black !important;
        border: 2px solid #333;
    }
}
