/*!
Theme Name: Outgrid Child
Theme URI: https://uicore.co
Description: Multi-Purpose Elementor WordPress Theme
Author: UiCore
Author URI: https://uicore.co
Template: outgrid
Version: 1.0.0
Text Domain: outgrid
*/

/* Add your custom style here */

/* encode-sans-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Encode Sans Local';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/encode-sans-v23-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* encode-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Encode Sans Local';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/encode-sans-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* encode-sans-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Encode Sans Local';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/encode-sans-v23-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* encode-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Encode Sans Local';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/encode-sans-v23-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
/* encode-sans-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Encode Sans Local';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/encode-sans-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* encode-sans-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Encode Sans Local';
    font-style: normal;
    font-weight: 800;
    src: url('fonts/encode-sans-v23-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* encode-sans-900 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Encode Sans Local';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/encode-sans-v23-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Poppins Local-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins Local';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/poppins-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Poppins Local-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins Local';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Poppins Local-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins Local';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/poppins-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Poppins Local-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins Local';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Poppins Local-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins Local';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/poppins-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Poppins Local-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins Local';
    font-style: normal;
    font-weight: 800;
    src: url('fonts/poppins-v24-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/*
* FONT ICONE
*/
@font-face {
    font-family: 'website';
    src: url('fonts/website.eot?84807229');
    src: url('fonts/website.eot?84807229#iefix') format('embedded-opentype'),
         url('fonts/website.woff2?84807229') format('woff2'),
         url('fonts/website.woff?84807229') format('woff'),
         url('fonts/website.ttf?84807229') format('truetype'),
         url('fonts/website.svg?84807229#website') format('svg');
    font-weight: normal;
    font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
    font-family: 'website';
    src: url('../font/website.svg?84807229#website') format('svg');
}
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "website";
font-style: normal;
font-weight: normal;
speak: never;

display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */

/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;

/* fix buttons height, for twitter bootstrap */
line-height: 1em;

/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;

/* you can be more comfortable with increased icons size */
/* font-size: 120%; */

/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.icon-iconform-training:before { content: '\e800'; } 
.icon-iconform-transfer:before { content: '\e801'; } 
.icon-iconform-workshops:before { content: '\e802'; }
.icon-iconform-visits:before { content: '\e803'; } 
.icon-iconform-jobshadowing:before { content: '\e804'; } 
.icon-iconform-onsite:before { content: '\e805'; }
.icon-iconform-calendar:before { content: '\e806'; } 
.icon-iconform-headphone:before { content: '\e807'; } 
.icon-iconform-clock:before { content: '\e808'; } 
.icon-iconform-home:before { content: '\e809'; } 
.icon-iconform-courses:before { content: '\e80a'; } 
.icon-iconform-mobility:before { content: '\e80b'; }
.icon-iconform-cards:before { content: '\e80c'; } 
.icon-iconform-ribbon:before { content: '\e80d'; } 
.icon-icon-network:before { content: '\e80e'; } 
  



body{
    --grid-width: 1300px;
    --primary-color: #022B32;
    --accent-color: #FBB927;
    --eg-color: var( --e-global-color-bc1ea1c );
    --ee-color: var( --e-global-color-bcf301b );
    --es-color: var( --e-global-color-a184eb4 );
    --ep-color: var( --e-global-color-ca473ba );
}

#uicore-tb-header {
    position: sticky;
    top: -10px;
    z-index: 999;
}

.primary-text{
    color: var(--primary-color)!important;
}
.accent-text{
    color: var(--accent-color)!important;
}
.eg-text{
    color: var(--eg-color)!important;
}
.ee-text{
    color: var(--ee-color)!important;
}
.es-text{
    color: var(--es-color)!important;
}
.ep-text{
    color: var(--ep-color)!important;
}

.primary-bg{
    background-color: var(--primary-color)!important;
}
.accent-bg{
    background-color: var(--accent-color)!important;
}
.eg-bg{
    background-color: var(--eg-color)!important;
}
.ee-bg{
    background-color: var(--ee-color)!important;
}
.es-bg{
    background-color: var(--es-color)!important;
}
.ep-bg{
    background-color: var(--ep-color)!important;
}

/* UTILITY */

.d-none{display:none;}
.d-block{display:block;}

@media screen and (min-width: 768px){
	.d-md-none{display:none;}
	.d-md-block{display:block;}
}

/* SEZIONE OLTRE IL LA GRIGLIA */
.wide-sect {
    width: calc(100% + 80px)!important;
    max-width: calc(100% + 80px)!important;
}
.wide-sect .wide-col {
    width: var(--grid-width)!important;
    max-width: 100%;
    margin: 0 auto;
}
@media screen and (max-width: 1300px){
    .wide-sect {
        width: 100%!important;
    }
}

/* BOTTONI */
.btn-custom .elementor-button {
    position: relative;
    overflow: hidden;
    justify-content: flex-start; 
    transition: all 0.4s ease;
}

.btn-custom .elementor-button .elementor-button-icon {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 40px;
    aspect-ratio: 1;
    background-color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.076, 1);
    z-index: 5;
}

.btn-custom .elementor-button .elementor-button-icon svg {
    transition: transform 0.4s ease;
    transform: rotate(0deg);
}

.btn-custom .elementor-button:hover .elementor-button-icon {
    max-width: calc(100% - 8px);
    width: 100%;
    height: calc(100% - 9px);
}

.btn-custom .elementor-button:hover .elementor-button-icon svg {
    transform: rotate(45deg); 
}

.btn-custom .elementor-button-text {
    padding-right: 40px;
    z-index: 1; 
}


.hp-hide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* HEADER */
.site-header {
    z-index: 1000;
    position: sticky;
    top: 20px;
    width: 100%;
    max-width: var(--grid-width);
    margin: 0 auto -80px auto;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 20px;
}

.site-branding{
    max-width: 300px;
}
.site-branding a {
    display: flex;
    align-items: left;
}
.site-branding img {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* --- MENU DESKTOP --- */
.main-navigation .menu-list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation .menu-list a {
    text-decoration: none;
    color: var(--primary-color);
    text-transform: uppercase;
    font-family: 'Poppins Local', sans-serif;
    font-size: 18px!important;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.menu-item-has-children > a::after {
    content: '▼';
    font-size: 5px;
    margin-left: 8px;
    transition: transform 0.3s;
}

.menu-item { position: relative; }

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    min-width: 250px;
    padding: 60px 0 30px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.sub-menu li a {
    padding: 8px 20px;
    display: block;
    font-size: 14px;
}

.menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-cta a {
    background: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
}

/* --- HAMBURGER (Base) --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform-origin: left;
}

.custom-header-wrapper.active .hamburger-menu {
    position: absolute;
}

.menu-item.back{display: none;}
/* Animazione Hamburger a X */
.site-navigation-wrapper.active .line-1 { transform: rotate(45deg) translate(0px, -2px); }
.site-navigation-wrapper.active .line-2 { opacity: 0; }
.site-navigation-wrapper.active .line-3 { transform: rotate(-45deg) translate(0px, 2px); }

@media (max-width: 1300px) {
    .header-container {
        width: calc(100% - 100px);
    }
}
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex; /* Mostra hamburger */
    }

    /* Il menu vero e proprio diventa l'overlay */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1500;
    }

    .site-navigation-wrapper.active .main-navigation {
        opacity: 1;
        visibility: visible;
    }
    .site-navigation-wrapper.active .hamburger-menu{
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .main-navigation .menu-list {
        gap: 25px;
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation .menu-item a {
        font-size: 22px!important;
        font-weight: 600;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 10px 0 0 0;
        text-align: center;
        display: none; 
    }
    
    .site-navigation-wrapper.active .menu-item-has-children:hover .sub-menu,
    .site-navigation-wrapper.active .menu-item-has-children .sub-menu {
        display: block; 
    }
}

@media (max-width: 768px) {
    .header-container {
        width: calc(100% - 60px);
    }
}



/* CONTACT FORM */
form.wpcf7-form {
    max-width: 100%;
    font-family: 'Poppins Local', sans-serif;
    padding: 0px;
}

form.wpcf7-form *,
form.wpcf7-form *::before,
form.wpcf7-form *::after {
    box-sizing: border-box;
} 
.form-row {
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
}
.col-md-6, 
.col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 5px;
    padding-left: 5px;
}
@media screen and (min-width: 768px){
	.col-md-6 { width: 50%;}
	.col-md-12 { width: 100%;}	
    .form-row {
        gap: 20px;
        flex-wrap: nowrap;
    }
    form.wpcf7-form {
        padding: 10px;
    }
}
.form-group p {
    margin: 0 0 1rem 0;
    position: relative;
}
  
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
  
.wpcf7-form label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 300;
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 10;
    font-size: 0.875rem;
    color: var(--e-global-color-uicore_primary);
}
  
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    display: block;
    width: 100%;
    padding: 30px 20px 10px 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--e-global-color-uicore_primary);
    background-color: #fff;
    background-clip: padding-box;
    border: solid 1px #D5D6D2;
    border-radius: 20px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
  
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    color: var(--e-global-color-uicore_primary);
    background-color: #fff;
    border-color: var(--e-global-color-primary);
    outline: 0;
}
.form-check.privacy-wrap label {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 0;
    width: auto;
}
.form-check.privacy-wrap label, .form-check.privacy-wrap .wpcf7-list-item-label, .form-check.privacy-wrap .wpcf7-list-item-label a {
    display: inline;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
    color: var(--e-global-color-primary);
}
.form-check.privacy-wrap a { text-decoration: underline; }

/* FORM FILTRO */
.form-filter-options {
    margin-bottom: 3rem;
}
.form-filter-options .form-row {
    margin-bottom: 20px;
}
.form-filter-options .form-row .wpcf7-not-valid-tip {
    margin-top: 20px;
}
.form-filter-options .form-group > p > label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
}
.form-filter-options label {
    position: relative;
    margin: 0;
}
.form-filter-options .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-filter-options .wpcf7-list-item {
    margin: 0;
}

.form-filter-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-filter-options .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid var(--primary-color);
    border-radius: 5rem;
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}
.form-filter-options .wpcf7-list-item-label::before {
    font-family: "website";
    font-size: 16px;
    margin-right: 5px;
    color: var(--primary-color);
}
.form-filter-options input[value="Student"] + .wpcf7-list-item-label::before { content: "\E80A"; }
.form-filter-options input[value="Staff - Teachers"] + .wpcf7-list-item-label::before { content: "\E804"; }
.form-filter-options input[value="Schools"] + .wpcf7-list-item-label::before { content: "\E805"; }

.form-mobility .wpcf7-list-item-label {
    display: flex;
    flex-direction: column;
    border-radius: 30px;
}
.form-mobility .wpcf7-list-item-label:before {
    font-size: 30px;
    margin-bottom: 10px;
}

.form-filter-options input[value="VET Short Duration"] + .wpcf7-list-item-label::before { content: "\E808"; }
.form-filter-options input[value="VET Long Duration"] + .wpcf7-list-item-label::before { content: "\E806"; }
.form-filter-options input[value="On - Site Internship"] + .wpcf7-list-item-label::before { content: "\E805"; }
.form-filter-options input[value="KA1 Structured Courses"] + .wpcf7-list-item-label::before { content: "\E80A"; }
.form-filter-options input[value="Job Shadowing & Networking"] + .wpcf7-list-item-label::before { content: "\E804"; }
.form-filter-options input[value="Workshops & Seminars"] + .wpcf7-list-item-label::before { content: "\E802"; }
.form-filter-options input[value="Technical Visits"] + .wpcf7-list-item-label::before { content: "\E803"; }
.form-filter-options input[value="Hybrid Training"] + .wpcf7-list-item-label::before { content: "\E800"; }
.form-filter-options input[value="Group Mobility"] + .wpcf7-list-item-label::before { content: "\E80B"; }
.form-filter-options input[value="Online Internships"] + .wpcf7-list-item-label::before { content: "\e80e"; }

.form-filter-options input[type="radio"]:not(:checked) + .wpcf7-list-item-label:hover {
    border-color: var(--primary-color); /* Colore bordo all'hover */
    color: var(--primary-color);
}

.form-filter-options input[type="radio"]:checked + .wpcf7-list-item-label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}
.form-filter-options input[type="radio"]:checked + .wpcf7-list-item-label:before {
    color: #ffffff;
}


/* freccia accordion (da sistemare) */
.e-n-accordion-item-title-icon .e-opened{
    transition: all 0.5s;
}
.e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened {
    transform: rotate(-90deg);
}




/* CTA */
.cta-header {
    display: flex;
    height: auto;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 20px;
}
.cta-header__first, .cta-header__last {
    background: var(--eg-color);
    height: auto;
    border-radius: 20px;
}
.cta-header__first {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    width: 30%;
}
.cta-header__first img {
    object-fit: cover;
    height: 90%!important;
    position: absolute;
    bottom: 0px;
}
.cta-header__last {
    width: 70%;
    position: relative;
}
.cta-header__last img {
    position: absolute;
    bottom: 0;
    width: 240px;
    right: 30px;
}

.cta-footer {
    margin-top: 20px;
    background: var( --e-global-color-uicore_primary );
    border-radius: 20px;
}
.cta-footer a{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
}
.cta-footer a span {
    font-family: 'Encode Sans Local';
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2em;
    color: #fff;
    text-decoration: none;
}
.cta-footer a img {
    width: 40px;
    transition: all 0.5s;
}
.cta-footer a:hover img {
    transform: rotate(90deg);
}

@media screen and (max-width:576px){
    .cta-header {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }
    .cta-header__first {
        aspect-ratio: 2;
        width: 100%;
    }
    .cta-header__last {
        width: 100%;
        height: 150px;
    }
    .cta-header__last img {
        width: 200px;
    }

}

.cta-extra .cta-header__last:after {
    content: '';
    width: 70%;
    height: 100%;
    position: absolute;
    background-image: url(https://oneco.org/wp-content/uploads/2026/03/onecotext.png);
    top: 0;
    left: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}


/* SHT EXT PROJECTS */
.ext-projects-swiper {
    max-width: calc(50% + 650px);
    margin-right: 0 !important;
}
.extproject-slide{
    height: auto!important;
}
.extproject-content-wrapper {
    background: #F6EEE6;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    height: 100%;
}
.extproject-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}
.extproject-btn .btn-extproject {
    background: #fff;
    display: flex;
    padding: 10px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
}
.extproject-btn .btn-extproject img {
    width: 30px;
    max-width: 30px;
}
.swiper-custom-next, .swiper-custom-prev {
    cursor: pointer;
}

/* SHT PROJECTS */
.projects-swiper {
    max-width: calc(50% + 650px);
    margin-right: 0 !important;
}
.project-slide{
    height: auto!important;
}
.project-content-wrapper {
    background: #F6EEE6;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.swiper-custom-next, .swiper-custom-prev {
    cursor: pointer;
}
.project__title {
    margin: 0;
    font-size: 34px;
}
.project__modalidad {
    display: flex;
    gap: 10px;
}


/* SHT TEAM */

.teamgrid {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin: 40px 0;
}

.teamcard {
    position: relative;
    text-align: center;
    width: 25%;
    padding: 10px;
}

.teamcard__visual {
    position: relative;
    height: auto; 
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 15px;
}

.teamcard__bgmark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    
    z-index: 1;
}
.teamcard__bgmark img{
    object-fit: cover;
    height: 100%!important;
    width: 100%;
}

.teamcard__img {
    position: relative;
    z-index: 2;
    max-width: 90% !important;
    width: auto;
    object-fit: contain;
}

.teamcard__info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    align-items: flex-start;
}
.teamcard__infoleft {
    text-align: left;
    width: 80%;
    margin-left: 10px;
}
.teamcard__inforight {
    width: 20%;
    margin-top: 10px;
    margin-right: 10px;
}

.teamcard__name {
    font-size: 1.563rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.teamcard__role {
    font-size: 1.125rem;
}

.teamcard__socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

@media screen and (max-width:992px){
    .teamcard {
        width: 33.333%;
    }
}
@media screen and (max-width:768px){
    .teamcard {
        width: 50%;
    }
}
@media screen and (max-width:592px){
    .teamcard {
        width: 100%;
    }
}

/* SHT TIMELINE */
.tl__col {
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
}
.tl__content {
    width: 50%;
    position: relative;
}
.tl__img {
    width: 43%;
    padding: 30px;
    overflow: hidden;
    height: auto;
    position: relative;
    border-radius: 15px;
    min-height: 400px;
}
.tl__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%!important;
    object-fit: cover;
}

.tl__content {
    color: #fff;
    padding: 40px;
}
.tl__year {
    font-family: 'Encode Sans Local';
    font-weight: 800;
    font-size: 200px;
    position: absolute;
    top: 40px;
    opacity: 0.2;
}
.tl__text {
    margin: 50px 0;
}

.tl_nav {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 999;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}
.swiper-whitebg-prev{
    transform: rotate(180deg);
}
.swiper-whitebg-next, .swiper-whitebg-prev {
    background-color: #fff;
    border-radius: 10px;
    aspect-ratio: 1;
    width: 40px;
    height: 100%;
    display: flex;
}

@media screen and (max-width:992px){
    .tl__col {
        flex-wrap: wrap;
    }
    .tl__content, .tl__img {
        width: 100%;
    }
}
@media screen and (max-width:592px){
    .tl__content {
        padding: 25px;
    }
    .tl__year {
        font-size: 100px;
    }
    .tl__text {
        margin: 70px 0;
    }
    .tl_nav {
        left: 25px;
    }
}


/* FILTRO PROGETTI */
.filter-loader { 
    opacity: 0.5;
    pointer-events: none;
}
.project-filters-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 15px; 
    margin-bottom: 40px; 
}
.project-filters-grid select { 
    width: 100%;
    padding: 8px; 
    border: 1px solid #D5D6D2; 
    color: #665546!important;
}
.projects-results-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 20px; 
}
.project-card {
    padding: 10px;
    background: #98B36326;
    border-radius: 20px;
}
.project-img {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 15px;
    margin-bottom: 20px;
}
.project-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}
.project-text {
    padding: 20px 10px;
}
.project-card h4 {
    font-size: 34px;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.2;
}
#reset-filters {
    background: var(--ep-color);
    color: #fff!important;
    min-height: 40px;
}

/* --- LOAD MORE --- */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}
#load-more-projects {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Encode Sans Local', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
#load-more-projects:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}
#load-more-projects:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* --- ANIMAZIONE LOAD MORE --- */
@keyframes fadeInProject {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.project-card.animate-fade-in {
    animation: fadeInProject 0.5s ease forwards;
}

/* --- MOBILE TOGGLE FILTERS --- */
.mobile-filter-toggle {
    margin-bottom: 20px;
}
#mobile-filter-btn {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
#mobile-filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

@media screen and (max-width: 768px) {
    #filter-container {
        display: none;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
}