/*
 * @file: statuti.css
 * @description: Stili specifici per le pagine degli statuti delle unioni UCOI e UCOIM
 * @author: Altoprofilo Studio
 * @last-updated: 2025-05-14
 * @version: V.1.1
 */

/* ==========================================================================
   LAYOUT GENERALE E CONTENITORI
   ========================================================================== */
   #statuto-ucoi .section,
   #statuto-ucoim .section {
    padding: 3rem 0;
  }
  
  .intro-text {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .statuto-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
  
  .statuto-document {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
  }
  
  /* ==========================================================================
     BOX DOWNLOAD DOCUMENTO
     ========================================================================== */
  .download-box {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 800px;
    transition: var(--transition-normal);
  }
  
  .download-box:hover {
    box-shadow: var(--shadow-lg);
    transform: var(--hover-lift-small);
  }
  
  .download-icon {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .download-icon i {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    color: var(--primary-color);
    margin-bottom: 0;
    stroke: var(--primary-color) !important;
    color: var(--primary-color) !important;
    fill: none !important;
  }
  
  .download-content {
    flex: 1;
    padding-left: 1.5rem;
  }
  
  .download-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .download-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
  }
  
  .download-content .btn .btn-icon {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-bottom: 0;
    stroke: white !important;
    color: white !important;
    fill: none !important;
  }
  
  /* ==========================================================================
     INDICE DEGLI ARTICOLI (TOC)
     ========================================================================== */
  .statuto-toc-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .statuto-toc {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
  }
  
  .toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .toc-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.5rem 0;
  }
  
  .toc-list a {
    display: block;
    padding: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    border-radius: 4px;
  }
  
  .toc-list a:hover {
    background-color: var(--bg-light);
    padding-left: 1rem;
  }
  
  .toc-list a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding-left: 1rem;
  }
  
  /* ==========================================================================
     ARTICOLI DELLO STATUTO
     ========================================================================== */
  .statuto-article {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px; /* Corregge lo scroll per gli ancoraggi */
  }
  
  .statuto-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .article-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
  }
  
  .article-content {
    font-size: 1.05rem;
    line-height: 1.8;
  }
  
  .article-content p {
    margin-bottom: 1rem;
  }
  
  .article-content ul,
  .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
  }
  
  .article-content li {
    margin-bottom: 0.75rem;
  }
  
  .article-list {
    list-style-type: disc;
  }
  
  .organi-list {
    list-style-type: decimal;
    margin-left: 2rem;
  }
  
  /* ==========================================================================
     STILI PER SEZIONI SPECIFICHE (SOCI, PRESIDENTI, ECC.)
     ========================================================================== */
  .soci-description {
    margin-top: 1.5rem;
  }
  
  .soci-description h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
  }
  
  .soci-description p {
    margin-bottom: 1.5rem;
  }
  
  /* Avviso di aggiornamento statuto */
  .statute-update-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: rgba(0, 51, 102, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
  }
  
  .statute-update-notice i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-top: 0.15rem;
    margin-bottom: 0;
    stroke: var(--primary-color) !important;
    color: var(--primary-color) !important;
    fill: none !important;
  }
  
  .statute-update-notice p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
  }
  
  .presidente-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .presidente-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
  }
  
  .presidente-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }
  
  /* ==========================================================================
     BACKGROUND COLORS E VARIANTI UNIONI
     ========================================================================== */
  .bg-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .bg-primary h2,
  .bg-primary p {
    color: white;
  }
  
  /* Variante per UCOIM */
  #statuto-ucoim .article-title {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
  }
  
  #statuto-ucoim .presidente-item {
    border-left-color: var(--secondary-color);
  }
  
  #statuto-ucoim .soci-description h4 {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
  }
  
  #statuto-ucoim .toc-list a {
    color: var(--secondary-color);
  }
  
  #statuto-ucoim .toc-list a.active {
    background-color: var(--secondary-color);
    color: white;
  }
  
  #statuto-ucoim .statute-update-notice {
    border-left-color: var(--secondary-color);
  }
  
  #statuto-ucoim .statute-update-notice i,
  #statuto-ucoim .statute-update-notice p {
    color: var(--secondary-color);
  }
  
  #statuto-ucoim .statute-update-notice i {
    stroke: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
  }
  
  #statuto-ucoim .download-icon i,
  #statuto-ucoim .download-content h3 {
    color: var(--secondary-color);
    stroke: var(--secondary-color) !important;
  }
  
  /* ==========================================================================
     RESPONSIVE DESIGN 
     ========================================================================== */
  @media (max-width: 992px) {
    .statuto-document {
      padding: 2rem;
    }
    
    .presidente-container {
      grid-template-columns: 1fr;
    }
    
    .download-box {
      flex-direction: column;
      text-align: center;
      padding: 1.5rem;
    }
    
    .download-content {
      padding-left: 0;
      padding-top: 1rem;
    }
  }
  
  @media (max-width: 768px) {
    .statuto-document {
      padding: 1.5rem;
      margin: 0 1rem;
    }
    
    .article-title {
      font-size: 1.25rem;
    }
    
    .article-content {
      font-size: 1rem;
    }
    
    .toc-list {
      grid-template-columns: 1fr;
    }
    
    .intro-text {
      font-size: 1rem;
      padding: 0 1rem;
    }
    
    .statuto-toc {
      margin: 1.5rem 1rem;
      padding: 1.5rem;
    }
  }
  
  /* ==========================================================================
     ANIMAZIONI E TRANSIZIONI 
     ========================================================================== */
  .statuto-article {
    transition: all 0.3s ease;
  }
  
  .statuto-article:target {
    background-color: rgba(0, 51, 102, 0.05);
    padding: 1rem;
    border-radius: 8px;
  }
  
  /* Animazione per link attivi nel TOC */
  .toc-list a {
    position: relative;
  }
  
  .toc-list a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  
  .toc-list a:hover::after {
    width: 100%;
  }
  
  .toc-list a.active::after {
    display: none;
  }
  
  /* ==========================================================================
     CTA SEZIONE
     ========================================================================== */
  .cta-section {
    background-color: var(--bg-light);
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
  }
  
  .cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  .cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
  }

  /*
 * CSS aggiuntivo per organizzazione/statuto.html
 * Aggiungere al file statuti.css esistente o creare nuovo file
 */

/* ==========================================================================
   TIMELINE DEGLI STATUTI
   ========================================================================== */
.statute-timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.statute-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-marker.ucoi-marker {
  background-color: var(--primary-color);
  color: white;
}

.timeline-marker.ucoim-marker {
  background-color: var(--secondary-color);
  color: white;
}

.timeline-marker.common-marker {
  background-color: #6c757d;
  color: white;
}

.timeline-marker i {
  width: 20px;
  height: 20px;
  margin: 0;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 350px;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   CARDS DEGLI STATUTI
   ========================================================================== */
.statutes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.statute-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.statute-card:hover {
  box-shadow: var(--shadow-lg);
  transform: var(--hover-lift-small);
}

.statute-card-header {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.05), rgba(0, 51, 102, 0.1));
}

.ucoim-card .statute-card-header {
  background: linear-gradient(135deg, rgba(204, 153, 51, 0.05), rgba(204, 153, 51, 0.1));
}

.statute-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.statute-icon.ucoi-icon {
  background-color: var(--primary-color);
  color: white;
}

.statute-icon.ucoim-icon {
  background-color: var(--secondary-color);
  color: white;
}

.statute-icon i {
  width: 28px;
  height: 28px;
  margin: 0;
}

.statute-title h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.ucoim-card .statute-title h3 {
  color: var(--secondary-color);
}

.statute-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

.statute-card-body {
  padding: 2rem;
}

.statute-meta {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item i {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
  margin: 0;
}

.ucoim-card .meta-item i {
  color: var(--secondary-color);
}

.statute-summary h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.statute-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.statute-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.statute-highlights i {
  width: 16px;
  height: 16px;
  color: var(--success-color);
  margin-top: 0.1rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.statute-card-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.statute-card-footer .btn {
  flex: 1;
  min-width: 150px;
}

.statute-card-footer .btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  margin-bottom: 0;
}

/* ==========================================================================
   TABELLA DI CONFRONTO
   ========================================================================== */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.comparison-table thead th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
}

.comparison-table .ucoi-header {
  color: var(--primary-color);
}

.comparison-table .ucoim-header {
  color: var(--secondary-color);
}

.comparison-table tbody th {
  font-weight: 500;
  color: var(--text-dark);
  background: rgba(0, 51, 102, 0.02);
  min-width: 150px;
}

.comparison-table tbody tr:hover {
  background: rgba(0, 51, 102, 0.02);
}

.comparison-notes {
  margin-top: 2rem;
}

.note-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(0, 51, 102, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.note-icon {
  flex-shrink: 0;
}

.note-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  margin: 0;
}

.note-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.note-content p {
  margin: 0;
  color: var(--text-muted);
}

/* ==========================================================================
   DOCUMENTS GRID
   ========================================================================== */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.document-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
}

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

.document-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.document-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  margin: 0;
}

.document-content h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.document-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .statutes-container {
    grid-template-columns: 1fr;
  }
  
  .statute-card-footer {
    flex-direction: column;
  }
  
  .statute-card-footer .btn {
    flex: none;
  }
}

@media (max-width: 768px) {
  .statute-timeline::before {
    left: 25px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 60px;
  }
  
  .timeline-marker {
    position: absolute;
    left: 0;
    margin: 0;
  }
  
  .timeline-content {
    max-width: none;
  }
  
  .statute-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .statute-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .comparison-table-wrapper {
    font-size: 0.8rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
  }
}