@charset "UTF-8";

:root {

  --bs-body-font-family: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  --gradient: linear-gradient(90deg, var(--brand-blue) -30%, var(--brand-orange) 100%);
  --brand-blue: #275F8E;
  --brand-orange: #F7A247;
}

body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

.dashboard-page {
  max-width: 1500px;
}

.dashboard-section {
  scroll-margin-top: 120px;
}

.dashboard-sidebar {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(20, 33, 52, 0.06);
}

.dashboard-sidebar-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #5b6877;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-sidebar-link {
  display: block;
  text-decoration: none;
  color: #364151;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-sidebar-link:hover,
.dashboard-sidebar-link:focus {
  background: #eef4fb;
  color: var(--brand-blue);
}

.dashboard-sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(39, 95, 142, 0.12), rgba(247, 162, 71, 0.2));
  color: #1d3f5f;
}


/*#region NAVBAR */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0rem;
  background-color: #fff;
  background-image: var(--gradient);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 4px;
}

.navbar>.container{
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .dropdown-menu {
  position: static;
}

.navbar-text {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: black;
}



.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}


.navbar-toggler {
  display: none;
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: black;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  transition: box-shadow 0.15s ease-in-out;
}

@media (max-width: 991.98px) {
  .navbar-toggler {
    display: inline-block;
  }
}

.navbar-toggler:hover {
  text-decoration: none;
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 0.25rem;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}


.navbarText {
  display: inline-block;
  position: relative;
  color: var(--bs-navbar-color);
  font-weight: 600;
  padding-bottom: 6px;
  transition: color 0.18s ease;
  text-decoration: none;
  font-size: 1.2rem;
}

.navbarText::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-blue, #1D809F), var(--brand-orange, #FF7A00));
  transition: width 0.25s ease;
}

.navbarText:hover,
.navbarText:focus {
  color: var(--bs-navbar-active-color);
  text-decoration: none;
}

.navbarText:hover::after,
.navbarText:focus::after {
  width: 100%;
}

/*#endregion */

/*#region BTN */

.btn {
  color: #fff;
  background-image: linear-gradient(135deg, var(--brand-blue, #1D809F) 0%, var(--brand-orange, #FF7A00) 100%);
  border: none;
  box-shadow: 0 2px 6px rgba(13, 46, 66, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  padding: 1rem;
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--brand-blue, #1D809F) 0%, var(--brand-orange, #FF7A00) 100%);
  color: #fff;
  border: none;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 46, 66, 0.18);
  opacity: 0.95;
  color: #fff;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(13, 46, 66, 0.14);
}

.btn-outline-primary {
  color: var(--brand-blue, #1D809F);
  background-color: transparent;
  border: 1px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, var(--brand-blue, #1D809F), var(--brand-orange, #FF7A00));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/*#endregion */


.menu-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #fff;
  background: rgba(52, 58, 64, 0.5);
  line-height: 50px;
  z-index: 999;
}


footer.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #000;
  min-height: 100px;
  background-color: white;
}


footer.footer .social-link {
  display: block;
  text-decoration: none;
  height: 4rem;
  width: 4rem;
  line-height: 4.3rem;
  font-size: 1.5rem;
  background-color: #1D809F;
  transition: background-color 0.15s ease-in-out;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}

footer.footer .social-link:hover {
  background-color: #155d74;
  text-decoration: none;
}

.masthead {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%), url("../assets/bg_home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 0 1rem;
}

.masthead h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0;
  padding: 0;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.masthead .h1 {
  font-size: 4rem;
  margin: 0;
  padding: 0;
}

.threat-chart {
  border: 0;
}

.threat-chart-bar {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: #e9ecef;
}

.threat-chart-blocked {
  background: linear-gradient(90deg, #1f8f4a, #58be6f);
  min-width: 0;
}

.threat-chart-detected {
  background: linear-gradient(90deg, #d58d00, #f6b93b);
  min-width: 0;
}

.threat-chart-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.threat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #495057;
}

.threat-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.threat-dot.blocked {
  background-color: #2caa56;
}

.threat-dot.detected {
  background-color: #e6a11a;
}

@media (min-width: 992px) {
  .masthead h1,
  .masthead .h1 {
    font-size: 5.5rem;
  }
}



.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.55), rgba(253, 126, 20, 0.55));
  pointer-events: none;
}

.masthead>* {
  position: relative;
  z-index: 2;
}

.masthead-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
}

.masthead .btn {
  z-index: 3;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .masthead h1 {
    font-size: 2rem;
  }

  .masthead .btn {
    font-size: 1rem;
  }

}

.js-consiglio-ai-btn:hover {
  color: black;
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    position: static;
    top: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.75rem;
  }

  .dashboard-sidebar-title {
    display: none;
  }

  .dashboard-sidebar-link {
    display: inline-flex;
    margin-bottom: 0;
  }
}