/*
Theme Name: Darts Championship
Theme URI: https://example.com/
Author: Custom
Description: Tema WordPress moderno per campionati di freccette.
Version: 1.4.6
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: darts-championship
*/
:root{--bg:#08111f;--panel:#101c2d;--accent:#35d07f;--gold:#f5c451;--text:#eef4fa;--muted:#9eafc2}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}.container{width:min(1180px,92%);margin:auto}
.site-header{background:#060d17;border-bottom:1px solid #203047;position:sticky;top:0;z-index:20}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo{font-weight:900;letter-spacing:.5px;font-size:1.25rem}.logo span{color:var(--accent)}
.nav-toggle{display:none;background:none;border:1px solid #30435c;color:#fff;padding:8px 12px;border-radius:8px;cursor:pointer;line-height:1;font-size:1.25rem}
.primary-navigation{display:block}.darts-primary-menu{display:flex;align-items:center;gap:20px;list-style:none;margin:0;padding:0}.darts-primary-menu a{color:#c7d3df;font-weight:650}.darts-primary-menu a:hover,.darts-primary-menu a:focus-visible{color:var(--accent)}
.hero{padding:90px 0;background:radial-gradient(circle at 75% 30%,#17365b 0,#08111f 45%,#060d17 100%)}
.hero h1{font-size:clamp(2.5rem,6vw,5rem);line-height:1;margin:0 0 18px;max-width:800px}.hero p{font-size:1.15rem;color:var(--muted);max-width:700px}
.btn{display:inline-block;background:var(--accent);color:#06130c;font-weight:800;padding:12px 18px;border-radius:10px;margin:8px 8px 0 0}.btn.alt{background:#1a2a40;color:#fff}
.section{padding:55px 0}.section h2{font-size:2rem;margin-top:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--panel);border:1px solid #203047;border-radius:16px;padding:22px;box-shadow:0 10px 30px #0002}.card h3{margin-top:0}.muted{color:var(--muted)}
.table-wrap{overflow:auto;border-radius:14px;border:1px solid #203047}.league-table{width:100%;border-collapse:collapse;background:var(--panel)}.league-table th,.league-table td{padding:12px 14px;border-bottom:1px solid #203047;text-align:left}.league-table th{color:var(--gold);font-size:.9rem}.league-table tr:last-child td{border-bottom:0}
.site-footer{background:#050a11;border-top:1px solid #203047;padding:35px 0;color:var(--muted)}
@media(max-width:760px){.site-header{position:sticky}.header-inner{position:relative}.nav-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}.primary-navigation{display:none;position:absolute;left:0;right:0;top:calc(100% + 1px);background:#08111f;border:1px solid #203047;border-radius:0 0 12px 12px;padding:12px 4%;box-shadow:0 12px 30px rgba(0,0,0,.28)}.primary-navigation.open{display:block}.darts-primary-menu{display:flex;gap:0;flex-direction:column;align-items:stretch}.darts-primary-menu li{width:100%}.darts-primary-menu a{display:block;padding:11px 8px}.grid{grid-template-columns:1fr}.hero{padding:65px 0}}

/* Blog homepage */
.blog-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.blog-card{border:1px solid rgba(0,0,0,.10);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 25px rgba(0,0,0,.05)}.blog-thumb{display:block;aspect-ratio:16/9;overflow:hidden}.blog-thumb img{width:100%;height:100%;object-fit:cover;display:block}.blog-content{padding:22px}.post-meta{font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;opacity:.65;margin-bottom:8px}.blog-card h2,.blog-card h3{margin:0 0 10px}.blog-card h2 a,.blog-card h3 a{text-decoration:none;color:inherit}.blog-card p{line-height:1.6}.text-link{font-weight:700;text-decoration:none}.pagination{margin-top:30px}.pagination ul{display:flex;gap:8px;list-style:none;padding:0}.pagination a,.pagination span{padding:8px 12px;border:1px solid rgba(0,0,0,.12);border-radius:8px;text-decoration:none}.blog-links{padding-top:10px}@media(max-width:900px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.blog-grid{grid-template-columns:1fr}}

/* Blog readability fix v1.1.0 */
.blog-card{color:#18202a}
.blog-card h2,.blog-card h3{color:#18202a}
.blog-card h2 a,.blog-card h3 a{color:#18202a}
.blog-card h2 a:hover,.blog-card h3 a:hover{color:#1769aa}
.blog-card p{color:#394553}
.blog-card .post-meta{color:#5d6875;opacity:1}
.blog-card .text-link{color:#1769aa}
.blog-card .text-link:hover{text-decoration:underline}
.blog-card .pagination a,.blog-card .pagination span{color:#18202a}
.single-post .card,.single .card{color:#18202a}

.post-single{color:#18202a}
.post-single h1,.post-single h2,.post-single h3,.post-single h4{color:#18202a}
.post-single .post-meta{color:#5d6875;margin-bottom:18px}
.post-single .post-content{color:#394553}
.post-single .post-content a{color:#1769aa;text-decoration:underline}
.post-featured-image img{max-width:100%;height:auto;border-radius:12px}

/* Splash Screen */
#darts-splash{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:var(--splash-bg,#08111f);opacity:1;visibility:visible;transition:opacity .55s ease,visibility .55s ease}
#darts-splash img{display:block;width:min(var(--splash-logo-width,420px),78vw);max-height:72vh;object-fit:contain;opacity:0;transform:scale(.94);animation:dartsSplashLogo .65s ease forwards}
#darts-splash.darts-splash-hide{opacity:0;visibility:hidden;pointer-events:none}
@keyframes dartsSplashLogo{to{opacity:1;transform:scale(1)}}
@media(max-width:600px){#darts-splash img{width:min(var(--splash-logo-width,420px),72vw);max-height:60vh}}
@media(prefers-reduced-motion:reduce){#darts-splash,#darts-splash img{transition:none;animation:none;opacity:1;transform:none}}


/* Responsive/accessibility refinements v1.3.0 */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nav-toggle:focus-visible,.darts-primary-menu a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.site-header .primary-navigation .menu-toggle,.site-header .primary-navigation .menu-toggle-label{display:none!important}@media(max-width:600px){.container{width:min(100% - 28px,1180px)}.logo{font-size:1.05rem}.blog-content{padding:18px}.section{padding:42px 0}.hero{padding:48px 0}.hero h1{font-size:clamp(2.15rem,12vw,3.5rem)}}


/* Mobile navigation v1.3.3 — righe uniformi e toggle integrato */
.darts-mobile-drawer,.darts-mobile-overlay{display:none}
@media(max-width:760px){
  /* Il menu desktop resta disponibile sopra i 760px; su mobile usiamo solo il drawer del tema. */
  .primary-navigation{display:none!important}
  .primary-navigation.open{display:none!important}

  .darts-mobile-overlay{display:block;position:fixed;inset:0;background:rgba(3,9,16,.58);z-index:998;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
  .darts-mobile-overlay.open{opacity:1;visibility:visible;pointer-events:auto}
  .darts-mobile-drawer{display:block;position:fixed;left:0;top:0;bottom:0;width:min(79vw,400px);background:#fff;color:#50565e;z-index:999;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-102%);visibility:hidden;transition:transform .25s ease,visibility .25s ease;box-shadow:14px 0 36px rgba(0,0,0,.26);padding:78px 0 18px}
  .darts-mobile-drawer.open{transform:translateX(0);visibility:visible}
  body.darts-menu-open{overflow:hidden}

  .darts-mobile-menu,.darts-mobile-submenu{list-style:none;margin:0;padding:0}
  .darts-mobile-row{display:flex;align-items:stretch;min-height:58px;border-bottom:1px solid #edf0f3}
  .darts-mobile-row>a{display:flex;align-items:center;flex:1;padding:9px 16px;color:#555c64;font-size:.98rem;line-height:1.25}
  .darts-mobile-item.is-current>.darts-mobile-row>a{font-weight:800;color:#159957;border-left:4px solid var(--accent);padding-left:12px}
  .darts-submenu-toggle{flex:0 0 48px;align-self:stretch;border:0;background:#fff;color:#626b74;cursor:pointer;font-size:1rem}
  .darts-submenu-toggle span{display:inline-block;transition:transform .2s ease}
  .darts-mobile-item.submenu-open>.darts-mobile-row .darts-submenu-toggle span{transform:rotate(180deg)}
  .darts-mobile-submenu{display:none;background:#f7f8fa}
  .darts-mobile-item.submenu-open>.darts-mobile-submenu{display:block}
  .darts-mobile-submenu .darts-mobile-row>a{padding-left:32px;font-size:.96rem}
  .darts-mobile-submenu .darts-mobile-submenu .darts-mobile-row>a{padding-left:46px}

  /* Evita che eventuali vecchi toggle inseriti dentro la navigazione del tema ricompaiano. */
  .site-header .mega-menu-toggle,
  .site-header .slicknav_menu,
  .site-header .responsive-menu-button,
  .site-header .menu-toggle,
  .site-header .menu-toggle-label{display:none!important}

  .site-header{z-index:1000}
  .nav-toggle{position:relative;z-index:1001}
}


/* v1.4.2: menu mobile indipendente dagli spostamenti causati da annunci/banner */
@media (max-width:900px){
 body.mobile-nav-open{overflow:hidden}
 body.mobile-nav-open .site-header{
   position:fixed!important;top:0!important;left:0!important;right:0!important;
   width:100%!important;z-index:2147483000!important
 }
 body.mobile-nav-open .mobile-navigation,
 body.mobile-nav-open .mobile-nav,
 body.mobile-nav-open .mobile-menu-panel,
 body.mobile-nav-open .site-mobile-menu{
   position:fixed!important;left:0!important;
   top:var(--figf-mobile-menu-top,92px)!important;
   width:min(79vw,656px)!important;max-width:100%!important;
   height:calc(100dvh - var(--figf-mobile-menu-top,92px))!important;
   max-height:calc(100dvh - var(--figf-mobile-menu-top,92px))!important;
   overflow-y:auto!important;overscroll-behavior:contain;
   -webkit-overflow-scrolling:touch;z-index:2147482999!important
 }
}


/* v1.4.2 — neutralizza residui grafici del vecchio Mega Menu sul desktop */
@media (min-width: 901px) {
  .site-header,
  .site-header .header-inner,
  .site-header .main-navigation,
  .site-header nav,
  .site-header ul,
  .site-header li,
  .site-header .menu,
  .site-header .menu-item,
  .site-header .mega-menu-wrap,
  .site-header .mega-menu,
  .site-header .mega-menu-item {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .site-header {
    background: #07192c !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
  }

  .site-header .main-navigation a,
  .site-header nav a,
  .site-header .menu a,
  .site-header .mega-menu a,
  .site-header .mega-menu-link {
    background: transparent !important;
    background-color: transparent !important;
    color: #f4f7fa !important;
    border: 0 !important;
  }

  .site-header .main-navigation a:hover,
  .site-header .main-navigation a:focus,
  .site-header nav a:hover,
  .site-header nav a:focus,
  .site-header .menu a:hover,
  .site-header .menu a:focus,
  .site-header .mega-menu a:hover,
  .site-header .mega-menu a:focus,
  .site-header .mega-menu-link:hover,
  .site-header .mega-menu-link:focus,
  .site-header .current-menu-item > a,
  .site-header .current-menu-ancestor > a {
    color: #8cc63f !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  /* Eventuali dropdown restano leggibili ma coerenti col tema */
  .site-header .sub-menu,
  .site-header .mega-sub-menu {
    background: #0b223b !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
  }

  .site-header .sub-menu a,
  .site-header .mega-sub-menu a {
    color: #f4f7fa !important;
    background: transparent !important;
  }

  .site-header .sub-menu a:hover,
  .site-header .mega-sub-menu a:hover {
    color: #8cc63f !important;
    background: rgba(255,255,255,.04) !important;
  }
}

/* Correzione contrasto titoli in pagine/plugin su fondo scuro */
.entry-content .figf-download-section h2,
.figf-download-section h2 {
  color: #f4f7fa !important;
}

/* v1.4.2 — menu desktop nativo: compatto e con sottomenu a tendina */
@media (min-width: 901px) {
  .header-inner{min-height:76px;gap:24px}
  .logo{flex:0 0 auto;max-width:190px;line-height:1.35}
  .primary-navigation{display:block;flex:1 1 auto;min-width:0}
  .darts-primary-menu{
    display:flex;justify-content:flex-end;align-items:center;gap:clamp(10px,1.25vw,20px);
    list-style:none;margin:0;padding:0
  }
  .darts-primary-menu > li{position:relative;flex:0 1 auto;width:auto!important}
  .darts-primary-menu > li > a{
    display:flex;align-items:center;min-height:76px;padding:0;
    color:#c7d3df!important;background:transparent!important;
    font-size:clamp(.78rem,.88vw,.94rem);font-weight:700;line-height:1.25;
    white-space:nowrap
  }
  .darts-primary-menu > li.menu-item-has-children > a::after{
    content:'▾';font-size:.7em;margin-left:6px;color:#8cc63f
  }
  .darts-primary-menu .sub-menu{
    display:block;visibility:hidden;opacity:0;pointer-events:none;
    position:absolute;top:calc(100% - 7px);left:0;z-index:5000;
    min-width:245px;max-width:330px;margin:0;padding:8px;
    list-style:none;background:#0b223b!important;border:1px solid rgba(255,255,255,.12)!important;
    border-radius:10px;box-shadow:0 14px 32px rgba(0,0,0,.34)!important;
    transform:translateY(7px);transition:opacity .15s ease,transform .15s ease,visibility .15s ease
  }
  .darts-primary-menu > li:last-child .sub-menu,
  .darts-primary-menu > li:nth-last-child(2) .sub-menu{left:auto;right:0}
  .darts-primary-menu li:hover > .sub-menu,
  .darts-primary-menu li:focus-within > .sub-menu{
    visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)
  }
  .darts-primary-menu .sub-menu li{display:block;width:100%!important;margin:0}
  .darts-primary-menu .sub-menu a{
    display:block!important;min-height:0!important;padding:10px 12px!important;
    color:#f4f7fa!important;background:transparent!important;border-radius:7px;
    font-size:.9rem;line-height:1.35;white-space:normal
  }
  .darts-primary-menu .sub-menu a:hover,
  .darts-primary-menu .sub-menu a:focus{background:rgba(255,255,255,.06)!important;color:#8cc63f!important}
}

@media (min-width:901px) and (max-width:1180px){
  .container{width:min(1240px,96%)}
  .header-inner{gap:16px}
  .logo{font-size:1.05rem;max-width:165px}
  .darts-primary-menu{gap:10px}
  .darts-primary-menu > li > a{font-size:.76rem}
}


/* =========================================================
   v1.4.2 — redesign desktop ispirato al nuovo mockup
   ========================================================= */
:root{
  --v140-blue:#1497ef;
  --v140-blue-soft:#5bbcff;
  --v140-header:#061523;
  --v140-panel:#0d2135;
  --v140-border:#203a53;
}

@media (min-width: 901px){
  .site-header{
    background:linear-gradient(180deg,#061421 0%,#071827 100%)!important;
    border-bottom:1px solid rgba(85,156,211,.24)!important;
    position:sticky;top:0;z-index:5000;
  }
  .site-header .container.header-inner{
    width:min(1560px,96%);
    min-height:92px;
    max-width:none;
    display:grid;
    grid-template-columns:230px minmax(0,1fr);
    align-items:center;
    gap:28px;
  }
  .site-header .logo{
    max-width:none;
    font-size:1.22rem;
    line-height:1.12;
    letter-spacing:.02em;
    color:#f7fbff!important;
    white-space:normal;
    padding:0;
  }
  .site-header .logo span{
    display:block;
    color:var(--v140-blue)!important;
    margin-top:6px;
    font-size:1.14rem;
    letter-spacing:.045em;
  }
  .site-header .primary-navigation{min-width:0;width:100%}
  .site-header .darts-primary-menu{
    width:100%;
    justify-content:space-between;
    gap:12px;
  }
  .site-header .darts-primary-menu>li{min-width:0}
  .site-header .darts-primary-menu>li>a{
    min-height:92px;
    padding:0 4px!important;
    font-size:.78rem!important;
    line-height:1.22;
    font-weight:750;
    letter-spacing:.01em;
    white-space:normal;
    text-align:center;
    justify-content:center;
    color:#f5f8fb!important;
    position:relative;
  }
  .site-header .darts-primary-menu>li>a:hover,
  .site-header .darts-primary-menu>li>a:focus,
  .site-header .darts-primary-menu>.current-menu-item>a,
  .site-header .darts-primary-menu>.current-menu-ancestor>a{
    color:var(--v140-blue-soft)!important;
  }
  .site-header .darts-primary-menu>li>a::before{
    content:'';position:absolute;left:4px;right:4px;bottom:0;height:2px;
    background:var(--v140-blue);transform:scaleX(0);transform-origin:center;
    transition:transform .18s ease;
  }
  .site-header .darts-primary-menu>li:hover>a::before,
  .site-header .darts-primary-menu>li:focus-within>a::before,
  .site-header .darts-primary-menu>.current-menu-item>a::before,
  .site-header .darts-primary-menu>.current-menu-ancestor>a::before{transform:scaleX(1)}
  .site-header .darts-primary-menu>li.menu-item-has-children>a::after{
    content:'⌄';font-size:.82em;margin-left:6px;color:var(--v140-blue-soft);transform:translateY(-1px)
  }
  .site-header .darts-primary-menu .sub-menu{
    top:calc(100% - 1px);
    min-width:260px;max-width:340px;
    padding:10px;
    background:linear-gradient(180deg,#0b1f33,#091a2b)!important;
    border:1px solid #264764!important;
    border-radius:0 0 14px 14px;
    box-shadow:0 18px 45px rgba(0,0,0,.42)!important;
  }
  .site-header .darts-primary-menu .sub-menu a{
    padding:11px 13px!important;
    border-radius:9px;
    font-size:.9rem!important;
    font-weight:650;
    color:#eef6fc!important;
  }
  .site-header .darts-primary-menu .sub-menu a::before{
    content:'›';display:inline-block;margin-right:9px;color:var(--v140-blue-soft);font-weight:900
  }
  .site-header .darts-primary-menu .sub-menu a:hover,
  .site-header .darts-primary-menu .sub-menu a:focus{
    background:rgba(20,151,239,.10)!important;
    color:#fff!important;
  }
}

/* Hero */
.hero-v140{
  padding:0;
  min-height:530px;
  overflow:hidden;
  background:
    radial-gradient(circle at 70% 45%,rgba(16,86,145,.42) 0,rgba(8,27,47,.2) 30%,rgba(5,16,29,0) 55%),
    linear-gradient(110deg,#06121f 0%,#081728 52%,#0b2138 100%);
  border-bottom:1px solid rgba(72,144,199,.18);
}
.hero-v140-inner{
  min-height:530px;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);
  align-items:center;
  gap:36px;
}
.hero-v140-copy{position:relative;z-index:2;padding:70px 0 76px}
.hero-kicker{
  display:flex;align-items:center;gap:16px;
  color:#a7b8c9;font-size:.84rem;letter-spacing:.22em;font-weight:650;
  margin-bottom:20px;
}
.hero-kicker span{width:64px;height:2px;background:var(--v140-blue);display:inline-block}
.hero-v140 h1{
  max-width:760px;margin:0 0 22px;
  font-size:clamp(3.35rem,5.1vw,5.7rem);
  line-height:.98;letter-spacing:-.035em;color:#f5f8fc;
}
.hero-v140 h1 strong{display:block;color:var(--v140-blue-soft);font-weight:900}
.hero-v140 p{margin:0 0 30px;max-width:720px;color:#b4c3d2;font-size:1.12rem}
.hero-cta{
  display:inline-flex;align-items:center;gap:12px;
  background:linear-gradient(135deg,#118fe3,#20a4f7);
  color:#fff!important;font-weight:800;padding:13px 20px;border-radius:10px;
  box-shadow:0 10px 28px rgba(20,151,239,.22);
  transition:transform .18s ease,filter .18s ease;
}
.hero-cta:hover{transform:translateY(-2px);filter:brightness(1.05)}
.hero-v140-art{
  align-self:stretch;
  min-height:530px;
  background-image:
    linear-gradient(90deg,#081728 0%,rgba(8,23,40,.82) 10%,rgba(8,23,40,.08) 43%,rgba(8,23,40,0) 100%),
    url('assets/images/hero-darts.jpg');
  background-repeat:no-repeat;
  background-position:center right;
  background-size:auto 100%,cover;
  filter:saturate(.92) contrast(1.03);
}

/* Prossimi appuntamenti */
.home-upcoming{padding:42px 0 48px;background:#071523;border-bottom:1px solid rgba(72,144,199,.13)}
.home-upcoming .container{width:min(1540px,92%)}
.home-upcoming .figf-upcoming-heading{margin-bottom:18px}
.home-upcoming .figf-upcoming-kicker{font-size:.78rem;letter-spacing:.18em;color:#92adc3!important}
.home-upcoming .figf-upcoming h2{font-size:2rem;letter-spacing:-.02em}
.home-upcoming .figf-upcoming-list{gap:20px}
.home-upcoming .figf-upcoming-item{
  background:linear-gradient(180deg,#0e2237,#0b1d30)!important;
  border:1px solid #27425c!important;
  border-radius:14px!important;
  padding:18px!important;
  min-height:116px;
  box-shadow:0 10px 30px rgba(0,0,0,.13);
}
.home-upcoming .figf-upcoming-date{
  flex:0 0 68px;width:68px;min-height:72px;border-radius:11px;
  background:#fff!important;color:#102033!important;
}
.home-upcoming .figf-upcoming-date strong{color:#102033!important}
.home-upcoming .figf-upcoming-date span{color:#102033!important}
.home-upcoming .figf-upcoming-body h3{font-size:1rem!important;text-transform:uppercase;letter-spacing:.01em}
.home-upcoming .figf-upcoming-meta,
.home-upcoming .figf-upcoming-note{color:#9eb2c6!important}
.home-upcoming .figf-upcoming-all{color:var(--v140-blue-soft)!important}

/* Blog */
.home-news{background:#08111f;padding-top:58px}
.home-news .blog-heading .muted{letter-spacing:.13em;font-size:.78rem}
.home-news .blog-heading h2{font-size:2.1rem}

/* Header responsive desktop: riduzione progressiva senza sovrapposizioni */
@media (min-width:901px) and (max-width:1380px){
  .site-header .container.header-inner{grid-template-columns:190px minmax(0,1fr);gap:16px;width:98%}
  .site-header .logo{font-size:1rem}
  .site-header .logo span{font-size:.96rem}
  .site-header .darts-primary-menu{gap:5px}
  .site-header .darts-primary-menu>li>a{font-size:.69rem!important;padding:0 2px!important}
}

/* Tablet/mobile: conserva il drawer già validato */
@media (max-width:900px){
  .site-header .container.header-inner{min-height:88px}
  .hero-v140{min-height:auto}
  .hero-v140-inner{display:block;min-height:auto;position:relative}
  .hero-v140-copy{padding:58px 0 62px;max-width:760px}
  .hero-v140 h1{font-size:clamp(2.7rem,8vw,4.5rem)}
  .hero-v140-art{
    position:absolute;inset:0 0 0 44%;z-index:0;min-height:100%;opacity:.27;
    background-size:cover;background-position:center right;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 38%);
    mask-image:linear-gradient(90deg,transparent,#000 38%);
  }
}
@media (max-width:760px){
  .hero-v140-copy{padding:48px 0 52px}
  .hero-kicker{font-size:.72rem;gap:11px;margin-bottom:16px}
  .hero-kicker span{width:42px}
  .hero-v140 h1{font-size:clamp(2.55rem,12vw,4rem);line-height:1.01}
  .hero-v140 p{font-size:1rem;max-width:92%}
  .hero-v140-art{inset:0 0 0 30%;opacity:.20}
  .hero-cta{padding:12px 17px}
  .home-upcoming{padding:34px 0 38px}
  .home-upcoming .container{width:min(100% - 28px,1180px)}
}


/* v1.4.2 — rifinitura tipografica smartphone */
@media (max-width: 600px) {
  /* Hero: circa 9% più compatta rispetto alla v1.4.0 */
  .hero h1,
  .home-hero h1,
  .hero-title,
  .front-hero h1 {
    font-size: clamp(2.55rem, 11.2vw, 3.35rem) !important;
    line-height: 1.04 !important;
  }

  /* Titolo calendario più equilibrato sui 360–430 px */
  .home-upcoming h2,
  .upcoming-events h2,
  .figf-upcoming-title,
  .figf-prossimi-title,
  .front-page .figf-upcoming h2 {
    font-size: clamp(2rem, 9.2vw, 2.65rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em;
  }
}

/* v1.4.2 — leggibilità articoli/pagine singole sul nuovo sfondo scuro */
.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content blockquote,
.single-post .entry-content td,
.single-post .entry-content th,
.single-post .post-content,
.single-post .post-content p,
.single .entry-content,
.single .entry-content p {
  color: #d7e0e8 !important;
}

.single-post .entry-title,
.single-post .entry-header .entry-title,
.single-post article h1,
.single-post article h2,
.single-post article h3,
.single .entry-title {
  color: #f4f7fa !important;
}

.single-post .entry-meta,
.single-post .entry-meta a,
.single-post .posted-on,
.single-post .byline,
.single-post time,
.single .entry-meta {
  color: #8795a6 !important;
}

.single-post .entry-content a,
.single-post .post-content a,
.single .entry-content a {
  color: #35aaf3 !important;
}

.single-post .entry-content a:hover,
.single-post .post-content a:hover,
.single .entry-content a:hover {
  color: #72c8ff !important;
}

/* v1.4.3 — rifiniture articolo e pagina Noi */
/* Spazio sopra i pulsanti social inseriti automaticamente in fondo agli articoli. */
.single-post .post-content .fb-share-button,
.single-post .post-content iframe[src*="facebook.com/plugins/share"],
.single-post .post-content .addtoany_share_save_container,
.single-post .post-content .sharedaddy,
.single-post .post-content .sd-sharing-enabled,
.single-post .post-content .heateor_sss_sharing_container {
  display: block;
  margin-top: 24px !important;
}

/* Pagina "Noi": stesso linguaggio grafico degli articoli. */
.page-noi-card {
  color: #d7e0e8;
  padding: clamp(24px, 3vw, 34px);
}
.page-noi-card h1,
.page-noi-card h2,
.page-noi-card h3,
.page-noi-card h4 {
  color: #f4f7fa;
}
.page-noi-card h1 {
  margin-top: 0;
  margin-bottom: 24px;
}
.page-noi-card p,
.page-noi-card li,
.page-noi-card blockquote,
.page-noi-card td,
.page-noi-card th {
  color: #d7e0e8;
}
.page-noi-card a {
  color: #35aaf3;
}
.page-noi-card a:hover {
  color: #72c8ff;
}
.page-noi-card > :last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .page-noi-card {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .single-post .post-content .fb-share-button,
  .single-post .post-content iframe[src*="facebook.com/plugins/share"],
  .single-post .post-content .addtoany_share_save_container,
  .single-post .post-content .sharedaddy,
  .single-post .post-content .sd-sharing-enabled,
  .single-post .post-content .heateor_sss_sharing_container {
    margin-top: 20px !important;
  }
}


/* v1.4.6 — maggiore distanza del pulsante social dal testo articolo */
.single-post .entry-content .fb-share-button,
.single-post .entry-content .facebook-share,
.single-post .entry-content .social-share,
.single-post .entry-content .sharedaddy,
.single-post .entry-content .sd-sharing-enabled,
.single-post .entry-content iframe[src*="facebook"],
.single-post article .fb-share-button,
.single-post article .facebook-share,
.single-post article .social-share,
.single-post article .sharedaddy,
.single-post article .sd-sharing-enabled {
    margin-top: 28px !important;
}

/* fallback per i vecchi articoli in cui il pulsante social è l'ultimo blocco del contenuto */
.single-post .entry-content > div:last-child,
.single-post .post-content > div:last-child {
    margin-top: 28px !important;
}


/* v1.4.6 — pagina YouTube Channel: riquadro coerente con la pagina "Noi" */
body.page-id-0 .entry-content {}

/* Selettori basati sullo slug/body class WordPress */
body.page-youtube-channel .site-main,
body.page-youtube-channel .content-area,
body.page-youtube-channel main,
body.page-id-0 .site-main {
}

/* Wrapper principale della pagina YouTube */
body.page-youtube-channel article,
body.page-youtube-channel .page,
body.page-youtube-channel .entry-content,
body.page-id-0 article {
}

/* Compatibilità con classi generate da WordPress per lo slug */
body.page-template-default.page .entry-content:has(.epyt-gallery),
body.page-template-default.page .entry-content:has(.epyt-gallery-all),
body.page-template-default.page .entry-content:has(.epyt-gallery-list) {
    background: #101f31;
    border: 1px solid #243a52;
    border-radius: 18px;
    padding: 34px 28px 30px;
    box-shadow: 0 12px 34px rgba(0,0,0,.12);
}

/* Titolo pagina dentro il blocco: più vicino allo stile "Noi" */
body.page-template-default.page .entry-content:has(.epyt-gallery) h1,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) h1,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) h1,
body.page-template-default.page .entry-content:has(.epyt-gallery) h2:first-child,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) h2:first-child,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) h2:first-child {
    color: #f4f7fa !important;
}

/* Player principale */
body.page-template-default.page .entry-content:has(.epyt-gallery) .epyt-gallery,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) .epyt-gallery-all,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) .epyt-gallery-list {
    margin-top: 18px;
}

/* Pulsante iscrizione: più integrato nel layout */
body.page-template-default.page .entry-content:has(.epyt-gallery) .epyt-gallery-subscribe,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) .epyt-gallery-subscribe,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) .epyt-gallery-subscribe {
    margin: 22px 0 26px !important;
    text-align: center;
}

/* Griglia miniature */
body.page-template-default.page .entry-content:has(.epyt-gallery) .epyt-gallery-list,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) .epyt-gallery-list,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) .epyt-gallery-list {
    gap: 18px 16px;
}

/* Miniature e titoli */
body.page-template-default.page .entry-content:has(.epyt-gallery) .epyt-gallery-thumb,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) .epyt-gallery-thumb,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) .epyt-gallery-thumb {
    border-radius: 10px;
    overflow: hidden;
}

body.page-template-default.page .entry-content:has(.epyt-gallery) .epyt-gallery-title,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) .epyt-gallery-title,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) .epyt-gallery-title {
    color: #f4f7fa !important;
    line-height: 1.3;
    margin-top: 8px;
}

/* Paginazione più coerente con il tema */
body.page-template-default.page .entry-content:has(.epyt-gallery) .epyt-pagination,
body.page-template-default.page .entry-content:has(.epyt-gallery-all) .epyt-pagination,
body.page-template-default.page .entry-content:has(.epyt-gallery-list) .epyt-pagination {
    margin-top: 26px !important;
    color: #aeb9c5;
}

/* Mobile */
@media (max-width: 700px) {
    body.page-template-default.page .entry-content:has(.epyt-gallery),
    body.page-template-default.page .entry-content:has(.epyt-gallery-all),
    body.page-template-default.page .entry-content:has(.epyt-gallery-list) {
        padding: 22px 16px 24px;
        border-radius: 14px;
    }

    body.page-template-default.page .entry-content:has(.epyt-gallery) .epyt-gallery-subscribe,
    body.page-template-default.page .entry-content:has(.epyt-gallery-all) .epyt-gallery-subscribe,
    body.page-template-default.page .entry-content:has(.epyt-gallery-list) .epyt-gallery-subscribe {
        margin: 18px 0 22px !important;
    }
}


/* v1.4.6 — YouTube Channel: aggancio robusto tramite body class page slug */
body.page-youtube-channel .site-main article,
body.page-youtube-channel main article,
body.page-youtube-channel article.page {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    background: #101f31;
    border: 1px solid #243a52;
    border-radius: 18px;
    padding: 30px 28px 32px;
    box-shadow: 0 12px 34px rgba(0,0,0,.12);
    overflow: hidden;
}

body.page-youtube-channel .entry-header,
body.page-youtube-channel .entry-content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.page-youtube-channel .entry-title {
    color: #f4f7fa !important;
    margin-top: 0;
    margin-bottom: 24px;
}

body.page-youtube-channel .entry-content iframe {
    max-width: 100%;
}

/* EmbedPlus */
body.page-youtube-channel .epyt-gallery,
body.page-youtube-channel .epyt-gallery-all,
body.page-youtube-channel [class*="epyt"] {
    max-width: 100%;
}

body.page-youtube-channel .epyt-gallery-subscribe,
body.page-youtube-channel [class*="subscribe"] {
    margin-top: 22px !important;
    margin-bottom: 26px !important;
}

body.page-youtube-channel .epyt-gallery-title {
    color: #f4f7fa !important;
}

@media (max-width: 700px) {
    body.page-youtube-channel .site-main article,
    body.page-youtube-channel main article,
    body.page-youtube-channel article.page {
        margin-left: 14px;
        margin-right: 14px;
        padding: 20px 14px 24px;
        border-radius: 14px;
    }
}
