@charset "utf-8";

:root {
  --primary: #0d2f50;
  --accent: #b40041;
  --light: #f5f7fb;
  --text: #1f2933;
  --muted: #5a6b7b;
}

* {
  box-sizing: border-box;
}

body {
  font: 100%/1.6 "Inter", "Segoe UI", Cambria, Verdana, Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at 10% 20%, #1a3c63 0%, #0a1d33 45%, #031020 100%);
  margin: 0;
  padding: 0;
  color: var(--text);
}

ul, ol, dl {
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
  padding-right: 15px;
  padding-left: 0px;
}

h1 {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

.elenco_corsi {
  font-family: Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 20px;
}

.testo {
  font: 80%/1.4 Cambria, Verdana, Arial, Helvetica, sans-serif;
}

.news {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 12px 0 0;
}

a img {
  border: none;
}

a:link {
  color: #245c93;
  text-decoration: underline;
}

a:visited {
  color: #1b4a76;
  text-decoration: underline;
}

a:hover, a:active, a:focus {
  text-decoration: none;
}

a:link.piccolo  {
  color:#414958;
  text-decoration: underline;
  font-size:12px;
}

a:visited.piccolo {
  color: #4E5869;
  text-decoration: underline;
}

a:hover.piccolo , a:active.piccolo , a:focus.piccolo {
  text-decoration: underline;
}

.bianco {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.bianco:hover,
.bianco:focus {
  color: #f3f4f6;
  text-decoration: underline;
}

.container {
  width: min(1200px, 95%);
  min-width: unset;
  max-width: 1200px;
  background: #ffffff;
  margin: 30px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.header {
  background: linear-gradient(135deg, #0c2a48, #10375c);
  color: #fff;
}

.header2 {
  background: #ffffff;
}

.header3 {
  background: linear-gradient(90deg, #b40041, #d91f60);
  color:#ffffff;
  padding: 12px 20px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 4px;
  position: relative;
}

.nav-toggle-label {
  font-size: 14px;
  text-transform: uppercase;
}

.header4 {
  background: #dfe6ef;
  height: 4px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 260px;
}

.nav-bar {
  padding: 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
}

.nav-mobile-only {
  display: none;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
}

.main-nav a:visited {
  color: #ffffff;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.sub-nav-desktop-only {
  width: 100%;
}

.course-details {
  max-width: 900px;
  margin: 0 auto 24px;
  border: 1px solid #d7dfe7;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e8edf2;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row--full {
  grid-template-columns: 1fr;
}

.detail-label {
  font-weight: 700;
  color: #123c70;
}

.detail-value {
  line-height: 1.6;
}

.course-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid #d7dfe7;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.course-card + .course-card {
  margin-top: 18px;
}

.course-media img {
  display: block;
  max-width: 170px;
  height: auto;
  border-radius: 10px;
}

.course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-title {
  margin: 0;
  font-size: 1.4rem;
  color: #123c70;
}

.course-meta {
  margin: 0;
  line-height: 1.6;
}

.label-warning {
  display: inline-block;
  padding: 6px 12px;
  background: #ffe4e6;
  color: #b00020;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.course-actions__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.button-cell {
  flex: 1 1 180px;
  display: flex;
  justify-content: flex-start;
}

.button-cell--align-right {
  justify-content: flex-end;
}

.sub-nav-wrapper {
  background: #0d2f50;
  padding: 10px 20px;
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sub-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  color: #ffffff;
}

.sub-nav a:visited {
  color: #ffffff;
}

.sub-nav a:hover,
.sub-nav a:focus {
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}


.sidebar1 {
  float: left;
  width: 28%;
  max-width: 320px;
  min-width: 240px;
  background: #ffffff;
  padding-bottom: 10px;
}

.content {
  background: #ffffff;
  padding: 20px;
  width: 72%;
  float: right;
  text-align: justify;
  overflow-wrap: anywhere;
}

.content2 {
  background: #ffffff;
  padding: 20px;
  width: 72%;
  float: right;
  overflow-wrap: anywhere;
}

.content img,
.content iframe,
.content2 img,
.content2 iframe {
  max-width: 100%;
  height: auto;
}

.content table,
.content2 table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.course-contents-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 24px;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.course-contents-card__body {
  padding: 12px 16px 20px;
}

.course-contents__table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.course-contents__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.course-contents__table th,
.course-contents__table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.course-contents__table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: #5a6b7b;
  font-weight: 700;
}

.course-contents__table td img {
  vertical-align: middle;
}

.course-contents__table tr:last-child th,
.course-contents__table tr:last-child td {
  border-bottom: none;
}

.course-contents__action a {
  font-weight: 700;
  color: #0d2f50;
  text-decoration: none;
}

.course-contents__action a:hover,
.course-contents__action a:focus {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .sidebar1,
  .content,
  .content2 {
    float: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

.content_pdf {
  padding: 0;
  width: 100%;
}

.content ul, .content ol {
  padding: 0 15px 15px 40px;
}

ul.nav {
  list-style: none;
  border-top: 1px solid #dfe3ea;
  margin-bottom: 15px;
}

ul.nav li {
  border-bottom: 1px solid #dfe3ea;
}

ul.nav a, ul.nav a:visited {
  padding: 10px 12px;
  display: block;
  text-decoration: none;
  background: #f4f7fb;
  color: var(--text);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

ul.nav a:hover, ul.nav a:active, ul.nav a:focus {
  background: #e7edf6;
  color: #0d2f50;
}

ul.nav_corso {
  list-style: none;
  border-top: 1px solid #dfe3ea;
  margin-bottom: 15px;
}

ul.nav_corso li {
  border: 1px solid #dfe3ea;
  border-bottom: none;
}

ul.nav_corso li:last-child {
  border-bottom: 1px solid #dfe3ea;
}

ul.nav_corso a, ul.nav_corso a:visited {
  padding: 10px 12px;
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

ul.nav_corso a:hover, ul.nav_corso a:active, ul.nav_corso a:focus {
  background: #e7edf6;
  color: #0d2f50;
}

li.nav_corso_now {
  display: block;
  background: #0d2f50;
  color: #FFF;
  padding: 10px 12px;
}

li.nav_corso_now a,
li.nav_corso_now a:visited {
  color: #fff;
}

li.nav_corso_now a:hover,
li.nav_corso_now a:active,
li.nav_corso_now a:focus {
  color: #fff;
}

.course-menu {
  width: 100%;
  background-color: #10375c;

}

.course-menu__header {
  justify-content: flex-start;
  padding: 0 0 0px;
}

.course-menu__toggle {
  display: none;
}

.course-menu__content {
  width: 100%;
}

.content-card {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 24px;
  background: #f7f9fc;
  border: 1px solid #e0e7f1;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.content-card__header {
  margin-bottom: 14px;
}

.content-card__kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6b7b;
  margin: 0 0 6px;
  font-weight: 700;
}

.content-card__meta {
  color: #5a6b7b;
  font-weight: 600;
  margin: 6px 0 0;
}

.content-card__body {
  color: #1f2933;
  line-height: 1.7;
  margin: 0 0 18px;
}

.content-card__body p:last-child {
  margin-bottom: 0;
}

.content-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  text-align: center;
}

.content-card__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 18px;
}

.status-banner img {
  width: 26px;
  height: 26px;
}

.status-banner__text {
  margin: 0;
}

.status-banner--complete {
  background: #e6f4ea;
  color: #1f6b3a;
}

.status-banner--pending {
  background: #fff4e5;
  color: #8a4b00;
}

.footer {
  padding: 20px;
  background: #0d2f50;
  color: #e8edf4;
  position: relative;
  clear: both;
  text-align:center;
  font-size:14px;
}

.fltrt {
  float: right;
  margin-left: 8px;
}

.fltlft {
  float: left;
  margin-right: 8px;
}

.clearfloat {
  clear:both;
  height:0;
  font-size: 1px;
  line-height: 0px;
}

.bottone1 {
  width:100%;
  max-width:135px;
  height:40px;
  background-image:url(images/bottone1.png);
  background-repeat:no-repeat;
  text-align:center;
  margin-top:3px;
  padding-top:9px;
  display: inline-block;
}

a:link.bottone1link {
  color:#b40041;
  text-decoration: none;
  font-size:16px;
  font-weight:bold;
}

a:visited.bottone1link {
  color:#b40041;
  text-decoration: none;font-weight:bold;
}

a:hover.bottone1link , a:active.bottone1link , a:focus.bottone1link {
  text-decoration: none;color:#000000;text-decoration: UNDERLINE;font-weight:bold;
}

.bottone2 a.bottone1link,
.bottone2 a:visited.bottone1link,
.bottone2 a:hover.bottone1link,
.bottone2 a:active.bottone1link,
.bottone2 a:focus.bottone1link {
  color: #ffffff;
}

.bottone2 {
  width:100%;
  max-width:250px;
  background: linear-gradient(135deg, #b40041, #d91f60);
  text-align:center;
  margin-top:3px;
  padding: 12px 16px;
  display: inline-block;
  border-radius: 12px;
    font-size:14px;
    text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

a:link.bottone2link {
  color:#ffffff;
  text-decoration: none;
  font-size:14px;
  font-weight: 700;
  display: block;
}

a:visited.bottone2link {
  color:#ffffff;
  text-decoration: none;
}

a:hover.bottone2link , a:active.bottone2link , a:focus.bottone2link {
  text-decoration: none;
  color:#ffe6f0;
}

.box_login {
  background-image:url(images/box_login.png);
  width:236px;
  min-height:155px;
}

.iscrizione {
  border: 1px solid #666;
}

.iscrizione2 {
  border: 1px dotted #666;
}

@media (max-width: 960px) {
  .container {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .header-bar {
    padding: 16px;
  }

  .content,
  .content2 {
    padding: 16px;
  }

  .content table,
  .content2 table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .course-contents-card {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  }

  .course-contents__table,
  .course-contents__table thead,
  .course-contents__table tbody,
  .course-contents__table th,
  .course-contents__table tr,
  .course-contents__table td {
    display: block;
    width: 100%;
  }

  .course-contents__table thead {
    display: none;
  }

  .course-contents__table tr {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 10px 6px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  .course-contents__table td {
    border: none;
    padding: 8px 6px;
    position: relative;
  }

  .course-contents__table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #5a6b7b;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .course-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .course-media img {
    max-width: 220px;
  }

  .course-body {
    width: 100%;
    text-align: left;
    align-items: stretch;
  }

  .course-actions,
  .course-actions__cta {
    justify-content: center;
  }

  .course-details {
    border-radius: 10px;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .elenco_corsi,
  .news {
    padding: 14px 16px;
  }
}

@media (max-width: 900px) {
  .header3 {
    padding: 12px 16px;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .course-menu__toggle {
    display: inline-flex;
  }

  .course-menu__content {
    display: none;
  }

  .course-menu__content.is-open {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 4px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .nav-mobile-only {
    display: block;
  }

  .sub-nav-wrapper {
    padding: 12px 16px;
  }

  .sub-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sub-nav-desktop-only {
    display: none;
  }

  .button-row {
    justify-content: center;
  }

  .button-cell--align-right {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .header-actions {
    justify-content: center;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .sub-nav-wrapper {
    text-align: left;
  }

  .sub-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 1.35rem;
  }
}

@media (max-width: 540px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    height: 54px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .hero-image {
    max-height: 280px;
    object-fit: cover;
  }

  .content-card {
    padding: 16px;
  }

  .content-card__footer {
    justify-content: flex-start;
  }
}
