:root {
  --brand-purple: #6e64e6;
  --brand-purple-light: #ede9ff;
  --brand-dark: #1a1a2e;
  --brand-gray: #f4f4f4;
  --brand-text: #2d2d2d;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'STIX Two Text';
  src: url('../fonts/STIXTwoText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: "STIX Two Text", serif;
  color: var(--brand-text);
  font-size: 16px;
  padding-top: 70px;
}

.accent {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 28px;
}

.text-claim {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
}

h1, h2, h3, h4 {
  font-family: "Inter", sans-serif;
}


.highlight {
    font-family: "STIX Two Text", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
}
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

#navbar {
  background-color: var(--brand-purple);
  color: #fff;
  border-bottom: 0px solid #e8e8e8;
  transition: all 0.3s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
  box-sizing: border-box;
}

#navbar.scrolled {
    background-color: #fff;
    color: #000 !important;
}

#navbar.scrolled .nav-link {
    color: #000;
}

#navbar.scrolled .nav-link:hover {
    color: var(--brand-purple);
    text-decoration: underline;
}

a.navbar-brand {
    color: #fff;
}

#navbar.scrolled a.navbar-brand {
    color: #000;
}

.navbar-logo {
    display: inline-block;
    width: 125px;
    height: 45px;
    background-color: currentColor;
    -webkit-mask-image: url('../images/logo_terzoluogo.svg');
    mask-image: url('../images/logo_terzoluogo.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
}

.nav-link {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

.nav-link:hover, .nav-link:focus {
	color: #fff;
    text-decoration: underline;
}

.navbar-toggler {
    display: none;
}

.container {
    max-width: 1240px;
}

.h-300px {
    height: 300px !important;
}

.img-hover-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* overlay immagini */
.img-hover-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 0 0px rgba(110, 100, 230, 1);
  transition: box-shadow 0.3s ease-in-out;
  pointer-events: none;
}

.img-hover-container:hover::after {
  /* Il bordo "cresce" fino a 20px verso l'interno */
  /* box-shadow: inset 0 0 0 70px rgba(255, 255, 255, 0.5); */
  box-shadow: inset -30px 30px 0 0 rgba(110, 100, 230, 1);
}


.btn-purple {
  border-radius: 0;
  padding: 10px 30px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: none;
  background: var(--brand-purple);
  color: #fff;

}

.btn-purple-light {
  border-radius: 0;
  padding: 10px 30px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: none;
  background: #8b83eb;
  color: #fff;
}

.btn-purple-inverse {
  border-radius: 0;
  padding: 10px 30px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: none;
  background: #fff;
  color: var(--brand-purple);
}


.btn-hover-outline-purple:hover {
    border: 1px solid var(--brand-purple);
    color: var(--brand-purple);
}

.btn-hover-outline-purple-light:hover {
    border: 1px solid #fff;
}

.btn-hover-outline-purple-inverse:hover {
    border: 1px solid #fff;
}

.btn-purple:focus-visible,
.btn-purple-light:focus-visible,
.btn-purple-inverse:focus-visible {
    outline: 2px solid #8b83eb;
}




.hero-section {
    background-image: url('../images/banner_terzoluogo_hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 80px solid var(--brand-purple);
    height: 420px;
}

.section-padding {
  padding: 70px 0;
}

.subsection-title {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: var(--brand-purple);
}


.purple-row {
  background-color: var(--brand-purple);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}


.cards-section {
  padding: 70px 0;
  background-color: #fff;
}

.cards-section .card {
  border: none;
  border-radius: 0;
  background-color: #fff;
}

.cards-section .card-body {
  padding: 40px 0 0 ;

}

.card-tag {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: var(--brand-purple);
}

.cards-section .card-title {
    font-family: "Inter", sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
}

.card-text {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.cards-section .card .img-hover-container {
  height: 100%;
  min-height: 300px;
}

.cards-section .card .img-cover {
  height: 100%;
  object-fit: cover; /* cover invece di fill per non distorcere */
}

.site-footer {
  background-color: var(--brand-purple);
  color: #fff;
  padding: 100px 0;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  margin-top: 50px;
}
.site-footer .footer-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}
.site-footer a:hover {
  color: #fff;
}

.footer-menu .list-group-item {
    border: none;
    background: transparent;
    color: #fff;
}

.site-footer a:hover {
    opacity: 0.65;
}

hr.footer-divider {
    margin: 50px 0;
    border: none;
    height: 1px;
    background-color: #ffffff;
    opacity: 1;
}

@media screen and (max-width: 530px) {
    .list-group.list-group-horizontal {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {

}

@media screen and (min-width: 576px) {

}


@media screen and (min-width: 768px) {

}

@media screen and (max-width: 768px) {
    body {
      padding-top: 45px;
    }

    .navbar-brand {
        display: flex;
    }

    .navbar-logo {
        display: inline-block;
        width: 190px;
        height: 20px;
        background-color: currentColor;
        -webkit-mask-image: url('../images/logo_terzoluogo_orizzontale.svg');
        mask-image: url('../images/logo_terzoluogo_orizzontale.svg');
        mask-size: contain;
        mask-repeat: no-repeat;
    }

    .hero-section {
        border-right: 45px solid var(--brand-purple);
    }

    .section-padding {
        padding: 30px 0;
    }

    .cards-section {
      padding: 35px 0;
    }

    .text-claim {
        font-size: 24px;
    }

    .accent {
        font-size: 22px;
    }

    .highlight {
        font-size: 24px;
    }

    .img-banner {
        height: 300px;
        width: auto;
        object-fit: cover;
    }

    .card-title {
        font-size: 24px !important;
    }

    .card-text {
        font-size: 14px;
    }

    .btn-purple {
        padding: 8px 16px !important;
    }

    .footer-menu .list-group-item {
        padding: 0.025rem;
    }

    .site-footer {
      background-color: var(--brand-purple);
      color: #fff;
      padding: 50px 0 100px;
      font-family: "Inter", sans-serif;
      font-size: 10px;
      font-weight: 400;
      margin-top: 50px;
    }

    hr.footer-divider {
        margin: 35px 0;
    }
}

@media screen and (min-width: 992px) {

}

@media screen and (min-width: 1200px) {

}

@media screen and (min-width: 1240px) {
    .container {
        padding-left: 0;
        padding-right: 0;
    }
}
