/*
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=Inconsolata:wght@200..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


/* 2) Variabili */

:root {
    --primary-color: #3C3C3C;
    --secondary-color: #F7F7F7;
    --pop-1: #F48205;
    --pop-1-rgb: 244, 130, 5; 
    --pop-2: #A6003E;
    --pop-2-rgb: 166, 0, 62;
    --link-hover-color:#E44400;
    --yellow-rgb: 245 177 102;
    
    --custom-radius:70px;
    --btn-radius:70px 70px 70px 70px;
    --btn-padding: 1em 4em;
    --section-padding: 120px;    
    --main-font: "Raleway", sans-serif;
    --alt-font: "Inconsolata", monospace;
    --letter-spacing: 0.4em;  
    --pseudo-container-padding: 6rem;
}


/* 3) Fondamenta (html, body) */

html {
    font-size: 14px; /* Base del rem */
    scroll-behavior: smooth;
    color:  var(--primary-color);
    font-family: var(--main-font);
    font-weight: 500;
    font-style: normal;
}

body {
    background-color: var(--background-color); 
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--main-font);
    line-height: 1.6;
    font-weight: 400;
    font-style: normal;
}

.wow{
    visibility:hidden;
}

/* 4) Tipografia (titoli, paragrafi, link) */

.alt-font{
    font-family: var(--alt-font);
}

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: 5rem;
    line-height: 1;
    font-weight:500;
}

h2, .h2 {
    font-size: 2.6rem;
    line-height: 1.1;
    font-family: var(--alt-font);
    font-weight:500;
    color: #000;
}

h3, .h3 {
    font-size: 1.5rem;
    color: #000;
}

h4, .h4 {
    font-size: 2rem;
    font-family: var(--alt-font);
    color: #000;
}

h5, .h5 {
    font-family: var(--alt-font);
    color: #000;
}

h6, .h6{
    color:var(--primary-color);
    font-family: var(--main-font);
    font-style: normal;
    font-weight: 400;
    color: #000;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var( --pop-1)!important;
}

.text-xl{
    font-size: 5rem;
    line-height: 0.9;
}

.text-lg{
    font-size: 2.3rem;
    line-height: 1.1;
}

.text-md{
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 400;
}

.text-sm{
    font-size: 0.9rem;
    line-height: 1.4;
}

.text-xs{
    font-size: 0.7rem;
    line-height: 1.4;
}

.body-statuto strong{
   font-weight: 700!important;  
}

.semi-bold{
    font-weight: 600;
}

.bold{
    font-weight: 700;
}

.black{
    font-weight: 900;
}

.regular{
    font-weight: 400;
}

.medium{
    font-weight: 500;
}

.italic{
    font-style: italic;
}

.text-stroke{
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--pop-1);
}

.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-1),
    -3px 3px 0 var(--pop-1),
    -3px -3px 0 var(--pop-1),
    3px -3px 0 var(--pop-1);
}

.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-family: var(--alt-font);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    padding-left: 0px!important;
    padding-right: 0px!important;
}

.nav-item{
    padding-left: 1rem!important;
    padding-right: 1rem!important;
}

.servicing-icon .menu-item-icon{
    margin-right:5px;
    width:15px;
    height:15px;
    aspect-ratio:1/1;
    border-radius: 100%;
    background: var(--pop-2);
    background: linear-gradient(90deg, rgba(230 51 42) 0%, rgba(185 20 79) 100%);
}

.origination-icon .menu-item-icon{
    margin-right:5px;
    width:15px;
    height:15px;
    aspect-ratio:1/1;
    border-radius: 100%;
    background: var(--pop-1);
    background: linear-gradient(90deg,rgba(243, 146, 0, 1) 0%, rgba(235, 93, 11, 1) 100%); 
}


.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: 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(--primary-color);
    letter-spacing: var(--letter-spacing);
}

.navbar.scrolled {
 background: color(srgb 1 1 1 / 0.90)!important; 
}

.btn-send{
    background:transparent!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: 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-1);
}

.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;
}

#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: 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: var(--pop-1);
    color: var(--primary-color);
    border: 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(--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(--primary-color);
    color: white;  
    border-color:var(--primary-color);
}

.custom-button:hover i, .custom-button-transparent:hover i {
    color:var(--pop-1);  
}

.custom-link{
    color:var(--pop-1);
    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;
}

.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-1)!important;}

.color-primary{color:var(--primary-color);}

.color-secondary{color:var(--secondary-color);}

.color-pop{color:var(--pop-1)!important;}

.color-pop-2{color:var(--pop-2)!important;}

.secondary-color{color:var(--secondary-color)!important;}

.color-white{color: #fff;}

.color-yellow{color:#FFB400;}

.bg-gray{background-color:#DCDADA;}

.bg-dark{
    background-color:var(--primary-color)!important;
}

.bg-dark *{color:var(--secondary-color);}

.bg-dark ul li a:hover, .bg-dark a:hover{
    color: var(--pop-1);
}

.bg-light{
    background-color:var(--secondary-color);
    color: color:var(--primary-color);
}

.bg-light-yellow{background-color:  rgba(var(--yellow-rgb) / 0.25) !important;}

.bg-pop{background-color: rgba(var(--pop-1-rgb), var(--bs-bg-opacity, 1)) !important;}

.bg-pop-2{background-color: rgba(var(--pop-2-rgb), var(--bs-bg-opacity, 1)) !important;}

.bg-transparent{background-color: transparent;}

.bg-dot-pink-circle{
    background-image: url(/wp-content/themes/template/assets/img/dot-bg.svg), url(/wp-content/themes/template/assets/img/pink-circle.svg);
    background-size: cover, 30%;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.bg-dot-orange-circle{
    background-image: url(/wp-content/themes/template/assets/img/dot-bg.svg), url(/wp-content/themes/template/assets/img/orange-circle.svg);
    background-size: cover, 30%;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.bg-white-yellow{ 
    background:linear-gradient(
    to bottom, 
    white,
    white 70%,
    rgba(var(--yellow-rgb) / 0.25) 70%,
    rgba(var(--yellow-rgb) / 0.25)
    );
}

.wpml-ls-native{
    color:var(--pop-1)!important;}
}

.gradient-yellow-orange{background: linear-gradient(90deg,rgba(243, 146, 0, 1) 0%, rgba(235, 93, 11, 1) 100%);}

.gradient-pink{background: linear-gradient(90deg, #E6332A 0%, #B9144F 100%);}

.opacity-5{ opacity:0.5}

.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 */

.custom-form{
    width: 100%;
    margin-bottom:0.75rem;
}

.custom-form input, .custom-form optgroup, .custom-form select, .custom-form textarea {
    margin: 0;
    border:none;
    background-color: white;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    width: 100%;
}

.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{
    padding: 0;
    box-shadow: none;
    border-color: transparent;
    width: 100%;
    background-color: var(--secondary-color);
    font-family: var(--alt-font);
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 500;
    color:#000;
}

.custom-contact p{margin-bottom: 0px;}

.custom-contact::placeholder {color:#000!IMPORTANT;}

.custom-contact:focus, .custom-contact:focus-within {outline:none;}

label {
    color:var( --primary-color);
    font-weight: 600;
    font-style: italic;
    width: 100%;
    border-bottom: 1px solid var(--primary-color);
}

.wpcf7-list-item label{
    border-bottom: transparent!important;
}

label input, label optgroup, label select, label textarea{ width:100%;}

input[type="checkbox" i] {width: auto;}

.wpcf7-list-item-label{
    color:var(--primary-color);
    font-size: 0.9em;
}

.wpcf7-spinner{display: none;}

.form-button{
    font-size: 22px;
    color: var(--pop-1);
    background-color: transparent;
    border: none;
}

.custom-btn-send p{
    display: flex;
    justify-content: flex-start;
}
 
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%;}

.squared.carousel-indicators {
    display: flex!important;
    justify-content: flex-start!important;
}
.squared.carousel-indicators [data-bs-target] {
    width:80px;
    height:8px;
    border-radius: 0px;
}

/* 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;
}

.btn-icon{
    width:15px;
    height:15px;
    object-fit: contain;
}

.circle-button {
  position: relative;
  display: inline-block;
}

.circle-button.in-bord:after {
  content: '';
  position: absolute;
  top: 55px;
  left: 55px;
  right: 55px;
  bottom: 55px;
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
  border-radius: 50%;
}

.circle-button.in-bord:before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
  border-radius: 50%;
}

.circle-button .rotate-circle svg {
  width: 280px;
  fill: #1d1d1d;
}

.circle-contatti .circle-button .rotate-circle svg {
  width: 400px;
  fill: #1d1d1d;
}

.circle-button .arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-40px) translateY(-40px);
  -ms-transform: translateX(-40px) translateY(-40px);
  transform: translateX(-40px) translateY(-40px);
  display: inline-block;
  width: 0;
  height: 0;
}

.circle-button .arrow svg {
  width: 40px;
  height: 40px;
}

.circle-button .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.circle-button .in-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.circle-button.no-animate .rotate-circle {
  -webkit-animation: none;
  animation: none;
}

.rotate-circle {
  -webkit-animation-name: rotateCircle;
  animation-name: rotateCircle;
  -webkit-animation-duration: 20s;
  animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
}

.number-counter{
    font-size: 75px;
    font-family: var(--alt-font);
    font-weight: 800;
    line-height: 1;
}

@-webkit-keyframes rotateCircle {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotateCircle {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes moveText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}