/*
Theme Name: Marenostrum Corsi
Author: Alessandro Milia
Description: Tema custom per il portale corsi di Marenostrum Società Cooperativa Sociale. Convertito dalla homepage statica marenostrum-corsi6.html.
Version: 2.8
Text Domain: marenostrum
*/

:root {
  --bg: #F5F3EE;
  --dark: #0A1628;
  --mid: #1E3A5F;
  --accent: #D4A843;
  --accent2: #2563EB;
  --white: #FFFFFF;
  --muted: #7A7A6E;
  --border: rgba(10,22,40,0.10);
  --card-bg: #FFFFFF;
  --tag-bg: rgba(10,22,40,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--dark); overflow-x: hidden; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  max-height: 900px;
  background: linear-gradient(135deg, #2C5F8A 0%, #3D7AB0 55%, #4A8BC2 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px 100px;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.4);
  border-radius: 30px;
  padding: 6px 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 36px;
  position: relative;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-logo {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.hero-logo-img {
  width: clamp(280px, 50vw, 520px);
  height: auto;
  margin: 0 auto;
  display: block;
}



.hero-logo-sub {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  display: block;
  font-weight: 500;
}

.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  max-width: 580px;
  margin-bottom: 48px;
  position: relative;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.hero-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.25);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(212,168,67,0.5), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── ACCRED STRIP ── */
.accred {
  background: var(--accent);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accred-title {
  color: var(--dark);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}

.accred-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  max-width: 1100px;
}

.accred-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

/* ── SECTION CORSI ── */
.section-corsi {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 16px;
  background: rgba(37,99,235,0.08);
  padding: 5px 14px;
  border-radius: 20px;
}

.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FILTRI ── */
.filtri-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
}

.filtro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filtro-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10,22,40,0.1);
}

.filtro-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(10,22,40,0.25);
}

/* ── GRID CORSI ── */
.corsi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
  width: 100%;
}

/* ── CORSO CARD ── */
.corso-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.corso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10,22,40,0.12);
  border-color: transparent;
}

.corso-card-img {
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #f0ede8;
  position: relative;
  cursor: zoom-in;
}

.corso-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s;
}

.corso-card:hover .corso-card-img img {
  transform: scale(1.02);
}

.corso-card-img .img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); font-size: 13px;
  background: #f0ede8;
}

.corso-card-img .img-placeholder-emoji { font-size: 40px; }

.corso-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.corso-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--tag-bg);
  color: var(--muted);
  margin-bottom: 10px;
  width: fit-content;
}

.corso-nome {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.corso-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.corso-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.corso-iscrizioni {
  color: #16A34A !important;
  font-weight: 700 !important;
}
.corso-note {
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
  background: rgba(220,38,38,0.07);
  border-radius: 6px;
  padding: 5px 10px;
  margin-top: 8px;
  display: inline-block;
}

/* Sedi pills */
.corso-sedi {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.corso-sedi-label {
  width: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.sede-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(10,22,40,0.05);
  color: var(--ink);
  border: 1px solid rgba(10,22,40,0.08);
  line-height: 1.3;
}
.sede-via {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.corso-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}

.cta-primary {
  background: var(--dark);
  color: var(--white);
}

.cta-primary:hover {
  background: var(--mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,22,40,0.2);
}

.cta-gratuito {
  background: rgba(34,197,94,0.1);
  color: #15803D;
  border: 1.5px solid rgba(34,197,94,0.25);
  font-size: 12px;
  padding: 8px 12px;
  flex: 0;
  white-space: nowrap;
}

/* Varie card — senza sedi */
.corso-card.varie .corso-card-img {
  aspect-ratio: 9/16;
}

/* Card gratuita — indicatore visivo */
.corso-card.card-gratuita {
  border-color: rgba(21,128,61,0.2);
}
.corso-card.card-gratuita:hover {
  border-color: rgba(21,128,61,0.4);
  box-shadow: 0 20px 50px rgba(21,128,61,0.12);
}
.corso-card.card-pagamento {
  border-color: rgba(29,78,216,0.15);
}
.corso-card.card-pagamento:hover {
  border-color: rgba(29,78,216,0.35);
  box-shadow: 0 20px 50px rgba(29,78,216,0.1);
}

/* Sezioni separate gratuiti / pagamento */
.sezione-header {
  grid-column: 1 / -1;
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: -8px;
  margin-top: 16px;
}
.sezione-header:first-child { margin-top: 0; }

.sezione-gratuiti {
  background: linear-gradient(135deg, #052e16 0%, #14532d 100%);
  border: 1.5px solid rgba(34,197,94,0.2);
}
.sezione-pagamento {
  background: linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 100%);
  border: 1.5px solid rgba(99,102,241,0.2);
  margin-top: 52px;
}

.sezione-header-inner { max-width: 700px; }

.sezione-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sezione-gratuiti .sezione-kicker { color: #86efac; }
.sezione-pagamento .sezione-kicker { color: #a5b4fc; }

.sezione-titolo {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #ffffff;
}

.sezione-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}
.sezione-gratuiti .sezione-desc { color: rgba(134,239,172,0.8); }
.sezione-pagamento .sezione-desc { color: rgba(165,180,252,0.8); }

.corsi-grid-gratuiti { margin-top: 0; }

/* Badge gratuito nell'header card */
.badge-gratuito {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #15803D;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
}
.badge-pagamento {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1D4ED8;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 88vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 80px rgba(0,0,0,0.9);
}
#lightbox-close {
  position: fixed; top: 20px; right: 24px;
  color: white; font-size: 36px; cursor: pointer;
  opacity: 0.6; line-height: 1; z-index: 10000;
  background: none; border: none; font-family: sans-serif;
}
#lightbox-close:hover { opacity: 1; }

/* ── EMPTY ── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty-state-emoji { font-size: 48px; margin-bottom: 16px; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 56px 24px 32px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.footer-brand-desc {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-accr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 7px 13px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  line-height: 2;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 12px; }

/* Reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.corso-card {
  opacity: 1;
  animation: fadeUp 0.4s ease both;
}

/* ── URGENCY BAR ── */
.urgency-bar {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border-radius: 8px;
  padding: 11px 16px;
  margin-top: 14px;
}
.urgency-text { text-decoration:none;
  font-size: 13px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}
.urgency-text .dot {
  width: 7px; height: 7px;
  background: #fca5a5;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.urgency-btn {
  text-decoration: none;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 7px 14px 7px 34px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}
.urgency-btn:hover { background: #1ebe5d; }
.urgency-btn::before {
  content: '';
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22white%22%3E%3Cpath d=%22M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347zM12 0C5.373 0 0 5.373 0 12c0 2.119.554 4.107 1.523 5.832L0 24l6.335-1.492A11.945 11.945 0 0012 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 21.818a9.818 9.818 0 01-5.007-1.371l-.36-.213-3.72.876.944-3.617-.234-.373A9.79 9.79 0 012.182 12C2.182 6.57 6.57 2.182 12 2.182S21.818 6.57 21.818 12 17.43 21.818 12 21.818z%22/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── SOCIAL PROOF POPUP ── */
#social-proof {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
  pointer-events: none;
}
#social-proof.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.sp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2563EB);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sp-content { flex: 1; min-width: 0; }
.sp-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}
.sp-text {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.sp-text strong { color: rgba(255,255,255,0.9); }
.sp-time {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.sp-close {
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  font-size: 14px; cursor: pointer;
  padding: 0; line-height: 1;
  flex-shrink: 0;
}
.sp-close:hover { color: rgba(255,255,255,0.7); }

/* Mobile */
/* ── MOBILE STICKY BOTTOM NAV ── */
.mobile-bottom-bar {
  display: none;
}
@media(max-width: 768px) {
  .filtro-btn { padding: 10px 16px; font-size: 13px; }
  .hero { min-height: auto; padding: 70px 24px 80px; }
  .hero-stats { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .corsi-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .accred { gap: 16px; }
  .accred-sep { display: none; }
}

  @media(max-width: 640px) {
  /* ── HERO MOBILE FIX ── */
  .hero { padding: 60px 20px 70px; min-height: auto; }
  .hero-logo-img { width: clamp(220px, 70vw, 300px); }
  .hero-logo-sub { font-size: 11px; letter-spacing: 2px; }
  .hero-badge { font-size: 10px; padding: 7px 14px; }
  .hero-desc { font-size: 15px; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stat-num { font-size: 32px; }
  .hero-scroll { display: none; }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 8000;
    background: rgba(10,22,40,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    gap: 8px;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-bottom-bar .mbb-wa {
    display: flex; align-items: center; gap: 8px;
    background: #25D366; color: white;
    border: none; border-radius: 10px;
    padding: 12px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 700;
    text-decoration: none; flex: 1;
    justify-content: center;
  }
  .mobile-bottom-bar .mbb-wa svg { width:18px; height:18px; }
  .mobile-bottom-bar .mbb-call {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 10px; width: 48px; height: 48px;
    font-size: 20px; text-decoration: none; flex-shrink: 0;
  }
  /* Padding bottom per non coprire i contenuti */
  body { padding-bottom: 80px; }
  /* Social proof sopra la bottom bar */
  #social-proof { bottom: 90px; }
}

  @media(max-width: 560px) {
  .corsi-grid { grid-template-columns: 1fr; gap: 18px; }
  .corso-card { display: grid; grid-template-columns: 130px 1fr; align-items: stretch; }
  .corso-card-img { aspect-ratio: 9/14; border-radius: 14px 0 0 14px; }
  .corso-card.varie .corso-card-img { aspect-ratio: 9/14; }
  .corso-card-body { padding: 16px 16px 16px; }
  .corso-nome { font-size: 16px; }
  .corso-sedi { display: flex; }
  .corso-info-row { display: flex; }
  .cta-gratuito { display: inline-flex; }
  .badge-gratuito, .badge-pagamento { font-size: 9px; padding: 3px 7px; top: 8px; left: 8px; }
  .corso-cta { flex-direction: column; align-items: stretch; }
  .corso-cta .cta-primary { width: 100%; }
  .corso-cta .cta-gratuito { width: 100%; }
  .sezione-header { padding: 26px 22px; }
  .sezione-titolo { font-size: 26px; }
  #social-proof { max-width: calc(100vw - 32px); left: 16px; }
}

  @media(max-width: 400px) {
  .corso-card { grid-template-columns: 110px 1fr; }
  .corso-nome { font-size: 14px; }
  .corso-card-body { padding: 12px 12px 12px; }
}

  /* ── ACCESSIBILITÀ ── */
  a:focus-visible, button:focus-visible, .filtro-btn:focus-visible, .corso-card-img:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    border-radius: 6px;
  }
  .cta-primary:focus-visible, .urgency-bar:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
  }
  /* Rispetta chi preferisce meno animazioni */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  /* Screen reader only */
  .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;
  }

  /* ── AREA BANDI ── */
  .section-bandi {
    background: linear-gradient(180deg, #0A1628 0%, #0d1d33 100%);
    padding: 80px 24px;
  }
  .bandi-inner { max-width: 1280px; margin: 0 auto; }
  .bandi-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
  .bandi-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: #D4A843; margin-bottom: 12px;
  }
  .bandi-title {
    font-family: 'Syne', sans-serif; font-size: clamp(32px, 4vw, 48px);
    font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 14px;
  }
  .bandi-sub { font-size: 16px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.6); }
  .bandi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .bando-card {
    display: block;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
  }
  .bando-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,168,67,0.4);
    background: rgba(255,255,255,0.06);
  }
  .bando-badge {
    position: absolute; top: 18px; right: 18px;
    background: #D4A843; color: #0A1628;
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
    padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
  }
  .bando-data {
    font-size: 12px; font-weight: 600; color: #D4A843;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
  }
  .bando-nome {
    font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800;
    color: #fff; line-height: 1.15; margin-bottom: 8px;
  }
  .bando-desc {
    font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55);
    line-height: 1.6; margin-bottom: 18px;
  }
  .bando-sedi-row {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
  }
  .bando-sede-tag {
    font-size: 11px; font-weight: 500;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    padding: 4px 10px; border-radius: 5px;
  }
  .bando-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: #D4A843;
  }
  .bando-card:hover .bando-cta { gap: 12px; }

  @media(max-width: 640px) {
    .section-bandi { padding: 56px 20px; }
    .bandi-grid { grid-template-columns: 1fr; gap: 16px; }
    .bando-card { padding: 24px; }
  }

/* ═══════════════════════════════════════════════
   v5 — NAVIGAZIONE E PAGINE INTERNE
   ═══════════════════════════════════════════════ */

/* ── Navbar ── */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  gap: 20px;
  flex-wrap: wrap;
}
body.admin-bar .site-nav { top: 32px; }
.site-nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
}
.site-nav-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.site-nav-menu a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.site-nav-menu a:hover,
.site-nav-menu .current-menu-item a { color: var(--accent); }

/* ── Banda titolo delle pagine interne ── */
.pagina-hero {
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
  padding: 150px 24px 64px;
  text-align: center;
  color: #fff;
}
.pagina-hero .pagina-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.pagina-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Contenuto pagina (prosa) ── */
.pagina-contenuto {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-size: 17px;
  line-height: 1.8;
}
.pagina-contenuto h2 { font-family: 'Syne', sans-serif; margin: 34px 0 12px; }
.pagina-contenuto h3 { font-family: 'Syne', sans-serif; margin: 26px 0 10px; }
.pagina-contenuto p, .pagina-contenuto ul, .pagina-contenuto ol { margin-bottom: 16px; }
.pagina-contenuto a { color: var(--accent2); }
.pagina-contenuto img { max-width: 100%; height: auto; border-radius: 12px; }

/* ── Scheda corso / bando ── */
.scheda {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 90px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .scheda { grid-template-columns: 1fr; } }
.scheda-img img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(10,22,40,0.18);
  cursor: zoom-in;
}
.scheda-info-riga {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.scheda-pill {
  background: var(--tag-bg);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
}
.scheda-pill.oro { background: rgba(212,168,67,0.16); color: #8a6d1f; }
.scheda h2 { font-family: 'Syne', sans-serif; font-size: 20px; margin: 26px 0 12px; }
.scheda-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.scheda-cta .cta-btn { text-decoration: none; }
.cta-whatsapp {
  background: #22C55E;
  color: #fff;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

/* ── 404 e archivio fallback ── */
.mn-404 {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.mn-404 .emoji { font-size: 56px; margin-bottom: 18px; }
.mn-404 h1 { font-family: 'Syne', sans-serif; font-size: 30px; margin-bottom: 10px; }
.mn-404 p { color: var(--muted); margin-bottom: 26px; }
.lista-archivio { list-style: none; padding: 0; }
.lista-archivio li { border-bottom: 1px solid var(--border); }
.lista-archivio a {
  display: block;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 17px;
}
.lista-archivio a:hover { color: var(--accent2); }

/* ═══════════════════════════════════════════════
   v6 — FORM ISCRIZIONE
   ═══════════════════════════════════════════════ */
.form-iscrizione {
  max-width: 720px;
  margin: 0 auto 90px;
  padding: 36px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(10,22,40,0.08);
}
.form-iscrizione h2 { font-family: 'Syne', sans-serif; font-size: 24px; margin-bottom: 6px; }
.form-sub { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.form-riga { margin-bottom: 16px; }
.form-riga-doppia { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-iscrizione label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-iscrizione input[type="text"],
.form-iscrizione input[type="email"],
.form-iscrizione input[type="tel"],
.form-iscrizione textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  background: var(--bg);
}
.form-iscrizione input:focus, .form-iscrizione textarea:focus {
  outline: 2px solid var(--accent2);
  outline-offset: 1px;
}
.form-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400 !important; margin: 18px 0 22px; line-height: 1.5; }
.form-privacy input { margin-top: 2px; width: 16px; height: 16px; }
.form-invia { border: none; cursor: pointer; font: inherit; font-weight: 700; }
.form-esito { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.form-esito.ok { background: rgba(34,197,94,0.12); color: #15803d; }
.form-esito.errore { background: rgba(239,68,68,0.12); color: #b91c1c; }
.hp-campo { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* ═══════════════════════════════════════════════
   v6 — PASSATA MOBILE (UX design)
   ═══════════════════════════════════════════════ */

/* Altezza reale del viewport mobile (barre browser escluse) */
@supports (height: 100svh) {
  .mn-slideshow { min-height: 100svh; }
  .hero { min-height: 100svh; }
}

@media (max-width: 782px) {
  body.admin-bar .site-nav { top: 46px; } /* admin bar mobile è più alta */
}

@media (max-width: 700px) {
  /* Navbar compatta ma tutta tappabile */
  .site-nav { padding: 14px 16px; gap: 8px; }
  .site-nav-brand { font-size: 16px; }
  .site-nav-menu { gap: 6px; }
  .site-nav-menu a {
    font-size: 13px;
    padding: 8px 10px;           /* target touch ≥ 40px con l'altezza riga */
    display: inline-block;
  }

  /* Bande e contenuti interni */
  .pagina-hero { padding: 112px 20px 44px; }
  .pagina-contenuto { padding: 36px 20px 120px; } /* aria sopra la bottom bar */
  .scheda { padding: 36px 20px 120px; gap: 26px; }
  .scheda-cta { flex-direction: column; align-items: stretch; }
  .scheda-cta .cta-btn, .scheda-cta .cta-whatsapp { text-align: center; justify-content: center; }

  /* Slideshow: niente frecce (si usa lo swipe), pallini sopra la bottom bar */
  .mn-slide { padding: 96px 20px 150px; }
  .mn-slide-titolo { font-size: clamp(26px, 8vw, 34px); }
  .mn-ss-freccia { display: none; }
  .mn-ss-nav { bottom: 96px; }
  .mn-ss-dot { width: 12px; height: 12px; } /* più tappabili */

  /* Form: campi in colonna, respiro per la bottom bar */
  .form-riga-doppia { grid-template-columns: 1fr; }
  .form-iscrizione { margin: 0 16px 130px; padding: 26px 18px; }
  .form-invia { width: 100%; }
}

/* ── Custom logo nella navbar ── */
.site-nav .custom-logo-link {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 6px 12px;
}
.site-nav .custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 700px) {
  .site-nav .custom-logo { max-height: 34px; }
  .site-nav .custom-logo-link { padding: 5px 9px; }
}

/* ═══════════════════════════════════════════════
   v8 — PAGINA CONTATTI
   ═══════════════════════════════════════════════ */
.contatti-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}

/* Card dei canali diretti */
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 64px;
}
.contatto-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-decoration: none;
  color: var(--dark);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contatto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10,22,40,0.12);
  border-color: var(--accent2);
}
.contatto-wa:hover { border-color: #22C55E; }
.contatto-icona { font-size: 30px; margin-bottom: 4px; }
.contatto-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contatto-valore {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  word-break: break-word;
}
.contatto-nota { font-size: 13px; color: var(--muted); }

/* Sezione sedi */
.contatti-sezione { margin-bottom: 64px; }
.contatti-sezione h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 6px;
}
.contatti-sezione-sub { color: var(--muted); margin-bottom: 24px; }
.sedi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.sede-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
  color: #fff;
  border-radius: 14px;
  padding: 20px 18px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.sede-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(10,22,40,0.35);
}
.sede-card-icona { font-size: 20px; }
.sede-card-nome { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; }
.sede-card-via { font-size: 13px; color: rgba(255,255,255,0.75); }
.sede-card-maps {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* Il form su Contatti è già stilato (v6); qui solo il raccordo di larghezza */
.contatti-wrap .form-iscrizione { margin-left: auto; margin-right: auto; }

@media (max-width: 700px) {
  .contatti-wrap { padding: 36px 16px 120px; }
  .contatti-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 44px; }
  .contatto-card { padding: 18px 14px; }
  .contatto-valore { font-size: 14px; }
  .sedi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contatti-wrap .form-iscrizione { margin-left: 0; margin-right: 0; }
}

/* ── Sezioni-blocco (Contatti a blocchi): spaziatura quando impilate ── */
.mn-sezione { padding-top: 28px; padding-bottom: 28px; }
.mn-sezione:first-of-type { padding-top: 56px; }
.mn-sezione:last-of-type { padding-bottom: 100px; }
.mn-sezione .contatti-grid,
.mn-sezione .contatti-sezione { margin-bottom: 0; }
@media (max-width: 700px) {
  .mn-sezione:last-of-type { padding-bottom: 130px; }
}

/* ═══ v9 — BLOG ═══ */
.blog-wrap { max-width: 1060px; margin: 0 auto; padding: 56px 24px 90px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.articolo-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--dark);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.articolo-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,22,40,0.12); border-color: var(--accent2); }
.articolo-data { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.articolo-titolo { font-family: 'Syne', sans-serif; font-size: 20px; line-height: 1.25; }
.articolo-estratto { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.articolo-leggi { font-size: 13px; font-weight: 700; color: var(--accent2); }
.articolo-ritorno { margin-top: 40px; }
.pagina-contenuto ul { padding-left: 22px; }
.pagina-contenuto li { margin-bottom: 8px; }
@media (max-width: 700px) {
  .blog-wrap { padding: 36px 16px 120px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ═══ v10 — BLOG: card con foto, filtri, paginazione ═══ */
.blog-filtri { margin-bottom: 34px; }
.filtri-wrap a.filtro-btn { text-decoration: none; }

.articolo-card { padding: 0 0 22px; overflow: hidden; }
.articolo-card > *:not(.articolo-media) { margin-left: 24px; margin-right: 24px; }
.articolo-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
}
.articolo-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.articolo-card:hover .articolo-media img { transform: scale(1.05); }
.articolo-media-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  opacity: .85;
}
.articolo-cat {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(10,22,40,0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

/* Paginazione */
.blog-wrap .pagination { margin-top: 40px; }
.blog-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.blog-wrap .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.blog-wrap .page-numbers:hover { border-color: var(--accent2); color: var(--accent2); }
.blog-wrap .page-numbers.current { background: var(--dark); border-color: var(--dark); color: #fff; }
.blog-wrap .page-numbers.dots { border: none; background: none; }

@media (max-width: 700px) {
  .blog-filtri { margin-bottom: 24px; }
  .blog-wrap .page-numbers { padding: 10px 14px; } /* target touch */
}

/* ═══ v11 — SCHEDA BANDO ═══ */
.bando-hero-desc { max-width: 680px; margin: 16px auto 0; color: rgba(255,255,255,0.82); line-height: 1.65; }
.bando-hero-sedi { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.bando-hero-pill {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 13px;
  color: #fff;
}
.bando-scheda {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 90px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .bando-scheda { grid-template-columns: 1fr; } }
.bando-sezione-titolo { font-family: 'Syne', sans-serif; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.bando-sezione-sub { color: var(--muted); margin-bottom: 24px; }

.doc-sede {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  margin-bottom: 14px;
  overflow: hidden;
}
.doc-sede summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.doc-sede summary::-webkit-details-marker { display: none; }
.doc-sede summary::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--muted); }
.doc-sede[open] summary::after { content: '−'; }
.doc-sede[open] summary { border-bottom: 1px solid var(--border); }
.doc-sede-n { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--tag-bg); border-radius: 12px; padding: 4px 10px; }
.doc-sede-corpo { padding: 18px 20px; }
.doc-percorsi { margin-bottom: 20px; }
.doc-percorsi-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.doc-gruppo { margin-bottom: 20px; }
.doc-gruppo:last-child { margin-bottom: 0; }
.doc-gruppo-titolo { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.doc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark);
  font-size: 14px;
  margin-bottom: 8px;
  transition: border-color .2s, background .2s;
}
.doc-link:hover { border-color: var(--accent2); background: rgba(37,99,235,0.04); }
.doc-link-dl { font-size: 12px; font-weight: 700; color: var(--accent2); white-space: nowrap; }

.bando-info-card {
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bando-info-riga { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 12px; }
.bando-info-riga span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.bando-info-riga strong { font-size: 15px; }
.bando-stato { color: #4ADE80; }
.bando-info-card .cta-whatsapp, .bando-info-card .bando-tel { text-align: center; justify-content: center; text-decoration: none; }
.bando-link-esterno { font-size: 13px; color: var(--accent); text-align: center; }
@media (max-width: 700px) {
  .bando-scheda { padding: 36px 16px 130px; }
  .bando-info-card { position: static; }
}

/* ═══ v12 — FOOTER SEDI + LANDING DI SEDE ═══ */
.footer-sede {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-sede:hover { color: var(--accent); }
.footer-sede-via {
  display: block;
  font-size: 12px;
  opacity: .65;
  padding-left: 22px;
}

.sede-scheda {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 20px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .sede-scheda { grid-template-columns: 1fr; } }
.sede-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(10,22,40,0.16);
}
.sede-media-fallback {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
  border-radius: 16px;
}
.sede-contatto { color: inherit; text-decoration: none; word-break: break-word; }
.sede-contatto:hover { color: var(--accent); }
.sede-corsi { padding-top: 30px; }
@media (max-width: 700px) {
  .sede-scheda { padding: 36px 16px 10px; }
}

/* ═══ v13 — FOOTER LINK UTILI (SEO) ═══ */
.footer-seo {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 28px;
}
.footer-seo h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.footer-seo-menu {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px 24px;
}
.footer-seo-menu a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.footer-seo-menu a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .footer-seo-menu { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .footer-seo-menu a { display: inline-block; padding: 3px 0; }
}

/* Social nel footer */
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 5px 12px;
  transition: color .2s, border-color .2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
