/* ===============================
   DOCUMENTAZIONE
================================ */

.icc-documents {
  margin-top: 40px;
}

.icc-documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.icc-doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
}

.icc-doc-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.icc-doc-icon {
  font-size: 28px;
  line-height: 1;
}

.icc-doc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.icc-doc-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #0b2a6f; /* blu brand */
}

.icc-doc-link {
  font-size: 14px;
  font-weight: 500;
  color: #1d5cff;
  text-decoration: none;
}

.icc-doc-link:hover {
  text-decoration: underline;
}

.icc-doc-empty {
  color: #6b7280;
  font-size: 14px;
}



.icc-studyplan-selector {
  max-width: 420px;
  margin-bottom: 24px;
}

.icc-studyplan-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.icc-studyplan-selector select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
}

.icc-studyplan-year {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.icc-year-toggle {
  width: 100%;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.icc-year-content {
  display: none;
  padding-bottom: 14px;
}

.icc-year-content ul {
  margin: 0;
  padding-left: 18px;
}

.icc-studyplan-content.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
/* ===============================
   TAB ORIZZONTALI
================================ */
.icc-studyplan-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
  padding-bottom: 6px;
}

.icc-studyplan-tabs::-webkit-scrollbar {
  height: 4px;
}

.icc-studyplan-tabs::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.icc-studyplan-tab {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s ease;
}

.icc-studyplan-tab:hover {
  color: #2563eb;
}

.icc-studyplan-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* ===============================
   ACCORDION (refined)
================================ */
.icc-studyplan-year {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.icc-year-toggle {
  width: 100%;
  padding: 14px 18px;
  background: #f9fafb;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.icc-year-toggle:hover {
  background: #f3f4f6;
}

.icc-toggle-icon {
  font-size: 18px;
}

.icc-year-content {
  padding: 14px 22px;
  background: #fff;
}

.icc-year-content li {
  margin-bottom: 6px;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 640px) {
  .icc-studyplan-tabs {
    gap: 4px;
  }

  .icc-studyplan-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ===============================
   ANCHOR NAV – CORSO
================================ */
.icc-anchor-nav {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #e5e7eb;
  margin: 24px 0 32px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.icc-anchor-nav::-webkit-scrollbar {
  display: none;
}

.icc-anchor-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.icc-anchor-nav a:hover {
  color: #1d4ed8;
}

/* underline animata */
.icc-anchor-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #1e40af);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

/* attivo */
.icc-anchor-nav a.is-active,
.icc-anchor-nav a[aria-current="true"] {
  color: #1d4ed8;
  font-weight: 600;
}

.icc-anchor-nav a.is-active::after,
.icc-anchor-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

/* ===============================
   STICKY (desktop)
================================ */
@media (min-width: 1024px) {
  .icc-anchor-nav {
    position: sticky;
    top: 90px;
    background: #fff;
    z-index: 30;
  }
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  .icc-anchor-nav {
    gap: 18px;
    margin-bottom: 24px;
  }

  .icc-anchor-nav a {
    font-size: 13px;
  }
}

/* ===============================
   STUDYPLAN TABS
================================ */
.icc-studyplan-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e5e7eb;
  margin: 20px 0 28px;
  overflow-x: auto;
}

.icc-studyplan-tab {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  position: relative;
}

.icc-studyplan-tab.is-active {
  color: #1d4ed8;
  font-weight: 600;
}

.icc-studyplan-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #1d4ed8;
}

/* ===============================
   PANELS
================================ */
.icc-studyplan-panel {
  display: none;
}
.icc-studyplan-panel.is-active {
  display: block;
}

/* ===============================
   ACCORDION
================================ */
.icc-year {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.icc-year-head {
  width: 100%;
  background: #f9fafb;
  border: 0;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.icc-year-body {
  display: none;
  padding: 16px 22px;
  background: #fff;
}

.icc-year.is-open .icc-year-body {
  display: block;
}

.icc-plus {
  transition: transform .2s ease;
}

.icc-year.is-open .icc-plus {
  transform: rotate(45deg);
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  .icc-studyplan-tabs {
    gap: 16px;
  }
}

/* =========================================================
   VARIABILI BASE
========================================================= */
:root{
  --icc-primary:#0b5ed7;
  --icc-primary-dark:#084298;
  --icc-border:#e5e7eb;
  --icc-bg:#f8fafc;
  --icc-text:#111827;
  --icc-muted:#6b7280;
  --icc-radius:14px;
}

*{ box-sizing:border-box; }
body{ color:var(--icc-text); }
a{ color:var(--icc-primary); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* =========================================================
   STRUTTURA BASE
========================================================= */
.icc-course-page{
  max-width:1280px;
  margin:0 auto;
  padding:0;
}

.icc-course-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  gap:32px;
  align-items:start;
}



.icc-section{
  margin-bottom:64px;
  scroll-margin-top:90px;
}

/* =========================================================
   HERO
========================================================= */
.icc-hero-grid{
  display:grid;
  grid-template-columns: 1fr !important;
  gap:32px;
  margin-bottom:32px;
}
.icc-title{
  font-size:2.2rem;
  line-height:1.2;
  margin:0 0 12px;
}

.icc-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.icc-badge{
  background:#eef2ff;
  color:#1e3a8a;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.icc-subtitle{
  font-size:1.05rem;
  color:var(--icc-muted);
  margin-bottom:14px;
}

.icc-benefits{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
  font-weight:600;
}

.icc-benefits li{
  display:flex;
  gap:8px;
  align-items:flex-start;
}

/* =========================================================
   SIDEBAR – STICKY
========================================================= */
.icc-summary-card{
  border:1px solid var(--icc-border);
  border-radius:16px 0 0 16px;
  padding:22px;
  background:#fff;
  position:sticky;
  top:110px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  align-self:start;
}

.icc-price{
  font-size:1.8rem;
  font-weight:800;
  color:var(--icc-primary);
  margin-bottom:4px;
}

.icc-deadline{
  font-size:.9rem;
  color:#b91c1c;
  margin-bottom:16px;
}

.icc-btn{
  display:block;
  text-align:center;
  padding:12px;
  border-radius:10px;
  font-weight:700;
}

.icc-btn-primary{
  background:var(--icc-primary);
  color:#fff;
}

.icc-btn-primary:hover{
  background:var(--icc-primary-dark);
}

.icc-microtrust{
  font-size:.85rem;
  color:#374151;
  padding-top:10px;
  border-top:1px solid var(--icc-border);
  margin-top:14px;
}

/* =========================================================
   SEZIONI CONTENUTO
========================================================= */
.icc-section h2{
  font-size:1.75rem;
  font-weight:600;
  border-bottom:2px solid var(--icc-border);
  padding-bottom:6px;
  margin-bottom:18px;
}

.icc-section p{
  max-width:820px;
  line-height:1.65;
}

/* =========================================================
   ACCORDION
========================================================= */
.icc-accordion{
  display:grid;
  gap:14px;
}

.icc-accordion details{
  border:1px solid var(--icc-border);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.icc-accordion summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 20px;
  cursor:pointer;
  font-weight:700;
  background:var(--icc-bg);
  list-style:none;
}

.icc-accordion summary::-webkit-details-marker{ display:none; }

.icc-accordion summary::after{
  content:"+";
  font-size:20px;
}

.icc-accordion details[open] summary::after{
  content:"–";
}

.icc-accordion details > *:not(summary){
  padding:18px 22px;
  border-top:1px solid var(--icc-border);
}

/* =========================================================
   DOCUMENTI
========================================================= */
.icc-docs{
  list-style:none;
  padding:0;
  margin-top:14px;
}

.icc-docs li{
  padding:12px 16px;
  border:1px solid var(--icc-border);
  border-radius:10px;
  margin-bottom:10px;
}

/* =========================================================
   CTA MOBILE
========================================================= */
.icc-mobile-cta{
  display:none;
}

/* =========================================================
   RESPONSIVE – VERSIONE DEFINITIVA
========================================================= */

/* ---------- TABLET ---------- */
@media (max-width:1024px){

  .icc-course-layout{
    display:block;
  }

  .icc-summary-card{
    position:relative;
    top:auto;
    width:100%;
    margin-top:32px;
    border-radius:16px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width:768px){

  .icc-course-page{
    padding-left:16px;
    padding-right:16px;
    padding-bottom:90px;
  }

  .icc-course-main{
    padding:0;
  }

  .icc-section{
    margin-bottom:48px;
  }

  .icc-course-page p,
  .icc-course-page ul,
  .icc-course-page ol{
    max-width:100%;
    word-break:break-word;
  }

  .icc-title{
    font-size:1.8rem;
  }

  .icc-mobile-cta{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    gap:10px;
    padding:12px;
    background:rgba(255,255,255,.95);
    border-top:1px solid rgba(0,0,0,.08);
    z-index:9999;
  }

  .icc-mobile-btn{
    flex:1;
    text-align:center;
    padding:12px;
    border-radius:12px;
    font-weight:700;
  }
}
/* ===============================
   ESAMI – BADGE
================================ */
/* ===== Studyplan exam row (single-line) ===== */
.icc-year-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.icc-year-content li.icc-exam {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 0;
  margin: 0;
  text-align: left; /* evita centrature ereditate */
}

.icc-exam-title {
  font-weight: 600;
  line-height: 1.35;
}

.icc-exam-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  white-space: nowrap; /* badge sempre in riga */
}

.icc-exam-badge {
  background: #eef2ff;
  color: #1e3a8a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Mobile: se non entra, consenti wrap SOLO su mobile */
@media (max-width: 640px) {
  .icc-year-content li.icc-exam {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

