:root {
    --primary-bg-color: rgb(246, 246, 246);
    --primary-color: #d64247;
    --text-color: #121212;
    --link-color: #000000;

    --white-color: #ffffff;

    --main-font: "Satoshi", sans-serif;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*** Lenis Setup ***/
html,
body {
  font-family: var(--main-font);

  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: initial !important;
}

.g-recaptcha iframe {
    pointer-events: all !important;
}

.container-fluid {
    margin: 0 auto;
    max-width: 1920px;
}

@media (min-width: 992px) {
    .container-fluid {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.g-fade-in {
    opacity: 0;
    transform: translate(0, 60px);
}

main {
    background-color: var(--white-color);
    position: relative;
    transform: translate3d(0, 0, 0);
    z-index: 1;
}

footer {
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 0;
}

header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#menu-nav {
    gap: 1rem;
}

@media (min-width: 992px) {
    #menu-nav {
        gap: 2rem;
    }
}

#menu-nav a.nav-link {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;

    transition: color 0.3s ease, font-weight 0.3s ease;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    max-width: 225px;
}

#menu-nav a.nav-link.active {
    color: var(--primary-color);
}

.footer-links a {
    color: var(--text-color);
    gap: 2rem;
}

.hero {
    padding-top: 7.5rem;
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

.hero::after {
    background-color: rgba(0, 0, 0, 0.45);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

@media (min-width: 992px) {
    .hero {
        height: 100vh;
    }
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero h1 {
    font-size: clamp(2rem, 2.5rem + 1.5vw, 4rem);
    font-weight: 700;
    color: var(--white-color);
    text-align: center;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-scroll-down {
    color: var(--white-color);
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.ctas {
    margin-top: -4rem;
    position: relative;
    z-index: 1;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .cta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cta-card {
    background-color: var(--primary-bg-color);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-card {
        padding: 2rem 3rem;
        gap: 2rem;
        min-height: 30rem;
    }
}

.cta-card i {
    font-size: clamp(3rem, 3.5rem + 1.5vw, 6rem);
    color: var(--primary-color);
}

.cta-card h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2rem);
    font-weight: 700;
}

.cta-card p {
    font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
    font-weight: 500;
    text-wrap: balance;
}

.info-section-title {
    font-size: clamp(1.75rem, 1.75rem + 1.5vw, 3.75rem);
    margin-bottom: 2rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .info-section-title {
        margin-bottom: 4rem;
        margin-top: 4rem;
    }
}

.content-grid {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.content-item-text,
.content-item-image {
    order: 2;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .content-item-image {
        grid-column: 1 / 8; /* Più larga */
        grid-row: 1 / 2;
        z-index: 1;
    }
    
    .content-left .content-item-image {
        grid-column: 6 / 13;
    }

    .content-item-text,
    .content-item-image {
        order: 1;
    }

}

.content-item-image-wrapper {
    position: relative;
    aspect-ratio: 760/410;
    overflow: hidden;
    border-radius: 1rem;
}

.content-item-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.content-item-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

@media (min-width: 768px) {
    .content-item-title {
        grid-column: 2 / 6; /* Centrata sopra l'immagine */
        grid-row: 1 / 2;
        z-index: 2;
    }
    
    .content-left .content-item-title {
        grid-column: 8 / 13;
    }
}

.content-item-title h3 {
    font-size: 2rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .content-item-title h3 {
        color: var(--white-color);
    }
}

@media (min-width: 768px) {
    .content-item-text {
        grid-column: 6 / 13;
        grid-row: 1 / 2;
        z-index: 2;
    }
    
    .content-left .content-item-text {
        grid-column: 1 / 8;
    }
}

.content-item-text-wrapper {
    background-color: var(--primary-bg-color);
    padding: 2rem;
    border-radius: 1rem;
}

.content-item-text-wrapper p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    text-wrap: balance;
}

.content-item-text-wrapper p:last-child {
    margin-bottom: 0;
}

p.content-item-quote {
    background-color: var(--white-color);
    padding: 1rem;
    border-radius: .5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.section-img-bg {
    padding-bottom: 4rem;
    padding-top: 4rem;
    position: relative;
}

.section-img-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    /*backdrop-filter: blur(10px);*/
    z-index: 1;
}

.section-img-bg-content {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .section-img-bg {
        min-height: 80vh;
        padding-bottom: 0;
    }

    .section-img-bg-content {
        grid-template-columns: repeat(12, 1fr);
        min-height: 80vh;
    }

    .section-img-bg-content h2 {
        grid-column: 1 / 6;
    }

    .section-img-bg-content p {
        grid-column: 7 / 13;
    }
}

.section-grad-bg {
    background: linear-gradient(180deg, #FFFFFF 23.56%, #000000 67.79%);
    padding: 4rem 0;
}

.testimonial-card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.testimonial-card:has(div:only-child) {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .testimonial-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 140px;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 1;
}

.testimonial-card-header-img {
    position: relative;
    width: 130px;
}

.testimonial-card-header-img img {
    width: 100%;
    object-fit: contain;
}

.testimonial-card-header-content p {
    font-size: 1.125rem;
}

.swiper-container {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
}

.swiper-custom-arrow-right,
.swiper-custom-arrow-left {
    border: 2px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 1;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.swiper-custom-arrow-left.swiper-button-disabled,
.swiper-custom-arrow-right.swiper-button-disabled {
    opacity: 0.35;
}

.swiper-custom-arrow-left {
    left: 0;
    transform: translateY(-50%) translateX(-200%);
}

.swiper-custom-arrow-right {
    right: 0;
    transform: translateY(-50%) translateX(200%);
}

.swiper-custom-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.contact-form label {
    color: var(--white-color);
    font-size: 1.125rem;
    font-weight: 500;
}

/** Button **/

.cta {
    /* background-color: #fff; */
    background: linear-gradient(-45deg, #bdbdbd, #ffffff, #bdbdbd, #ffffff);
    background-size: 400% 400% !important;
    -webkit-animation: BackgroundElementAnimation 4.5s ease infinite;
    -moz-animation: BackgroundElementAnimation 4.5s ease infinite;
    animation: BackgroundElementAnimation 4.5s ease infinite;

    /*----*/
    align-items: center;
    border-radius: 2rem;
    color: var(--link-color);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.75rem;

    letter-spacing: 2.8px;

    padding: 1.25rem 1.5rem 1.25rem 1.5rem;

    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.35s ease;

    z-index: 1;
}

.cta span {
    display: inline-block;
    width: 35px;
}

.cta.transparent {
    background-color: transparent;
}

.cta.reverse {
    background-color: var(--link-color);
    color: #fff;
}

.cta.btn-red {
    background-color: var(--primary-color);
    /*border-color: var(--primary-color);
    border-style: solid;*/
    border: 0;
    color: #fff;
    /* background-color: var(--primary-color); */
    background: linear-gradient(-45deg, #d64247, #701316, #d64247);
    background-size: 300% 300% !important;

    transition: all 0.35s ease-in;
}

.cta:active,
.cta:focus,
.cta:hover {
    color: #fff;
    /* background-color: var(--primary-color); */
    background: linear-gradient(-45deg, #d64247, #701316, #d64247);
    background-size: 300% 300% !important;
    -webkit-animation: BackgroundElementAnimation 6s ease infinite;
    -moz-animation: BackgroundElementAnimation 6s ease infinite;
    animation: BackgroundElementAnimation 6s ease infinite;
}

.cta.btn-red:active,
.cta.btn-red:focus,
.cta.btn-red:hover {
    background: linear-gradient(-45deg, #bdbdbd, #ffffff, #bdbdbd, #ffffff);
    background-size: 400% 400% !important;
    color: #d64247;
}

.cta svg {
    transition: all 0.35s ease;
}

.cta:hover svg path {
    fill: #fff;
}

.cta.btn-red:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.cta.btn-red:hover svg path {
    fill: var(--primary-color);
}

.cta.btn-green:hover {
    background-color: #fff;
    color: var(--green-eco);
}

.cta span {
    transition: all 0.35s ease;
}

.cta:hover span {
    transform: translate(15%, 0);
}

.form-check-label a {
    color: var(--primary-color);
}

/*------------------------------------------------------------------------*/
@-webkit-keyframes BackgroundElementAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@-moz-keyframes BackgroundElementAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes BackgroundElementAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/** End Button **/

/*** Modal ***/

.modal-header button {
    background-color: transparent;
    border: 0;
    font-size: 1.5rem;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}

.modal-header .modal-title {
    font-size: 1.375rem;
}

#overlay-errors .modal-body ul li {
    color: var(--primary-color);
}

/*** Menu mobile icon close ***/

button.navbar-toggler[aria-expanded=true] .navbar-toggler-icon {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgNDggNDgiIGZpbGw9IiMwMDAwMDAiPjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjQiPjxwYXRoIGQ9Ik04IDhMNDAgNDAiLz48cGF0aCBkPSJNOCA0MEw0MCA4Ii8+PC9nPjwvc3ZnPg==);
}
