/*
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=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* 2) Variabili */

:root {
    --primary-color: #484848;
    --secondary-color: #012A4B;
    --light-color: #F8F9FB;  
    --dark-color: #00121F;
    --pop-color: #C3A33E;
    --link-hover-color:#012A4B;
    --custom-radius:15px;
    --btn-radius:0px 0px 0px 0px;
    --btn-padding: 1em 4em;
    --section-padding: 120px;    
    --main-font: "Inter", sans-serif;
    --alt-font: "Playfair Display", serif;
    --letter-spacing: auto;
    --pseudo-container-padding: 6rem;
}


/* 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.6;
    font-weight: 300;
    font-style: normal;
}

.w-80{ width: 80%;}

/* 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: var(--secondary-color);
    font-family: var(--alt-font);
}

h1, h3, h4, h5, h6, .h1, .h3, .h4, .h5, .h6 {
    line-height: 1.2;
    color: var(--secondary-color);
}

h1, .h1 {
    font-size: 75px;
    line-height: 1.2;
    font-weight:500;
}

h2, .h2 {
    font-size:54px;
    line-height: 1.2;
    font-family: var(--alt-font);
    font-weight:700;
    color: var(--secondary-color);
}

h3, .h3 {
    font-size: 43px;
    color: var(--secondary-color);
}

h4, .h4 {
    font-size: 2rem;
    font-family: var(--alt-font);
    color: var(--secondary-color);
}

h5, .h5 {
    font-family: var(--alt-font);
    color: var(--secondary-color);
}

h6, .h6{
    color:var(--primary-color);
    font-family: var(--main-font);
    font-style: normal;
    font-weight: 400;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var( --pop-color)!important;
}

.text-xl{
    font-size: 3rem;
    line-height: 1.1;
}

.text-lg{
    font-size: 2.3rem;
    line-height: 1.1;
}

.text-md{
    font-size: 1.3rem;
    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;
}

.body-statuto strong{
   font-weight: 700!important;  
}

.semi-bold{
    font-weight: 600;
}

.bold{
    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);
}

.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{
    color:var(--light-color);
    font-size: 18px;
    font-weight: 400;
    padding-left: 0px!important;
    padding-right: 0px!important;
}

.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-color: var(--secondary-color);
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding-bottom: 15px;
    padding-top:15px;
    background-color: #012a4beb;
    transition: all 0.5s ease-in-out;
    z-index: 1020;
}

.navbar-brand{
    font-family: var(--alt-font)!important;
    color: var(--primary-color);
    letter-spacing: var(--letter-spacing);
    padding:0;
}

.navbar.scrolled {
    padding-top:10px!important;
    padding-bottom:10px!important;   
    transition: height 0.2s ease-in-out;

}

.navbar-toggler{
    padding: 0;
    color: white;
}

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;
}

#header-logo{
    transition: height 0.5s ease-in-out;
}

hr{
    border-top: 3px solid var(--pop-color);
    opacity: 1;
    margin-top:2rem;
    margin-bottom:2rem;
}

.vertical-separator{
    position: relative;
}

.vertical-separator.separator-secondary::after{
    content: "";
    position:absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100px;
    width:5px;
    background-color: var(--secondary-color);
    bottom:-50px;

}
.vertical-separator.separator-pop::after{
    content: "";
    position:absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100px;
    width:5px;
    background-color: var(--pop-color);
    bottom:-50px;

}

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;
}

#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;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    padding: var(--btn-padding);
    text-wrap-mode: nowrap;
    width: fit-content;
}

.custom-button {
    background-color: var(--pop-color);
    color: var(--dark-color)!important;
    border: 2px solid  var(--pop-color); 
    transition: all 0.3s ease-in-out;
}

.custom-form .custom-button {
    background-color: var(--secondary-color)!important;
    color: white!important;
    border: 2px solid var(--secondary-color)!important;
    transition: all 0.3s ease-in-out!important;
}

.custom-button-transparent {
    background-color: transparent;
    color:  var(--pop-color);
    border: 2px solid  var(--pop-color); 
    transition: all 0.3s ease-in-out;
}

.custom-button i, .custom-button-transparent i{
    font-size: 1.5rem;
}

.custom-button i{
    color:var(--primary-color);
}

.custom-button-transparent i{
    color:#fff;
}

.white-btn{ 
    background-color: white;
    margin-left: 1rem;
    margin-right: 1rem;
}

.white-btn .nav-link{ 
   color:var(--dark-color);
}

.custom-button:hover {
    transform: translateY(0.10rem);
    transition: all 0.3s ease-in-out;
    background-color:#6f5d23;
    color: white!important;  
    border: 2px solid  #6f5d23; 
}

.custom-button-transparent:hover {
    transform: translateY(0.10rem);
    transition: all 0.3s ease-in-out;
    background-color:var(--pop-color);
    color: white!important;  
    border: 2px solid  var(--pop-color); 
}

.custom-button:hover i, .custom-button-transparent:hover i {
    color:var(--pop-color);  
}

.custom-link{
    color:var(--pop-color);
    padding: 0.3rem 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}
.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) translateX(0.10rem);
    transition: all 0.3s ease-in-out;
}

.custom-link i{
    font-size: 1rem;
    color: var(--pop-color);
}

.fa-arrow-right:hover{
    transform: translateY(0rem) translateX(2rem);
    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;
}
.info-banner .titolo{
    font-size:1.5em;
    font-weight: 600;
    color:white;
    font-family: var(--alt-font);
}

.info-banner .didascalia{
    font-size:13px;
    color:white;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 0;
}

.info-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-banner-icon {
    flex-shrink: 0;
    font-size: 2.3rem;
    color:var(--pop-color);
}

.info-banner:not(:last-child)::after {
   content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 60%;
    background-color: white;
    opacity: 0.4;
    transform: translateY(-50%);
}

/* 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-secondary{color:var(--secondary-color);}

.color-pop{color:var(--pop-color)!important;}

.color-light{color:var(--light-color)!important;}

.color-white{color: #fff;}

.bg-gray{background-color:#DCDADA;}

.bg-dark{
    background-color:var(--dark-color)!important;
}

.border-left-secondary{
    border-left:5px solid var(--secondary-color);
}

.border-left-pop{
    border-left:5px solid var(--pop-color);
}

.bg-dark *{color:var(--light-color);}

.bg-secondary {background-color:var(--secondary-color)!important;}

.bg-medium {background-color:var(--secondary-color)!important;}

.bg-dark ul li a:hover, .bg-dark a:hover{
    color: var(--pop-color);
}

.bg-light{
    background-color:var(--light-color)!important;
    color: var(--primary-color);
}

.bg-pop{
    background-color:var(--pop-color);}

.bg-transparent{
    background-color: transparent;}

.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 {
    width: 100%;
    margin: 0;
    border: transparent;
    font-family: inherit;
    font-size: 15px;
    line-height: inherit;
    padding: 5px 10px;
    background-color: var(--light-color);
}

.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: transparent;
    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( --pop-color);
    width: 100%;
}

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-color);
    background-color: transparent;
    border: none;
}

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%;
}


/* Frecce navigazione News Carousel */

#news-carousel {
    position: relative;
}

#news-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: none;
}

#news-carousel .owl-nav button.owl-prev,
#news-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0 !important;

    background: transparent !important;
    border: 0;

    pointer-events: auto;
}

/* Freccia sinistra */
#news-carousel .owl-nav button.owl-prev {
    left: -70px;
}

/* Freccia destra */
#news-carousel .owl-nav button.owl-next {
    right: -70px;
}

/* Dimensione icone */
#news-carousel .owl-nav button i {
    font-size: 2.5rem;
    color: var(--pop-color);
    transition: transform 0.3s ease;
}

/* Hover */
#news-carousel .owl-nav button:hover i {
    transform: scale(1.15);
}

.vertical-title{
    font-size:3.5rem;
}

.card{
    border-color: var(--secondary-color);
    border-width: 1px 8px 8px 1px ;
    aspect-ratio: 8/6;
    padding:1.5rem;
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    align-items:start;
    border-radius: 0;
}

.card:hover{
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: WHITE;;
    border-width: 1px 8px 8px 1px ;
    aspect-ratio: 8/6;
    transform: translateY(10);
   
}

.card h3{
    font-weight:400;
    font-size: 17px;
    --bs-text-opacity: 1;
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
}

.card:hover h3 {
    color: #fff;
}

.card .icona{
    height:30px;
    width:auto;
}

.card:hover .icona{
    filter: invert(1);
}

/* Accordion */

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
}

.accordion-item {
   border-width: 0 0 1px 0;
}

.accordion-item, 
.accordion-button {
    scroll-margin-top: 120px !important; /* Aumentato a 120 per sicurezza */
}

.accordion-button::after {
    background-image: url(/wp-content/themes/bmms/assets/img/accordion-arrow.svg);
}

.accordion-button:not(.collapsed)::after {
     background-image: url(/wp-content/themes/bmms/assets/img/accordion-arrow.svg);
}

.accordion-button, .accordion-button:not(.collapsed) {
    font-size: 1.5rem;
    color: #363636;
}

/* Pagina professionista */

.body-professionista h2{
    font-size: 16px!important;
    color: var(--primary-color);
    margin-bottom: 10px;
}

h1.title-professionista{
  font-size: 24px!important;
}

ul.competenze-professionista li{
    list-style:none;
    font-style: italic;
}

ul.competenze-professionista, ul.contatti-professionista{
   padding-left: 0px;
}

ul.contatti-professionista li{
    list-style:none;
}


/* 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%);
    }
}