@charset "UTF-8";

/**
 * ===========================================================================
 * PERCHE-ADERIRE.CSS - Pagina Perché Aderire
 * ===========================================================================
 * @file:        /css/pages/perche-aderire.css
 * @description: Stili specifici per la pagina Perché aderire e sue derivazioni
 * @author:      Altoprofilo Studio
 * @version:     1.1
 * @updated:     2025-11-03
 * @dependencies: main.css
 * 
 * @changelog:
 * - v1.1 (2025-11-03): File audit - corretta dependency (base.css → main.css)
 * - v1.0 (2025-10-28): Adattamento da come-aderire.css per perche-aderire
 * 
 * @notes:
 * - Usa body#perche-aderire per tutti i selettori
 * - Supporta varianti UCOI/UCOIM con classi .ucoim-section
 * ===========================================================================
 */

/* ==========================================================================
   STILI GENERALI PER PAGINE ADESIONE
   ========================================================================== */
/* Corpo pagina con variante per sezione specifica */
body#perche-aderire .section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

body#perche-aderire .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Variante per UCOIM */
body#perche-aderire.ucoim-section .section-title::after {
  background-color: var(--secondary-color);
}

/* Miglioramento intro text */
body#perche-aderire .intro-text {
  max-width: 800px;
  margin: 2rem auto 3rem;
  text-align: center;
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
}

body#perche-aderire .intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

body#perche-aderire .intro-text p:last-child {
  margin-bottom: 0;
}

/* Variante per UCOIM */
body#perche-aderire.ucoim-section .intro-text {
  border-left-color: var(--secondary-color);
  border-right-color: var(--secondary-color);
}

/* ==========================================================================
   DETTAGLI QUOTA ASSOCIATIVA
   ========================================================================== */
.quota-details {
  background-color: var(--bg-light);
  border-radius: 8px;
  margin: 1.5rem 0;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary-color);
}

.detail-item {
  display: flex;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.detail-label {
  flex: 0 0 150px;
  font-weight: 600;
  color: var(--primary-color);
}

.detail-value {
  flex: 1;
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Variante per UCOIM */
.ucoim-section .quota-details {
  border-left-color: var(--secondary-color);
}

.ucoim-section .detail-label {
  color: var(--secondary-color);
}

/* ==========================================================================
   COMPONENTI SPECIFICI
   ========================================================================== */
/* Note informative */
.note {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.note-highlight {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(245, 124, 0, 0.1);
  border-radius: 8px;
}

.note-highlight i {
  flex-shrink: 0;
  margin-right: 1rem;
  width: 24px;
  height: 24px;
  color: var(--accent-color);
}

.note-highlight p {
  margin: 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Layout contatti più adatto per pagina adesione */
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.contatto-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: var(--transition-fast);
  border-top: 3px solid var(--primary-color);
  height: 100%;
}

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

.contatto-title {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Variante per UCOIM */
.ucoim-section .contatto-box {
  border-top-color: var(--secondary-color);
}

.ucoim-section .contatto-title {
  color: var(--secondary-color);
}

/* Stili specifici per la lista contatti */
.contatti-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contatti-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contatti-list li:last-child {
  margin-bottom: 0;
}

.contatti-list i {
  flex-shrink: 0;
  margin-right: 1rem;
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-color);
}

.contatti-list .contatto-info {
  flex: 1;
}

.contatti-list .contatto-info strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contatti-list a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contatti-list a:hover {
  text-decoration: underline;
}

/* Variante per UCOIM */
.ucoim-section .contatti-list i,
.ucoim-section .contatti-list a {
  color: var(--secondary-color);
}

/* ==========================================================================
   ANIMAZIONI CONTATORI
   ========================================================================== */
.count-up {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.count-up .number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-heading);
  color: var(--primary-color);
}

.count-up .plus {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 4px;
  color: var(--primary-color);
}

/* Variante per UCOIM */
.ucoim-section .count-up .number,
.ucoim-section .count-up .plus {
  color: var(--secondary-color);
}

/* ==========================================================================
   FEATURES CONTAINER - GRID MIGLIORATA
   ========================================================================== */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-normal);
}

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

.feature-icon {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.feature-icon i {
  width: 2.5rem;
  height: 2.5rem;
  stroke: white;
  stroke-width: 1.5;
  margin-bottom: 0;
}

.feature-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.feature-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.feature-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

/* Variante per UCOIM */
.ucoim-section .feature-icon {
  background-color: var(--secondary-color);
}

.ucoim-section .feature-content h3 {
  color: var(--secondary-color);
}

/* ==========================================================================
   PROCESS STEPS - RIVISITAZIONE
   ========================================================================== */
.process-steps {
  position: relative;
  margin: 2.5rem 0;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: 3px;
  background-color: var(--primary-color);
}

.process-step {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 70px;
  display: flex;
  flex-direction: column;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.step-content {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
  transition: var(--transition-normal);
}

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

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.step-content p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Variante per UCOIM */
.ucoim-section .process-steps::before {
  background-color: var(--secondary-color);
}

.ucoim-section .step-number {
  background-color: var(--secondary-color);
}

.ucoim-section .step-content h3 {
  color: var(--secondary-color);
}

/* ==========================================================================
   UNION CARD - STILE SPECIFICO PAGINA GENERALE
   ========================================================================== */
.union-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-normal);
  border-top: 3px solid var(--primary-color);
}

.union-card.ucoim-card {
  border-top-color: var(--secondary-color);
}

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

.union-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.union-icon {
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.union-card.ucoim-card .union-icon {
  background-color: var(--secondary-color);
}

.union-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.union-card.ucoim-card .union-header h3 {
  color: var(--secondary-color);
}

.union-header p {
  margin: 0.25rem 0 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.union-content {
  padding-top: 1rem;
}

/* Category List */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
}

.union-card.ucoim-card .category-list li {
  border-left-color: var(--secondary-color);
}

.category-list li:last-child {
  margin-bottom: 0;
}

.category-list strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.union-card.ucoim-card .category-list strong {
  color: var(--secondary-color);
}

.category-list p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
}

/* ==========================================================================
   PROCEDURE CARD - PAGINA GENERALE
   ========================================================================== */
.procedure-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  border-top: 3px solid var(--primary-color);
  overflow: hidden;
}

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

.procedure-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2rem 1.5rem;
  background: var(--bg-light);
}

.procedure-icon {
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.procedure-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.procedure-header p {
  margin: 0.25rem 0 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.procedure-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.procedure-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.procedure-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.procedure-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.procedure-features li:last-child {
  margin-bottom: 0;
}

.procedure-features li i {
  width: 16px !important;
  height: 16px !important;
  margin-right: 0.75rem;
  color: var(--primary-color) !important;
  stroke: var(--primary-color) !important;
  flex-shrink: 0;
}

body#perche-aderire .ucoim-procedure .procedure-features li i {
  color: var(--secondary-color) !important;
  stroke: var(--secondary-color) !important;
}

/* CORREZIONE PULSANTI PROCEDURE */
body#perche-aderire .procedure-cta {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

body#perche-aderire .procedure-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
}

body#perche-aderire .procedure-cta .btn i {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0;
}

/* ==========================================================================
   CARD SUPPORTO - CORREZIONE TESTO COMPLETA
   ========================================================================== */
body#perche-aderire .card-istituzionale {
  padding: 2rem 1.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

body#perche-aderire .card-istituzionale i {
  margin-bottom: 1.5rem;
}

body#perche-aderire .card-istituzionale h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 0.75rem;
}

/* Contenuto principale della card */
body#perche-aderire .card-istituzionale p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9rem;
  text-align: center;
  flex-grow: 1;
}

/* Elementi in grassetto - numeri telefono, email, indirizzi */
body#perche-aderire .card-istituzionale strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 1rem 0 0.5rem 0;
  text-align: center;
  line-height: 1.4;
}

/* Testo piccolo - orari, tempi risposta, note */
body#perche-aderire .card-istituzionale small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.3;
}

/* Rimuovi tutti i <br> che causano confusione */
body#perche-aderire .card-istituzionale br {
  display: none;
}

/* Stili per indirizzi strutturati */
body#perche-aderire .address-city {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

body#perche-aderire .address-line {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

body#perche-aderire .address-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ==========================================================================
   STATISTICHE CENTRATE
   ========================================================================== */
#panoramica .row.justify-content-center {
  margin: 0 auto;
}

#panoramica .stat-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 3px solid #003366;
  margin: 0 auto;
  text-align: center;
}

/* Responsive centering */
@media (min-width: 992px) {
  #panoramica .row > .col-lg-10 {
    max-width: 900px;
  }
}

@media (min-width: 1200px) {
  #panoramica .row > .col-xl-8 {
    max-width: 800px;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  /* Regolazioni griglia feature su tablet */
  .features-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Regolazioni per dispositivi mobili */
  body#perche-aderire .intro-text {
    padding: 1.5rem;
    margin: 1.5rem auto 2rem;
  }
  
  /* Layout a colonna per dispositivi mobili */
  .contatti-grid {
    grid-template-columns: 1fr;
  }
  
  /* Adattamento feature box su mobile */
  .features-container {
    grid-template-columns: 1fr;
  }
  
  /* Process steps più compatti su mobile */
  .process-steps::before {
    left: 25px;
  }
  
  .process-step {
    padding-left: 50px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Info box in colonna su mobile */
  .info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .info-icon {
    margin-bottom: 1rem;
  }
  
  /* Adattamento dettagli quota per schermi piccoli */
  .detail-item {
    flex-direction: column;
  }
  
  .detail-label {
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
  }
  
  /* Adattamento per note-highlight su mobile */
  .note-highlight {
    flex-direction: column;
    text-align: center;
  }
  
  .note-highlight i {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  /* RESPONSIVE SPECIFICO PAGINA GENERALE */
  body#perche-aderire #procedure-adesione {
    margin-top: 3rem;
    padding-top: 1.5rem;
  }
  
  body#perche-aderire .union-header,
  body#perche-aderire .procedure-header {
    flex-direction: column;
    text-align: center;
  }
  
  body#perche-aderire .union-icon,
  body#perche-aderire .procedure-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  body#perche-aderire .procedure-cta .btn {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
  
  body#perche-aderire .card-istituzionale {
    padding: 1.5rem;
    min-height: 260px;
  }
  
  body#perche-aderire .card-istituzionale strong,
  body#perche-aderire .address-city {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ANIMAZIONI E DECORAZIONI
   ========================================================================== */
/* Indicatore visivo al passaggio del mouse sulle sezioni */
.section:hover .section-title::after {
  width: 150px;
  transition: width 0.3s ease;
}

/* Evidenziazione graduale degli elementi al caricamento */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-box {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

/* Aggiunta di ritardi per effetto cascata */
.content-box:nth-child(2) {
  animation-delay: 0.1s;
}

.content-box:nth-child(3) {
  animation-delay: 0.2s;
}

/* Decorazioni per il bottone download modulo */
.btn[href$=".pdf"] {
  position: relative;
  padding-left: 2.5rem;
}

.btn[href$=".pdf"] i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================================================
   STATISTICHE HIGHLIGHT
   ========================================================================== */
.stats-highlight {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.stat-highlight-item {
  text-align: center;
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 180px;
  transition: var(--transition-normal);
}

.stat-highlight-item:hover {
  transform: var(--hover-lift-medium);
  box-shadow: var(--shadow-lg);
}