/*
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=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');


/* 2) Variabili */

:root {
    --text-color: #343434;
    --secondary-color: #CACACA;
    --color-light: #BDDBB0;  
    --color-dark: #1A7431;
    --pop-color: #13A538;
    --link-hover-color:#0A4158;
    
    --custom-radius:0px;
    --btn-radius:70px 70px 70px 70px;
    --btn-padding: 11px 24px;
    --section-padding: 70px;    
    --main-font: "DM Sans", sans-serif;
    --alt-font: "DM Sans", sans-serif;
    --letter-spacing: 1px;  
    --pseudo-container-padding: 6rem;
}


/* 3) Fondamenta (html, body) */

html {
    font-size: 16px; /* Base del rem */
    scroll-behavior: smooth;
    color:  var(--text-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.6;
    font-weight: 300;
    font-style: normal;
}

.wow{
    visibility:hidden;
}

/* 4) Tipografia (titoli, paragrafi, link) */

.alt-font{
    font-family: var(--alt-font);
}

p{
    margin-bottom:1.5rem;
}

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-size: 70px;
    line-height: 62px;
    font-family: var(--alt-font);
    font-weight: 200;
    color: #000;
}

h2, .h2 {
    font-size: 48px;
    line-height: 56px;
    font-family: var(--alt-font);
    font-weight: 200;
    letter-spacing:-0.25px;
    color: #000;
}

h3, .h3 {
    font-size: 34px;
    line-height:44px;
    font-weight: 300;
    color: #000;
}

h4, .h4 {
    font-size: 28px;
    font-family: var(--alt-font);
    color: #000;
    font-weight: 300;
    line-height: 40px;
    margin-bottom:0.5em!important;
}

h5, .h5 {
    font-family: var(--alt-font);
    color: #000;
}

h6, .h6{
    color:var(--text-color);
    font-family: var(--main-font);
    font-style: normal;
    font-weight: 400;
    color: #000;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var( --pop-color)!important;
}

.text-xxl{
    font-size: 5rem;
    line-height: 1.1;
}

.text-xl{
    font-size: 3rem;
    line-height: 1.1;
}

.text-lg{
    font-size: 2.3rem;
    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;
}

.italic{
    font-style: italic;
}

.semi-bold{
    font-weight: 600;
}

.bold{
    font-weight: 700;
}

.regular{
    font-weight: 400;
}

.light{
    font-weight: 300;
}

blockquote{
    color: var(--pop-color);
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 300;
}

strong{
    font-weight: 700;
}

.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);
}

.letter-spacing{letter-spacing: var(--letter-spacing); }

/* 5) Componenti (bottoni, moduli, ecc.) */

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.sticky-top {
    top: 0 !important;
    z-index: 099999999999!important;
}

.nav-item{ padding: 0.5rem 2rem;}

.nav-link{
    color: var(--text-color);
    font-size: 13px;
    font-weight: 400;
    padding-left: 0px!important;
    padding-right: 0px!important;
}

.home-navbar .nav-link{
    color: #fff;
}

.nav-item{
    padding-left: 1rem!important;
    padding-right: 1rem!important;
}

.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;
    width: 100%;
    background: #fff;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1020;
}

.navbar.home-navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: transparent;
    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(--text-color);
    letter-spacing: var(--letter-spacing);
}

.navbar.scrolled {
    background-color: rgb(255 255 255 / 88%) !important;
    color: var(--text-color);
}

.navbar.scrolled .nav-link {
    color: var(--text-color)!important;
}

.navbar .navbar-brand #logo-scrolled{
    opacity: 0;
    position:fixed;
    display: none;
     height:40px!important;
    transition:all 0.2s ease-in-out;
}
.navbar .navbar-brand #logo{
    height:40px!important;
}

.navbar .navbar-brand #logo-base{
    opacity: 1;
    position:relative;
    display: none;
    height:40px;
    transition:all 0.2s ease-in-out;
}

.navbar.scrolled .navbar-brand #logo-base{
    opacity: 0!important;
    position: fixed;
    display: none!important;
    height:40px!important;
    transition:all 0.2s ease-in-out;
}

.navbar.scrolled .navbar-brand #logo-scrolled{
    opacity: 1!important;
    position:relative;
    display:block;
    height:40px!important;
    transition:all 0.2s ease-in-out;
}

.navbar-toggler{
    padding: 0;
}

ul.dropdown-menu {
    background-color: transparent;
    border: transparent;
}

.dropdown-menu li{
    background-color:white;
    margin-bottom: 0.1rem;
    border-radius: 30px;
}

.dropdown-menu li a{
    color: rgba(0, 0, 0, 0.8);
    font-weight:300;
    font-size: 15px;
}
.dropdown-menu li:hover{
    background-color:white;
}

.dropdown-menu li:hover a{
    color:var(--pop-color);
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: transparent;
    color:var(--pop-color);
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color:var(--pop-color);
}

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler:focus-within {
    border: unset;
    box-shadow: none;
}

#nav-prodotti ul li.active a{
    font-weight: 600;
    color: var(--pop-color);
}

#nav-prodotti ul li.active::before{
    content: "\f054"; 
    font-family: "Font Awesome 6 Pro"; 
    font-weight: 300; 
    margin-right: 0.3rem;
    color: var(--pop-color);
}

hr{
    border-top: 1px solid #000;
    opacity: 1;
}

ol, ul {
    padding-left: 1rem;
}

ol li, ul li{
    margin-bottom: 0em;
}

ol li::marker, ul li::marker{
     color: var(--pop-color);
}

.custom-list ul{
    padding-left: 0rem;
    list-style: none;
}

.custom-list li {
    margin-bottom: 1rem;
    background: url(/wp-content/themes/fondazione-piox/assets/img/list-icon.svg) no-repeat left 0.5em;
    background-size: 0.7rem;
    padding: 0px 0 3px 24px;
}

.no-style-list li {
    list-style: none;
}

#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, .custom-button-white {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    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: transparent;
    color: var(--pop-color);
    border: 1px solid var(--pop-color);
}
.custom-button-white {
    background-color: white;
    color: var(--pop-color);
    border: 1px solid white;
    text-shadow:none;
}

.custom-button-transparent {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff; 
}

.custom-button i, .custom-button-transparent i, .custom-link i{
    font-size: 1.5rem;
}

.custom-button i{
    color:var(--text-color);
}

.custom-button-transparent i{
    color:#fff;
}

.custom-button:hover, .custom-button-transparent:hover, .custom-button-white:hover  {
    transform: translateY(0.10rem);
    transition: all 0.3s ease-in-out;
    background-color:var(--color-dark);
    color: white!important;  
    border-color:var(--color-dark);
    box-shadow: none;
}

.custom-button:hover i, .custom-button-transparent:hover i, .custom-button-white:hover i {
    color:white;  
}

.custom-link{
    color:var(--pop-color);
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid var(--text-color);
}
.custom-link i{
    color:var(--text-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;
}

.flag{
    width: 150px;
    height: 80px;
    position: fixed;
    right: -0.5em;
    top: 50%;
    display: flex;
    transition: all 0.3s ease-in-out;
    color: white;
    z-index: 10;
    border-radius:var(--custom-radius) 0 0 var(--custom-radius);
    box-shadow: 0px 4px 0px #888888;
}

.flag:hover {
    transition: all 0.3s ease-in-out;
    transform: translatex(-0.5em)
}

.flag a, .flag a:hover{
    color: white!important;
    font-family: var( --main-font);
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.1;
}

.flag img{
    height: 50px;
    width: 50px;
    object-fit: contain;
    margin-right: 1em;
}

/* 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(--text-color);}

.color-secondary{color:var(--secondary-color);}

.color-pop{color:var(--pop-color)!important;}

.color-light{color:var(--color-light)!important;}

.color-white{color: #fff;}

.bg-gray{background-color:#DCDADA;}

.bg-dark{
    background-color:var(--color-dark)!important;
}

.bg-dark *{color:var(--color-light);}

.bg-dark ul li a:hover, .bg-dark a:hover{
    color: var(--pop-color);
}

.bg-color-light{
    background-color:var(--color-light);
    color: color:var(--text-color);
}

.bg-pop{background-color:var(--pop-color);}

.bg-pop a:hover{color:var(--color-dark)!important;}

.bg-transparent{background-color: transparent;}

.opacity-5{ opacity:0.5}

.overlay {
 display: block;
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
}

.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;
}

.mask-hover-card .mask-hover{
    /* Da ricordare: dare position-relative al contenitore e anche al testo che si vuole vada sopra all'overlay */
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 95%;
    overflow: hidden;
    background-attachment: fixed;
    transition: all 0.3s ease-in-out;
}

.mask-hover-card:hover .mask-hover{
    /* Da ricordare: dare position-relative al contenitore e anche al testo che si vuole vada sopra all'overlay */
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-attachment: fixed;
    transition: all 0.3s ease-in-out;
}

/* 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 */

.custom-form{
    width: 100%;
    border-bottom: 1px solid var(--text-color);
    margin-bottom:0.75rem;
}

.custom-form input, .custom-form optgroup, .custom-form select, .custom-form textarea {
    margin: 0;
    border: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    width: 100%;
    border-style: none;
}

.custom-form input:focus-visible, .custom-form optgroup:focus-visible, .custom-form select:focus-visible, .custom-form textarea:focus-visible {
    outline: unset;
}

.custom-form p{
    border: unset;
}

.wpcf7-list-item {
    margin: 0 0 0 0; 
}

.custom-contact label{
    background-color: transparent;
}

.custom-contact::placeholder {
    color:#000!important;
}

.custom-contact:focus, .custom-contact:focus-within {
    outline:none;
}

label {
    color:white;
    width: 100%;
}

label input, label optgroup, label select, label textarea{ 
    width:100%;
}

input[type="checkbox" i] {width: auto;}

.wpcf7-list-item-label{
    color:var(--text-color);
    font-size: 0.9em;
}

.wpcf7-spinner{display: none;}

.form-button{
    font-size: 22px;
    width: 100%!important;
    background-color: var(--color-dark)!important;
    color: white;
/*    border-width: 0px;*/
    border-style: none;
/*    border-color: transparent;*/
}

p:has(.form-button){ margin-bottom: 0px;}


/* 9) Altri layout (contenitori, parti grafiche)*/

.custom-radius{border-radius: var( --custom-radius);}

.carousel-inner{height:100%;}

.carousel-item{height:100%;}

.carousel-indicators [data-bs-target] {
    height:10px;
    width:10px;
    border-radius: 100%;
}


/* 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;
}

.zoom-wrapper {
  display: block;
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 4px; 
}

.zoom-wrapper img.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.zoom-wrapper:hover img.zoom-image {
  transform: scale(1.05);
}

.team-img{
    border-radius: 100%;
    object-fit: cover;
    height:70px;
    width:70px;
}

/* Masonry */

.grid {
    max-width:90vw;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.grid-sizer,
.grid-item { width:33.333%; }

.grid-item{
    margin: auto;
}

.grid-item-inner {
  overflow: hidden;
  position: relative;
}

.grid-item-inner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-item-inner:hover img {
  transform: scale(1.1);
}

.fancybox__container {
  z-index: 999999999999999999999999!important;
}

.modal-overlay{
    cursor: pointer;
    transition: all 0.4s ease;
}

.modal-overlay i{
    opacity:0;
    transition: all 0.4s ease;
}

.modal-overlay:hover i{
    opacity:4;
    transition: all 0.4s ease;
}

.modal-overlay:hover .modal-mask{
    background-color: black;
    transition: all 0.4s ease;
}

.modal-overlay:hover .modal-mask img{
    opacity: 0.6;
    transition: all 0.4s ease;
}


/*.gutter-sizer { width: 1%; }*/

#hero-slider {
  width: 100%;
  height: 100vh; /* O l'altezza che desideri per la tua sezione */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out; /* Deve corrispondere alla durata JS */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


@keyframes moveText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}