@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Syncopate:wght@400;700&display=swap');


:root {
    --global-padding-left: 2vw;
    --global-padding-right: 2vw;

    --global-margin-left: 5vw;
    --global-margin-right: 5vw;

    --header-height: 200px;
    --header-logotype-color: #222;

    --header-row-0-font-size: .9em;
    --header-row-0-a-color: #f1f4f4;
    --header-row-0-a-margin: 1em;

    --header-row-1-logomark-width: 5em;
    --header-row-1-logotype-font-size-top: 1.1em;
    --header-row-1-logotype-font-size-bottom: 1em;
    --header-row-1-logotype-letter-spacing-top: 0.4em;
    --header-row-1-logotype-letter-spacing-bottom: 0.56em;
    
    --header-row-2-font-size: 1em;
    --header-row-2-a-color: #222;
    --header-row-2-a-margin: 2.5em;
    
    --module-title-font-size: 4em;
    --module-subtitle-font-size: 2em;
    --module-button-font-size: 1.5em;
    --module-border-radius: 10px;

    --module-partners-content-column-gap: 4em;

    --module-promo-background-top: 2em;
    --module-promo-background-bottom: 2em;
    --module-promo-background-height: 80%;
    --module-promo-content-grid-template-columns: 400px auto;
    --module-promo-content-grid-template-row: auto;
    --module-promo-content-div-2-height: 100%;
    --module-promo-content-title-font-size: 3em;
    --module-promo-content-subtitle-font-size: 1.5em;
    
    --module-sectors-grid-template-columns: repeat(3, auto);
    --module-sectors-grid-template-rows: auto;

    --module-services-grid-template-columns: repeat(3, auto);
    --module-services-grid-template-rows: repeat(2, auto);

    --module-contacts-grid-template-columns: repeat(2, 1fr);
    --module-contacts-grid-template-rows: auto;
    --module-contacts-content-map-height: auto;
    --module-contacts-content-info-font-size: 1.2em;

    --services-module-box-height: auto;

    --footer-background-color: #000;
    --footer-color: #fff;
    --footer-row-1-logomark-width: 6em;

}

@media (max-width: 768px) {
    :root {
        --global-padding-left: 5vw;
        --global-padding-right: 5vw;

        --global-margin-left: 5vw;
        --global-margin-right: 5vw;
    
        --header-row-0-font-size: .85em;
        --header-row-0-a-margin: 1em;
    
        --header-row-1-logotype-font-size-top: .9em;
        --header-row-1-logotype-font-size-bottom: .78em;
        --header-row-1-logotype-letter-spacing-top: 0.35em;
        --header-row-1-logotype-letter-spacing-bottom: 0.57em;    

        --header-row-1-logomark-width: 4em;

        --header-row-2-font-size: .9em;
        --header-row-2-a-margin: 1.5em;

        --module-title-font-size: 2.8em;
        --module-subtitle-font-size: 1.2em;

        --module-partners-content-column-gap: 2em;
        
        --module-promo-background-top: 5em;
        --module-promo-background-bottom: 0em;    
        --module-promo-content-grid-template-columns: auto;
        --module-promo-content-grid-template-row: auto auto;
        --module-promo-content-div-2-height: max-content;
        --module-promo-content-title-font-size: 2.5em;
        --module-promo-content-subtitle-font-size: 1.25em;

        --module-sectors-grid-template-columns: auto;
        --module-sectors-grid-template-rows: repeat(3, auto);

        --module-services-grid-template-columns: auto;
        --module-services-grid-template-rows: repeat(6, auto);

        --module-contacts-grid-template-columns: auto;
        --module-contacts-grid-template-rows: repeat(2, auto);
        --module-contacts-content-map-height: 400px;
        --module-contacts-content-info-font-size: 1em;

        --services-module-box-height: auto;

        --footer-row-1-logomark-width: 5em;

        --module-button-font-size: 1.2em;
        
    }

    .module.services{
        padding-top: 5vh;
    }

    .footer-row-1{
        display: grid;
        grid-template-columns: auto !important;
        grid-template-rows: auto auto auto auto !important;
        row-gap: 2em;
    }

    .footer-row-1-logomark{
        margin-bottom: 2em;
    }

    .module-promo-content > div:nth-child(2){
        margin-top: 1em;
        margin-bottom: 2em;
    }
    
}

html {
    overflow: scroll;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

body{
    font-family: "Prompt", sans-serif;
    margin: 0;
    padding: 0;
    color: #222;
    line-height: 1.2;
}

.header{
    height: var(--header-height);
    display: grid;
    align-items: end;
    grid-template-rows: 50px auto 50px;
    margin-left: var(--global-margin-left);
    margin-right: var(--global-margin-left);
}

.header-row-0{
    font-size: var(--header-row-0-font-size);   
    align-self: center;
    text-align: right;
}

.header-row-0 a{
    text-decoration: none;
    margin-left: 1em;
    font-weight: 400;
    background-color: #f1f4f4;
    color: #777777;
    padding: 0 .7em;
    border-radius: 5px;
}

.header-row-0 a:hover{
    opacity: 0.5;
}

.header-row-1{
    align-self: center;
    display: grid;
    grid-template-columns: auto max-content;
}

.header-row-1-logomark{
    background-image: url('../img/gf-logomark.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: var(--header-row-1-logomark-width); 
}

.header-row-1-logotype{
    font-family: "Syncopate", sans-serif;
    letter-spacing: 2px;
    color: var(--header-logotype-color);
    padding-top: 5px;
    text-align: right;
}

.header-row-1-logotype > div:nth-child(1){
    font-size: var(--header-row-1-logotype-font-size-top);
    letter-spacing: var(--header-row-1-logotype-letter-spacing-top);
    font-weight: 700;
}

.header-row-1-logotype > div:nth-child(2){
    font-size: var(--header-row-1-logotype-font-size-bottom);
    letter-spacing: var(--header-row-1-logotype-letter-spacing-bottom);
    font-weight: 400;
    margin-top: 2px;
}

.header-row-2{
    font-size: var(--header-row-2-font-size);   
    align-self: center;
    padding-bottom: 5px;
    text-align: right;
}

.header-row-2 a{
    color: var(--header-row-2-a-color);
    text-decoration: none;
    margin-left: var(--header-row-2-a-margin);
    font-weight: 400;
}

.header-row-2 a:hover{
    opacity: 0.5;
}

.module{
    margin-left: var(--global-margin-left);
    margin-right: var(--global-margin-right);
    padding-right: var(--global-padding-right);
    padding-left: var(--global-padding-left);
    height: max-content;
    align-content: center;
    color: #fff;
    border-radius: var(--module-border-radius);
}


.module-title{
    font-family: "Prompt", sans-serif;
    font-weight: 500;
    font-size: var(--module-title-font-size);
    line-height: 1;
}


.module-subtitle{
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    font-size: var(--module-subtitle-font-size);
    line-height: 1.4;
    margin-top: 1em;
}

.module.first{
    background-image: linear-gradient(to right, #000000e0, #00000000), url('../img/module-1.jpg') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 550px;
}

.module.second{
    background-image: linear-gradient(to right, #000000e0, #00000000), url('../img/navimow.jpg') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 550px;
}

.module.partners{
    display: flex;
    flex-wrap: nowrap;
    height: 200px;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    align-items: center;
}

.module.partners:before, .module.partners:after {
    position: absolute;
    width: 10vw;
    height: 200px;
    content: "";
    z-index: 1;
}

.module.partners::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.module.partners::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.module-partners-content{
    display: grid;
    grid-template-columns: repeat(14, auto);
    column-gap: var(--module-partners-content-column-gap);
    animation: scrolling 120s linear infinite;
}

@keyframes scrolling {
    0% { transform: translateX(5%); }
    100% { transform: translateX(-90%); }
}


.partners-logo{
    height: 100px;
    width: 200px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* partners logos */
.module.partners .partners-logo:nth-child(1){background-image: url('../img/partners-logos/stihl.png'); background-size: 80%;}
.module.partners .partners-logo:nth-child(2){background-image: url('../img/partners-logos/echo.png'); background-size: 80%;}
.module.partners .partners-logo:nth-child(3){background-image: url('../img/partners-logos/husqvarna.png');}
.module.partners .partners-logo:nth-child(4){background-image: url('../img/partners-logos/cubcadet.png');}
.module.partners .partners-logo:nth-child(5){background-image: url('../img/partners-logos/segway.png');}
.module.partners .partners-logo:nth-child(6){background-image: url('../img/partners-logos/grin.png'); background-size: 90%;}
.module.partners .partners-logo:nth-child(7){background-image: url('../img/partners-logos/oregon.png'); background-size: 90%;}

.module.partners .partners-logo:nth-child(8){background-image: url('../img/partners-logos/stihl.png'); background-size: 80%;}
.module.partners .partners-logo:nth-child(9){background-image: url('../img/partners-logos/echo.png'); background-size: 80%;}
.module.partners .partners-logo:nth-child(10){background-image: url('../img/partners-logos/husqvarna.png');}
.module.partners .partners-logo:nth-child(11){background-image: url('../img/partners-logos/cubcadet.png');}
.module.partners .partners-logo:nth-child(12){background-image: url('../img/partners-logos/segway.png');}
.module.partners .partners-logo:nth-child(13){background-image: url('../img/partners-logos/grin.png'); background-size: 90%;}
.module.partners .partners-logo:nth-child(14){background-image: url('../img/partners-logos/oregon.png'); background-size: 90%;}


.module.promo{
    height: max-content;
    margin-top: 3em;
    margin-bottom: 3em;
    position: relative;
}

.module-promo-background {
    position: absolute;
    background: #f1f4f4;
    color: #999999;
    bottom: var(--module-promo-background-bottom);
    top: var(--module-promo-background-top);
    right: 0;
    width: 100%;
    z-index: -1;
    border-radius: var(--module-border-radius);
}

.module-promo-content{
    display: grid;
    grid-template-columns: var(--module-promo-content-grid-template-columns);
    grid-template-rows: var(--module-promo-content-grid-template-rows);
    align-items: end;
    column-gap: 2em;
    row-gap: 1em;
}

.promo-1 > div:nth-child(1){
    background-image: url('../img/promo-stihl-autunno-2025.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: auto;
    height: 400px;
    filter: drop-shadow(0 0 0.75rem #222);
}

.promo-2 > div:nth-child(1){
    background-image: url('../img/promo-navimow.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: auto;
    height: 400px;
    filter: drop-shadow(0 0 0.75rem #222);
}

.module-promo-content > div:nth-child(2){
    height: var(--module-promo-content-div-2-height);
    display: grid;
    align-content: center;
}

.module-promo-content a{
    text-decoration: none;
}

.module-promo-content-title{
    font-size: var(--module-promo-content-title-font-size);
    font-weight: 500;
    color: #222;
}

.module-promo-content-subtitle{
    font-size: var(--module-promo-content-subtitle-font-size);
    font-weight: 400;
    color: #222;
    line-height: 1.4;
    margin-top: 1em;
    margin-bottom: 1em;
}

.module-promo-button{
    font-size: 1.3em;
    font-weight: 500;
    background: #222;
    color: #fff;
    padding: .7em 1em;
    width: max-content;
    border-radius: 50px;
}

.module.company, .module.sectors{
    color: #222;
    align-content: center;
    padding-bottom: 5em;
    padding-right: 0;
    padding-left: 0;
}

.module.company .module-title, .module.sectors .module-title, .module.services .module-title, .module.contacts .module-title{
    font-size: 2.5em;
    padding-bottom: .5em;
    margin-bottom: 1em;
    margin-top: 1em;
    border-bottom: 2px solid #f1f4f4;
}

.module.company .module-body{
    font-size: 1.2em;
    line-height: 1.5;
}


.module.module.company .module-buttons{
    margin-top: 4em;
}

.module.module.company .module-buttons > .button:first-child{
    margin-right: 1em;
    font-size: 1.2em;
}

.module.services{
    color: #222;
    align-content: center;
    padding-bottom: 5em;
    padding-right: 0;
    padding-left: 0;
}

.module.sectors .module-box-container{
    display: grid;
    grid-template-columns: var(--module-sectors-grid-template-columns);
    grid-template-rows: var(--module-sectors-grid-template-row);
    row-gap: 4em;
    column-gap: 3em;
}


.module.services .module-box-container{
    display: grid;
    grid-template-columns: var(--module-services-grid-template-columns);
    grid-template-rows: var(--module-services-grid-template-row);
    row-gap: 3em;
    column-gap: 3em;
}


.module.contacts{
    color: #222;
    align-content: center;
    padding-bottom: 5em;
    padding-right: 0;
    padding-left: 0;
}

.module.contacts .button{
    font-size: 1.1em;
}

.module-contacts-content{
    display: grid;
    grid-template-columns: var(--module-contacts-grid-template-columns);
    grid-template-rows: var(--module-contacts-grid-template-row);
    column-gap: 5em;
    row-gap: 3em;
}

.module-contacts-content-info{
    font-size: var(--module-contacts-content-info-font-size);
    line-height: 2;
    display: grid;
    row-gap: 3em;
}

.module-contacts-content-info-2{
    background: #f1f4f4;
    color: #222;
    text-align: left;
    align-content: center;
    display: grid;
    border-radius: var(--module-border-radius);
    grid-template-rows: auto auto auto;
    padding: 2em;
}

.module-contacts-content-info-1-1{
    font-size: 1.5em;
    font-weight: 600;
}

.module-contacts-content-info-1-2{
    font-size: 1.2em;
    margin-bottom: 1em;
}

.module-contacts-content-map{
    display: grid;
    height: var(--module-contacts-content-map-height);
}

.module-contacts-content-map > iframe{
    height: 100%;
    width: 100%;
    border-radius: var(--module-border-radius);
}


.module-box{
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    padding: 2em;
    display: grid;
    grid-template-rows: max-content auto max-content;
    background-color: #f1f4f4;
}

/*
.module-box:hover {
    transition: background-size 0.5s ease 1s; 
    background-size: 120%;
}
*/

.sectors .module-box{
    height: 400px;
    color: #fff;
}

.services .module-box{
    height: var(--services-module-box-height);
}

.module-box ion-icon{
    font-size: 2em;
    padding-left: 0;
}

/*
.module.sectors .module-box:nth-child(1) {background-image: url('../img/motosega_3.png'), linear-gradient(to top, #f1f4f4 0%, #f1f4f4 100%);}
.module.sectors .module-box:nth-child(2) {background-image:  url('../img/edilizia_3.png'), linear-gradient(to top, #f1f4f4 0%, #f1f4f4 100%);}
.module.sectors .module-box:nth-child(3) {background-image: url('../img/generatore_3.png'), linear-gradient(to top, #f1f4f4 0%, #f1f4f4 100%);}
*/

.module.sectors .module-box:nth-child(1) {background-image: linear-gradient(to top, #000 0%, #00000010 50%), url('../img/sectors-agri-1.jpg');}
.module.sectors .module-box:nth-child(2) {background-image: linear-gradient(to top, #000 0%, #00000010 50%), url('../img/sectors-edil-7.jpg');}
.module.sectors .module-box:nth-child(3) {background-image: linear-gradient(to top, #000 0%, #00000010 50%), url('../img/sectors-ener-1.jpg');}

.module-box-head{
    display: grid;
    grid-template-columns: auto auto;
    grid-row: auto;
}

.module-box-head > div:nth-child(2){
    text-align: right;
}

.module-box-category{
    font-size: 1em;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.module-box-title{
    font-weight: 600;
    font-size: 1.5em;
    margin-top: .5em;
    margin-bottom: 1em;
}

.module-box-body{
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    align-self: baseline;
}


.module-box-button{
    margin-top: 1em;
    font-size: 1.1em;
    line-height: 1.5;
    font-weight: 500;
}

.module-box-button a{
    color: #222;
    text-decoration: none;
}

.footer{
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    padding-left: var(--global-margin-left);
    padding-right: var(--global-padding-right);
    background-color: var(--footer-background-color);
    color: var(--footer-color);
    height: max-content;
    padding-top: 4em;
    padding-bottom: 2em;
}

.footer-row-0{
}

.footer-row-1-logomark{
    background-image: url('../img/gf-logomark.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: var(--footer-row-1-logomark-width); 
    height: 50px;
}


.footer-row-1{
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: auto;
}

.footer-row-1 ion-icon{
    font-size: 2em;
    margin-right: .5em;
    color: #fff;
    margin-top: 1em;
}
.footer-row-1 > div > span {
    font-weight: 500;
}

.footer-row-1 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer-row-1  ul > li, a {
    color: #999;
    margin: 1em 0;
    padding: 0;
    text-decoration: none;
}

.footer-row-2{
    margin-top: 8em;
    padding-top: 1em;
    font-size: .9em;
    color: #999;
    border-top: 1px solid #555;
}

.button{
    width: max-content;
    padding:.7em 1em;
    border-radius: 100px;
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    color: #fff !important;
    background-color: #222;
    line-height: 1 !important;
    text-decoration: none;
}

.module .button{
    font-size: var(--module-button-font-size);
}


.module .button{
    font-size: var(--module-button-font-size);
}


.whatsapp-button{
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: #11a819;
    color: #fff;
    font-size: 40px;
    padding: 12px 14px 5px 14px;
    z-index: 2;
    border-radius: 40px;
    margin: 10px;
}

