/*
 * @file: sitemap.css
 * @description: Stili per la pagina Mappa del Sito (HTML user-friendly)
 * @author: Altoprofilo Studio
 * @last-updated: 2025-11-04
 * @version: V.1.0
 * @standards: UCOI/UCOIM Standards v3.1, Comments Standards v1.0
 * @dependencies: main.css (variables)
 */

/* ==========================================================================
   SITEMAP PAGE LAYOUT
   ========================================================================== */

.sitemap-page {
  padding: 4rem 2rem;
  background-color: var(--bg-light);
}

.sitemap-page .page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.sitemap-page .page-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.sitemap-page .page-header .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   SITEMAP GRID
   ========================================================================== */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Sitemap Section */
.sitemap-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.sitemap-section:hover {
  box-shadow: var(--shadow-md);
  transform: var(--hover-lift-small);
}

.sitemap-section h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
}

.sitemap-section h2 i {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
}

.sitemap-section h3 {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   SITEMAP LINKS
   ========================================================================== */

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-links li {
  margin-bottom: 0.75rem;
}

.sitemap-links a {
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.sitemap-links a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 1rem;
}

.sitemap-links a::before {
  content: '→';
  color: var(--accent-color);
  font-weight: bold;
  transition: var(--transition-fast);
}

.sitemap-links a:hover::before {
  transform: translateX(4px);
  display: inline-block;
}

/* PDF Links */
.sitemap-links a[href$=".pdf"]::after {
  content: 'PDF';
  font-size: 0.75rem;
  background-color: var(--accent-color);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  margin-left: auto;
  font-weight: 600;
}

/* External Links */
.sitemap-links a[target="_blank"]::after {
  margin-left: 0.5rem;
}

/* ==========================================================================
   SITEMAP INFO BOX
   ========================================================================== */

.sitemap-info {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.sitemap-info h2 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.sitemap-info p {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sitemap-info p:last-child {
  margin-bottom: 0;
}

.sitemap-info a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-color);
  transition: var(--transition-fast);
}

.sitemap-info a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 1199px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .sitemap-section {
    padding: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sitemap-page {
    padding: 2rem 0;
  }

  .sitemap-page .page-header {
    margin-bottom: 2rem;
  }

  .sitemap-page .page-header h1 {
    font-size: 1.75rem;
  }

  .sitemap-page .page-header .lead {
    font-size: 1rem;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sitemap-section {
    padding: 1.25rem;
  }

  .sitemap-section h2 {
    font-size: 1.25rem;
  }

  .sitemap-info {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus visible for keyboard navigation */
.sitemap-links a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sitemap-section {
    border: 2px solid var(--primary-color);
  }

  .sitemap-links a:hover {
    background-color: var(--primary-color);
    color: white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sitemap-section,
  .sitemap-links a,
  .sitemap-links a::before {
    transition: none;
  }

  .sitemap-section:hover {
    transform: none;
  }
}

/* ==========================================================================
   CHANGELOG
   ========================================================================== */
/*
 * v1.0 - 2025-11-04
 * - Initial creation
 * - Grid layout responsive (desktop/tablet/mobile)
 * - Icon integration with Lucide
 * - Hover effects and transitions
 * - PDF badge indicator
 * - Info box styling
 * - Accessibility enhancements
 * - Standards v3.1 compliant
 */
