/* =========================================================
   style-courses.css
   Stile condiviso per tutte le pagine corso (Accademia)
   ========================================================= */

:root{
  --bg: #f6f7fb;
  --bg2:#ffffff;
  --surface: rgba(255,255,255,0.92);
  --surface2: rgba(255,255,255,0.70);
  --stroke: rgba(17,24,39,0.10);

  --text: rgba(17,24,39,0.92);
  --muted: rgba(17,24,39,0.72);
  --subtle: rgba(17,24,39,0.56);

  --accent: #6D28D9;
  --accent2:#0891B2;
  --warm:   #D97706;
  --good:   #16A34A;

  --radius: 18px;
  --radius2: 24px;
  --shadow: 0 14px 36px rgba(17,24,39,0.10);

  --max: 1120px;
  --pad: 22px;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-sans);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(109,40,217,0.12), transparent 60%),
    radial-gradient(820px 520px at 90% 5%, rgba(8,145,178,0.12), transparent 60%),
    radial-gradient(900px 600px at 70% 90%, rgba(217,119,6,0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  max-width: 100%;
  display: block;
}

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(246,247,251,0.70);
  border-bottom: 1px solid var(--stroke);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}

.brand img{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--stroke);
  padding: 6px;
  box-shadow: 0 10px 24px rgba(17,24,39,0.08);
}

.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.12;
}

.brand .name strong{
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.brand .name span{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a{
  font-size: 13px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.nav-links a:hover{
  background: rgba(17,24,39,0.05);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.80);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  user-select:none;
  box-shadow: 0 10px 24px rgba(17,24,39,0.08);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
  border-color: rgba(17,24,39,0.16);
}

.btn-primary{
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 16px 34px rgba(109,40,217,0.22);
}

.btn-primary:hover{
  filter: brightness(1.04);
}

.btn-ghost{
  background: transparent;
  box-shadow: none;
}

.btn-ghost:hover{
  background: rgba(17,24,39,0.05);
}

/* =========================================================
   HERO CORSO
   ========================================================= */
.hero-course{
  padding: 34px 0 18px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items:center;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.35px;
  box-shadow: 0 10px 24px rgba(17,24,39,0.06);
}

.kicker b{
  color: var(--text);
  font-weight: 900;
}

.hero-course h1{
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.03;
  letter-spacing: -0.6px;
}

.hero-course p.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  max-width: 65ch;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.75);
  font-size: 12px;
  color: var(--subtle);
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(109,40,217,0.12);
  flex: 0 0 auto;
}

.hero-media{
  border-radius: var(--radius2);
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow);
}

.hero-media img{
  width:100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}

.hero-media .label{
  padding: 12px 14px;
  border-top: 1px solid var(--stroke);
  background: rgba(255,255,255,0.86);
  color: rgba(17,24,39,0.80);
  font-size: 13px;
}

/* =========================================================
   SECTIONS / PANELS
   ========================================================= */
section.block{
  padding: 28px 0;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-head h2{
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 14px;
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}

.panel{
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--stroke);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(17,24,39,0.08);
}

.panel h2,
.panel h3{
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.panel p{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.panel p:last-child{
  margin-bottom: 0;
}

.panel .mini{
  margin-top: 10px;
  color: var(--subtle);
  font-size: 12px;
}

.highlight-panel{
  border: 1px solid rgba(109,40,217,0.20);
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(109,40,217,0.10), transparent 65%),
    rgba(255,255,255,0.92);
}

.soft-panel{
  border: 1px solid rgba(8,145,178,0.18);
  background:
    radial-gradient(420px 240px at 80% 0%, rgba(8,145,178,0.08), transparent 65%),
    rgba(255,255,255,0.90);
}

/* =========================================================
   LISTE / BULLETS
   ========================================================= */
.list{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
  color: rgba(17,24,39,0.86);
  font-size: 14px;
}

.list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.check{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(22,163,74,0.12);
  border: 1px solid rgba(22,163,74,0.22);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--good);
  font-size: 12px;
  font-weight: 900;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip{
  font-size: 12px;
  color: rgba(17,24,39,0.82);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.70);
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip{
  border-radius: calc(var(--radius2) + 2px);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(109,40,217,0.14), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(8,145,178,0.12), transparent 60%),
    rgba(255,255,255,0.86);
  padding: 18px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items:center;
  box-shadow: 0 12px 30px rgba(17,24,39,0.08);
}

.cta-strip h3{
  margin:0 0 6px;
  font-size: 17px;
  font-weight: 900;
}

.cta-strip p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  max-width: 66ch;
}

.cta-strip .actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap:wrap;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb{
  padding: 14px 0 0;
}

.breadcrumb .trail{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
  color: var(--subtle);
  font-size: 12px;
}

.breadcrumb .trail a{
  color: var(--muted);
}

.breadcrumb .trail a:hover{
  color: var(--text);
}

.breadcrumb .sep{
  opacity: .5;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  margin-top: 32px;
  padding: 36px 0 24px;
  border-top: 1px solid var(--stroke);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(10px);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  align-items:start;
}

.footer h4{
  margin:0 0 10px;
  font-size: 12px;
  letter-spacing: 0.35px;
  color: rgba(17,24,39,0.78);
  font-weight: 900;
}

.footer .link{
  color: var(--muted);
  display:inline-block;
  padding: 5px 0;
}

.footer .link:hover{
  color: var(--text);
}

.contact-lines{
  display:grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.contact-lines b{
  color: var(--text);
  font-weight: 900;
}

.fineprint{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  color: rgba(17,24,39,0.55);
  font-size: 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:space-between;
}

/* =========================================================
   SMALL UTILITIES
   ========================================================= */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8,145,178,0.22);
  background: rgba(8,145,178,0.10);
  color: rgba(17,24,39,0.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}

.spacer-10{ height:10px; }
.spacer-14{ height:14px; }
.spacer-18{ height:18px; }
.spacer-24{ height:24px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media img{ height: 340px; }
  .grid-2{ grid-template-columns: 1fr; }
  .cta-strip{ grid-template-columns: 1fr; }
  .cta-strip .actions{ justify-content:flex-start; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav-inner{
    flex-wrap: wrap;
    align-items:center;
    gap: 10px;
  }

  .brand{
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand img{
    width: 44px;
    height: 44px;
  }

  .nav-links{
    width: 100%;
    order: 3;
    gap: 6px;
  }

  .nav-links a{
    padding: 8px 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.60);
    border: 1px solid var(--stroke);
  }

  .nav-cta{
    width: 100%;
    justify-content:flex-start;
  }

  .nav-cta .btn{
    flex: 1 1 auto;
  }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn{
    width: 100%;
    justify-content:center;
  }

  .hero-meta{
    flex-direction: column;
    align-items: stretch;
  }

  .meta-pill{
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn, .nav-links a{ transition:none; }
}