:root {
  --teal: #019990;
  --lime: #daf600;
  --yellow: #e7e94a;
  --navy: #172c3c;
  --orange: #f47721;
  --bordeaux: #8e2254;
  --grey: #f4f4f4;
  --black: #202020;
  --dark-teal: #006663;
  --white: #fff;
}

html, body {
  scroll-behavior: smooth;
  min-width: 320px;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--grey);
  color: var(--black);
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3, .display-1, .display-2, .display-3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.bg-lime {
  background: var(--lime) !important;
  color: var(--black) !important;
}

.bg-yellow {
  background: var(--yellow) !important;
  color: var(--black) !important;
}

.bg-teal {
  background: var(--teal) !important;
  color: var(--white) !important;
}

.bg-navy {
  background: var(--navy) !important;
  color: var(--lime) !important;
}

.text-teal {
  color: var(--teal) !important;
}

.text-yellow {
  color: var(--yellow) !important;
}

.text-bordeaux {
  color: var(--bordeaux) !important;
}

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

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

.brutal-card {
  border: 4px solid var(--bordeaux);
  border-radius: 0;
  background: var(--yellow);
  font-weight: 900;
  box-shadow: none;
  margin-bottom: 1em;
  padding: 2rem;
}

.brutal-btn {
  border: 4px solid var(--orange);
  border-radius: 0;
  background: var(--lime);
  color: var(--black);
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: none;
}

.brutal-btn:hover, .brutal-btn:focus {
  background: var(--orange);
  color: #fff;
  border-color: var(--lime);
}

.header-logo {
  width: 400px;
  height: auto;
  max-width: 50vw;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  width: 1.5em;
  height: 1.5em;
  border-radius: 0;
  margin: 0 .15em;
  text-align: center;
  color: var(--yellow);
  background: none;
  transition: .19s;
  border: 3px solid var(--lime);
  background: var(--navy);
}

.social-icon:hover, .social-icon:focus {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--orange);
  text-decoration: none;
}

.hero-bg-header {
  background: var(--teal);
  min-height: 100vh;
  width: 100vw;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: var(--teal);*/
  opacity: 0.75;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-header .container-fluid {
  position: relative;
  z-index: 2;
}

.section-block {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

@media (max-width:768px) {
  .social-icon {
    font-size: 1.45em;
  }
}

@media (max-width:768px) {
  .footer-istituzionali {
    max-width: 100%;
  }
}

@media (max-width:768px) {
  .navbar-brand {
    font-size: 1.24rem;
  }
}

@media (max-width:768px) {
  .section-block {
    padding-top: 70px;
  }
}

.footer-istituzionali {
  max-width: 960px;
  margin: 0 auto;
  display: block;
  height: auto;
  width: 100%;
}

.lead-brochure {
  font-size: 1.25em;
  font-weight: 600;
}

.section-title {
  font-size: 2em;
  margin-bottom: 0.4em;
}

.section-subtitle {
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bordeaux);
  margin-bottom: 0.8em;
}

.brochure-banner {
  font-size: 1.05em;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  margin: 10px 0 0 0;
  display: inline-block;
}

.impegni-list {
  font-size: 1.50em;
  font-weight: 600;
  background: var(--grey);
  border: 0;
  margin-bottom: 0.75em;
  padding: 0.75em 1em;
  border-left: 6px solid var(--bordeaux);
}

/* navbar fissa */

.navbar {
  background: var(--dark-teal);
}

.navbar a, .navbar .navbar-brand {
  color: var(--yellow) !important;
  font-weight: 800;
  font-family: 'Space Grotesk', Arial, sans-serif;
  letter-spacing: 0.03em;
}

.navbar-nav .nav-link.active {
  color: var(--orange) !important;
  border-bottom: 2px solid var(--lime);
}

.nav-link {
  margin: 0 8px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--orange) !important;
}

/* Per immagini real-life con bordo brutalista */

.real-img {
  border: 4px solid var(--navy);
  border-radius: 0;
  margin-bottom: 1em;
  object-fit: cover;
  max-width: 100%;
  max-height: 360px;
}

#principi {
  background: url("../../assets/img/intrecci3.png") left bottom / 80% auto no-repeat;
}

#progetto {
  background: url("../../assets/img/intrecci4.png") right / auto 175% no-repeat;
}

#contatti {
  background: url("../../assets/img/intrecci.png") 350% top / 80% auto no-repeat, linear-gradient(var(--navy), var(--navy));
}

@media (min-width: 300px) {
  #progetto {
  }
}

@media (max-width: 900px) {
  #contatti {
    background-size: auto 100%;
    background-position: 67vw center;
  }
}

