@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

.tx-header{
  --tx-orange:#f26c0b;
  --tx-orange-2:#ff7a12;
  --tx-black:#07090b;
  --tx-white:#ffffff;
  --tx-font:'Inter',Arial,sans-serif;
  --tx-logo-white:url('/wp-content/uploads/2026/04/tensomax-logo-white-true-transparent-clean.webp');

  position:fixed;
  z-index:9999;
  top:0;
  left:0;
  right:0;
  height:86px;
  color:#fff!important;
  font-family:var(--tx-font);
  background:rgba(7,9,11,.92);
  border-bottom:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 48px rgba(0,0,0,.22);
  backdrop-filter:blur(18px) saturate(1.1);
  -webkit-backdrop-filter:blur(18px) saturate(1.1);
  will-change:height, background, box-shadow, backdrop-filter;
  transition:
    height .28s ease,
    background .28s ease,
    backdrop-filter .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

body.admin-bar .tx-header{
  top:32px;
}

@media (max-width:782px){
  body.admin-bar .tx-header{
    top:46px;
  }
}

/* Homepage: stato iniziale più leggero */
.tx-header.tx-header--home:not(.is-scrolled){
  background:linear-gradient(
    180deg,
    rgba(7,9,11,.72) 0%,
    rgba(7,9,11,.42) 70%,
    rgba(7,9,11,0) 100%
  );
  border-bottom-color:rgba(255,255,255,.08);
  box-shadow:none;
  backdrop-filter:blur(0);
  -webkit-backdrop-filter:blur(0);
}

/* Stato dopo scroll */
.tx-header.is-scrolled{
  height:74px;
  background:rgba(7,9,11,.92);
  border-bottom-color:rgba(255,255,255,.12);
  box-shadow:0 18px 48px rgba(0,0,0,.28);
  backdrop-filter:blur(20px) saturate(1.15);
  -webkit-backdrop-filter:blur(20px) saturate(1.15);
}

.tx-header:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:linear-gradient(90deg,transparent 0%,rgba(242,108,11,.95) 50%,transparent 100%);
  opacity:0;
  transform:scaleX(.35);
  transition:opacity .32s ease, transform .42s ease;
  pointer-events:none;
}

.tx-header.is-scrolled:after{
  opacity:1;
  transform:scaleX(1);
}

.tx-header *,
.tx-header *:before,
.tx-header *:after{
  box-sizing:border-box;
}

.tx-header a{
  color:inherit;
  text-decoration:none!important;
}

.tx-header__inner{
  width:min(1380px,calc(100% - 56px));
  height:100%;
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.tx-logo{
  width:178px;
  height:56px;
  flex:0 0 auto;
  display:block;
  background:var(--tx-logo-white) left center/contain no-repeat;
  text-decoration:none!important;
  transition:
    width .28s ease,
    height .28s ease,
    filter .28s ease,
    opacity .28s ease;
}

.tx-logo:hover{
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.24));
}

.tx-header.is-scrolled .tx-logo{
  width:154px;
  height:48px;
}

.tx-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
  margin-left:auto;
}

.tx-nav a{
  color:rgba(255,255,255,.86)!important;
  font-size:11px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:14px 0;
  position:relative;
  text-decoration:none!important;
  transition:
    color .25s ease,
    opacity .25s ease;
}

.tx-nav a:after{
  content:"";
  position:absolute;
  left:0;
  bottom:7px;
  width:0;
  height:2px;
  background:var(--tx-orange);
  transition:width .25s ease;
}

.tx-nav a:hover,
.tx-nav a.is-active,
.tx-nav a[aria-current="page"]{
  color:var(--tx-orange)!important;
}

.tx-nav a:hover:after,
.tx-nav a.is-active:after,
.tx-nav a[aria-current="page"]:after{
  width:100%;
}

.tx-header__cta,
.tx-nav__mobile-cta{
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 26px;
  border:1px solid transparent;
  background:var(--tx-orange);
  color:#fff!important;
  font-size:12px;
  line-height:1;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  white-space:nowrap;
  box-shadow:0 18px 40px rgba(242,108,11,.22);
  transition:
    min-height .28s ease,
    padding .28s ease,
    background .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

.tx-header__cta:before,
.tx-nav__mobile-cta:before{
  content:"";
  position:absolute;
  inset:-2px auto -2px -55%;
  width:44%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);
  transform:skewX(-18deg) translateX(-120%);
  transition:transform .72s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
}

.tx-header__cta:after,
.tx-nav__mobile-cta:after{
  content:"→";
  font-size:18px;
  line-height:1;
  transition:transform .28s ease;
}

.tx-header__cta:hover,
.tx-nav__mobile-cta:hover{
  background:var(--tx-orange-2);
  color:#fff!important;
  box-shadow:0 22px 55px rgba(242,108,11,.34);
}

.tx-header__cta:hover:before,
.tx-nav__mobile-cta:hover:before{
  transform:skewX(-18deg) translateX(430%);
}

.tx-header__cta:hover:after,
.tx-nav__mobile-cta:hover:after{
  transform:translateX(5px);
}

.tx-header.is-scrolled .tx-header__cta{
  min-height:48px;
  padding-inline:22px;
  box-shadow:0 14px 34px rgba(242,108,11,.24);
}

.tx-nav__mobile-cta{
  display:none;
}

.tx-menu-btn{
  display:none;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.04);
  color:#fff!important;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  transition:
    background .25s ease,
    border-color .25s ease;
}

.tx-menu-btn:hover,
.tx-menu-btn[aria-expanded="true"]{
  background:rgba(242,108,11,.14);
  border-color:var(--tx-orange);
}

.tx-menu-btn span{
  position:absolute;
  width:22px;
  height:2px;
  background:#fff;
  border-radius:10px;
  transition:
    transform .28s ease,
    opacity .22s ease,
    top .28s ease;
}

.tx-menu-btn span:nth-child(1){
  top:16px;
}

.tx-menu-btn span:nth-child(2){
  top:23px;
}

.tx-menu-btn span:nth-child(3){
  top:30px;
}

.tx-menu-btn[aria-expanded="true"] span:nth-child(1){
  top:23px;
  transform:rotate(45deg);
}

.tx-menu-btn[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}

.tx-menu-btn[aria-expanded="true"] span:nth-child(3){
  top:23px;
  transform:rotate(-45deg);
}

.tx-header a:focus-visible,
.tx-header button:focus-visible{
  outline:2px solid var(--tx-orange);
  outline-offset:4px;
}

html.tx-menu-open,
html.tx-menu-open body{
  overflow:hidden;
}

@media (max-width:1180px){
  .tx-nav{
    display:none;
  }

  .tx-menu-btn{
    display:flex;
  }

  .tx-header__cta{
    display:none;
  }

  .tx-nav.is-open{
    display:flex;
    position:fixed;
    top:calc(74px + 14px);
    left:15px;
    right:15px;
    z-index:10000;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    padding:22px;
    margin-left:0;
    background:rgba(7,9,11,.97);
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(18px) saturate(1.15);
    -webkit-backdrop-filter:blur(18px) saturate(1.15);
    box-shadow:0 28px 70px rgba(0,0,0,.34);
  }

  body.admin-bar .tx-nav.is-open{
    top:calc(74px + 32px + 14px);
  }

  .tx-nav.is-open a{
    width:100%;
    padding:14px 0;
    font-size:12px;
    color:rgba(255,255,255,.88)!important;
  }

  .tx-nav.is-open a:after{
    bottom:7px;
  }

  .tx-nav.is-open .tx-nav__mobile-cta{
    display:flex;
    width:100%;
    margin-top:10px;
    padding:0 20px;
    min-height:52px;
    color:#fff!important;
  }
}

@media (max-width:820px){
  .tx-header,
  .tx-header.is-scrolled,
  .tx-header.tx-header--home:not(.is-scrolled){
    height:74px;
    background:rgba(7,9,11,.93);
    border-bottom-color:rgba(255,255,255,.12);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:0 16px 42px rgba(0,0,0,.24);
  }

  .tx-header:after{
    opacity:1;
    transform:scaleX(1);
  }

  .tx-header__inner{
    width:min(100% - 30px,1240px);
    gap:18px;
  }

  .tx-logo,
  .tx-header.is-scrolled .tx-logo{
    width:145px;
    height:48px;
  }

  body.admin-bar .tx-nav.is-open{
    top:calc(74px + 46px + 14px);
  }
}

@media (max-width:480px){
  .tx-logo,
  .tx-header.is-scrolled .tx-logo{
    width:138px;
  }

  .tx-menu-btn{
    width:46px;
    height:46px;
  }

  .tx-nav.is-open{
    left:12px;
    right:12px;
    padding:20px;
  }
}

@media (prefers-reduced-motion:reduce){
  .tx-header,
  .tx-header *,
  .tx-header *:before,
  .tx-header *:after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}