/* Custom overrides (non modificare i CSS del grafico) */

/* News category link */
.news-cat-link {
  color: #1d4a80;
  text-decoration: none;
  border-bottom: 1px dashed rgba(29,74,128,0.5);
}
.news-cat-link:hover {
  color: #16395f;
  text-decoration: none;
  border-bottom-color: rgba(22,57,95,0.7);
}

/* Social buttons spacing */
.widget .btn i.fab {
  margin-right: 6px;
}

/* Organi (cariche) */
.organo-title {
  background: #e9f3fb;
  color: #0b4a7a;
  padding: 8px 12px;
  border-left: 4px solid #0b4a7a;
  border-radius: 6px;
}
.organo-person {
  background: #f5f7fa;
  border: 1px solid #e1e6ee;
  color: #223044;
  padding: 8px 10px;
  border-radius: 6px;
}

/* Come iscriversi */
.iscrizioni-section {
  margin-bottom: 28px;
}
.iscrizioni-list {
  padding-left: 20px;
  margin-bottom: 12px;
}
.iscrizioni-step {
  background: #f5f7fa;
  border: 1px solid #e1e6ee;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.iscrizioni-step-title {
  font-weight: 700;
  color: #0b4a7a;
  margin-bottom: 6px;
}
.iscrizioni-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0b4a7a;
  color: #fff;
  font-size: 14px;
  margin-right: 8px;
}
.faq-item {
  padding: 10px 0;
  border-bottom: 1px dashed #d8e0ea;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-q {
  font-weight: 700;
  color: #0b4a7a;
  margin-bottom: 6px;
}

/* Servizi */
.servizi-intro {
  background: #f5f7fa;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.servizi-card {
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.servizi-card h2 {
  margin-top: 0;
}
.servizi-chiusura {
  margin-top: 32px;
  padding: 14px 16px;
  border-left: 4px solid #0b4a7a;
  background: #f8fafc;
  border-radius: 10px;
  font-style: italic;
  font-size: 18px;
}

/* Login - Style 2 (moderno/accattivante) */
.login-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(12, 20, 33, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.login-panel-left {
  background: linear-gradient(135deg, rgba(11, 42, 74, 0.95) 0%, rgba(9, 76, 130, 0.95) 100%);
}

.login-panel-left h1,
.login-panel-left p {
  letter-spacing: 0.3px;
}

.login-panel-right {
  background: rgba(255, 255, 255, 0.75);
}

.login-form .form-label {
  font-weight: 800;
  color: #1f2a37;
  letter-spacing: 0.2px;
}

.login-input {
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 55, 0.18);
  padding: 13px 15px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.login-input:focus {
  border-color: #0b5ed7;
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.18);
  transform: translateY(-2px);
}

.login-btn {
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  background: #0b2a4a;
  color: #fff;
  border: 0;
  box-shadow: 0 12px 30px rgba(11, 42, 74, 0.35);
}

.login-btn:hover {
  background: #0a2542;
  color: #fff;
}

.login-btn svg {
  margin-left: 6px;
}

/* Login alerts */
.login-alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(12, 20, 33, 0.12);
}

.login-alert-error {
  background: #fff2f2;
  color: #8a1c1c;
  border-color: #f3caca;
}

.login-alert-lock {
  background: #fff6e8;
  color: #7a3f00;
  border-color: #f2d3b8;
}

.login-alert-disabled {
  background: #eef2ff;
  color: #2b3a8a;
  border-color: #c9d2ff;
}

/* Imprese - cards */
.company-grid .company-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  padding: 11px 11px 10px;
  box-shadow: 0 14px 28px rgba(12, 20, 33, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.company-card-header {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}
.company-card .badge-soft {
  background: #f3f6fb;
  color: #0b2a4a;
  border: 1px solid rgba(11, 42, 74, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.company-card .badge-iso {
  background: #e9f7ef;
  color: #1b6b3a;
  border: 1px solid rgba(27, 107, 58, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.company-card .badge-soa {
  background: #fad9fa;
  color: #8b2f8b;
  border: 1px solid rgba(139, 47, 139, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.company-title {
  font-size: 12px;
  font-weight: 800;
  margin: 6px 0 8px;
}
.company-title a {
  color: #0b2a4a;
  text-decoration: none;
}
.company-title a:hover {
  color: #0a3b6b;
  text-decoration: underline;
}
.company-meta {
  font-size: 14px;
  color: #445468;
  margin-bottom: 8px;
}
.company-actions {
  margin-top: auto;
  text-align: right;
}
.company-link {
  font-weight: 700;
  color: #0b5ed7;
  text-decoration: none;
}
.company-link:hover {
  color: #084298;
  text-decoration: underline;
}

/* Imprese filters */
.filter-card {
  background: #ffffff;
  border: 1px solid rgba(11, 42, 74, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 24px rgba(11, 42, 74, 0.08);
}
#filters {
  scroll-margin-top: 140px;
}
.filter-accordion {
  border-radius: 16px;
  background: #f7f9fc;
  border: 1px solid rgba(11, 42, 74, 0.12);
  padding: 10px;
}
.filter-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 800;
  color: #0b2a4a;
  box-shadow: 0 10px 20px rgba(11, 42, 74, 0.08);
}
.filter-accordion-toggle i {
  margin-left: 10px;
}
.filter-accordion-body {
  margin-top: 12px;
}
.filter-accordion-toggle i {
  transition: transform 0.35s ease;
}
.filter-accordion-toggle.is-open i {
  transform: rotate(90deg);
}
.filter-accordion-body {
  padding: 16px 6px 6px;
}
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f3f6fb;
  color: #0b2a4a;
  border: 1px solid rgba(11, 42, 74, 0.2);
  text-decoration: none;
}
.filter-chip:hover { text-decoration: none; color: #0a3b6b; }
.filter-chip-x {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #0b2a4a;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.filter-chip-clear {
  background: #fff6e8;
  color: #7a3f00;
  border-color: #f2d3b8;
}

/* Results header */
.results-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.results-top-btn {
  border-radius: 999px;
  font-weight: 700;
}

/* Imprese modal */
#impresa-modal .modal-content {
  border-radius: 14px;
  border: 0;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
#impresa-modal .modal-header {
  background: #0b2a4a;
  color: #fff;
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
}
#impresa-modal .modal-title { font-weight: 800; font-size: 22px; }
.impresa-title { font-weight: 800; margin: 0 0 12px; font-size: 25px; }
#impresa-modal .close {
  opacity: 1;
  color: #fff;
  font-size: 30px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
  padding: 0;
  line-height: 1;
  transform: translateY(-2px);
}
#impresa-modal .close:hover {
  color: #f2d3b8;
}
.impresa-meta { font-size: 14px; color: #425268; margin-bottom: 12px; }
.impresa-section { margin-top: 18px; font-weight: 800; color: #0b2a4a; text-align: center; }
.impresa-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.impresa-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(11,42,74,0.15);
}
.impresa-tag-lav {
  background: #eef5ff;
  color: #0b2a4a;
}
.impresa-tag-soa {
  background: #e9f7ef;
  color: #1b6b3a;
  border-color: rgba(27,107,58,0.2);
}
.impresa-iso { margin: 12px 0 6px; text-align: center; }
.impresa-iso-badge {
  background: #fff6e8;
  color: #7a3f00;
  border: 1px solid #f2d3b8;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-block;
}

/* Header login/logout button */
.login-logout-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
}
.logout-btn {
  background: #b02a37;
  color: #fff !important;
}
.logout-btn:hover {
  background: #8b1e28;
  color: #fff !important;
}
.breadcrumb-links {
    font-size: 14px;
    color: #6c757d;
}
.breadcrumb-links a {
    color: #6c757d;
    text-decoration: none;
}
.breadcrumb-links a:hover {
    color: #0d6efd;
    text-decoration: underline;
}
.breadcrumb-links span:last-child {
    color: #4a4a4a;
}

/* Convenzioni cards */
.convenzioni-grid {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(245,245,245,0.85));
    border: 1px solid #ececec;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.convenzioni-card {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.convenzioni-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.convenzioni-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.convenzioni-media {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: #fff;
}
.convenzioni-media img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    transition: transform .3s ease;
}
.convenzioni-card:hover .convenzioni-media img {
    transform: scale(1.03);
}
.convenzioni-body {
    padding: 16px 18px 18px;
}
.convenzioni-body .blog-title {
    margin-bottom: 8px;
}
.convenzioni-cta {
    font-size: 13px;
    font-weight: 700;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Consulenza imprese */
.consulenza-intro {
    margin-top: -50px;
    margin-bottom: 24px;
}
.consulenza-highlight {
    padding: 14px 16px;
    border-radius: 12px;
    background: #2b486c;
    border: 1px solid #223a57;
    font-weight: 700;
    letter-spacing: .1px;
    text-transform: none;
    font-size: 24px;
    color: #fff;
    margin-bottom: 18px;
}
.consulenza-grid {
    margin-top: 10px;
}
.consulenza-card {
    padding: 22px 24px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ededed;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.consulenza-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.consulenza-card h3 {
    font-size: 29px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
.consulenza-role {
    font-size: 15px;
    color: #5a5a5a;
    margin-bottom: 14px;
    line-height: 1.5;
}
.consulenza-time {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.4;
}
.consulenza-note {
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f9fbff;
    border: 1px solid rgba(13,110,253,0.15);
}
