/* shrinking header section */
.shrinker {
  height: 90px;
  width: 100% !important;
  transition: all .2s linear!important;
  -webkit-transition: all .2s linear!important;
  -moz-transition: all .2s linear!important;
}

.shrinker.attivato {
	background-color: #fff !important;
  height: 80px!important;
  width: 100% !important;
  box-shadow: 0px 4px 10px -4px rgba(0,0,0, 0.08);
  transition: all .2s linear!important;
  -webkit-transition: all .2s linear!important;
  -moz-transition: all .2s linear!important;
}

/* shrinking logo image */
.shrinking-logo img {
  height: 60px!important;
  transition: all .2s linear!important;
  -webkit-transition: all .2s linear!important;
  -moz-transition: all .2s linear!important;
}

.shrinker.attivato img {
  height: 50px!important;
  transition: all .2s linear!important;
  -webkit-transition: all .2s linear!important;
  -moz-transition: all .2s linear!important;
}

/* shrinking menu */
.shrinker.attivato ul li a {
  font-size: .99rem!important;
  transition: all .2s linear!important;
  -webkit-transition: all .2s linear!important;
  -moz-transition: all .2s linear!important;
}

/* shrinking button */
.shrinker.attivato .elementor-button {
  font-size: .99rem!important;
  transition: all .2s linear!important;
  -webkit-transition: all .2s linear!important;
  -moz-transition: all .2s linear!important;
}

/* Tablet and Mobile Menu Shrinking */
@media screen and (max-width: 1024px) {
  .shrinker {
    height: 70px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    transition: all .2s linear !important;
    -webkit-transition: all .2s linear !important;
    -moz-transition: all .2s linear !important;
  }

  .shrinker.attivato {
    height: 60px !important;
  }

  .shrinking-logo img {
    height: 40px !important;
    transition: all .2s linear !important;
    -webkit-transition: all .2s linear !important;
    -moz-transition: all .2s linear !important;
  }

  .shrinker.attivato .e-con-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-sizing: border-box !important;
  }

  .shrinker.attivato .shrinking-logo img {
    height: 35px !important;
    width: auto !important;
    transition: all .2s linear !important;
    -webkit-transition: all .2s linear !important;
    -moz-transition: all .2s linear !important;
  }

  .elementor-widget-nav-menu {
    padding: 0 !important;
    margin: 0 !important;
  }

}






/* ===== BOTTONE MENU ===== */
.burger-button {
color: #0D2240;
display: flex;
align-items: center;
gap: 0.5rem;
height: 30px;
cursor: pointer;
position: relative;
z-index: 10001;
margin-top: -10px !important;
padding-right: 16px !important;
}

.burger-label {
margin-bottom: -10px !important;
color: #0D2240;
transition: color 0.3s ease;
}

/* Hamburger */
.burger {
width: 34px;
height: 22px;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
}

.burger span {
display: block;
height: 1px;
width: 100%;
background: #0D2240 !important;
transform-origin: 50% 50%;
transition: all 0.2s ease;
}

.burger span:nth-child(2) { transform: translate(0, 6px); }
.burger span:nth-child(3) { transform: translate(0, 12px); }

/* Nascondi checkbox */
.burger-nav_control {
position: absolute;
left: -9999px;
clip: rect(0, 0, 0, 0);
}

/* ===== MENU CHIUSO ===== */
.burger-navigation {
position: fixed;
top: 0 !important;
left: 0 !important;
width: 100vw;
height: 100vh;
transform: translateX(100%);
transition: transform 0.3s ease, opacity 0.3s ease;
z-index: 1000 !important;
background: #0D2240 !important;
display: flex;
flex-direction: column;
justify-content: flex-start !important;
align-items: center;
padding-top: 60px !important;
overflow-y: auto !important;
overflow-x: hidden !important;
opacity: 0;
visibility: hidden;
}

/* ==========================================================
MENU APERTO ? CAMBIO COLORE HAMBURGER + LABEL A BIANCO
========================================================== */
.burger-wrapper .burger-nav_control:checked ~ .burger-button .burger span {
background: #ffffff !important;
}

.burger-wrapper .burger-nav_control:checked ~ .burger-button .burger-label {
color: #ffffff !important;
}

/* ===== MENU APERTO ===== */
.burger-wrapper .burger-nav_control:checked ~ .burger-navigation {
transform: translateX(0);
opacity: 1;
visibility: visible;
}

/* ===== BLOCCO SCROLL BODY ===== */
body.no-scroll {
overflow: hidden !important;
position: fixed;
width: 100%;
height: 100%;
}

/* ===== RIMOZIONE STILI ELEMENTOR HEADER NEL TEMPLATE ===== */
.burger-navigation .elementor {
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
box-sizing: border-box !important;
}

/* Burger ? X fix */
.burger-wrapper .burger-nav_control:checked ~ .burger-button .burger span:first-child {
opacity: 0;
}

.burger-wrapper .burger-nav_control:checked ~ .burger-button .burger span:nth-child(2),
.burger-wrapper .burger-nav_control:checked ~ .burger-button .burger span:nth-child(3) {
transform: translate(0, 6px) !important;
position: absolute;
top: 50%;
left: 0;
}

.burger-wrapper .burger-nav_control:checked ~ .burger-button .burger span:nth-child(2) {
transform: translateY(-50%) rotate(45deg) !important;
}

.burger-wrapper .burger-nav_control:checked ~ .burger-button .burger span:nth-child(3) {
transform: translateY(-50%) rotate(-45deg) !important;
}

/* ==========================================================
CONTROLLO VISIBILIT? MENU DESKTOP / BURGER
========================================================== */

/* MOBILE + TABLET */
@media screen and (max-width: 1299px) {

.header-desktop-menu {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
}

.burger-wrapper,
.burger-button,
#nav-control,
.burger-navigation {
display: flex !important;
}
}

/* DESKTOP */
@media screen and (min-width: 1300px) {

.header-desktop-menu {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
}

.burger-wrapper,
.burger-button,
#nav-control,
.burger-navigation {
display: none !important;
visibility: hidden !important;
}
}
















/* === STRUTTURA BASE TIMELINE === */
.timeline-section::before,
.timeline-section::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Linea bianca di base */
.timeline-section::before {
  background: #ffffff;
  top: var(--tl-start, 50px);
  height: calc(100% - var(--tl-start, 50px) - var(--tl-end, 50px));
  z-index: 0;
}

/* Linea arancione progressiva */
.timeline-section::after {
  background: linear-gradient(
    to bottom,
    #004FFF 0%,
    #004FFF var(--progress, 0%),
    transparent var(--progress, 0%),
    transparent 100%
  );
  top: var(--tl-start, 50px);
  height: calc(100% - var(--tl-start, 50px) - var(--tl-end, 50px));
  z-index: 1;
  transition: background 0.25s ease-out;
}

/* === TIMELINE ITEM === */
.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 140px;
}

/* Pallino arancione */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  background: #004FFF;
  border-radius: 50%;
  transform: translate(-50%, 0);
  z-index: 2;
}

/* STRUTTURA TESTO/ANNO */
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-year, .timeline-content {
  width: 45%;
  position: relative;
  z-index: 3;
}

.timeline-year {
  font-size: 6rem;
  font-weight: 800;
  color: #f6851f;
  line-height: 1;
  margin-bottom: 0;
  text-align: right;
}
.timeline-item:nth-child(odd) .timeline-year { text-align: left; }

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.timeline-content p {
  color: #d5d8e0;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* === MOBILE TIMELINE === */
@media (max-width: 991px) {
  .timeline-section::before,
  .timeline-section::after {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
    margin-bottom: 50px;
  }

  .timeline-item::before {
    left: -8px;
    top: 0;
    transform: translateY(0);
  }

  .timeline-year, .timeline-content {
    width: 100%;
    text-align: left !important;
  }

  .timeline-year {
    font-size: 3rem;
    margin-bottom: 12px;
  }
}


















/* ------------------------------
   STILE PULSANTI CONSIGLI DIRETTIVI
   ------------------------------ */

/* Pulsante precedente + successivo */
.btn-consigli-prev,
.btn-consigli-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Color & background */
    background-color: #EBB700 !important;
    color: #fff !important;

    /* Typography */
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 18px !important;

    /* Border */
    border: 2px solid #EBB700 !important;
    border-radius: 8px !important;

    /* Spaziatura */
    padding: 15px 40px !important;

    /* Rimozione stili default */
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;

    /* Transition */
    transition: all 0.25s ease !important;

    cursor: pointer;
}

/* Hover */
.btn-consigli-prev:hover,
.btn-consigli-next:hover {
    background-color: transparent !important;
    color: #EBB700 !important;
    border-color: #EBB700 !important;
}

/* Per allineare perfettamente i pulsanti come Elementor */
.btn-wrapper-consigli {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

/* Correzione teste se Elementor inserisce span extra */
.btn-consigli-prev span,
.btn-consigli-next span {
    color: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}
