:root {
    --primary-bg-color: #B9FDD4;

    --primary-color: #008e39;
    --primary-color-light: #20C863;
    --secondary-color: #29265B;
    --secondary-color-light: #454189;

    --text-color: #234C33;

    --link-color: #000000;

    --white-color: #ffffff;

    --main-font: "Roboto", 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;
}

.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;
    z-index: 1;
}

footer {
    background-color: var(--primary-bg-color);
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 0;
}

header {
    background-color: rgba(255, 255, 255);

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    color: var(--text-color);
}

#menu-nav {
    gap: 0;
    margin-top: 1rem;
}

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

#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: 100px;
}

@media (min-width: 992px) {
    .navbar-brand img {
        max-width: 225px;
    }
}

.navbar-toggler {
    border: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

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

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

@media (min-width: 1400px) {
    .container-1200 {
        max-width: 1200px;
    }

    .container-1400 {
        max-width: 1400px;
    }
    .container-992 {
        max-width: 992px;
    }
}


.el-bottom-decoration {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.el-bottom-decoration::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8rem;
    height: 1px;
    background-color: var(--secondary-color);
}

.hero {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

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

/* Parallax background for hero */
.para-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* fallback mobile */
}

@media (min-width: 992px) {
    .para-section {
        background-attachment: fixed; /* parallax desktop */
    }
}

/* Hide inline image (kept in HTML for fallback/SEO) */
.hero > img {
    display: none;
}

.hero__bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.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;
}

.bottom-decoration {    
    min-height: 20rem;
    position: relative;
}

.bottom-decoration .bottom__up {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.bottom-decoration .bottom__up img {
    display: block;
    margin-top: -1px;
}

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

.intro-box.with-gap-5 {
    gap: 2rem;
}

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

    .intro-box.with-gap-5 {
        gap: 5rem;
    }
}

.intro-box__image {
    border-radius: 0.75rem;
    max-height: 20rem;
    position: relative;
    overflow: hidden;
}

.intro-box__image.no-max-height {
    max-height: none;
}

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

.intro-box__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.intro-box__image-overlay h3 {
    color: var(--white-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.intro-box__content h3 {
    font-size: 2rem;
    font-weight: 500;
}

.intro-box__content p {
    font-size: 1rem;
    font-weight: 400;
    text-wrap: balance;
}

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

.bento-foresta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

    .bento-foresta__card.bigger {
        grid-column: span 2;
    }    
}

@media (min-width: 1024px) {
    .bento-foresta {
        display: grid;
        grid-template-areas: 
            "a b c"
            "d e c";
        gap: 1rem;
    }

    .bento-foresta__card.bigger {
        grid-area: c;
        display: flex;
        flex-direction: column;
    }
}

.bento-foresta__card {
    border-radius: .75rem;
    padding: 2rem;
    background-color: var(--white-color);
}

.bento-foresta__inner-card {
    color: var(--white-color);
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: .75rem;
}

.bigger .bento-foresta__card-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .bigger .bento-foresta__card-content {
        height: 100%;
    }

    .bento-foresta__card {
        padding: 3rem;
    }
}

.bento-foresta__inner-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.bento-foresta__card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bento-foresta__card-content-number {
    font-size: 4rem;
    font-weight: 300;
}

.bento-foresta__card.latest {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .bento-foresta__card.latest {
        flex-direction: row;
    }
}

/*.bento-foresta__card.latest h3 {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .bento-foresta__card.latest h3 {
        flex-direction: row;
        text-align: left;
    }
}*/

.bento-foresta__latest-number {
    font-size: 4rem;
    font-weight: 300;
}

.bento-foresta__inner-card-header {
    display: flex;
    align-items: center;
    max-width: 14rem;
}

.bento-foresta__inner-card-header > span {
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1;
    text-wrap: balance;
    line-height: 1.2;
}

.bento-foresta__inner-card-content {
    max-width: 14rem;
}

.bento-foresta__inner-card-content .text-light {
    color: var(--white-color);
    font-size: 2.5rem;
    font-weight: 200;
    display: block;
    line-height: 1.5;
}

.bento-foresta__inner-card-content .text-bold {
    color: var(--white-color);
    font-size: 2rem;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}


.simple-gallery__header {
    position: relative;
}

.swiper-container {
    position: relative;
    margin: 0 auto;
}

.swiper-custom-arrow-right,
.swiper-custom-arrow-left {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    cursor: pointer;
}

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

.swiper-custom-arrow-left {
    left: 0;
}

.swiper-custom-arrow-right {
    right: 0;
}

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

.section-primary-light-bg {
    background-color: var(--primary-bg-color);
}

.testimonial-card-text {
    display: flex;
    gap: .5rem;
}

.testimonial-card-text-content {
    font-size: 1.25rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .testimonial-card-text-content {
        font-size: 2rem;
    }
}

.testimonial-card-author {
    text-align: right;
}

/* Sezione Home Azienda */
.home-azienda-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.home-azienda-slider .swiper-slide {
    height: auto;
}

.home-azienda-card {
    background-color: var(--primary-color);
    border-radius: 1rem;
    padding: 1rem;
    gap: 3rem;
    align-items: flex-start;
    height: 100%;
}

@media (min-width: 1024px) {
    .home-azienda-card {
        display: grid;
        grid-template-columns: calc(50% - 1.5rem) calc(50% - 1.5rem);
        padding: 3rem;
    }
}

.home-azienda-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.home-azienda-stats {
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    display: inline-flex;
    flex-direction: column;
}

.home-azienda-stats h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.home-azienda-stats .number {
    font-size: 3rem;
    font-weight: 300;
    display: block;
}

.home-azienda-info p {
    color: var(--white-color);
    line-height: 1.5;
}

.home-azienda-image {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 300px;
}

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

.gallery-inner {
    max-width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-inner .swiper-slide,
.gallery-inner .swiper-slide img {
    border-radius: 0.75rem;
}


/* Sezione Info */

/* Parent grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid:has(.info-card:only-child) {
        grid-template-columns: 1fr;
    }
}
  
/* Card as a nested grid */
.info-card {
    display: grid;
    grid-template-rows: subgrid; /* Inherit parent’s columns */
    grid-row: span 2; /* Card spans all 3 columns */
    gap: 1rem;
    background: var(--primary-color);
    border-radius: 0.75rem;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .info-card {
        padding: 2.5rem;
    }
}

/* Card sections */
.info-card-header,
.info-card-content,
.info-card-footer {
    padding: 10px;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white-color);
}

.info-card-header h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--white-color);
}

.info-card-content {
    color: var(--white-color);
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stack-list-item {
    border-radius: 0.75rem;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem 1rem;
}

.stack-list-item-number {
    font-size: 2rem;
    font-weight: 300;
}

.stack-list-item p {
    font-weight: 600;
    margin-bottom: 0;
}

.full-height-description-card {
    background-color: var(--primary-bg-color);
    padding: 1.25rem;
    border-radius: 0.75rem;
    height: 100%;
}

.full-height-description-card p {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .full-height-description-card {
        padding: 2.5rem;
    }
}

/* Sezione Video */
.video-section {
    position: relative;
    background-color: var(--primary-bg-color);
    padding: 4rem 0;
}

.video-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    color: var(--white-color);
}

.video-caption h4 {
    color: var(--white-color);
}

.video-caption p {
    color: var(--white-color);
}

@media (max-width: 768px) {
    .video-caption {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.video-caption-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-caption-author .author-info p {
    margin-bottom: 0;
}

.video-caption-text {
    flex: 1;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    text-wrap: balance;
}

/* Stili per la lista alberi */
.tree-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--white-color);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.tree-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 3rem;
}

.tree-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

/** 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);
}

.testimonial-image {
    aspect-ratio: 1/1;
    border-radius: 50%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.swiper-gallery .swiper-slide {
    height: auto;
}

.swiper-gallery .gallery-card {
    height: 100%;
}

.swiper-gallery .gallery-card img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}