
/*
1. Google Fonts
2. Variabili globali (:root)
3. Fondamenta (html, body)
4. Tipografia (titoli, paragrafi, link)
5. Componenti (navbar, section, bottoni) 
6. Colori e background
7. Sizing
8. Form
9. Altri layout (griglie e contenitori)
10. 10 Animazioni
*/


/* 1) Fonts */
    
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates: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=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* 2) Variabili */

:root {
    
    --background-color:#fff;
    --background-color-2:#008E5C1A;
    --primary-color: #000;
    --secondary-color: #fff;
    --light-color:#fff;
    --pop-color: #008E5C;
    --link-hover-color: #005335;
    --azzurro: #518FCC;
    --rosa: #CD80B4;
    
    --custom-radius:20px;
    --btn-radius:50px 50px 50px 50px;
    --btn-padding: 16px 50px;
    --section-padding: 120px;    
    --main-font: "Montserrat", sans-serif;
    --alt-font: "Montserrat Alternates", sans-serif;
    --letter-spacing: auto;  
    --pseudo-container-padding: 6rem;
}


* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

/* 3) Fondamenta (html, body) */

html {
    font-size: 16px; /* Base del rem */
    scroll-behavior: smooth;
    color:  var(--primary-color);
    font-family: var(--main-font);
    font-weight: 300;
    font-style: normal;
}

body {
    background-color: var(--background-color); 
    color: #333;
    font-size: 1rem;
    font-family: var(--main-font);
    line-height: 1.4;
    font-weight: 300;
    font-style: normal;
}

.wow{
    visibility:hidden;
}

/* 4) Tipografia (titoli, paragrafi, link) */

.alt-font{
    font-family: var(--alt-font);
}

p{
    font-size: 1rem;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin-bottom: 1.5rem;
    color: #000;
}

h1, h3, h4, h5, h6, .h1, .h3, .h4, .h5, .h6 {
    line-height: 1.2;
    color: #000;
}

h1, .h1 {
    font-family: var(--alt-font);
    font-weight: 700;
    font-size:3rem;
    line-height: 1;
}

h2, .h2 {
    font-family: var(--alt-font);
    font-weight: 700;
    font-size:2rem;
    line-height: 1;
}

h3, .h3 {
    font-family: var(--alt-font);
    font-weight: 700;
    font-size:30px;
    line-height: 1;
}

h4, .h4 {
    font-family: var(--alt-font);
    font-weight: 700;
    font-size:24px;
    text-transform: uppercase;
}

h6{
    font-family: var(--alt-font);
    font-weight: 700;
    font-size:1rem;
    text-transform: uppercase;
}

a {
    color: var(--link-hover-color);
    text-decoration: none!important;
}

a:hover {
    text-decoration: none;
    color: var( --link-hover-color)!important;
}

.text-xl{
    font-size: 100px;
    line-height: 1;
}

.text-lg{
    font-size: 48px;
    line-height: 1.1;
}

.text-md{
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 500;
}

.text-sm{
    font-size: 0.9rem;
    line-height: 1.4;
}

.text-xs{
    font-size: 0.7rem;
    line-height: 1.4;
}

.semi-bold{
    font-weight: 600;
}

.bold, strong{
    font-weight: 700;
}

.regular{
    font-weight: 400;
}

.text-stroke{
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--pop-color);
}

.text-stroke-white{
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
}

.text-shadow{
    color: #fff;
    text-shadow:
    3px 3px 0 var(--pop-color),
    -3px 3px 0 var(--pop-color),
    -3px -3px 0 var(--pop-color),
    3px -3px 0 var(--pop-color);
}

.custom-letter-spacing {letter-spacing: var(--letter-spacing); }

/* 5) Componenti (bottoni, moduli, ecc.) */

body {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.sticky-top {
    top: 0 !important;
    z-index: 099999999999!important;
}

.nav-item{ padding: 0.5rem 2rem;}

.nav-link{
    font-size: 16px;
    font-weight: 700!important;
    text-transform: uppercase;
    padding-left: 0px!important;
    padding-right: 0px!important;
}

.nav-item{
    padding-left: 2rem!important;
    padding-right: 2rem!important;
    align-items: center;
    display: flex;
}

.navbar-container{
    border-bottom: 1px solid color(srgb 1 1 1 / 0.5);
}

.navbar.scrolled .navbar-container{
    border-bottom: transparent;
}

.sticky-nav {
    position: fixed !important;
    top: 0;
    background: white; /* O un altro colore */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    position: absolute;
    top: 0;
    left:0;
    width: 100%;
    background: #ffffffdb;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1020;
}

.navbar-brand{
    font-family: var(--alt-font)!important;
    color: var(--primary-color);
    letter-spacing: var(--letter-spacing);
}

.navbar-nav{
    justify-content:space-between;
}

.navbar.scrolled {
  background-color: rgb(255 255 255 / 88%) !important;
}

.navbar-toggler{
    padding: 0;
}

ul.dropdown-menu {
    background-color: transparent;
    border: transparent;
}

.dropdown-menu li{
    background-color: rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0.1rem;
}

.dropdown-menu li a{
    color:white;
    font-weight:300;
    font-size: 15px;
}

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler:focus-within {
    border: unset;
    box-shadow: none;
}

hr{
    border-top: transparent;
    opacity: 1;
    height: 2px;
}

ol, ul {
    padding-left: 1rem;
}

ol li, ul li{
    margin-bottom: 0em;
}

ol li::marker, ul li::marker{
     color: var(--pop-color);
}

ul.check-list {
    padding-left: 0rem;
    list-style: none!important;
    list-style-type:none!important;
}

.check-list li {
    background: url(img/icon/check.svg) no-repeat left 0.5em;
    background-size: 0.7rem;
    padding: 0px 0 3px 24px;
}

#footer ol li, #footer ul li{
    margin-bottom: 0em;
    color: #000;
    font-family: var(--main-font);
    font-weight: 300;
}

section, .section-padding{
    padding-top:var(--section-padding);
    padding-bottom:var(--section-padding);
}

section.half-section, .half-section{
    padding-top:calc(var(--section-padding)/2);
    padding-bottom:calc(var(--section-padding)/2);
}

.pseudo-container{
    padding-left: calc(var(--pseudo-container-padding)*1);
    padding-right: calc(var(--pseudo-container-padding)*1);
}

.pseudo-container-all{padding: calc(var(--pseudo-container-padding)*1);}


.custom-button, .custom-button-transparent {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    padding: var(--btn-padding);
}

.custom-button {
    background-color: var(--pop-color);
    color: var(--light-color);
    border: 1px solid var(--light-color);
}

.custom-button-transparent {
    background-color: transparent;
    color: var(--pop-color);
    border: 1px solid var(--pop-color);
}


.custom-button-white-transparent {
/*
    display: inline-flex;
    align-items: center;
*/
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--btn-radius);
    cursor: pointer;
/*    transition: all 0.3s ease-in-out;*/
    padding: var(--btn-padding);
    background-color: transparent;
    color: white;
    border: 1px solid white;
    opacity: 1;
}

.custom-button i, .custom-button-transparent i, .custom-link i{
    font-size: 1.5rem;
}

.custom-button i{
    color:var(--primary-color);
}

.custom-button-transparent i{
    color:#fff;
}

.custom-button:hover, .custom-button-transparent:hover {
    transform: translateY(0.10rem);
    transition: all 0.3s ease-in-out;
    background-color:var( --link-hover-color);
    color: white!important;  
    border-color:var( --link-hover-color);
}

.custom-button-white-transparent:hover {
    transition: all 0.3s ease-in-out;
    background-color:var( --link-hover-color);
    color: white!important;  
    border-color:var( --link-hover-color);
}

.custom-button:hover i, .custom-button-transparent:hover i {
    color:var(--light-color);  
}

.custom-link{
    color:var(--pop-color);
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid var(--primary-color);
}
.custom-link i{
    color:var(--primary-color);
    transform: translateY(0) translateX(0);
    transition: all 0.3s ease-in-out;
}

.custom-link:hover i{
    transform: translateY(-0.10rem) translateX(0.10rem);
    transition: all 0.3s ease-in-out;
}

.fa-arrow-right:hover{
    transform: translateY(0rem) translateX(0.20rem);
    transition: all 0.3s ease-in-out;
}

.card{
    background-color: white;
    border:1px solid var(--pop-color);
    border-radius: var(--custom-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 11px 24px 0px rgb(0 0 0 / 10%);
}

.card .price{
    color:var(--pop-color);  
    font-weight: 500;
    font-size:42px;
    line-height: 1;
    text-transform: uppercase;
}

/* 6) Colori e background */


.border-bottom, .border-top, .border-start, .border-end, .border{
    border-width: 1px!important;
}

.pop-border{border-color: var( --pop-color)!important;}

.color-primary{color:var(--primary-color);}

.color-pop{color:var(--pop-color)!important;}

.light-color{color:var(--light-color)!important;}

.color-white{color: #fff;}

.color-azzurro{color:var(--azzurro)!important;}

.color-rosa{color:var(--rosa)!important;}

.bg-dark-green{background-color:#005335;}

.bg-dark *{color:var(--light-color)!important;}

.bg-dark ul li a:hover, .bg-dark a:hover, .bg-dark a{
    color: var(--light-color)!important;
}
.bg-secondary{
    background-color:var(--background-color-2)!important;
}

.bg-light{
    background-color:var(--light-color);
    color: color:var(--primary-color);
}

.bg-pop{background-color:var(--pop-color);}

.bg-transparent{background-color: transparent;}

.bg-azzurro{background-color:var(--azzurro)!important;}

.bg-rosa{background-color:var(--rosa)!important;}
bg

.bg-white{
    background-color:#fff!important;
}

.opacity-5{ opacity:0.5}

.hover-light-green a:hover, .hover-light-green p a:hover {
    color: #edfff9!important;
}

.mask {
    /* Da ricordare: dare position-relative al contenitore e anche al testo che si vuole vada sopra all'overlay */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-attachment: fixed;
}

/* 7) Sizing */

.w-20{width: 20%;}

.w-90{width: 90%;}

.h-90{height: 90%;}

.min-vh-30{min-height:30vh;}

.min-vh-50{min-height:50vh;}

.min-vh-75{min-height:75vh;}

.min-vh-90{min-height:90vh;}

.min-vh-100{min-height:100vh;}

.min-vw-30{min-width:30vw;}

.min-vw-50{min-width:50vw;}

.min-vw-100{min-width:100vw;}

.vw-30{width:30vw;}

.vw-50{width:50vw;}

.vw-70{width:70vw;}

.vh-50{height:50vh;}

.vh-80{height:80vh;}

.vh-75{height:75vh;}

.vh-100{height:100vh;}

.vw-100{width:100vw;}


/* 8 Form di contatto */



/* 9) Altri layout (contenitori, parti grafiche)*/

.custom-radius{border-radius: var(--custom-radius);}

/* 10) Animazioni */

.text-running-right {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.text-running-right p {
    font-size: 5rem;
    font-family: var(--alt-font);
    display: flex;
    gap: 2rem; 
    width: max-content;
    animation: moveText 10s linear infinite;
}

@keyframes moveText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}