:root{
  --ue-color-primary:#E00000;
  --ue-color-secondary:#0090E0;
  --ue-color-accent:#F59E0B;
  --ue-color-bg:#FFFFFF;
  --ue-color-surface:#F9FAFB;
  --ue-color-text:#0B1220;
  --ue-color-muted:#475569;
  --ue-color-border:#E5E7EB;
  --ue-color-link:#005FA6;
  --ue-color-focus:#0090E0;
  --ue-link-weight:700;
  --ue-link-underline-thickness:2px;
  --ue-energy-gradient:linear-gradient(90deg, var(--ue-color-primary), color-mix(in srgb, var(--ue-color-primary) 55%, var(--ue-color-secondary)));
  --ue-energy-surface:color-mix(in srgb, var(--ue-color-text) 96%, #000);
  --ue-energy-surface-2:color-mix(in srgb, var(--ue-color-text) 92%, #000);
  --ue-energy-border:color-mix(in srgb, var(--ue-color-text) 22%, var(--ue-color-border));
  --ue-energy-glow:0 18px 45px rgba(11,18,32,0.22);
  --ue-font-body:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
  --ue-font-heading:var(--ue-font-body);
  --ue-font-size-base:16.5px;
  --ue-line-height-body:1.75;
  --ue-line-height-heading:1.2;
  --ue-content-max:1200px;
  --ue-radius:10px;
  --ue-shadow:0 10px 30px rgba(11,18,32,0.10);
  --ue-shadow-sm:0 2px 10px rgba(11,18,32,0.08);
  --ue-section-gap:28px;
  --ue-card-padding:20px;
  --ue-motion-fast:120ms;
  --ue-motion-base:200ms;
  --ue-motion-slow:320ms;
  --ue-hero-overlay-opacity:0.2;
  --ue-hero-pattern-opacity:0.12;
  --ue-paper-texture-opacity:0.08;
  --ue-module-bg:#FFFFFF;
  --ue-module-border:#E5E7EB;
  --ue-module-radius:12px;
  --ue-module-shadow:var(--ue-shadow-sm);
  --ue-next-match-bg:#FFFFFF;
  --ue-next-match-accent:#E00000;
  --ue-next-match-text:#0B1220;
  --ue-last-result-bg:#FFFFFF;
  --ue-last-result-accent:#0090E0;
  --ue-last-result-text:#0B1220;
  --ue-standings-header-bg:#F3F4F6;
  --ue-standings-border:#E5E7EB;
  --ue-standings-highlight:#FFF3F3;
  --ue-news-card-bg:#FFFFFF;
  --ue-news-meta:#5B6472;
  --ue-sponsors-bg:#FFFFFF;
  --ue-sponsors-logo-height:42px;
  --ue-sponsors-grayscale:80%;
  --ue-button-bg:var(--ue-color-primary);
  --ue-button-text:#fff;
  --ue-button-bg-hover:color-mix(in srgb, var(--ue-button-bg) 88%, black);
  --ue-button-padding-y:10px;
  --ue-button-padding-x:14px;
  --ue-button-radius:999px;
  --ue-button-border:color-mix(in srgb, var(--ue-button-bg) 28%, var(--ue-color-border));
  --ue-input-bg:color-mix(in srgb, var(--ue-color-bg) 92%, white);
  --ue-input-text:var(--ue-color-text);
  --ue-input-border:var(--ue-color-border);
  --ue-input-radius:12px;
  --ue-sp-pill-bg:var(--ue-color-primary);
  --ue-sp-pill-text:#fff;
  --ue-sp-pill-time-bg:#111827;
  --ue-sp-pill-time-text:#fff;
  --ue-sp-pill-font-size:14px;
  --ue-sp-pill-font-weight:900;
  --ue-sp-pill-min-width:64px;
  --ue-sp-pill-padding-y:6px;
  --ue-sp-pill-padding-x:10px;
  --ue-sp-pill-radius:999px;
  --ue-sp-pill-border-width:0px;
  --ue-sp-pill-border-color:transparent;
  --ue-sp-pill-shadow:var(--ue-shadow-sm);
  --ue-sp-table-header-bg:color-mix(in srgb, var(--ue-color-surface) 70%, white);
  --ue-sp-table-header-text:var(--ue-color-text);
  --ue-sp-table-row-alt-bg:color-mix(in srgb, var(--ue-color-surface) 26%, transparent);
  --ue-sp-wrapper-bg:#fff;
  --ue-sp-wrapper-border:var(--ue-color-border);
  --ue-sp-wrapper-radius:14px;
  --ue-social-icon-size:40px;
  --ue-social-icon-radius:999px;
  --ue-container-pad:16px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--ue-color-bg);
  color:var(--ue-color-text);
  font-family:var(--ue-font-body);
  font-size:var(--ue-font-size-base);
  line-height:var(--ue-line-height-body);
  text-rendering:optimizeLegibility;
}

body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

p{
  margin:0 0 1em;
}

p:last-child{
  margin-bottom:0;
}

main a:not(.ue-btn):not(.wp-element-button):not(.wpforms-submit){
  color:var(--ue-color-link);
  text-decoration:none;
  font-weight:var(--ue-link-weight);
}

body.ue-links-hover-underline main a:not(.ue-btn):not(.wp-element-button):not(.wpforms-submit):hover{
  text-decoration:underline;
  text-decoration-thickness:var(--ue-link-underline-thickness);
  text-underline-offset:0.18em;
  text-decoration-color:color-mix(in srgb, var(--ue-color-link) 75%, transparent);
}

body.ue-links-always-underline main a:not(.ue-btn):not(.wp-element-button):not(.wpforms-submit){
  text-decoration:underline;
  text-decoration-thickness:var(--ue-link-underline-thickness);
  text-underline-offset:0.18em;
  text-decoration-color:color-mix(in srgb, var(--ue-color-link) 55%, transparent);
}

body.ue-links-always-underline main a:not(.ue-btn):not(.wp-element-button):not(.wpforms-submit):hover{
  text-decoration-color:color-mix(in srgb, var(--ue-color-link) 80%, transparent);
}

body.ue-links-no-underline main a:not(.ue-btn):not(.wp-element-button):not(.wpforms-submit):hover{
  text-decoration:none;
}

main a:not(.ue-btn):not(.wp-element-button):not(.wpforms-submit):focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:2px;
  border-radius:6px;
}

body.ue-decorations{
  position:relative;
  isolation:isolate;
}

body.ue-decorations::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(11,18,32,0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 62%, rgba(11,18,32,0.18) 0 1px, transparent 1px);
  background-size:240px 240px, 180px 180px;
  opacity:var(--ue-paper-texture-opacity);
  mix-blend-mode:multiply;
  z-index:-1;
}

img{
  max-width:100%;
  height:auto;
}

a{
  color:var(--ue-color-link);
  text-decoration:none;
  transition:
    color var(--ue-motion-base) ease,
    box-shadow var(--ue-motion-base) ease,
    background-color var(--ue-motion-base) ease;
}

a:hover{
  color:color-mix(in srgb, var(--ue-color-link) 85%, black);
}

:focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:2px;
}

button,
input,
select,
textarea{
  font:inherit;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-element-button,
.wp-block-button__link{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:var(--ue-button-padding-y) var(--ue-button-padding-x);
  border-radius:var(--ue-button-radius);
  border:1px solid var(--ue-button-border);
  background:var(--ue-button-bg);
  color:var(--ue-button-text);
  font-weight:850;
  letter-spacing:0.01em;
  text-decoration:none;
  box-shadow:var(--ue-shadow-sm);
  cursor:pointer;
  transition:
    transform var(--ue-motion-fast) ease,
    box-shadow var(--ue-motion-base) ease,
    filter var(--ue-motion-base) ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover{
  background:var(--ue-button-bg-hover);
  filter:saturate(1.02) brightness(0.98);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference){
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover,
  input[type="reset"]:hover,
  .wp-element-button:hover,
  .wp-block-button__link:hover{
    transform:translateY(-1px);
    box-shadow:var(--ue-shadow);
  }
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled{
  opacity:0.65;
  cursor:not-allowed;
  transform:none;
}

.wp-block-button.is-style-outline .wp-block-button__link{
  background:transparent;
  color:var(--ue-button-bg);
  border-color:color-mix(in srgb, var(--ue-button-bg) 40%, var(--ue-color-border));
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select{
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border-radius:var(--ue-input-radius);
  border:1px solid var(--ue-input-border);
  background:var(--ue-input-bg);
  color:var(--ue-input-text);
  box-shadow:var(--ue-shadow-sm);
}

input[type="search"]{
  border-radius:999px;
}

textarea{
  min-height:140px;
  resize:vertical;
}

.ue-skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.ue-skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:8px;
  background:var(--ue-color-text);
  color:#fff;
  z-index:1000;
}

.ue-container{
  width:100%;
  max-width:var(--ue-content-max);
  padding-left:var(--ue-container-pad);
  padding-right:var(--ue-container-pad);
  margin-left:auto;
  margin-right:auto;
}

.ue-header{
  position:sticky;
  top:0;
  z-index:500;
  background:color-mix(in srgb, var(--ue-color-bg) 92%, white);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--ue-color-border);
}

/* Dinamic header: overlays the hero until scroll */
body.ue-style-dinamic{
  --ue-container-pad:clamp(16px, 4.2vw, 64px);
}

body.ue-style-dinamic .ue-header{
  background:transparent;
  backdrop-filter:none;
  border-bottom:0;
}

body.ue-style-dinamic.ue-scrolled .ue-header{
  background:color-mix(in srgb, var(--ue-color-bg) 92%, white);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--ue-color-border);
}

body.ue-style-dinamic .ue-hero{
  margin-top:-78px;
  padding-top:calc(var(--ue-hero-padding-y) + 78px);
}

@media (min-width: 768px){
  body.ue-style-dinamic .ue-header{
    background:color-mix(in srgb, var(--ue-color-bg) 92%, white);
    backdrop-filter:saturate(180%) blur(10px);
    border-bottom:1px solid var(--ue-color-border);
  }
  body.ue-style-dinamic .ue-hero{
    margin-top:0;
    padding-top:var(--ue-hero-padding-y);
  }
}

body.ue-style-dinamic .ue-hero__content{
  max-width:80ch;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}

body.ue-style-dinamic .ue-hero__kicker{
  background:rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.16);
  color:rgba(255,255,255,0.92);
}

.ue-topbar{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent),
    var(--ue-energy-gradient);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,0.18);
}

.ue-topbar__inner{
  min-height:42px;
  display:flex;
  align-items:center;
}

.ue-topbar__link{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:baseline;
  color:inherit;
  text-decoration:none;
  padding:8px 0;
}

.ue-topbar__label{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(0,0,0,0.22);
  border:1px solid rgba(255,255,255,0.18);
  font-weight:800;
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.ue-topbar__title{
  font-weight:800;
}

.ue-topbar__meta{
  margin-left:auto;
  opacity:0.92;
  font-weight:700;
  font-size:0.92em;
}

.ue-match-ticker{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent),
    var(--ue-energy-gradient);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,0.18);
}

body.ue-style-dinamic .ue-match-ticker{
  background:#0b0b0f;
  border-bottom:1px solid rgba(255,255,255,0.14);
}

.ue-match-ticker--home{
  display:none;
}

body.ue-style-dinamic .ue-match-ticker__badge{
  background:var(--ue-color-primary);
  border-color:rgba(255,255,255,0.0);
}

body.ue-style-dinamic .ue-match-ticker__title{
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-weight:900;
}

body.ue-style-dinamic .ue-hero__overlay{
  opacity:0.42;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.15) 78%,
    rgba(0,0,0,0.0) 100%
  );
}

.ue-match-ticker__inner{
  min-height:54px;
  display:flex;
  align-items:center;
}

.ue-match-ticker__link{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  align-items:center;
  color:inherit;
  text-decoration:none;
  padding:10px 0;
}

.ue-match-ticker__badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.22);
  border:1px solid rgba(255,255,255,0.18);
  font-weight:900;
  font-size:0.72rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
}

.ue-match-ticker__logos{
  display:inline-flex;
  align-items:center;
}

.ue-match-ticker__logo{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#fff;
  border:2px solid rgba(255,255,255,0.95);
  box-shadow:var(--ue-shadow-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.ue-match-ticker__logo + .ue-match-ticker__logo{
  margin-left:-10px;
}

.ue-match-ticker__logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.ue-match-ticker__title{
  font-weight:900;
  letter-spacing:-0.01em;
}

.ue-match-ticker__time{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.20);
  border:1px solid rgba(255,255,255,0.18);
  font-weight:900;
  letter-spacing:0.01em;
  min-width:64px;
}

.ue-match-ticker__meta{
  margin-left:auto;
  opacity:0.92;
  font-weight:800;
  font-size:0.95em;
}

@media (max-width: 720px){
  .ue-match-ticker__meta{
    margin-left:0;
    opacity:0.9;
    font-size:0.92em;
  }
  .ue-match-ticker__title{
    flex:1 1 100%;
  }
}

.ue-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:68px;
}

.ue-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.ue-brand__logo img{
  max-height:52px;
  width:auto;
  height:auto;
  display:block;
}

.ue-brand__title{
  font-family:var(--ue-font-heading);
  font-weight:800;
  letter-spacing:-0.02em;
  font-size:1.1rem;
  text-decoration:none;
  color:var(--ue-color-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ue-menu-toggle{
  appearance:none;
  border:1px solid var(--ue-color-border);
  background:var(--ue-color-bg);
  color:var(--ue-color-text);
  border-radius:999px;
  padding:10px 12px;
  box-shadow:var(--ue-shadow-sm);
  font-weight:700;
  cursor:pointer;
}

.ue-menu-toggle__label{
  display:inline-block;
}

.ue-nav{
  display:none;
  align-items:center;
  gap:16px;
}

.ue-header__cta{
  white-space:nowrap;
}

body.ue-nav-open .ue-header__cta{
  width:100%;
  justify-content:center;
}

.ue-nav__menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap:16px;
  margin:0;
  padding:0;
}

.ue-nav__menu li{
  position:relative;
}

.ue-nav__menu a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 8px;
  border-radius:10px;
  font-weight:850;
  text-decoration:none;
  color:var(--ue-color-text);
  position:relative;
}

.ue-nav__menu a:hover{
  background:var(--ue-color-surface);
}

.ue-nav__menu .current-menu-item > a,
.ue-nav__menu .current_page_item > a,
.ue-nav__menu .current-menu-ancestor > a,
.ue-nav__menu .current_page_ancestor > a{
  background:color-mix(in srgb, var(--ue-color-surface) 65%, white);
}

.ue-nav__menu .current-menu-item > a::after,
.ue-nav__menu .current_page_item > a::after,
.ue-nav__menu .current-menu-ancestor > a::after,
.ue-nav__menu .current_page_ancestor > a::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:6px;
  height:3px;
  border-radius:999px;
  background:var(--ue-energy-gradient);
  opacity:0.95;
}

.ue-nav__menu .sub-menu,
.ue-nav__menu .children{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  padding:12px 8px 8px;
  margin:0;
  list-style:none;
  background:var(--ue-color-bg);
  border:1px solid var(--ue-color-border);
  border-radius:14px;
  box-shadow:var(--ue-shadow);
  z-index:600;
}

.ue-nav__menu .sub-menu::before,
.ue-nav__menu .children::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-12px;
  height:12px;
}

.ue-nav__menu .sub-menu a,
.ue-nav__menu .children a{
  width:100%;
  justify-content:space-between;
  padding:10px 10px;
}

@media (min-width: 768px){
  .ue-nav__menu li:hover > .sub-menu,
  .ue-nav__menu li:focus-within > .sub-menu,
  .ue-nav__menu li:hover > .children,
  .ue-nav__menu li:focus-within > .children{
    display:block;
  }
}

.ue-lang{
  display:flex;
  align-items:center;
}

.ue-lang ul{
  list-style:none;
  display:flex;
  gap:10px;
  padding:0;
  margin:0;
}

.ue-lang a{
  font-weight:700;
  font-size:0.95rem;
  text-decoration:none;
  color:var(--ue-color-muted);
  padding:8px 10px;
  border-radius:10px;
}

.ue-lang .current-lang a,
.ue-lang a:hover{
  color:var(--ue-color-text);
  background:var(--ue-color-surface);
}

.ue-lang__code{
  letter-spacing:0.06em;
  text-transform:uppercase;
}

body.ue-nav-open .ue-nav{
  display:flex;
  position:fixed;
  left:0;
  right:0;
  top:68px;
  padding:16px;
  background:var(--ue-color-bg);
  border-bottom:1px solid var(--ue-color-border);
  box-shadow:var(--ue-shadow);
  flex-direction:column;
  align-items:stretch;
  gap:10px;
}

body.ue-nav-open .ue-nav__menu{
  flex-direction:column;
  align-items:stretch;
  gap:6px;
}

body.ue-nav-open .ue-nav__menu a{
  justify-content:space-between;
}

body.ue-nav-open .ue-nav__menu .sub-menu,
body.ue-nav-open .ue-nav__menu .children{
  display:block;
  position:static;
  min-width:0;
  padding:6px 0 0;
  border:0;
  box-shadow:none;
}

body.ue-nav-open .ue-nav__menu .sub-menu a,
body.ue-nav-open .ue-nav__menu .children a{
  padding-left:18px;
  font-weight:650;
}

@media (min-width: 768px){
  .ue-menu-toggle{ display:none; }
  .ue-nav{ display:flex; }
  body.ue-nav-open .ue-nav{
    position:static;
    padding:0;
    box-shadow:none;
    border-bottom:none;
    flex-direction:row;
    align-items:center;
  }
  body.ue-nav-open .ue-nav__menu{
    flex-direction:row;
    align-items:center;
  }
  .ue-nav{
    flex:1;
    justify-content:center;
  }
  .ue-nav__primary{
    flex:1;
    display:flex;
    justify-content:center;
  }
  .ue-nav__menu{
    justify-content:center;
    flex:1;
  }
  .ue-header__cta{
    margin-left:auto;
  }
}

/* Homepage: portal-style header + hub nav (reference layout) */
@media (min-width: 768px){
  body.ue-home-layout-reference:not(.ue-home-hub-out) .ue-nav{
    justify-content:flex-end;
    flex:0 0 auto;
  }
  body.ue-home-layout-reference:not(.ue-home-hub-out) .ue-nav__primary{
    display:none;
  }
  body.ue-home-layout-reference:not(.ue-home-hub-out) .ue-brand{
    display:none;
  }
  body.ue-home-layout-reference:not(.ue-home-hub-out) .ue-header__cta{
    display:none;
  }
  body.ue-home-layout-reference:not(.ue-home-hub-out) .ue-header__inner{
    justify-content:flex-end;
  }
}

@media (min-width: 768px){
  body.ue-style-dinamic.ue-home-layout-reference:not(.ue-home-hub-out) .ue-header{
    background:transparent;
    backdrop-filter:none;
    border-bottom:0;
  }

  /* Pull the hero behind the sticky header on the portal homepage */
  body.ue-style-dinamic.ue-home-layout-reference .ue-hero{
    margin-top:-68px;
    padding-top:calc(var(--ue-hero-padding-y) + 68px);
  }
}

/* Homepage hub navigation (reference design) */
.ue-home-hub{
  margin-top:18px;
  margin-bottom:18px;
}

body.ue-home-layout-reference .ue-home-hub{
  position:relative;
  z-index:20;
  margin-top:-42px;
  margin-bottom:22px;
}

.ue-home-hub .ue-hub{
  list-style:none;
  margin:0;
  padding:8px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(92px, 1fr));
  gap:8px;
  border:2px solid color-mix(in srgb, var(--ue-color-accent) 38%, var(--ue-color-border));
  border-radius:18px;
  background:color-mix(in srgb, var(--ue-color-bg) 92%, white);
  box-shadow:var(--ue-shadow-sm);
}

body.ue-home-layout-reference .ue-home-hub .ue-hub{
  background:#fff;
  box-shadow:0 18px 42px rgba(11,18,32,0.14);
  border-color:color-mix(in srgb, var(--ue-color-accent) 42%, var(--ue-color-border));
}

.ue-hub__link{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:82px;
  padding:14px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ue-color-text);
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:0.72rem;
  border:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  background:#fff;
  transition:transform var(--ue-motion-fast) ease, box-shadow var(--ue-motion-base) ease, background var(--ue-motion-base) ease, color var(--ue-motion-base) ease;
}

.ue-hub__link:hover{
  background:var(--ue-color-surface);
  border-color:color-mix(in srgb, var(--ue-color-border) 70%, transparent);
}

.ue-hub__link:focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:3px;
}

.ue-hub__item.current-menu-item > .ue-hub__link,
.ue-hub__item.current_page_item > .ue-hub__link{
  background:var(--ue-color-accent);
  color:#fff;
  box-shadow:0 16px 40px rgba(0,0,0,0.16);
}

.ue-hub__icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.ue-hub__icon svg{
  width:100%;
  height:100%;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media (min-width: 768px){
  .ue-home-hub .ue-hub{
    padding:10px;
    gap:10px;
    border-radius:20px;
  }
  .ue-hub__link{
    min-height:92px;
    font-size:0.74rem;
  }
  .ue-hub__icon{
    width:30px;
    height:30px;
  }
}

@media (min-width: 768px){
  body.ue-home-layout-reference .ue-hub__icon{
    width:34px;
    height:34px;
  }
  body.ue-home-layout-reference .ue-hub__link{
    min-height:96px;
  }
}

.ue-main{
  padding-bottom:calc(var(--ue-section-gap) * 1.5);
}

.ue-hero + .ue-container{
  margin-top:var(--ue-section-gap);
}

.ue-hero{
  --ue-hero-padding-y:52px;
  --ue-hero-min-height:260px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--ue-color-border);
  padding:var(--ue-hero-padding-y) 0;
  min-height:var(--ue-hero-min-height);
  display:flex;
  align-items:flex-end;
  background:
    radial-gradient(900px 420px at 15% 10%, color-mix(in srgb, var(--ue-color-secondary) 20%, transparent) 0%, transparent 60%),
    radial-gradient(800px 380px at 85% 30%, color-mix(in srgb, var(--ue-color-primary) 16%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, var(--ue-color-surface), var(--ue-color-bg));
}

.ue-hero--pro{
  background:
    radial-gradient(1100px 520px at 12% 12%, color-mix(in srgb, var(--ue-color-secondary) 32%, transparent) 0%, transparent 62%),
    radial-gradient(980px 440px at 88% 22%, color-mix(in srgb, var(--ue-color-primary) 28%, transparent) 0%, transparent 64%),
    linear-gradient(140deg, color-mix(in srgb, var(--ue-color-surface) 88%, white), var(--ue-color-bg));
}

.ue-hero__watermark{
  position:absolute;
  right:max(16px, calc((100vw - var(--ue-content-max)) / 2));
  top:10%;
  bottom:10%;
  width:min(42vw, 440px);
  background-repeat:no-repeat;
  background-position:right center;
  background-size:contain;
  opacity:0.06;
  filter:saturate(0) contrast(1.05);
  mix-blend-mode:multiply;
  pointer-events:none;
  z-index:1;
  transform:rotate(1.5deg);
}

.ue-hero--pro{
  background:
    radial-gradient(1100px 520px at 12% 12%, color-mix(in srgb, var(--ue-color-secondary) 26%, transparent) 0%, transparent 62%),
    radial-gradient(980px 440px at 88% 22%, color-mix(in srgb, var(--ue-color-primary) 22%, transparent) 0%, transparent 64%),
    linear-gradient(140deg, color-mix(in srgb, var(--ue-color-surface) 92%, white), var(--ue-color-bg));
}

.ue-hero--pro::before,
.ue-hero--pro::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}

.ue-hero--pro::before{
  inset:-30%;
  background:
    radial-gradient(closest-side at 22% 30%, color-mix(in srgb, var(--ue-color-primary) 20%, transparent) 0%, transparent 70%),
    radial-gradient(closest-side at 78% 22%, color-mix(in srgb, var(--ue-color-secondary) 22%, transparent) 0%, transparent 72%),
    radial-gradient(closest-side at 52% 92%, rgba(11,18,32,0.10) 0%, transparent 72%);
  opacity:0.85;
  transform:translate3d(-2%, -2%, 0) scale(1.04);
  z-index:0;
}

.ue-hero--pro::after{
  background:
    radial-gradient(60px 60px at 18% 55%, rgba(11,18,32,0.08) 0 1px, transparent 1px),
    radial-gradient(60px 60px at 82% 40%, rgba(11,18,32,0.06) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,0.10), transparent 65%);
  background-size:220px 220px, 260px 260px, auto;
  opacity:0.55;
  mix-blend-mode:multiply;
  z-index:1;
}

@media (prefers-reduced-motion: no-preference){
  .ue-hero--pro::before{
    animation:ue-hero-drift 18s ease-in-out infinite;
  }
}

@keyframes ue-hero-drift{
  0%,100%{
    transform:translate3d(-2%, -2%, 0) scale(1.04);
  }
  50%{
    transform:translate3d(2%, 1.5%, 0) scale(1.06);
  }
}

.ue-hero--compact{
  --ue-hero-padding-y:36px;
  --ue-hero-min-height:210px;
}

.ue-hero--standard{
  --ue-hero-padding-y:52px;
  --ue-hero-min-height:260px;
}

.ue-hero--tall{
  --ue-hero-padding-y:72px;
  --ue-hero-min-height:340px;
}

.ue-hero--with-image{
  background:none;
}

.ue-hero__media{
  position:absolute;
  inset:0;
  z-index:0;
}

.ue-hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:70% 50%;
  display:block;
  transform:scale(1.01);
}

.ue-hero__pattern{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:var(--ue-hero-pattern-opacity);
  mix-blend-mode:multiply;
  filter:saturate(112%);
}

.ue-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    color-mix(in srgb, var(--ue-color-bg) 96%, transparent) 0%,
    color-mix(in srgb, var(--ue-color-bg) 86%, transparent) 55%,
    transparent 80%
  );
  opacity:var(--ue-hero-overlay-opacity);
}

.ue-hero__divider{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  width:100%;
  height:80px;
  color:var(--ue-color-bg);
  pointer-events:none;
  display:none;
  filter:drop-shadow(0 -2px 10px rgba(11,18,32,0.12));
}

body.ue-decorations-dividers .ue-hero{
  border-bottom:0;
}

body.ue-decorations-dividers .ue-hero__divider{
  display:block;
}

.ue-hero__inner{
  position:relative;
  z-index:2;
  width:100%;
}

.ue-hero__content{
  max-width:62ch;
  padding:clamp(16px, 2vw, 24px);
  border-radius:calc(var(--ue-radius) + 10px);
  background:color-mix(in srgb, var(--ue-color-bg) 82%, transparent);
  border:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  box-shadow:var(--ue-shadow-sm);
}

.ue-hero__badge{
  display:inline-flex;
  margin:0 auto 14px;
}

.ue-hero__badge-img{
  width:clamp(88px, 12vw, 160px);
  height:auto;
  filter:drop-shadow(0 18px 34px rgba(0,0,0,0.22));
}

.ue-hero__kicker{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:color-mix(in srgb, var(--ue-color-surface) 70%, white);
  border:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  color:var(--ue-color-muted);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.72rem;
  margin-bottom:10px;
}

.ue-hero--pro .ue-hero__content{
  background:color-mix(in srgb, var(--ue-color-bg) 90%, transparent);
  border:1px solid color-mix(in srgb, var(--ue-color-border) 85%, transparent);
  box-shadow:var(--ue-shadow);
}

.ue-hero--pro .ue-hero__title{
  position:relative;
  padding-left:14px;
}

.ue-hero--pro .ue-hero__title::before{
  content:"";
  position:absolute;
  left:0;
  top:0.15em;
  bottom:0.18em;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--ue-color-primary), var(--ue-color-secondary));
}

.ue-hero--minimal .ue-hero__content{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  border-radius:0;
}

@media (prefers-reduced-motion: no-preference){
  .ue-hero--illustrated.ue-hero--with-image .ue-hero__bg{
    transition:transform var(--ue-motion-slow) ease;
  }
  .ue-hero--illustrated.ue-hero--with-image:hover .ue-hero__bg{
    transform:scale(1.03);
  }
}

.ue-hero__title{
  margin:0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.03em;
  line-height:var(--ue-line-height-heading);
  font-size:clamp(2rem, 4vw, 3.1rem);
}

.ue-hero__subtitle{
  margin-top:10px;
  color:var(--ue-color-muted);
  max-width:60ch;
}

.ue-hero__subtitle{
  font-size:1.05rem;
}

.ue-hero__subtitle p{
  margin:0;
}

.ue-hero__subtitle p + p{
  margin-top:10px;
}

.ue-hero__actions{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.ue-style-dinamic .ue-hero__actions .ue-btn{
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.ue-home-content{
  margin-top:var(--ue-section-gap);
}

.ue-home-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--ue-section-gap);
  margin-top:var(--ue-section-gap);
}

.ue-home-rows{
  display:flex;
  flex-direction:column;
  gap:var(--ue-section-gap);
}

.ue-home-row{
  display:grid;
  gap:var(--ue-section-gap);
}

.ue-home-row--two{
  grid-template-columns:1fr;
}

.ue-home-row--two-equal{
  grid-template-columns:1fr;
}

@media (min-width: 768px){
  .ue-home-row--two{
    grid-template-columns:1fr 0.9fr;
    align-items:start;
  }

  .ue-home-row--two-equal{
    grid-template-columns:1fr 1fr;
    align-items:start;
  }
}

.ue-home-modules{
  position:relative;
  margin-top:var(--ue-section-gap);
}

body.ue-style-dinamic .ue-home-modules{
  padding:clamp(16px, 2vw, 26px) 0;
}

body.ue-style-dinamic .ue-home-modules::before{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:100vw;
  top:0;
  bottom:0;
  background:
    radial-gradient(900px 420px at 12% 15%, color-mix(in srgb, var(--ue-color-secondary) 14%, transparent) 0%, transparent 62%),
    radial-gradient(820px 360px at 88% 20%, color-mix(in srgb, var(--ue-color-primary) 12%, transparent) 0%, transparent 64%),
    linear-gradient(180deg, color-mix(in srgb, var(--ue-color-surface) 92%, white), var(--ue-color-bg));
  border-top:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  border-bottom:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  z-index:0;
}

@media (min-width: 768px){
  body.ue-style-dinamic .ue-home-modules::before{
    content:none;
  }
  body.ue-style-dinamic .ue-module::before{
    opacity:0;
  }
}

.ue-home-modules > *{
  position:relative;
  z-index:1;
}

@media (min-width: 900px){
  .ue-home-grid{
    grid-template-columns:1fr 1fr;
  }
  .ue-module--wide{
    grid-column:1 / -1;
  }
}

.ue-module{
  --ue-module-accent:var(--ue-color-primary);
  background:var(--ue-module-bg);
  border:1px solid var(--ue-module-border);
  border-radius:var(--ue-module-radius);
  box-shadow:var(--ue-module-shadow);
  padding:var(--ue-card-padding);
  position:relative;
  overflow:hidden;
}

.ue-module::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(650px 220px at 15% 0%, color-mix(in srgb, var(--ue-module-accent) 14%, transparent) 0%, transparent 65%),
    radial-gradient(520px 200px at 95% 15%, rgba(11,18,32,0.05) 0%, transparent 65%);
  opacity:0.75;
}

.ue-module > *{
  position:relative;
  z-index:1;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference){
  body.ue-decorations-lift .ue-module,
  body.ue-decorations-lift .ue-news-card{
    transition:
      transform var(--ue-motion-fast) ease,
      box-shadow var(--ue-motion-base) ease,
      border-color var(--ue-motion-base) ease;
  }

  body.ue-decorations-lift .ue-module:hover,
  body.ue-decorations-lift .ue-news-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--ue-shadow);
    border-color:color-mix(in srgb, var(--ue-color-border) 55%, var(--ue-color-text));
  }
}

.ue-module__header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.ue-module--rail .ue-module__header{
  align-items:center;
}

.ue-rail__controls{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.ue-rail__btn{
  appearance:none;
  inline-size:38px;
  block-size:38px;
  border-radius:999px;
  border:1px solid var(--ue-color-border);
  background:color-mix(in srgb, var(--ue-color-bg) 92%, white);
  color:var(--ue-color-text);
  box-shadow:var(--ue-shadow-sm);
  font-weight:900;
  cursor:pointer;
  transition:transform var(--ue-motion-fast) ease, box-shadow var(--ue-motion-base) ease, background var(--ue-motion-base) ease;
}

.ue-rail__btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--ue-shadow);
}

.ue-rail__btn:focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:2px;
}

.ue-rail{
  position:relative;
}

.ue-rail__viewport{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:2px;
}

.ue-rail__items{
  display:flex;
  gap:12px;
  padding-bottom:2px;
}

.ue-rail__item{
  flex:0 0 min(320px, 82vw);
  width:min(320px, 82vw);
  scroll-snap-align:start;
  max-width:min(320px, 82vw);
}

@media (min-width: 600px){
  .ue-rail__item{
    flex-basis:280px;
    width:280px;
    max-width:280px;
  }
}

@media (min-width: 980px){
  .ue-rail__item{
    flex-basis:320px;
    width:320px;
    max-width:320px;
  }
}

/* WooCommerce */
.ue-woocommerce .woocommerce-notices-wrapper{
  margin-bottom:var(--ue-section-gap);
}

.ue-wc-layout{
  display:block;
}

.ue-wc-layout--has-sidebar{
  display:grid;
  gap:var(--ue-section-gap);
  grid-template-columns:1fr;
  align-items:start;
}

@media (min-width: 768px){
  .ue-wc-layout--has-sidebar{
    grid-template-columns:320px 1fr;
  }

  .ue-wc-layout--has-sidebar .ue-wc-sidebar{
    grid-column:1;
  }

  .ue-wc-layout--has-sidebar .ue-wc-main{
    grid-column:2;
  }
}

.ue-wc-sidebar{
  background:var(--ue-module-bg);
  border:1px solid var(--ue-module-border);
  border-radius:var(--ue-module-radius);
  box-shadow:var(--ue-module-shadow);
  padding:var(--ue-card-padding);
}

.ue-wc-sidebar .widget + .widget{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--ue-color-border);
}

.ue-woocommerce .woocommerce-breadcrumb{
  margin:0 0 12px;
  color:var(--ue-color-muted);
  font-size:0.95rem;
}

.ue-woocommerce .woocommerce-result-count{
  margin:0;
  color:var(--ue-color-muted);
}

.ue-woocommerce .woocommerce-ordering{
  margin:0;
}

.ue-woocommerce .woocommerce-ordering select{
  width:100%;
  max-width:260px;
  padding:10px 12px;
  border-radius:var(--ue-input-radius);
  border:1px solid var(--ue-input-border);
  background:var(--ue-input-bg);
  color:var(--ue-input-text);
}

.ue-woocommerce .woocommerce ul.products{
  list-style:none;
  padding:0;
  margin:var(--ue-section-gap) 0 0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

@media (min-width: 768px){
  .ue-woocommerce .woocommerce ul.products{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

.ue-woocommerce .woocommerce ul.products li.product{
  margin:0;
  background:var(--ue-module-bg);
  border:1px solid var(--ue-module-border);
  border-radius:var(--ue-module-radius);
  box-shadow:var(--ue-module-shadow);
  overflow:hidden;
  padding:0;
  display:flex;
  flex-direction:column;
  float:none;
  width:auto;
}

.ue-woocommerce .woocommerce ul.products li.product a{
  color:inherit;
}

.ue-woocommerce .woocommerce ul.products li.product a img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio:1 / 1;
  object-fit:cover;
  background:color-mix(in srgb, var(--ue-color-surface) 75%, white);
}

.ue-woocommerce .woocommerce ul.products li.product .woocommerce-loop-product__title{
  margin:0;
  padding:14px 14px 0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:1.05rem;
}

.ue-woocommerce .woocommerce ul.products li.product .price{
  padding:8px 14px 0;
  color:var(--ue-color-muted);
  font-weight:800;
}

.ue-woocommerce .woocommerce ul.products li.product .button{
  margin:14px;
}

.ue-woocommerce a.button,
.ue-woocommerce button.button,
.ue-woocommerce input.button,
.ue-woocommerce #respond input#submit,
.ue-woocommerce .button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:var(--ue-button-padding-y) var(--ue-button-padding-x);
  border-radius:var(--ue-button-radius);
  border:1px solid var(--ue-button-border);
  background:var(--ue-button-bg);
  color:var(--ue-button-text);
  font-weight:850;
  letter-spacing:0.01em;
  text-decoration:none;
  box-shadow:var(--ue-shadow-sm);
  cursor:pointer;
  transition:transform var(--ue-motion-fast) ease, box-shadow var(--ue-motion-base) ease, filter var(--ue-motion-base) ease;
}

.ue-woocommerce a.button:hover,
.ue-woocommerce button.button:hover,
.ue-woocommerce input.button:hover,
.ue-woocommerce #respond input#submit:hover,
.ue-woocommerce .button:hover{
  background:var(--ue-button-bg-hover);
  filter:saturate(1.02) brightness(0.98);
}

.ue-module--shop-highlights .products{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:12px;
}

.ue-module--shop-highlights .products li.product a img{
  object-fit:contain;
  background:#fff;
}

.ue-module--shop-highlights .products li.product .price,
.ue-module--shop-highlights .products li.product .button{
  display:none !important;
}

.ue-module--shop-highlights .products li.product .woocommerce-loop-product__title{
  padding:12px 12px 14px;
  font-size:0.95rem;
  text-align:center;
}

.ue-module--shop-highlights [data-ue-rail-next]{
  background:var(--ue-color-accent);
  border-color:color-mix(in srgb, var(--ue-color-accent) 55%, var(--ue-color-border));
  color:#111;
}

.ue-module--shop-highlights [data-ue-rail-prev]{
  background:#CBD5E1;
  border-color:transparent;
  color:#0B1220;
}

.ue-module--shop-highlights [data-ue-rail-next]{
  background:var(--ue-color-accent);
  border-color:color-mix(in srgb, var(--ue-color-accent) 55%, var(--ue-color-border));
  color:#0B1220;
}

.ue-module--shop-highlights [data-ue-rail-next]:hover{
  background:color-mix(in srgb, var(--ue-color-accent) 86%, #fff);
}

.ue-module--shop-highlights .products li.product{
  flex:0 0 min(280px, 78vw);
  width:min(280px, 78vw);
  max-width:min(280px, 78vw);
  scroll-snap-align:start;
  float:none;
}

@media (min-width: 980px){
  body.ue-home-layout-reference .ue-module--shop-highlights .ue-rail__item{
    flex-basis:240px;
    width:240px;
    max-width:240px;
  }
  body.ue-home-layout-reference .ue-module--shop-highlights .products li.product{
    flex:0 0 240px;
    width:240px;
    max-width:240px;
  }
}

.ue-product-card{
  background:var(--ue-module-bg);
  border:1px solid var(--ue-module-border);
  border-radius:var(--ue-module-radius);
  box-shadow:var(--ue-module-shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
}

.ue-product-card__media{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  background:#fff;
  overflow:hidden;
}

.ue-product-card__media img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.ue-product-card__body{
  padding:12px 12px 14px;
}

.ue-product-card__title{
  margin:0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:0.95rem;
  text-align:center;
}

.ue-product-card__title a{
  color:inherit;
  text-decoration:none;
}

.ue-module--shop-highlights .ue-product-card__price,
.ue-module--shop-highlights .ue-product-card__actions{
  display:none;
}

.ue-module--fan-zone{
  --ue-module-accent:var(--ue-color-accent);
}

.ue-module--fan-zone .wp-block-gallery,
.ue-module--fan-zone .gallery{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
  margin:0;
}

.ue-module--fan-zone .wp-block-image,
.ue-module--fan-zone .gallery-item{
  margin:0;
  border-radius:14px;
  overflow:hidden;
  background:color-mix(in srgb, var(--ue-color-surface) 60%, white);
}

.ue-module--fan-zone .wp-block-image a,
.ue-module--fan-zone .gallery-item a{
  display:block;
  height:100%;
}

.ue-module--fan-zone .wp-block-image img,
.ue-module--fan-zone .wp-block-gallery img,
.ue-module--fan-zone .gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Mobile: lead image spans the full width */
.ue-module--fan-zone .wp-block-gallery .wp-block-image:first-child,
.ue-module--fan-zone .gallery .gallery-item:first-child{
  grid-column:1 / -1;
}

/* Desktop: mosaic layout to match the reference */
@media (min-width: 900px){
  .ue-module--fan-zone .wp-block-gallery,
  .ue-module--fan-zone .gallery{
    grid-template-columns:repeat(4, 1fr);
    grid-auto-rows:112px;
    gap:12px;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:first-child,
  .ue-module--fan-zone .gallery .gallery-item:first-child{
    grid-column:1 / span 2;
    grid-row:1 / span 2;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(2),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(2){
    grid-column:3;
    grid-row:1;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(3),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(3){
    grid-column:4;
    grid-row:1;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(4),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(4){
    grid-column:3;
    grid-row:2;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(5),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(5){
    grid-column:4;
    grid-row:2;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(6),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(6){
    grid-column:3 / span 2;
    grid-row:3 / span 2;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(7),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(7){
    grid-column:1;
    grid-row:3;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(8),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(8){
    grid-column:2;
    grid-row:3;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(9),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(9){
    grid-column:1;
    grid-row:4;
  }

  .ue-module--fan-zone .wp-block-gallery .wp-block-image:nth-child(10),
  .ue-module--fan-zone .gallery .gallery-item:nth-child(10){
    grid-column:2;
    grid-row:4;
  }
}

/* Club History & Heritage */
.ue-club-history .entry-content{
  margin-top:var(--ue-section-gap);
}

.ue-timeline{
  position:relative;
  margin:var(--ue-section-gap) 0;
  display:flex;
  flex-direction:column;
  gap:var(--ue-section-gap);
}

.ue-timeline > .wp-block-group__inner-container{
  display:flex;
  flex-direction:column;
  gap:var(--ue-section-gap);
}

.ue-timeline::before{
  content:"";
  position:absolute;
  left:18px;
  top:0;
  bottom:0;
  width:2px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--ue-color-primary) 65%, transparent), color-mix(in srgb, var(--ue-color-secondary) 55%, transparent));
  opacity:0.7;
}

.ue-timeline__item{
  position:relative;
  padding-left:46px;
}

.ue-timeline__item::before{
  content:"";
  position:absolute;
  left:10px;
  top:18px;
  width:16px;
  height:16px;
  border-radius:999px;
  background:var(--ue-color-bg);
  border:3px solid var(--ue-color-primary);
  box-shadow:var(--ue-shadow-sm);
}

.ue-timeline__media{
  margin:0 0 12px;
  border-radius:var(--ue-radius);
  overflow:hidden;
  border:1px solid var(--ue-color-border);
  box-shadow:var(--ue-shadow-sm);
}

.ue-timeline__media img{
  display:block;
  width:100%;
  height:auto;
}

.ue-timeline__title{
  margin:0 0 6px;
  font-family:var(--ue-font-heading);
  font-weight:950;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
}

.ue-timeline__text{
  margin:0;
  color:var(--ue-color-muted);
}

@media (min-width: 980px){
  .ue-timeline{
    gap:36px;
  }

  .ue-timeline > .wp-block-group__inner-container{
    gap:36px;
  }

  .ue-timeline::before{
    left:50%;
    transform:translateX(-1px);
  }

  .ue-timeline__item{
    padding-left:0;
    width:min(520px, 46%);
  }

  .ue-timeline__item::before{
    left:auto;
    right:-46px;
    top:22px;
  }

  .ue-timeline__item:nth-child(even){
    align-self:flex-end;
  }

  .ue-timeline__item:nth-child(even)::before{
    right:auto;
    left:-46px;
    border-color:var(--ue-color-secondary);
  }
}

.ue-trophy-cabinet{
  margin:calc(var(--ue-section-gap) * 1.2) 0;
}

.ue-trophy-cabinet__title{
  margin:0 0 18px;
  font-family:var(--ue-font-heading);
  font-weight:950;
  letter-spacing:-0.02em;
}

.ue-trophy-cabinet__grid{
  gap:16px;
}

.ue-trophy{
  background:var(--ue-module-bg);
  border:1px solid var(--ue-module-border);
  border-radius:var(--ue-module-radius);
  box-shadow:var(--ue-module-shadow);
  padding:18px 16px;
  position:relative;
  overflow:hidden;
}

.ue-trophy::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(520px 240px at 15% 0%, color-mix(in srgb, var(--ue-color-primary) 14%, transparent) 0%, transparent 65%),
    radial-gradient(520px 240px at 90% 20%, color-mix(in srgb, var(--ue-color-secondary) 12%, transparent) 0%, transparent 65%);
  opacity:0.65;
}

.ue-trophy > *{
  position:relative;
  z-index:1;
}

.ue-trophy__icon{
  font-size:2.2rem;
  line-height:1;
  margin:0 0 10px;
}

.ue-trophy__name{
  margin:0;
  font-weight:950;
}

.ue-trophy__meta{
  margin:6px 0 0;
  color:var(--ue-color-muted);
  font-weight:700;
}

.ue-module__body{
  color:var(--ue-color-text);
  font-size:1rem;
}

.ue-module__title{
  position:relative;
  padding-left:14px;
  margin:0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:1.25rem;
}

.ue-module__title::before{
  content:"";
  position:absolute;
  left:0;
  top:0.55em;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--ue-module-accent);
}

.ue-module__title::after{
  content:none;
}

body.ue-decorations-title .ue-module__title{
  z-index:0;
}

body.ue-decorations-title .ue-module__title::after{
  content:"";
  position:absolute;
  left:-12px;
  right:-12px;
  bottom:0.08em;
  height:0.62em;
  background:color-mix(in srgb, var(--ue-module-accent) 18%, transparent);
  border-radius:999px;
  z-index:-1;
  transform:rotate(-1deg);
}

.ue-module--next-match{
  --ue-module-accent:var(--ue-next-match-accent);
  background:
    radial-gradient(520px 240px at 10% 0%, color-mix(in srgb, var(--ue-next-match-accent) 22%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--ue-color-bg) 94%, var(--ue-color-surface)), var(--ue-color-bg));
  border-color:color-mix(in srgb, var(--ue-next-match-accent) 38%, var(--ue-module-border));
}

/* SportsPress table wrappers (global, not just inside homepage modules) */
.sp-table-wrapper,
.sp-data-table-wrapper{
  width:100%;
  display:block;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding:0;
  margin:0;
  border:1px solid var(--ue-sp-wrapper-border);
  border-radius:var(--ue-sp-wrapper-radius);
  box-shadow:var(--ue-shadow-sm);
  background:var(--ue-sp-wrapper-bg);
}

/* On desktop, clip table backgrounds to rounded wrapper corners. */
@media (min-width: 860px){
  .sp-table-wrapper,
  .sp-data-table-wrapper{
    overflow:hidden;
  }
}

table.sp-data-table,
table.sp-league-table,
table.sp-event-list,
table.sp-player-list,
table.sp-staff-list{
  width:100% !important;
  border-collapse:separate;
  border-spacing:0;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  font-size:0.98rem;
}

.sp-table-wrapper table,
.sp-data-table-wrapper table{
  width:100% !important;
}

/* Prevent “double borders” when SportsPress outputs nested table wrappers */
.sp-template,
.sp-template-content{
  max-width:100%;
}

.sp-event-blocks{
  width:100%;
}

table.sp-event-blocks td{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
}

table.sp-event-blocks .team-logo{
  display:inline-flex;
  align-items:center;
}

table.sp-event-blocks .team-logo img{
  width:38px;
  height:38px;
  object-fit:contain;
}

table.sp-event-blocks .team-logo.logo-even{
  margin-left:-14px;
}

table.sp-event-blocks .team-logo.logo-even img{
  border-radius:999px;
  background:#fff;
  border:2px solid #fff;
  box-shadow:var(--ue-shadow-sm);
}

table.sp-event-blocks .sp-event-date{
  margin-left:auto;
  font-weight:850;
  font-size:0.95rem;
  color:var(--ue-color-text);
}

table.sp-event-blocks .sp-event-results{
  margin:0;
  font-size:1rem;
}

table.sp-event-blocks .sp-event-results .sp-result{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:var(--ue-sp-pill-padding-y) var(--ue-sp-pill-padding-x);
  border-radius:var(--ue-sp-pill-radius);
  background:var(--ue-sp-pill-bg);
  color:var(--ue-sp-pill-text);
  font-weight:var(--ue-sp-pill-font-weight);
  font-size:var(--ue-sp-pill-font-size);
  letter-spacing:0.01em;
  box-shadow:var(--ue-sp-pill-shadow);
  border:var(--ue-sp-pill-border-width) solid var(--ue-sp-pill-border-color);
  min-width:var(--ue-sp-pill-min-width);
}

/* SportsPress result/time pills (override plugin defaults for contrast) */
.sp-event-results .sp-result,
.sp-result{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:var(--ue-sp-pill-padding-y) var(--ue-sp-pill-padding-x);
  border-radius:var(--ue-sp-pill-radius);
  background:var(--ue-sp-pill-bg) !important;
  color:var(--ue-sp-pill-text) !important;
  font-weight:var(--ue-sp-pill-font-weight);
  font-size:var(--ue-sp-pill-font-size);
  letter-spacing:0.01em;
  box-shadow:var(--ue-sp-pill-shadow);
  border:var(--ue-sp-pill-border-width) solid var(--ue-sp-pill-border-color);
  min-width:var(--ue-sp-pill-min-width);
}

/* Time pills are usually rendered as .sp-result inside .sp-event-time */
.sp-event-time .sp-result,
td.sp-event-time .sp-result{
  background:var(--ue-sp-pill-time-bg) !important;
  color:var(--ue-sp-pill-time-text) !important;
}

table.sp-event-blocks .sp-event-title{
  flex:0 0 100%;
  margin:6px 0 0;
  font-size:1.05rem;
  font-weight:900;
  letter-spacing:-0.02em;
}

table.sp-event-blocks .sp-event-title a{
  color:var(--ue-color-text);
  text-decoration:none;
}

table.sp-event-blocks .sp-event-title a:hover{
  color:var(--ue-color-link);
  text-decoration:underline;
  text-decoration-thickness:0.12em;
  text-underline-offset:0.2em;
}

table.sp-data-table th,
table.sp-data-table td,
table.sp-league-table th,
table.sp-league-table td,
table.sp-event-list th,
table.sp-event-list td,
table.sp-player-list th,
table.sp-player-list td,
table.sp-staff-list th,
table.sp-staff-list td{
  padding:11px 12px;
  border-bottom:1px solid var(--ue-sp-wrapper-border);
  vertical-align:middle;
}

table.sp-data-table thead th,
table.sp-league-table thead th,
table.sp-event-list thead th,
table.sp-player-list thead th,
table.sp-staff-list thead th{
  background:var(--ue-sp-table-header-bg);
  color:var(--ue-sp-table-header-text);
  font-weight:850;
  position:static;
}

table.sp-league-table td,
table.sp-league-table th{
  font-size:0.95rem;
}

/* Rounded corners for tables inside wrapper cards (works even when x-scroll is enabled). */
.sp-table-wrapper table thead tr:first-child th:first-child,
.sp-data-table-wrapper table thead tr:first-child th:first-child{
  border-top-left-radius:var(--ue-sp-wrapper-radius);
}

.sp-table-wrapper table thead tr:first-child th:last-child,
.sp-data-table-wrapper table thead tr:first-child th:last-child{
  border-top-right-radius:var(--ue-sp-wrapper-radius);
}

.sp-table-wrapper table tbody tr:last-child td:first-child,
.sp-data-table-wrapper table tbody tr:last-child td:first-child{
  border-bottom-left-radius:var(--ue-sp-wrapper-radius);
}

.sp-table-wrapper table tbody tr:last-child td:last-child,
.sp-data-table-wrapper table tbody tr:last-child td:last-child{
  border-bottom-right-radius:var(--ue-sp-wrapper-radius);
}

/* Ensure standings/event tables still look separated inside wrapper cards */
table.sp-data-table tbody tr:last-child td,
table.sp-league-table tbody tr:last-child td,
table.sp-event-list tbody tr:last-child td,
table.sp-player-list tbody tr:last-child td,
table.sp-staff-list tbody tr:last-child td{
  border-bottom:0;
}

table.sp-data-table tbody tr:nth-child(even) td,
table.sp-league-table tbody tr:nth-child(even) td,
table.sp-event-list tbody tr:nth-child(even) td,
table.sp-player-list tbody tr:nth-child(even) td,
table.sp-staff-list tbody tr:nth-child(even) td{
  background:var(--ue-sp-table-row-alt-bg);
}

table.sp-data-table tbody tr:last-child td,
table.sp-league-table tbody tr:last-child td,
table.sp-event-list tbody tr:last-child td,
table.sp-player-list tbody tr:last-child td,
table.sp-staff-list tbody tr:last-child td{
  border-bottom:0;
}

.wp-block-social-links{
  gap:10px;
}

.wp-block-social-links .wp-social-link{
  border-radius:var(--ue-social-icon-radius);
  box-shadow:var(--ue-shadow-sm);
  transition:transform var(--ue-motion-fast) ease, box-shadow var(--ue-motion-base) ease, filter var(--ue-motion-base) ease;
}

.wp-block-social-links .wp-social-link a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  inline-size:var(--ue-social-icon-size);
  block-size:var(--ue-social-icon-size);
}

.wp-block-social-links .wp-social-link:hover{
  transform:translateY(-1px);
  box-shadow:var(--ue-shadow);
  filter:saturate(1.06);
}

.wp-block-social-links .wp-social-link a:focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:2px;
  border-radius:var(--ue-social-icon-radius);
}

.ue-module--last-result{
  --ue-module-accent:var(--ue-last-result-accent);
  background:
    radial-gradient(520px 240px at 10% 0%, color-mix(in srgb, var(--ue-last-result-accent) 20%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--ue-color-bg) 94%, var(--ue-color-surface)), var(--ue-color-bg));
  border-color:color-mix(in srgb, var(--ue-last-result-accent) 38%, var(--ue-module-border));
}

.ue-module--upcoming-matches{
  --ue-module-accent:var(--ue-color-primary);
}

.ue-module--recent-results{
  --ue-module-accent:var(--ue-color-secondary);
}

.ue-upcoming-matches{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ue-recent-results{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ue-upcoming-matches__item,
.ue-recent-results__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  background:color-mix(in srgb, var(--ue-color-bg) 92%, white);
  border:1px solid color-mix(in srgb, var(--ue-module-accent) 22%, var(--ue-color-border));
  box-shadow:var(--ue-shadow-sm);
  text-decoration:none;
  color:var(--ue-color-text);
}

.ue-upcoming-matches__item:hover,
.ue-recent-results__item:hover{
  box-shadow:var(--ue-shadow);
  border-color:color-mix(in srgb, var(--ue-module-accent) 35%, var(--ue-color-border));
}

.ue-upcoming-matches__logos,
.ue-recent-results__logos{
  display:inline-flex;
  align-items:center;
}

.ue-upcoming-matches__logo,
.ue-recent-results__logo{
  width:28px;
  height:28px;
  border-radius:999px;
  background:#fff;
  border:2px solid rgba(255,255,255,0.95);
  box-shadow:var(--ue-shadow-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.ue-upcoming-matches__logo + .ue-upcoming-matches__logo{
  margin-left:-10px;
}

.ue-recent-results__logo + .ue-recent-results__logo{
  margin-left:-10px;
}

.ue-upcoming-matches__logo img,
.ue-recent-results__logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.ue-upcoming-matches__title,
.ue-recent-results__title{
  flex:1;
  min-width:0;
  font-weight:850;
}

.ue-upcoming-matches__time,
.ue-recent-results__score{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--ue-module-accent);
  color:#fff;
  font-weight:900;
  min-width:64px;
}

.ue-upcoming-matches__date,
.ue-recent-results__date{
  color:var(--ue-color-muted);
  font-weight:800;
  font-size:0.95rem;
}

.ue-module--next-match .ue-placeholder,
.ue-module--last-result .ue-placeholder{
  background:rgba(255,255,255,0.72);
  border:1px dashed color-mix(in srgb, var(--ue-module-accent) 35%, var(--ue-color-border));
}

.ue-placeholder{
  margin:0;
  padding:14px;
  border-radius:calc(var(--ue-radius) - 2px);
  background:var(--ue-color-surface);
  color:var(--ue-color-muted);
}

.ue-news-grid{
  display:grid;
  gap:12px;
  grid-template-columns:1fr;
}

@media (min-width: 900px){
  .ue-news-grid{
    grid-template-columns:repeat(3, 1fr);
  }
}

@media (min-width: 1200px){
  .ue-news-grid{
    grid-template-columns:repeat(4, 1fr);
  }

  /* Reference layout: stack tiles like the provided mock */
  .ue-news-grid__item:nth-child(2){
    grid-column:3;
    grid-row:1;
  }

  .ue-news-grid__item:nth-child(3){
    grid-column:3;
    grid-row:2;
  }

  .ue-news-grid__item:nth-child(4){
    grid-column:4;
    grid-row:1 / span 2;
  }
}

.ue-module--news-grid .ue-module__body{
  padding-top:4px;
}

.ue-news-card__tag{
  position:absolute;
  left:12px;
  top:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--ue-color-accent) 86%, #000);
  color:#fff;
  font-weight:900;
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  box-shadow:var(--ue-shadow-sm);
}

.ue-news-card--lead{
  grid-column:span 1;
}

@media (min-width: 900px){
  .ue-news-card--lead{
    grid-column:span 2;
    grid-row:span 2;
  }
  .ue-news-card--lead .ue-news-card__title{
    font-size:1.25rem;
  }
  .ue-news-card--lead .ue-news-card__excerpt{
    font-size:1rem;
  }
}

.ue-news-card{
  background:var(--ue-news-card-bg);
  border:1px solid var(--ue-color-border);
  border-radius:var(--ue-radius);
  box-shadow:var(--ue-shadow-sm);
  padding:0;
  position:relative;
  overflow:hidden;
}

.ue-news-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:3px;
  background:var(--ue-energy-gradient);
  opacity:0.9;
}

.ue-news-card__media{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:color-mix(in srgb, var(--ue-color-surface) 75%, white);
}

.ue-news-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.01);
  transition:transform var(--ue-motion-slow) ease;
}

.ue-news-card--product .ue-news-card__media{
  background:#fff;
}

.ue-news-card--product .ue-news-card__media img{
  object-fit:contain;
  padding:10px;
}

.ue-news-card__media:focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:2px;
}

.ue-news-card:hover .ue-news-card__media img{
  transform:scale(1.05);
}

.ue-news-card__title{
  margin:0 0 6px;
  padding:14px 14px 0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:1.05rem;
}

.ue-news-card__title a{
  color:var(--ue-color-text);
  text-decoration:none;
}

.ue-news-card__title a:hover{
  color:var(--ue-color-primary);
}

.ue-news-card__meta{
  padding:0 14px;
  color:var(--ue-news-meta);
  font-size:0.9rem;
}

.ue-news-card__excerpt{
  padding:0 14px 14px;
  margin-top:8px;
  color:var(--ue-color-muted);
}

/* Dinamic variant: bolder, more “matchday” typography */
.ue-style-dinamic .ue-nav__menu a{
  text-transform:uppercase;
  letter-spacing:0.11em;
  font-size:0.82rem;
  padding:12px 10px;
}

.ue-style-dinamic .ue-hero__title{
  text-transform:uppercase;
  letter-spacing:0.01em;
  font-size:clamp(2.2rem, 5vw, 4.4rem);
  color:#fff;
  text-shadow:0 12px 38px rgba(0,0,0,0.28);
}

.ue-style-dinamic .ue-hero--context-home .ue-hero__title{
  white-space:pre-line;
}

.ue-style-dinamic .ue-hero--context-home .ue-hero__inner{
  display:flex;
  justify-content:center;
}

.ue-style-dinamic .ue-hero--context-home .ue-hero__content{
  text-align:center;
}

.ue-style-dinamic .ue-hero--context-home .ue-hero__actions{
  justify-content:center;
}

.ue-style-dinamic .ue-hero--context-home .ue-hero__actions .ue-btn--primary{
  background:#0b0b0f;
  border-color:rgba(255,255,255,0.16);
  box-shadow:0 12px 30px rgba(0,0,0,0.22);
}

.ue-style-dinamic .ue-hero--context-home .ue-hero__actions .ue-btn--primary:hover{
  background:#000;
}

/* Portal homepage (reference layout): lighter hero + brand CTAs */
body.ue-home-layout-reference.ue-style-dinamic .ue-hero__overlay{
  opacity:1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.42) 48%, rgba(255,255,255,0.08) 100%),
    radial-gradient(900px 420px at 50% 30%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.0) 70%);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-hero__title{
  color:var(--ue-color-text);
  text-shadow:none;
}

body.ue-home-layout-reference.ue-style-dinamic .ue-hero__subtitle{
  color:color-mix(in srgb, var(--ue-color-text) 75%, transparent);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-hero--context-home .ue-hero__actions .ue-btn--primary{
  background:var(--ue-color-accent);
  color:#0B1220;
  border-color:color-mix(in srgb, var(--ue-color-accent) 55%, var(--ue-color-border));
  box-shadow:0 14px 34px rgba(11,18,32,0.18);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-hero--context-home .ue-hero__actions .ue-btn--primary:hover{
  background:color-mix(in srgb, var(--ue-color-accent) 86%, #fff);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-hero--context-home .ue-hero__actions .ue-btn--secondary{
  background:var(--ue-color-secondary);
  color:#fff;
  border-color:color-mix(in srgb, var(--ue-color-secondary) 55%, var(--ue-color-border));
  box-shadow:0 14px 34px rgba(11,18,32,0.14);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-hero--context-home .ue-hero__actions .ue-btn--secondary:hover{
  background:color-mix(in srgb, var(--ue-color-secondary) 86%, #000);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-hero--context-home .ue-hero__actions .ue-btn{
  border-radius:14px;
  padding:12px 16px;
}

.ue-style-dinamic .ue-hero__subtitle{
  font-size:1.1rem;
  letter-spacing:0.01em;
  color:rgba(255,255,255,0.9);
}

.ue-style-dinamic .ue-module__title{
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-size:1.08rem;
}

.ue-style-dinamic .ue-module__title::before{
  top:0.2em;
  bottom:0.18em;
  width:4px;
  height:auto;
  border-radius:3px;
  background:var(--ue-energy-gradient);
}

.ue-style-dinamic .ue-module__title::after{
  opacity:0.55;
}

.ue-module--standings table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:1rem;
}

.ue-module--standings{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.ue-module--standings .sp-table-wrapper{
  max-height:440px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.ue-module--standings .dataTables_paginate,
.ue-module--standings .dataTables_info,
.ue-module--standings .dataTables_filter,
.ue-module--standings .dataTables_length{
  display:none !important;
}

@media (max-width: 720px){
  .ue-module--standings table{
    min-width:680px;
  }
}

.ue-module--standings thead th{
  position:sticky;
  top:0;
  background:var(--ue-standings-header-bg);
  text-align:left;
  padding:10px 8px;
  border-bottom:1px solid var(--ue-standings-border);
}

.ue-module--standings td{
  padding:10px 8px;
  border-bottom:1px solid var(--ue-standings-border);
}

.ue-module--standings th,
.ue-module--standings td{
  white-space:nowrap;
}

.ue-module--standings tbody tr:nth-child(even) td{
  background:color-mix(in srgb, var(--ue-standings-header-bg) 30%, transparent);
}

.ue-module--standings tr:hover td{
  background:color-mix(in srgb, var(--ue-standings-highlight) 35%, transparent);
}

.ue-module--standings tr.highlighted td,
.ue-module--standings tr.highlighted td.sp-highlight{
  background:color-mix(in srgb, var(--ue-color-primary) 12%, var(--ue-color-bg));
  font-weight:800;
}

.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form input[type="submit"]{
  border-radius:var(--ue-button-radius) !important;
  background:var(--ue-button-bg) !important;
  border:1px solid var(--ue-button-border) !important;
  color:var(--ue-button-text) !important;
  font-weight:900 !important;
  letter-spacing:0.01em !important;
  padding:var(--ue-button-padding-y) var(--ue-button-padding-x) !important;
  box-shadow:var(--ue-shadow-sm) !important;
}

.wpforms-container .wpforms-form .wpforms-field{
  margin-bottom:16px !important;
}

.wpforms-container .wpforms-form .wpforms-field-label{
  color:var(--ue-color-text) !important;
  font-weight:850 !important;
  font-size:0.95rem !important;
  margin-bottom:6px !important;
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form input[type="url"],
.wpforms-container .wpforms-form input[type="number"],
.wpforms-container .wpforms-form input[type="search"],
.wpforms-container .wpforms-form input[type="password"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea{
  border:1px solid var(--ue-input-border) !important;
  border-radius:var(--ue-input-radius) !important;
  padding:12px 12px !important;
  font-size:1rem !important;
  color:var(--ue-input-text) !important;
  background:var(--ue-input-bg) !important;
}

.wpforms-container .wpforms-form input:focus-visible,
.wpforms-container .wpforms-form select:focus-visible,
.wpforms-container .wpforms-form textarea:focus-visible{
  outline:3px solid var(--ue-color-focus) !important;
  outline-offset:2px !important;
  border-color:color-mix(in srgb, var(--ue-color-focus) 55%, var(--ue-color-border)) !important;
  box-shadow:0 0 0 6px color-mix(in srgb, var(--ue-color-focus) 18%, transparent) !important;
}

.wpforms-container .wpforms-form label.wpforms-error{
  color:#b91c1c !important;
  font-weight:750 !important;
}

.wpforms-container .wpforms-form .wpforms-has-error input,
.wpforms-container .wpforms-form .wpforms-has-error select,
.wpforms-container .wpforms-form .wpforms-has-error textarea{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 6px rgba(239,68,68,0.18) !important;
}

.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form input[type="submit"]:hover{
  background:var(--ue-button-bg-hover) !important;
  filter:saturate(1.06) brightness(0.98) !important;
  box-shadow:var(--ue-shadow) !important;
}

.ue-module--sponsors{
  background:var(--ue-sponsors-bg);
}

.ue-module--sponsors [data-ue-rail-next]{
  background:var(--ue-color-accent);
  border-color:color-mix(in srgb, var(--ue-color-accent) 55%, var(--ue-color-border));
  color:#0B1220;
}

.ue-module--sponsors [data-ue-rail-next]:hover{
  background:color-mix(in srgb, var(--ue-color-accent) 86%, #fff);
}

.ue-module--sponsors [data-ue-rail-prev]{
  background:#CBD5E1;
  border-color:transparent;
  color:#0B1220;
}

.ue-module--sponsors .ue-rail__viewport > .ue-widget,
.ue-module--sponsors .ue-rail__viewport > .ue-widget > .textwidget{
  display:contents;
}

.ue-sponsors-strip{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  justify-content:center;
}

.ue-module--sponsors .ue-sponsors-strip{
  flex-wrap:nowrap;
  justify-content:flex-start;
  padding:2px;
}

.ue-sponsors-strip a{
  display:inline-flex;
  align-items:center;
}

.ue-module--sponsors .ue-sponsors-strip a{
  flex:0 0 auto;
  scroll-snap-align:start;
}

.ue-module--sponsors img{
  max-height:var(--ue-sponsors-logo-height);
  width:auto;
  height:auto;
  filter:grayscale(var(--ue-sponsors-grayscale));
  opacity:0.95;
  transition:filter var(--ue-motion-base) ease, opacity var(--ue-motion-base) ease;
}

.ue-module--sponsors img:hover{
  filter:none;
  opacity:1;
}

.ue-card{
  background:var(--ue-color-bg);
  border:1px solid var(--ue-color-border);
  border-radius:var(--ue-radius);
  box-shadow:var(--ue-shadow-sm);
  padding:var(--ue-card-padding);
}

.ue-page-header{
  margin-top:var(--ue-section-gap);
  margin-bottom:14px;
}

body.ue-style-dinamic .ue-page-header{
  position:relative;
  padding:24px 0 18px;
  margin-top:var(--ue-section-gap);
  margin-bottom:18px;
}

body.ue-style-dinamic .ue-page-header::before{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:100vw;
  top:0;
  bottom:0;
  background:#f8f8f8;
  border-top:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  border-bottom:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  z-index:-1;
}

.ue-page-header--center{
  text-align:center;
}

body.ue-style-dinamic .ue-page-header--center::before{
  content:none;
}

.ue-page-title{
  margin:0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:clamp(1.7rem, 2.4vw, 2.2rem);
}

body.ue-style-dinamic .ue-page-title{
  text-transform:uppercase;
  letter-spacing:0.02em;
  font-size:clamp(2rem, 3.2vw, 3rem);
}

.ue-page-description{
  margin:10px 0 0;
  color:var(--ue-color-muted);
}

.ue-prose{
  max-width:72ch;
  font-size:1.03rem;
}

.ue-layout-wide .ue-prose{
  max-width:unset;
}

.ue-prose--wide{
  max-width:unset;
}

.ue-prose > *{
  margin-top:1.05em;
  margin-bottom:0;
}

.ue-prose > *:first-child{
  margin-top:0;
}

.ue-prose p{
  color:color-mix(in srgb, var(--ue-color-text) 92%, var(--ue-color-muted));
}

.ue-prose h2,
.ue-prose h3{
  margin-top:1.6em;
}

.ue-prose h2{
  font-size:clamp(1.35rem, 2.1vw, 1.7rem);
}

.ue-prose h3{
  font-size:clamp(1.15rem, 1.6vw, 1.35rem);
}

.ue-prose ul,
.ue-prose ol{
  padding-left:1.3em;
}

.ue-prose li{
  margin-top:0.4em;
}

.ue-prose hr{
  margin-top:1.8em;
  border:0;
  height:1px;
  background:var(--ue-color-border);
}

.ue-prose blockquote{
  margin:1.2em 0 0;
  padding:14px 16px;
  border-left:4px solid color-mix(in srgb, var(--ue-color-primary) 55%, var(--ue-color-border));
  background:color-mix(in srgb, var(--ue-color-surface) 70%, white);
  border-radius:14px;
  color:var(--ue-color-text);
  box-shadow:var(--ue-shadow-sm);
}

.ue-prose blockquote p{
  margin-top:0;
}

.ue-prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:0.95em;
  background:color-mix(in srgb, var(--ue-color-surface) 70%, white);
  border:1px solid var(--ue-color-border);
  border-radius:8px;
  padding:0.15em 0.4em;
}

.ue-prose pre{
  overflow:auto;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--ue-color-border);
  background:color-mix(in srgb, var(--ue-color-text) 92%, #000);
  color:#fff;
  box-shadow:var(--ue-shadow-sm);
}

.ue-prose pre code{
  background:transparent;
  border:0;
  padding:0;
  color:inherit;
}

.ue-prose table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--ue-color-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--ue-shadow-sm);
}

.ue-prose th,
.ue-prose td{
  padding:10px 12px;
  border-bottom:1px solid var(--ue-color-border);
  vertical-align:top;
}

.ue-prose thead th{
  background:color-mix(in srgb, var(--ue-color-surface) 70%, white);
  font-weight:850;
}

.ue-prose tbody tr:last-child td{
  border-bottom:0;
}

.ue-prose > *:first-child{ margin-top:0; }
.ue-prose h2,
.ue-prose h3{
  font-family:var(--ue-font-heading);
  line-height:var(--ue-line-height-heading);
  letter-spacing:-0.02em;
}

.ue-prose a{
  color:var(--ue-color-link);
  font-weight:650;
  border-radius:0.2em;
  padding:0.02em 0.08em;
  margin:0 -0.08em;
  box-shadow:inset 0 -0.22em 0 color-mix(in srgb, var(--ue-color-link) 14%, transparent);
}

.ue-prose a:hover{
  color:color-mix(in srgb, var(--ue-color-link) 80%, black);
  box-shadow:inset 0 -0.55em 0 color-mix(in srgb, var(--ue-color-link) 18%, transparent);
}

.ue-prose a:focus-visible{
  box-shadow:
    inset 0 -0.55em 0 color-mix(in srgb, var(--ue-color-link) 18%, transparent),
    0 0 0 3px var(--ue-color-focus);
  outline:0;
}

.ue-page-toc{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ue-page-toc a{
  display:inline-flex;
  align-items:center;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--ue-color-border);
  background:color-mix(in srgb, var(--ue-color-bg) 88%, var(--ue-color-surface));
  color:var(--ue-color-text);
  text-decoration:none;
  font-weight:800;
  font-size:0.95rem;
  box-shadow:var(--ue-shadow-sm);
}

.ue-page-toc a:hover{
  color:var(--ue-color-primary);
  border-color:color-mix(in srgb, var(--ue-color-primary) 45%, var(--ue-color-border));
}

.ue-timeline{
  margin-top:14px;
}

.ue-timeline__list{
  list-style:none;
  margin:0;
  padding:0 0 0 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  border-left:3px solid color-mix(in srgb, var(--ue-color-primary) 30%, var(--ue-color-border));
}

.ue-timeline__list li{
  position:relative;
  padding-left:12px;
}

.ue-timeline__list li::before{
  content:"";
  position:absolute;
  left:-22px;
  top:0.45em;
  width:12px;
  height:12px;
  border-radius:999px;
  border:3px solid var(--ue-color-primary);
  background:var(--ue-color-bg);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--ue-color-primary) 12%, transparent);
}

.ue-callout{
  border:1px solid var(--ue-color-border);
  border-radius:var(--ue-radius);
  box-shadow:var(--ue-shadow-sm);
  padding:16px;
  background:color-mix(in srgb, var(--ue-color-primary) 6%, var(--ue-color-bg));
}

.ue-callout--secondary{
  background:color-mix(in srgb, var(--ue-color-secondary) 6%, var(--ue-color-bg));
}

.ue-story{
  margin-top:var(--ue-section-gap);
  display:flex;
  flex-direction:column;
  gap:16px;
}

.ue-chapter{
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid var(--ue-color-border);
  border-radius:var(--ue-radius);
  box-shadow:var(--ue-shadow-sm);
  background:color-mix(in srgb, var(--ue-color-bg) 92%, var(--ue-color-surface));
}

.ue-chapter--primary{
  background:color-mix(in srgb, var(--ue-color-primary) 6%, var(--ue-color-bg));
}

.ue-chapter--secondary{
  background:color-mix(in srgb, var(--ue-color-secondary) 6%, var(--ue-color-bg));
}

.ue-chapter__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

@media (min-width: 960px){
  .ue-chapter__grid{
    grid-template-columns:220px 1fr;
    align-items:start;
  }
}

.ue-chapter__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  font-size:1rem;
}

.ue-chapter__kicker::before{
  content:"";
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--ue-color-primary);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--ue-color-primary) 18%, transparent);
}

.ue-chapter--secondary .ue-chapter__kicker::before{
  background:var(--ue-color-secondary);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--ue-color-secondary) 18%, transparent);
}

.ue-chapter__meta{
  margin:10px 0 0;
  color:var(--ue-color-muted);
  font-weight:800;
  font-size:0.95rem;
}

.ue-chapter__content > *:first-child{
  margin-top:0;
}

.ue-chapter__content h3{
  margin-top:0;
  font-family:var(--ue-font-heading);
  line-height:var(--ue-line-height-heading);
  letter-spacing:-0.02em;
}

.ue-chapter figure.wp-block-image{
  margin:14px 0 0;
}

.ue-chapter figure.wp-block-image img{
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--ue-color-border) 92%, transparent);
  background:var(--ue-color-bg);
  box-shadow:var(--ue-shadow-sm);
}

.ue-chapter .wp-element-caption{
  margin:10px 0 0;
  color:var(--ue-color-muted);
  font-size:0.85rem;
  font-weight:700;
}

.ue-chapter .wp-element-caption a{
  color:inherit;
  font-weight:700;
  border-radius:0.2em;
  padding:0.02em 0.08em;
  margin:0 -0.08em;
  box-shadow:inset 0 -0.22em 0 color-mix(in srgb, currentColor 14%, transparent);
}

.ue-chapter .wp-element-caption a:hover{
  color:var(--ue-color-primary);
}

.ue-sources{
  margin-top:14px;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

@media (min-width: 880px){
  .ue-sources{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

.ue-sources a{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--ue-color-border);
  background:var(--ue-color-bg);
  box-shadow:var(--ue-shadow-sm);
  text-decoration:none;
  color:inherit;
  font-weight:800;
}

.ue-sources a:hover{
  border-color:color-mix(in srgb, var(--ue-color-primary) 45%, var(--ue-color-border));
  color:var(--ue-color-primary);
}

.ue-hof{
  margin-top:var(--ue-section-gap);
  display:flex;
  flex-direction:column;
  gap:var(--ue-section-gap);
}

.ue-hof__section{
  display:block;
}

.ue-hof__title{
  margin:0 0 12px;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:1.35rem;
}

.ue-hof-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

@media (min-width: 720px){
  .ue-hof-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (min-width: 1000px){
  .ue-hof-grid{
    grid-template-columns:repeat(var(--ue-hof-columns, 3), 1fr);
  }
}

.ue-hof-card{
  padding:0;
  overflow:hidden;
}

.ue-hof-card__link{
  display:flex;
  gap:14px;
  align-items:center;
  padding:14px;
  text-decoration:none;
  color:inherit;
}

.ue-hof-card__media{
  flex:0 0 auto;
  width:72px;
}

.ue-hof-card__img{
  width:72px;
  height:72px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid var(--ue-color-border);
  background:var(--ue-color-surface);
}

.ue-hof-card__placeholder{
  width:72px;
  height:72px;
  border-radius:999px;
  border:1px solid var(--ue-color-border);
  background:color-mix(in srgb, var(--ue-color-primary) 10%, var(--ue-color-bg));
  color:var(--ue-color-text);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--ue-font-heading);
  font-weight:900;
  font-size:1.25rem;
}

.ue-hof-card__title{
  margin:0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:1.05rem;
}

.ue-hof-card__meta{
  margin-top:4px;
  color:var(--ue-color-muted);
  font-size:0.92rem;
}

.ue-hof-card__excerpt{
  margin-top:8px;
  color:var(--ue-color-muted);
}

.ue-hof-card__link:hover .ue-hof-card__title{
  color:var(--ue-color-primary);
}

.ue-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:var(--ue-section-gap);
}

body.ue-style-dinamic .ue-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

@media (min-width: 900px){
  body.ue-style-dinamic .ue-stack{
    grid-template-columns:repeat(3, 1fr);
  }
}

.ue-entry.ue-card{
  padding:0;
  overflow:hidden;
}

.ue-entry__media{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:color-mix(in srgb, var(--ue-color-surface) 75%, white);
}

.ue-entry__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.01);
  transition:transform var(--ue-motion-slow) ease;
}

.ue-entry:hover .ue-entry__media img{
  transform:scale(1.05);
}

.ue-entry__header{
  padding:14px 14px 0;
}

.ue-entry__excerpt{
  padding:0 14px 14px;
}

.ue-entry__title{
  margin:0 0 6px;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
}

.ue-entry__title a{
  color:var(--ue-color-text);
  text-decoration:none;
}

.ue-entry__title a:hover{
  color:var(--ue-color-primary);
}

.ue-entry__meta{
  color:var(--ue-color-muted);
  font-size:0.95rem;
}

/* SportsPress event list cards */
.ue-fixture{
  padding:0;
  overflow:hidden;
}

.ue-fixture__link{
  display:block;
  text-decoration:none;
  color:inherit;
  padding:16px 16px 14px;
}

.ue-fixture__meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  color:var(--ue-color-muted);
  font-size:0.92rem;
  font-weight:750;
}

.ue-fixture__label{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--ue-color-primary) 12%, var(--ue-color-surface));
  border:1px solid color-mix(in srgb, var(--ue-color-primary) 28%, var(--ue-color-border));
  color:var(--ue-color-text);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.72rem;
}

.ue-fixture__time{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--ue-energy-gradient);
  color:#fff;
  font-weight:900;
  letter-spacing:0.01em;
  box-shadow:var(--ue-shadow-sm);
  min-width:64px;
}

.ue-fixture__main{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
}

.ue-fixture__logos{
  display:inline-flex;
  align-items:center;
}

.ue-fixture__logo{
  width:42px;
  height:42px;
  border-radius:999px;
  background:#fff;
  border:2px solid #fff;
  box-shadow:var(--ue-shadow-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.ue-fixture__logo + .ue-fixture__logo{
  margin-left:-14px;
}

.ue-fixture__logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.ue-fixture__title{
  margin:0;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:1.05rem;
}

.ue-fixture__cta{
  display:inline-flex;
  margin-top:14px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:0.78rem;
  color:var(--ue-color-text);
  opacity:0.9;
}

body.ue-style-dinamic .ue-fixture__link{
  background:
    radial-gradient(780px 260px at 10% 0%, color-mix(in srgb, var(--ue-color-secondary) 12%, transparent) 0%, transparent 62%),
    radial-gradient(720px 240px at 95% 10%, color-mix(in srgb, var(--ue-color-primary) 10%, transparent) 0%, transparent 64%);
}

/* SportsPress event single “match center” */
.ue-scoreboard{
  margin-top:var(--ue-section-gap);
  border-radius:18px;
  border:1px solid color-mix(in srgb, var(--ue-color-border) 70%, transparent);
  background:
    radial-gradient(820px 340px at 10% 0%, color-mix(in srgb, var(--ue-color-primary) 16%, transparent) 0%, transparent 62%),
    radial-gradient(820px 340px at 90% 0%, color-mix(in srgb, var(--ue-color-secondary) 14%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--ue-color-bg) 96%, var(--ue-color-surface)), var(--ue-color-bg));
  padding:16px;
  box-shadow:var(--ue-shadow);
}

.ue-scoreboard__top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  color:var(--ue-color-muted);
  font-size:0.92rem;
  font-weight:800;
}

.ue-scoreboard__label{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(0,0,0,0.85);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.72rem;
}

.ue-scoreboard__time{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--ue-energy-gradient);
  color:#fff;
  font-weight:900;
  letter-spacing:0.01em;
  box-shadow:var(--ue-shadow-sm);
  min-width:64px;
}

.ue-scoreboard__teams{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:12px;
}

.ue-scoreboard__logos{
  display:inline-flex;
  align-items:center;
}

.ue-scoreboard__logo{
  width:52px;
  height:52px;
  border-radius:999px;
  background:#fff;
  border:2px solid #fff;
  box-shadow:var(--ue-shadow-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.ue-scoreboard__logo + .ue-scoreboard__logo{
  margin-left:-16px;
}

.ue-scoreboard__logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.ue-scoreboard__title{
  font-family:var(--ue-font-heading);
  font-weight:950;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:clamp(1.2rem, 2.4vw, 1.7rem);
}

.ue-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:var(--ue-button-radius);
  padding:var(--ue-button-padding-y) var(--ue-button-padding-x);
  font-weight:800;
  letter-spacing:0.01em;
  border:1px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition:transform var(--ue-motion-fast) ease, box-shadow var(--ue-motion-base) ease, background var(--ue-motion-base) ease, color var(--ue-motion-base) ease;
}

.ue-btn--primary{
  background:var(--ue-button-bg);
  color:var(--ue-button-text);
  box-shadow:var(--ue-shadow-sm);
}

.ue-btn--primary:hover{
  background:var(--ue-button-bg-hover);
  transform:translateY(-1px);
  box-shadow:var(--ue-shadow);
}

.ue-btn--secondary{
  background:transparent;
  color:var(--ue-color-text);
  border-color:var(--ue-color-border);
  box-shadow:var(--ue-shadow-sm);
}

.ue-btn--secondary:hover{
  background:color-mix(in srgb, var(--ue-color-surface) 88%, white);
  transform:translateY(-1px);
  box-shadow:var(--ue-shadow);
}

.ue-style-dinamic .ue-hero__actions .ue-btn--secondary{
  color:#fff;
  border-color:rgba(255,255,255,0.20);
  background:rgba(11,11,15,0.32);
  box-shadow:0 12px 30px rgba(0,0,0,0.16);
}

.ue-style-dinamic .ue-hero__actions .ue-btn--secondary:hover{
  background:rgba(11,11,15,0.52);
}

.ue-pagination{
  margin-top:var(--ue-section-gap);
}

.ue-footer{
  --ue-footer-bg:#005FA6;
  --ue-footer-text:#fff;
  border-top:none;
  background:var(--ue-footer-bg, var(--ue-color-surface));
  color:var(--ue-footer-text, var(--ue-color-text));
  padding:26px 0;
}

body.ue-style-dinamic .ue-footer{
  background:var(--ue-footer-bg, #0b0b0f);
  border-top:none;
  color:var(--ue-footer-text, rgba(255,255,255,0.88));
}

/* Portal homepage: use a light footer like the reference */
body.ue-home-layout-reference.ue-style-dinamic .ue-footer{
  --ue-footer-fade-start:28px;
  --ue-footer-blue:var(--ue-footer-bg, #005FA6);
  background:linear-gradient(
    to bottom,
    #fff 0%,
    var(--ue-footer-blue) var(--ue-footer-fade-start),
    var(--ue-footer-blue) 100%
  );
  color:var(--ue-footer-text, #fff);
  border-top:none;
}

body.ue-home-layout-reference .ue-footer__nav{
  display:none;
}

body.ue-style-dinamic .ue-footer__meta{
  color:color-mix(in srgb, var(--ue-footer-text, rgba(255,255,255,0.88)) 72%, transparent);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-footer__meta{
  color:color-mix(in srgb, var(--ue-footer-text, #fff) 72%, transparent);
}

.ue-footer__inner{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.ue-footer__widgets{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
}

@media (min-width: 900px){
  .ue-footer__widgets--cols-1{ grid-template-columns:1fr; }
  .ue-footer__widgets--cols-2{ grid-template-columns:1fr 1fr; }
  .ue-footer__widgets--cols-3{ grid-template-columns:1.2fr 0.9fr 0.9fr; }
  .ue-footer__widgets--cols-4{ grid-template-columns:1.35fr 0.85fr 0.85fr 0.85fr; }
}

.ue-footer__widget .wp-block-heading,
.ue-footer__widget .widget-title{
  margin:0 0 10px;
  font-family:var(--ue-font-heading);
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:var(--ue-line-height-heading);
  font-size:1.05rem;
}

body.ue-home-layout-reference .ue-footer__widget .wp-block-heading,
body.ue-home-layout-reference .ue-footer__widget .widget-title,
body.ue-home-layout-reference .ue-footer__widget .ue-widget__title{
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.9rem;
}

.ue-footer__links-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.ue-footer__links-menu a{
  text-decoration:none;
  color:color-mix(in srgb, var(--ue-footer-text, #fff) 88%, transparent);
  font-weight:700;
}

.ue-footer__links-menu a:hover{
  color:var(--ue-footer-text, #fff);
  text-decoration:underline;
}

.ue-footer__newsletter label[aria-hidden="true"]{
  display:none !important;
}

.ue-footer__newsletter input[type="email"],
.ue-footer__newsletter input[type="text"]{
  width:100%;
  max-width:520px;
  padding:10px 12px;
  border-radius:var(--ue-input-radius);
  border:1px solid var(--ue-input-border);
  background:var(--ue-input-bg);
  color:var(--ue-input-text);
}

.ue-footer__newsletter input[type="email"]:focus-visible,
.ue-footer__newsletter input[type="text"]:focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:2px;
}

/* Portal footer: make the newsletter inline (email + arrow button) */
body.ue-home-layout-reference .ue-footer__newsletter .wpforms-form{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
}

body.ue-home-layout-reference .ue-footer__newsletter .wpforms-field-container{
  flex:1 1 240px;
  min-width:220px;
}

body.ue-home-layout-reference .ue-footer__newsletter .wpforms-submit-container{
  margin-top:0 !important;
}

body.ue-home-layout-reference .ue-footer__newsletter .wpforms-field-label{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

body.ue-home-layout-reference .ue-footer__newsletter input[type="email"],
body.ue-home-layout-reference .ue-footer__newsletter input[type="text"]{
  height:44px;
}

body.ue-home-layout-reference .ue-footer__newsletter .wpforms-submit-container button[type="submit"],
body.ue-home-layout-reference .ue-footer__newsletter .wpforms-submit-container input[type="submit"]{
  width:44px !important;
  height:44px !important;
  padding:0 !important;
  border-radius:12px !important;
  background:var(--ue-color-accent) !important;
  border:1px solid color-mix(in srgb, var(--ue-color-accent) 55%, var(--ue-color-border)) !important;
  color:#0B1220 !important;
  box-shadow:0 10px 24px rgba(11,18,32,0.12) !important;
  text-indent:-9999px;
  overflow:hidden;
  position:relative;
}

body.ue-home-layout-reference .ue-footer__newsletter .wpforms-submit-container button[type="submit"]::after,
body.ue-home-layout-reference .ue-footer__newsletter .wpforms-submit-container input[type="submit"]::after{
  content:"›";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:900;
  text-indent:0;
}

.ue-footer__menu{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding:0;
  margin:0;
}

.ue-footer__menu a{
  text-decoration:none;
  font-weight:700;
  color:color-mix(in srgb, var(--ue-footer-text, var(--ue-color-text)) 82%, var(--ue-color-muted));
  padding:8px 10px;
  border-radius:10px;
  box-shadow:inset 0 -0.25em 0 color-mix(in srgb, var(--ue-color-secondary) 12%, transparent);
}

body.ue-style-dinamic .ue-footer__menu a{
  color:color-mix(in srgb, var(--ue-footer-text, rgba(255,255,255,0.88)) 88%, transparent);
  box-shadow:inset 0 -0.25em 0 color-mix(in srgb, var(--ue-footer-text, rgba(255,255,255,0.88)) 14%, transparent);
}

body.ue-home-layout-reference.ue-style-dinamic .ue-footer__menu a{
  color:color-mix(in srgb, var(--ue-footer-text, #fff) 88%, transparent);
  box-shadow:inset 0 -0.25em 0 color-mix(in srgb, var(--ue-footer-text, #fff) 14%, transparent);
}

.ue-footer__menu a:hover{
  color:var(--ue-footer-text, var(--ue-color-text));
  background:color-mix(in srgb, var(--ue-footer-bg, var(--ue-color-surface)) 80%, white);
  box-shadow:inset 0 -0.55em 0 color-mix(in srgb, var(--ue-color-secondary) 16%, transparent);
}

.ue-footer__menu a:focus-visible{
  outline:3px solid var(--ue-color-focus);
  outline-offset:2px;
  background:color-mix(in srgb, var(--ue-footer-bg, var(--ue-color-surface)) 78%, white);
  color:var(--ue-footer-text, var(--ue-color-text));
  box-shadow:inset 0 -0.55em 0 color-mix(in srgb, var(--ue-color-secondary) 18%, transparent);
}

.ue-footer__meta{
  color:color-mix(in srgb, var(--ue-footer-text, var(--ue-color-text)) 72%, var(--ue-color-muted));
  font-size:0.98rem;
  line-height:1.6;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}
