@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 700 900;
  src: url("../fonts/lato-700.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700 900;
  src: url("../fonts/montserrat-700.woff2") format("woff2");
}

:root {
  --mec-blue: #6fa6d4;
  --mec-blue-dark: #2f668f;
  --mec-dark: #1f2933;
  --mec-muted: #64748b;
  --mec-soft: #f2f7fb;
  --mec-accent: #febe85;
  --mec-font-body: "Lato", Arial, sans-serif;
  --mec-font-heading: "Montserrat", Arial, sans-serif;
}

body {
  color: var(--mec-dark);
  font-family: var(--mec-font-body);
  line-height: 1.65;
}

.page-loader {
  align-items: center;
  background: #fff;
  display: none;
  inset: 0;
  justify-content: center;
  opacity: 1;
  position: fixed;
  transition: opacity .35s ease, visibility .35s ease;
  visibility: visible;
  z-index: 2147483647;
}

.js .page-loader {
  display: flex;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.page-loader__logo {
  animation: page-loader-fade 1s ease-in-out infinite alternate;
  height: auto;
  transform-origin: center;
  will-change: opacity, transform;
  width: clamp(150px, 18vw, 220px);
}

@keyframes page-loader-fade {
  from {
    opacity: .28;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    transition-duration: .01ms;
  }

  .page-loader__logo {
    animation: none;
    transform: none;
  }
}

button,
input,
select,
textarea {
  font-family: var(--mec-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-slide-title,
.cookie-banner__copy strong,
.cookie-panel__head strong,
.cookie-option strong {
  font-family: var(--mec-font-heading);
}

a {
  color: var(--mec-blue-dark);
  text-decoration: none;
}

a:hover {
  color: #174463;
}

.btn {
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary {
  --bs-btn-bg: var(--mec-blue);
  --bs-btn-border-color: var(--mec-blue);
  --bs-btn-hover-bg: var(--mec-blue-dark);
  --bs-btn-hover-border-color: var(--mec-blue-dark);
}

.btn-secondary {
  --bs-btn-bg: var(--mec-accent);
  --bs-btn-border-color: var(--mec-accent);
  --bs-btn-color: #26313d;
  --bs-btn-hover-bg: #f5a766;
  --bs-btn-hover-border-color: #f5a766;
  --bs-btn-hover-color: #26313d;
}

.btn-outline-primary {
  --bs-btn-color: var(--mec-blue-dark);
  --bs-btn-border-color: var(--mec-blue);
  --bs-btn-hover-bg: var(--mec-blue);
  --bs-btn-hover-border-color: var(--mec-blue);
}

.site-header {
  box-shadow: 0 8px 30px rgba(15, 23, 42, .04);
}

.brand-logo {
  width: 168px;
  max-height: 58px;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
  letter-spacing: .06em;
}

.navbar {
  min-height: 76px;
}

.navbar-nav .nav-link {
  color: #1f2933;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--mec-blue-dark);
}

.dropdown-menu {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  padding: .6rem;
}

.dropdown-item {
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 700;
  padding: .65rem .8rem;
}

.skip-link {
  background: #fff;
  color: var(--mec-dark);
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: 1rem;
  z-index: 1100;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
  min-height: calc(100vh - 76px);
}

.hero-slide {
  background-position: var(--hero-position, center);
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.min-vh-hero {
  min-height: calc(100vh - 76px);
  padding: 6rem 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1,
.hero-slide-title,
.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: .98;
  margin-bottom: 1.35rem;
}

.hero-slide-title {
  margin-bottom: 1.35rem;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  opacity: .78;
  width: 7%;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

.hero-carousel .carousel-indicators {
  bottom: 1.4rem;
  margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  border: 2px solid #fff;
  border-radius: 50%;
  height: 10px;
  margin: 0 5px;
  opacity: .65;
  width: 10px;
}

.hero-carousel .carousel-indicators .active {
  background-color: #fff;
  opacity: 1;
}

.hero-copy .lead,
.page-hero .lead {
  max-width: 690px;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.section-pad {
  padding: 5.5rem 0;
}

.bg-soft {
  background: var(--mec-soft);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.06;
}

.process-card,
.feature-card,
.post-card,
.service-card,
.contact-panel,
.contact-form,
.catalog-card {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, .16);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.process-card {
  padding: 2.3rem;
}

.process-card h2,
.feature-card h3,
.service-card h3,
.post-body h2,
.post-body h3,
.catalog-body h3 {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.process-card p,
.feature-card p,
.service-card p,
.post-body p {
  color: var(--mec-muted);
  margin-bottom: 0;
}

.feature-card {
  padding: 2rem 1.4rem;
}

.feature-icon {
  height: 74px;
  margin-bottom: 1.25rem;
  object-fit: contain;
  width: 74px;
}

.image-band {
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.image-band-media {
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.image-band-media::after {
  background: linear-gradient(90deg, rgba(31, 41, 51, .72), rgba(31, 41, 51, .18));
  content: "";
  inset: 0;
  position: absolute;
}

.image-band .container {
  min-height: 560px;
  position: relative;
}

.image-band-panel {
  color: #fff;
  max-width: 560px;
  padding-top: 9rem;
}

.image-band-panel h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
}

.service-card,
.post-card,
.catalog-card {
  overflow: hidden;
}

.service-image,
.post-image {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.service-body,
.post-body,
.catalog-body {
  padding: 1.35rem;
}

.client-section {
  background: #fff;
}

.client-title {
  color: #505050;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 3rem;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 3rem;
}

.client-logo {
  align-items: center;
  display: flex;
  flex: 0 0 25%;
  justify-content: center;
  min-height: 170px;
  padding: 1rem 2rem;
}

.client-logo img {
  display: block;
  height: 150px;
  max-width: 210px;
  object-fit: contain;
  width: 100%;
}

.post-body time,
.article-hero time {
  color: var(--mec-blue-dark);
  display: inline-block;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: .65rem;
  text-transform: uppercase;
}

.article-meta {
  align-items: center;
  color: var(--mec-blue-dark);
  display: flex;
  flex-wrap: wrap;
  font-size: .78rem;
  font-weight: 900;
  gap: .45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-meta time,
.article-meta span {
  align-items: center;
  display: inline-flex;
  line-height: 1;
  margin-bottom: 0;
}

.article-meta span::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  flex: 0 0 4px;
  height: 4px;
  margin-right: .45rem;
  width: 4px;
}

.post-body h2 a,
.post-body h3 a {
  color: var(--mec-dark);
}

.read-more,
.back-link {
  display: inline-block;
  font-weight: 800;
  margin-top: .75rem;
}

.page-hero {
  background: linear-gradient(
    135deg,
    rgba(111, 166, 212, .18) 0%,
    rgba(242, 247, 251, .82) 34%,
    #fff 68%,
    rgba(254, 190, 133, .16) 100%
  );
  padding: 6rem 0;
}

.page-hero.compact {
  padding: 5rem 0;
}

.article-cover {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
  object-fit: cover;
  width: 100%;
}

.page-hero-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
  object-fit: cover;
  width: 100%;
}

.page-hero-image-abbigliamento-promozionale {
  object-position: 30% center;
}

.article-content {
  font-size: 1.08rem;
  margin: 0 auto;
  max-width: none;
  width: 100%;
}

.article-content img {
  border-radius: 8px;
  height: auto;
  margin: 1.5rem 0;
  max-width: 100%;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-weight: 800;
  line-height: 1.18;
  margin-top: 2rem;
}

.related-posts {
  background: var(--mec-light);
}

.related-posts-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.content-page-body > h2 {
  color: var(--mec-blue-dark);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin-top: 3rem;
}

.content-page-body > h2:first-child,
.content-page-body > p:first-child {
  margin-top: 0;
}

.content-page-body ul,
.content-page-body ol {
  padding-left: 1.25rem;
}

.content-page-body a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page-cta {
  background: var(--mec-soft);
  border-left: 4px solid var(--mec-blue);
  margin: 4rem auto 0;
  max-width: 820px;
  padding: 2rem;
}

.content-page-cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.catalog-section + .catalog-section {
  border-top: 1px solid rgba(100, 116, 139, .22);
  margin-top: 4.5rem;
  padding-top: 4.5rem;
}

.catalog-section-title {
  color: var(--mec-dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

.catalog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.catalog-card img {
  aspect-ratio: 3 / 4;
  background: var(--mec-soft);
  object-fit: cover;
  width: 100%;
}

.contact-panel,
.contact-form {
  padding: 2rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.contact-list strong,
.contact-list a {
  display: block;
}

.contact-list strong {
  color: var(--mec-muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-control {
  border-radius: 8px;
  padding: .85rem 1rem;
}

.contact-trap {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.contact-success-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(22, 34, 47, .2);
  padding: .5rem 1rem 1.25rem;
}

.contact-success-icon {
  color: var(--mec-blue);
  display: inline-block;
  font-size: 3rem;
  line-height: 1;
}

.site-footer {
  background: var(--mec-blue);
  color: #fff;
}

.footer-cta {
  padding-top: 4rem;
}

.footer-cta .container {
  transform: translateY(-1.5rem);
}

.footer-cta-box {
  color: var(--mec-dark);
  padding: 2.3rem;
}

.footer-icon {
  height: 60px;
  object-fit: contain;
  width: 60px;
}

.footer-bottom {
  padding: 0 0 2.2rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links {
  gap: .55rem 1rem;
}

.footer-social {
  align-items: center;
  justify-content: flex-end;
}

.footer-social a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.15rem;
  height: 36px;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease;
  width: 36px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: #fff;
  color: var(--mec-blue);
}

.footer-bottom a {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-header {
    z-index: 2147483002;
  }

  .site-header .navbar > .container {
    position: relative;
  }

  .navbar-brand,
  .navbar-toggler {
    position: relative;
    z-index: 2;
  }

  .navbar-toggler {
    align-items: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    width: 48px;
  }

  .navbar-toggler:focus,
  .navbar-toggler:focus-visible {
    box-shadow: none;
    outline: 2px solid var(--mec-blue);
    outline-offset: 4px;
  }

  .menu-toggle-lines {
    display: grid;
    gap: 6px;
    width: 29px;
  }

  .menu-toggle-lines span {
    background: var(--mec-dark);
    display: block;
    height: 2px;
    transform-origin: center;
    transition: opacity .2s ease, transform .25s ease;
    width: 100%;
  }

  .navbar-toggler[aria-expanded="true"] .menu-toggle-lines span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-toggler[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggler[aria-expanded="true"] .menu-toggle-lines span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  #mainNav {
    background: linear-gradient(145deg, #fff 0%, #eef6fc 62%, #fff1e5 100%);
    height: 100vh;
    height: 100dvh;
    inset: 0;
    overflow-y: auto;
    padding: 7.5rem 1.5rem 2rem;
    position: fixed;
    transform: translateY(0);
    transition: opacity .32s ease, transform .32s ease;
    width: 100%;
    z-index: 1;
  }

  #mainNav.collapsing {
    display: flex;
    opacity: 0;
    transition: opacity .32s ease, transform .32s ease;
  }

  #mainNav.collapse.show {
    display: flex;
    opacity: 1;
  }

  body.menu-opening #mainNav {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  body.menu-opening.menu-opening-active #mainNav {
    opacity: 1;
    transform: translateY(0);
  }

  body.menu-closing #mainNav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1.25rem);
  }

  body.menu-finalizing #mainNav.collapsing {
    transition-duration: .01ms;
  }

  #mainNav .navbar-nav {
    align-items: center;
    gap: .65rem;
    justify-content: center;
    margin: auto;
    min-height: calc(100dvh - 9.5rem);
    text-align: center;
    width: 100%;
  }

  #mainNav .nav-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .2s ease, transform .24s ease;
  }

  body.menu-opening #mainNav .nav-item {
    opacity: 0;
    transform: translateY(.6rem);
  }

  body.menu-opening.menu-opening-active #mainNav .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  body.menu-closing #mainNav .nav-item {
    opacity: 0;
    transform: translateY(-.6rem);
  }

  #mainNav .nav-link {
    font-family: var(--mec-font-heading);
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.2;
    padding: .55rem 1rem;
  }

  #mainNav .nav-item:last-child {
    margin-left: 0;
    margin-top: 1rem;
  }

  #mainNav .btn {
    font-size: 1rem;
    padding: .75rem 1.75rem;
  }

  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .brand-logo {
    width: 138px;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .client-logo {
    flex-basis: 33.333%;
  }

  .footer-social,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 991.98px) {
  #mainNav.collapsing,
  #mainNav .nav-item,
  .menu-toggle-lines span {
    transition-duration: .01ms;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }

  .navbar {
    min-height: 72px;
    padding-block: .25rem;
  }

  .brand-logo {
    max-height: 52px;
    width: 122px;
  }

  .hero-slide {
    background-position: var(--hero-mobile-position, center);
  }

  .image-band-media {
    background-position: 35% center;
  }

  .service-image:not(.service-image-photo) {
    height: auto;
    margin: 1.5rem auto 0;
    object-fit: contain;
    width: min(52%, 180px);
  }

  .hero-copy h1,
  .hero-slide-title,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .min-vh-hero {
    min-height: 660px;
  }

  .process-card,
  .contact-panel,
  .contact-form {
    padding: 1.5rem;
  }

  .client-title {
    font-size: 1.55rem;
    margin-bottom: 2rem;
  }

  .client-grid {
    row-gap: 1.5rem;
  }

  .client-logo {
    flex-basis: 50%;
    min-height: 130px;
    padding: .75rem 1rem;
  }

  .client-logo img {
    height: 120px;
    max-width: 150px;
  }
}
