/* =====================================================
   ilbarone.net - Custom Stylesheet
   Tema scuro professionale
   ===================================================== */

:root {
  --bg:     #0d1117;
  --bg2:    #161b22;
  --bg3:    #1e2430;
  --accent: #10ffb4;
  --blue:   #3b82f6;
  --red:    #ef4444;
  --orange: #f59e0b;
  --green:  #22c55e;
  --purple: #a855f7;
  --text:   #e6edf3;
  --muted:  #8b949e;
  --border: rgba(255,255,255,.08);
  --r:      12px;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-top: 72px;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }

img { max-width: 100%; height: auto; }

/* ── Brand gradient ── */
.brand-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ── */
#mainNav {
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

#mainNav .navbar-brand {
  font-size: 1.6rem;
  letter-spacing: -.02em;
  gap: .75rem !important;
}

#mainNav .navbar-logo {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.4), 0 0 0 2px rgba(16,255,180,.25);
  background: #0d1117;
  flex-shrink: 0;
}

#mainNav .navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  #mainNav .navbar-logo {
    width: 60px;
    height: 60px;
  }
  #mainNav .navbar-brand {
    font-size: 1.3rem;
  }
}

#mainNav .nav-link {
  color: var(--muted) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem !important;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--text) !important;
  background: var(--border);
}

#mainNav .nav-link.active {
  color: var(--accent) !important;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(16,255,180,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(59,130,246,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  opacity: .4;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(16,255,180,.08);
  border: 1px solid rgba(16,255,180,.2);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border-radius: 8px;
  transition: border-color .2s, background .2s;
}

.badge-tech:hover {
  border-color: var(--accent);
  background: rgba(16,255,180,.05);
  color: var(--text);
}

.badge-tech i { color: var(--accent); }

/* ── Buttons ── */
.btn-accent {
  background: var(--accent);
  color: #0d1117;
  font-weight: 700;
  padding: .7rem 1.8rem;
  border-radius: 10px;
  border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 20px rgba(16,255,180,.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16,255,180,.35);
  opacity: .92;
  color: #0d1117;
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: .7rem 1.8rem;
  border-radius: 10px;
  border: 1.5px solid var(--accent);
  transition: background .2s, color .2s, transform .2s;
}

.btn-outline-accent:hover {
  background: rgba(16,255,180,.1);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Section ── */
.section { padding: 5rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .6rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── Cards ── */
.card-dark {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card-dark:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(16,255,180,.18);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.icon-accent  { background: rgba(16,255,180,.12); color: var(--accent); }
.icon-blue    { background: rgba(59,130,246,.12);  color: var(--blue);   }
.icon-green   { background: rgba(34,197,94,.12);   color: var(--green);  }
.icon-orange  { background: rgba(245,158,11,.12);  color: var(--orange); }
.icon-purple  { background: rgba(168,85,247,.12);  color: var(--purple); }
.icon-red     { background: rgba(239,68,68,.12);   color: var(--red);    }
.icon-muted   { background: rgba(139,148,158,.12); color: var(--muted);  }

.card-dark h4, .card-dark h5 { color: var(--text); margin-bottom: .5rem; }
.card-dark p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }

/* ── Service cards ── */
.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card:hover.border-accent { border-color: var(--accent); }
.service-card:hover.border-blue   { border-color: var(--blue);   }
.service-card:hover.border-green  { border-color: var(--green);  }
.service-card:hover.border-orange { border-color: var(--orange); }
.service-card:hover.border-purple { border-color: var(--purple); }
.service-card:hover.border-muted  { border-color: var(--muted);  }

.service-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.service-card h5 { font-size: 1.1rem; margin-bottom: .2rem; }
.service-card p  { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

.service-card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .88rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}

/* ── Timeline ── */
.timeline { position: relative; padding: 2rem 0; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), var(--blue), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.2rem;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  border: 3px solid var(--bg);
  z-index: 1;
}

.timeline-dot.dot-study { background: rgba(16,255,180,.15); color: var(--accent); border-color: var(--accent); }
.timeline-dot.dot-work  { background: rgba(59,130,246,.15); color: var(--blue);   border-color: var(--blue);   }

.timeline-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  max-width: 440px;
  width: 100%;
  transition: transform .25s, box-shadow .25s;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.timeline-year {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}

.timeline-card h5 { font-size: 1.05rem; margin-bottom: .2rem; }
.timeline-card .inst { color: var(--muted); font-size: .88rem; margin-bottom: .6rem; }
.timeline-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* Timeline mobile */
@media (max-width: 767px) {
  .timeline::before { left: 22px; }

  .timeline-item,
  .timeline-item.right {
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 22px;
    width: 36px;
    height: 36px;
    font-size: .8rem;
  }

  .timeline-card { max-width: 100%; }
}

/* ── Hero page (non-index) ── */
.page-hero {
  padding: 5rem 0 3.5rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,255,180,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Work cards ── */
.work-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.2rem;
  height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.work-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.work-card .tagline { color: var(--muted); font-size: .9rem; }

.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .45rem 0;
  color: var(--muted);
  font-size: .93rem;
  border-bottom: 1px solid var(--border);
}

.work-list li:last-child { border-bottom: none; }
.work-list li i { color: var(--accent); margin-top: .25rem; flex-shrink: 0; }

/* ── Contact ── */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.2rem;
}

.contact-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.8rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-item h6 { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; font-weight: 600; }
.contact-info-item p, .contact-info-item a { color: var(--text); margin: 0; font-size: .97rem; }

/* Form styling */
.form-control, .form-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(16,255,180,.1);
}

.form-control::placeholder { color: var(--muted); }
.form-label { color: var(--text); font-weight: 500; font-size: .92rem; margin-bottom: .4rem; }

/* Alert */
.alert-success-custom {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  color: var(--green);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.alert-error-custom {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: var(--red);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

/* ── Social icons ── */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted) !important;
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.social-icon:hover {
  color: var(--text) !important;
  background: var(--bg2);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.social-whatsapp:hover { border-color: var(--green) !important; color: var(--green) !important; }

/* Social large (contatti page) */
.social-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1.4rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.footer .text-muted { color: #a0aab4 !important; }

.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .7rem; color: var(--muted); font-size: .92rem; }
.footer-contact a { color: var(--muted); transition: color .2s; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom p,
.footer-bottom .small {
  color: #a0aab4 !important;
}

/* ── Divider ── */
.divider-accent {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 2px;
  margin: .8rem 0 1.5rem;
}

/* ── Fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* delay helpers */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── Highlight strip ── */
.highlight-strip {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Project card ── */
.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem;
  height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(59,130,246,.2);
}

.tech-tag {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 6px;
  margin: .15rem;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Utilities ── */
.text-accent  { color: var(--accent)  !important; }
.text-blue    { color: var(--blue)    !important; }
.text-green   { color: var(--green)   !important; }
.text-orange  { color: var(--orange)  !important; }
.text-purple  { color: var(--purple)  !important; }
.text-muted-custom { color: var(--muted) !important; }

.bg-bg2 { background: var(--bg2); }
.bg-bg3 { background: var(--bg3); }

.border-custom { border-color: var(--border) !important; }

/* ── Responsive tweaks ── */
@media (max-width: 991px) {
  #navbarNav {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: .8rem;
    margin-top: .5rem;
  }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
  .card-dark, .work-card, .contact-form, .contact-info-card { padding: 1.3rem; }
}

/* ── My IP Page ── */
.ip-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}
.ip-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(16,255,180,.15), rgba(59,130,246,.1));
  border: 1px solid rgba(16,255,180,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--accent);
  margin: 0 auto;
}
.ip-label { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.ip-address {
  font-size: 2.4rem; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-family: 'Courier New', monospace;
}
.btn-copy {
  background: var(--bg3); border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; padding: 6px 16px; cursor: pointer; font-size: .85rem;
  transition: all .2s;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }

.geo-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.8rem; box-shadow: var(--shadow);
}
.geo-list { list-style: none; padding: 0; margin: 0; }
.geo-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0; border-bottom: 1px solid var(--border); gap: 1rem;
}
.geo-list li:last-child { border-bottom: none; }
.geo-key { color: var(--muted); font-size: .85rem; flex-shrink: 0; }
.geo-val { color: var(--text); font-weight: 500; font-size: .9rem; text-align: right; }
.geo-note { color: var(--muted); font-size: .78rem; line-height: 1.5; border-top: 1px solid var(--border); padding-top: 1rem; }

.map-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 380px;
}
#map { width: 100%; height: 100%; min-height: 380px; }

.map-marker-pin {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(16,255,180,.4);
}
.map-marker-pin i { transform: rotate(45deg); color: #000; font-size: .95rem; }

/* ── Tutorials ── */
.tut-cat-card {
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow); height: 100%;
}
.tut-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--cat-color);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.tut-cat-icon {
  padding: 1.8rem 1.8rem 0;
  font-size: 2.2rem;
  color: var(--cat-color);
}
.tut-cat-body { padding: 1rem 1.8rem; flex: 1; }
.tut-cat-name { color: var(--text); font-weight: 700; font-size: 1.1rem; margin-bottom: .4rem; }
.tut-cat-desc { color: var(--muted); font-size: .85rem; line-height: 1.55; margin: 0; }
.tut-cat-footer {
  padding: .9rem 1.8rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.tut-art-count { color: var(--muted); font-size: .8rem; }
.tut-arrow { color: var(--cat-color); transition: transform .2s; }
.tut-cat-card:hover .tut-arrow { transform: translateX(4px); }

.tut-hero-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: color-mix(in srgb, var(--cat-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--cat-color);
}

.tut-art-card {
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow); height: 100%;
}
.tut-art-card:hover { transform: translateY(-3px); border-color: var(--cat-color); box-shadow: 0 10px 32px rgba(0,0,0,.45); }
.tut-art-body { flex: 1; }
.tut-art-title { color: var(--text); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.tut-art-sommario { color: var(--muted); font-size: .85rem; line-height: 1.55; margin: 0; }
.tut-art-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .8rem;
}
.tut-art-meta .tut-arrow { color: var(--cat-color); transition: transform .2s; }
.tut-art-card:hover .tut-arrow { transform: translateX(4px); }

.tut-breadcrumb { font-size: .85rem; }
.tut-breadcrumb a { color: var(--accent); text-decoration: none; }
.tut-breadcrumb a:hover { text-decoration: underline; }

.tut-article-body {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2.5rem;
  color: var(--text); line-height: 1.8; font-size: .97rem;
}
.tut-article-body h2, .tut-article-body h3 { color: var(--accent); margin-top: 2rem; }
.tut-article-body pre { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; overflow-x: auto; }
.tut-article-body code { background: var(--bg3); padding: 2px 6px; border-radius: 4px; font-size: .9em; color: var(--accent); }
.tut-article-body pre code { background: none; padding: 0; color: var(--text); }
.tut-article-body img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.tut-article-body a { color: var(--accent); }
.tut-article-body ul, .tut-article-body ol { padding-left: 1.5rem; }

.btn-back { color: var(--muted); font-size: .9rem; text-decoration: none; transition: color .2s; }
.btn-back:hover { color: var(--accent); }

/* ── Work in progress badge ── */
.wip-badge {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(245,158,11,.05));
  border: 2px solid rgba(245,158,11,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--orange);
}

/* ── Language switcher ── */
.lang-switcher { border-left: 1px solid var(--border); padding-left: .75rem; gap: .5rem; }
.lang-btn { opacity: .5; transition: opacity .2s; border-radius: 3px; overflow: hidden; display: inline-block; }
.lang-btn:hover, .lang-btn.active { opacity: 1; }
.lang-btn.active { box-shadow: 0 0 0 2px var(--accent); }
