@charset "utf-8";
/* ============================================================
   styleKarateSub.css — Stili per le pagine interne karate/
   (header, navbar, social e footer sono in ../shared.css)
   ============================================================ */

body {
  background: #e1e1e1 url("../bg.jpg") repeat-x fixed;
  font-family: "Times New Roman", Times, serif;
  color: #000;
}

/* ---------- SUB NAVBAR KARATE ---------- */
.subnav-karate {
  background: #1a1a1a;
  border-bottom: 3px solid #990000;
}

.subnav-karate .nav-link {
  color: #ccc;
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem .75rem;
  transition: color .2s ease, background .2s ease;
}

.subnav-karate .nav-link:hover,
.subnav-karate .nav-link:focus {
  color: #fff;
  background: rgba(153, 0, 0, .25);
}

.subnav-karate .nav-link.active {
  color: #fff;
  background: #990000;
}

.subnav-karate .subnav-separator {
  color: #555;
  font-weight: 400;
}

/* ---------- CONTENUTO PRINCIPALE ---------- */
.karate-content-card {
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180, 40, 40, .10) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, #fffef9 0%, #fdf6f0 40%, #faf3e6 100%);
}

.karate-content-card .card-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.karate-content-card h1 {
  color: #990000;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.karate-content-card h2 {
  color: #8b1a00;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 1.8rem;
}

.karate-content-card h3 {
  color: #990000;
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 1.5rem;
}

.karate-content-card h4 {
  color: #990000;
  font-weight: 700;
  font-size: 1.35rem;
}

.karate-content-card article {
  text-align: justify;
}

.karate-content-card ul {
  list-style: disc;
  padding-left: 1.6rem;
  margin-bottom: 1.2rem;
}

.karate-content-card ul li {
  margin-bottom: .45rem;
}

/* ---------- QUICK LINKS ---------- */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 1.8rem;
}

.cta-link {
  display: inline-block;
  margin-top: .35rem;
  padding: .48rem .88rem;
  border-radius: 999px;
  border: 1px solid #b25f2f;
  background: linear-gradient(180deg, #fff3e8 0%, #ffe3cd 100%);
  color: #7a1f00;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: .01em;
  transition: all .2s ease;
}

.cta-link:hover,
.cta-link:focus {
  color: #ffffff !important;
  background: linear-gradient(180deg, #a84b18 0%, #7a2f0a 100%);
  border-color: #7a2f0a;
  transform: translateY(-1px);
}

/* ---------- IMMAGINI KARATE ---------- */
.karate-img-center {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.karate-img-float-left {
  float: left;
  margin: .5rem 1.2rem .8rem 0;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.karate-img-float-right {
  float: right;
  margin: .5rem 0 .8rem 1.2rem;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- SEPARATORE ---------- */
.karate-separator {
  width: 60%;
  margin: 1.8rem auto;
  border-color: #c9a28b;
}

/* ---------- TABELLA STILI ---------- */
.karate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.karate-table td {
  padding: .4rem .6rem;
  border: 1px solid #ddd;
  vertical-align: top;
}

/* ---------- DOWNLOAD LIST ---------- */
.download-list {
  list-style: none;
  padding-left: 0;
}

.download-list li {
  margin-bottom: .6rem;
  padding: .5rem .8rem;
  background: #fdf6f0;
  border-left: 4px solid #990000;
  border-radius: 0 6px 6px 0;
}

.download-list a {
  color: #990000;
  font-weight: 600;
  text-decoration: none;
}

.download-list a:hover {
  text-decoration: underline;
}

/* ---------- DIZIONARIO ---------- */
.karate-dict dt {
  font-weight: 700;
  color: #990000;
  margin-top: .8rem;
}

.karate-dict dd {
  margin-left: 1.2rem;
  margin-bottom: .5rem;
  padding-bottom: .5rem;
  border-bottom: 1px dotted #d7b28d;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 991.98px) {
  .karate-content-card h1 {
    font-size: 1.8rem;
  }

  .karate-content-card .card-body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .karate-img-float-left,
  .karate-img-float-right {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }
}

@media (max-width: 575.98px) {
  body {
    background-attachment: scroll;
  }

  .karate-content-card h1 {
    font-size: 1.55rem;
  }

  .karate-content-card .card-body {
    font-size: .95rem;
  }

  .karate-content-card h2 {
    font-size: 1.25rem;
  }

  .karate-content-card h4 {
    font-size: 1.15rem;
  }

  .karate-separator {
    width: 80%;
  }

  .cta-link {
    font-size: .93rem;
    padding: .42rem .78rem;
  }
}