.fe_yic_pciv-form {
    max-width: 900px;
    width: 60vw;
    min-width: min(350px, 100%);
    margin: 3rem auto;
    padding: 2rem 2.3rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(34, 47, 62, 0.10), 0 1.5px 4px rgba(34, 47, 62, 0.03);
    font-family: inherit;
  }
  
  .fe_yic_pciv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2rem;
  }
  
  .fe_yic_pciv-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }
  
  .fe_yic_pciv-dashboard-wrapper {
    max-width: 85%;
    margin: 2.2rem auto 3rem auto;
    padding: 2.2rem 2.5rem 2.5rem 2.5rem;
    background: #fff;
    border-radius: 18px;
  }
  
  .fe_yic_pciv-dashboard-title {
    margin-bottom: 2.3rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: #183361;
    letter-spacing: 0.01em;
    text-align: left;
  }
  
  .fe_yic_pciv-dashboard-content {
    font-size: 1.12rem;
    font-weight: 400;
    color: #272f41;
  }


 
  

  
  .fe_yic_pciv-form label {
    margin-bottom: 0.45rem;
    font-weight: 500;
    color: #181f32;
    letter-spacing: 0.01em;
  }
  
  .fe_yic_pciv-form input[type="text"],
  .fe_yic_pciv-form input[type="email"],
  .fe_yic_pciv-form input[type="number"],
  .fe_yic_pciv-form input[type="tel"],
  .fe_yic_pciv-form input[type="date"],
  .fe_yic_pciv-form select {
    padding: 0.62rem 1rem;
    border: 1.7px solid #e1e5ef;
    border-radius: 16px;
    font: inherit;
    background: #f8fafd;
    transition: border 0.21s, box-shadow 0.18s;
    color: #232a36;
    box-shadow: 0 2px 8px rgba(34,47,62,0.04);
  }
  .fe_yic_pciv-form input:focus,
  .fe_yic_pciv-form select:focus {
    border-color: #1070db;
    background: #fff;
    box-shadow: 0 0 0 2px #e1f0ff;
    outline: none;
  }
  /* 1 column on small screens */
  @media (max-width: 650px) {
    .fe_yic_pciv-form {
      width: min(98vw, 100%);
      min-width: 0;
      padding: 1.2rem 0.7rem;
    }
    .fe_yic_pciv-grid {
      grid-template-columns: 1fr;
      gap: 1.1rem 0;
    }
  }
  
  .fe_yic_pciv-form .btn_save_data {
    margin:auto;
    border: none;
    border-radius: 999px;
    background-color: #1070db;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(34,47,62,0.08);
    transition: background 0.16s, box-shadow 0.14s;
    text-align: center;
    display: block;
    /* aggiungi questo anche */
    width: 100%!important;

  }
  

  .button_simple_fe_pciv_yic {
    border: none;
    border-radius: 16px;
    background-color: #dee5ee;
    color: #183361;
    font-weight: 500;
    font-size: 0.87rem;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    margin: 0.35rem 0;
  }



  .button_simple_fe_pciv_yic:hover,
  .button_simple_fe_pciv_yic:focus {
    background-color: #dee5ee;
    color: #183361;
    outline: none;
  }


  .fe_yic_pciv-form .btn_save_data:hover,
  .fe_yic_pciv-form .btn_save_data:focus {
    background-color: #155aad;
    box-shadow: 0 4px 10px rgba(16,112,219,0.10);
    outline: none;
  }
  
  /* Center the button in the grid */
  .fe_yic_pciv-grid .btn_save_data {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .fe_yic-pciv-haeder_volontari > strong {
    padding-left: 4rem;
    font-size: 1.1rem;
  }

  .fe_yic-pciv-haeder_volontari {
      width: 100%;
      left: 0;
      z-index: 999;
      height: var(--header-height);
      background: linear-gradient(90deg, #2082e4 0%, #0353A4 100%);
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 1.4rem;
      font-weight: 600;
      box-shadow: 0 3px 8px rgba(0,0,0,0.1);
      padding: 0 2rem;
      padding:8px;

      transition: height 0.3s; /* Per coerenza visiva */
  }

  .fe_yic-pciv-profile-icon {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10%;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin-right: 1rem;
  }

  .fe_yic-pciv-profile-icon:hover {
    background: rgba(255,255,255,0.2);
  }

  .fe_yic-pciv-profile-icon {
    position: relative;
}
#feYicPcivDropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    min-width: 240px; /* aumentata la larghezza minima */
    box-shadow: 0 2px 10px rgba(34,47,62,0.11);
    border-radius: 5px;
    z-index: 10000;
    padding: 0.5rem 0;
}
#feYicPcivDropdown a {
    display: block;
    padding: 0.7rem 1.4rem;
    color: #183361;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.14s;
    font-size: 0.95rem;
    /* testo leggermente più grande per menu più largo */
    white-space: nowrap;
}
#feYicPcivDropdown a:hover, #feYicPcivDropdown a:focus {
    background: #eaf0ff;
}


.fe_yic-simple-button {
  display: inline-block;
  padding: 0.55em 1.15em;
  border-radius: 6px;
  background: #3264d2;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.16s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(34,47,62,0.07);
  outline: none;
  text-align: center;
  text-decoration: none;
}

.fe_yic-simple-button:hover,
.fe_yic-simple-button:focus {
  background: #244a9a;
  box-shadow: 0 3px 9px rgba(34,47,62,0.12);
}


.fe_yic_pciv-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem 2rem;
  margin: 0 0 2rem 0;
  justify-items: stretch;
}

.fe_yic_pciv-card {
  background: #f8fafd;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(34,47,62,0.18);
  transition: all 0.3s ease;
  width: 100%;
  /* Sempre un terzo: ciascuna card occupa 1/3 */
  max-width: 100%;
  min-width: 0;
}

/* Grid con una singola card: resta 1/3, allineata a sinistra, NON centrata, NON allargata */
.fe_yic_pciv-card-grid.single,
.fe_yic_pciv-card-grid[data-single="true"] {
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: start;
}
.fe_yic_pciv-card-grid.single .fe_yic_pciv-card,
.fe_yic_pciv-card-grid[data-single="true"] .fe_yic_pciv-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Restanti stili invariati */
.fe_yic_pciv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 6px rgba(34,47,62,0.18);
}
.fe_yic_pciv-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4e6a9b;
  margin-bottom: 0.5rem;
}
.fe_yic_pciv-card-desc {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 1rem;
  font-style: italic;
}
.fe_yic_pciv-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fe_yic_pciv-card-badge {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  text-transform: uppercase;
}
.fe_yic_pciv-card-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: #666;
}



.fe_yic_pciv-chip{

display: inline-block; 
background-color: #cfdff8; color: #222; 
border-radius: 999px; 
padding: 0.3em 1em;
 font-size: 0.75em; 
 font-weight: 500;
}