/* ==========================================================
   EdictumX v35 -> CSS aggiuntivo per tema Astra
   Da incollare in: Aspetto > Personalizza > CSS aggiuntivo
   Focus: menu, header, pulsanti, WooCommerce, blocchi Gutenberg.
   Mantiene anche le classi .ex-* del vecchio tema EdictumX.
   ========================================================== */

:root{
  --ex-bg:#07080d;
  --ex-panel:#11131b;
  --ex-panel-2:#171922;
  --ex-text:#f5f5f7;
  --ex-muted:#b6b8c0;
  --ex-red:#ff1744;
  --ex-red-2:#b0002e;
  --ex-red-soft:rgba(255,23,68,.18);
  --ex-line:rgba(255,255,255,.08);
  --ex-radius:18px;
  --ex-radius-lg:30px;
  --ex-shadow-red:0 18px 42px rgba(255,23,68,.35),0 0 30px rgba(255,23,68,.18);
  --ex-shadow-card:0 25px 70px rgba(0,0,0,.35);
}

/* ----------------------------------------------------------
   Base elegante EdictumX
   ---------------------------------------------------------- */
body{
  background:
    radial-gradient(circle at top right,rgba(120,0,20,.35),transparent 35%),
    var(--ex-bg);
  color:var(--ex-text);
}

body,
button,
input,
select,
textarea{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

a{transition:color .2s ease,text-shadow .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease,border-color .2s ease;}

.entry-content a:not(.wp-block-button__link):not(.button):not(.ex-btn){
  color:#ff5a78;
}

.entry-content a:not(.wp-block-button__link):not(.button):not(.ex-btn):hover{
  color:#fff;
  text-shadow:0 0 18px rgba(255,23,68,.45);
}

/* ----------------------------------------------------------
   Astra Header / Menu principale
   ---------------------------------------------------------- */
.site-header,
.ast-primary-header-bar,
.main-header-bar{
  background:linear-gradient(180deg,rgba(16,18,26,.96),rgba(16,18,26,.84)) !important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,23,68,.25) !important;
  box-shadow:0 16px 48px rgba(0,0,0,.24);
}

.site-header{
  position:sticky;
  top:0;
  z-index:999;
}

.ast-container,
.site-header .ast-container{
  max-width:1180px;
}

.site-branding img,
.ast-site-identity img,
.custom-logo-link img{
  max-height:54px;
  width:auto;
}

.site-title a,
.site-title a:focus,
.site-title a:hover{
  color:#fff;
  font-weight:900;
  letter-spacing:-.03em;
  text-decoration:none;
}

.site-description{
  color:var(--ex-muted);
}

.main-header-menu,
.ast-builder-menu-1 .main-header-menu{
  gap:6px;
}

.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
  color:#f8f8fb !important;
  font-weight:800;
  letter-spacing:.01em;
  min-height:54px;
  padding:0 13px;
  border-radius:14px;
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link,
.ast-builder-menu-1 .menu-item:hover > .menu-link,
.ast-builder-menu-1 .current-menu-item > .menu-link,
.ast-builder-menu-1 .current-menu-ancestor > .menu-link{
  color:#fff !important;
  background:rgba(255,23,68,.10);
  text-shadow:0 0 18px rgba(255,23,68,.55);
}

/* Voce menu speciale: se vuoi un pulsante nel menu, aggiungi alla voce la classe CSS "menu-cta" */
.main-header-menu > .menu-item.menu-cta > .menu-link,
.ast-builder-menu-1 .menu-item.menu-cta > .menu-link{
  min-height:46px;
  margin-left:8px;
  padding:0 22px;
  color:#fff !important;
  border-radius:18px;
  background:linear-gradient(180deg,var(--ex-red),var(--ex-red-2));
  box-shadow:var(--ex-shadow-red);
}

.main-header-menu > .menu-item.menu-cta:hover > .menu-link,
.ast-builder-menu-1 .menu-item.menu-cta:hover > .menu-link{
  transform:translateY(-1px);
  filter:saturate(1.08) brightness(1.04);
}

/* Sottomenu Astra */
.main-header-menu .sub-menu,
.ast-builder-menu-1 .main-header-menu .sub-menu{
  background:linear-gradient(180deg,rgba(23,25,34,.98),rgba(13,14,20,.98));
  border:1px solid rgba(255,23,68,.20);
  border-radius:18px;
  padding:10px;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  overflow:visible;
}

.main-header-menu .sub-menu .menu-link,
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-link{
  color:#f8f8fb !important;
  font-weight:750;
  border-radius:12px;
  padding:12px 14px;
}

.main-header-menu .sub-menu .menu-item:hover > .menu-link,
.main-header-menu .sub-menu .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu .sub-menu .current-menu-item > .menu-link{
  background:rgba(255,23,68,.12);
  color:#fff !important;
  text-shadow:0 0 16px rgba(255,23,68,.45);
}

/* Icone header Astra: carrello, account, search */
.ast-header-account-wrap .ast-header-account-type-icon,
.ast-icon-shopping-cart,
.ast-icon-shopping-bag,
.ast-search-menu-icon .search-form{
  color:#fff;
}

.ast-menu-toggle,
.menu-toggle,
.ast-button-wrap .menu-toggle{
  color:#fff !important;
  border-radius:14px;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.12) !important;
}

/* ==========================================================
   MENU MOBILE ASTRA - FIX EDICTUMX
   ========================================================== */

@media (max-width: 921px) {

  .ast-mobile-popup-drawer .ast-mobile-popup-inner,
  .ast-mobile-header-wrap .ast-mobile-header-content,
  .ast-mobile-popup-content {
    background: #071024 !important;
    color: #fff !important;
  }

  .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .ast-mobile-popup-content,
  .ast-mobile-header-content,
  .ast-builder-menu-mobile,
  .ast-builder-menu-mobile .main-header-menu,
  .ast-builder-menu-mobile .main-header-menu .menu-item,
  .ast-builder-menu-mobile .main-header-menu .sub-menu,
  .main-header-menu,
  .main-header-menu .menu-item,
  .main-header-menu .sub-menu {
    overflow: visible !important;
  }

  .ast-mobile-popup-content .main-header-menu,
  .ast-mobile-header-content .main-header-menu {
    padding: 10px 14px 90px !important;
    background: #071024 !important;
  }

  .ast-mobile-popup-content .main-header-menu > .menu-item,
  .ast-mobile-header-content .main-header-menu > .menu-item {
    margin: 0 0 8px !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ast-mobile-popup-content .main-header-menu > .menu-item > .menu-link,
  .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link {
    min-height: 58px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 19px !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .ast-mobile-popup-content .main-header-menu > .menu-item:hover > .menu-link,
  .ast-mobile-popup-content .main-header-menu > .current-menu-item > .menu-link,
  .ast-mobile-popup-content .main-header-menu > .current-menu-ancestor > .menu-link,
  .ast-mobile-header-content .main-header-menu > .menu-item:hover > .menu-link,
  .ast-mobile-header-content .main-header-menu > .current-menu-item > .menu-link,
  .ast-mobile-header-content .main-header-menu > .current-menu-ancestor > .menu-link {
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  .ast-mobile-popup-content .main-header-menu > .menu-item.ast-submenu-expanded > .menu-link,
  .ast-mobile-header-content .main-header-menu > .menu-item.ast-submenu-expanded > .menu-link {
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.22) !important;
    text-shadow: none !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu,
  .ast-mobile-header-content .main-header-menu .sub-menu {
    position: static !important;
    width: auto !important;
    max-height: none !important;
    height: auto !important;
    margin: 4px 0 14px 18px !important;
    padding: 6px 0 8px 12px !important;
    border-left: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu .menu-item,
  .ast-mobile-header-content .main-header-menu .sub-menu .menu-item {
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu .menu-link,
  .ast-mobile-header-content .main-header-menu .sub-menu .menu-link {
    min-height: 44px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    white-space: normal !important;
  }

  .ast-mobile-popup-content .ast-menu-toggle,
  .ast-mobile-header-content .ast-menu-toggle {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }
}
/* ----------------------------------------------------------
   Pulsanti globali: Astra, Gutenberg, WooCommerce, form
   ---------------------------------------------------------- */
.ex-btn,
.edx-btn,
.ast-button,
.button,
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button,
.woocommerce button[name="apply_coupon"],
.woocommerce button[name="update_cart"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:0 28px;
  border:0;
  border-radius:18px !important;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:900;
  letter-spacing:.01em;
  background:linear-gradient(180deg,var(--ex-red),var(--ex-red-2)) !important;
  box-shadow:var(--ex-shadow-red);
  line-height:1.1;
  cursor:pointer;
}

.ex-btn:hover,
.edx-btn:hover,
.ast-button:hover,
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .checkout-button:hover{
  color:#fff !important;
  transform:translateY(-1px);
  filter:saturate(1.08) brightness(1.05);
  box-shadow:0 22px 54px rgba(255,23,68,.42),0 0 38px rgba(255,23,68,.24);
}

.ex-btn:active,
.edx-btn:active,
.ast-button:active,
.button:active,
button:active,
.wp-block-button__link:active,
.wp-element-button:active{
  transform:translateY(0);
}

/* Variante manuale: pulsante secondario */
.ex-btn-ghost,
.edx-btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline{
  background:rgba(255,255,255,.04) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:none;
}

.ex-btn-ghost:hover,
.edx-btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover{
  background:rgba(255,23,68,.12) !important;
  border-color:rgba(255,23,68,.35) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.25),0 0 26px rgba(255,23,68,.16);
}

/* Variante manuale oro */
.edx-btn-gold,
.ex-btn-gold{
  background:linear-gradient(180deg,#ffd37a,#b77a19) !important;
  color:#170d02 !important;
  box-shadow:0 18px 42px rgba(255,190,76,.25),0 0 28px rgba(255,190,76,.15) !important;
}

/* Evita che link/pulsanti piccoli nel menu e nelle tabelle diventino enormi */
.main-header-menu .menu-link,
.woocommerce table.shop_table a,
.woocommerce table.shop_table button,
.woocommerce table.shop_table .button{
  min-height:initial;
}

/* ----------------------------------------------------------
   Titoli e contenuti
   ---------------------------------------------------------- */
.entry-title,
.page-title,
.ast-single-post .entry-title,
.woocommerce-products-header__title,
.ex-page-title{
  color:#fff;
  font-size:clamp(40px,6vw,78px);
  line-height:.98;
  margin-bottom:18px;
  font-weight:1000;
  letter-spacing:-.05em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.ex-hero h1,
.ex-card h2,
.ex-product-copy h3{
  color:#fff;
  font-weight:1000;
  letter-spacing:-.04em;
}

.entry-content h1 span,
.entry-content h2 span,
.ex-hero h1 span{
  color:#ff234f;
  text-shadow:0 0 30px rgba(255,23,68,.25);
}

.ex-kicker,
.edx-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border:1px solid rgba(255,23,68,.35);
  border-radius:999px;
  color:#ff8ca4;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
}

.ex-lead,
.edx-lead{
  color:#fff;
  font-size:clamp(24px,3vw,42px);
  font-weight:900;
  margin:0 0 14px;
  line-height:1.06;
}

.ex-page-subtitle,
.edx-muted,
.entry-content .edx-muted{
  color:var(--ex-muted);
}

/* ----------------------------------------------------------
   Card, sezioni e blocchi riutilizzabili
   ---------------------------------------------------------- */
.ex-container,
.edx-container{
  width:min(1180px,calc(100% - 32px));
  margin-inline:auto;
}

.ex-hero,
.ex-section,
.edx-section{
  padding:72px 0;
}

.ex-hero-grid,
.edx-hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:36px;
  align-items:center;
}

.ex-card,
.edx-card,
.wp-block-group.edx-card{
  background:linear-gradient(180deg,rgba(23,25,34,.9),rgba(13,14,20,.94));
  border:1px solid var(--ex-line);
  border-radius:30px;
  padding:34px;
  box-shadow:var(--ex-shadow-card);
}

.ex-actions,
.edx-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:22px;
}

.ex-visual,
.edx-visual{
  min-height:360px;
  border-radius:32px;
  background:linear-gradient(135deg,rgba(255,23,68,.18),rgba(255,255,255,.03));
  border:1px solid var(--ex-line);
  box-shadow:0 28px 80px rgba(0,0,0,.45);
}

/* Card prodotto del vecchio tema, utile se hai incollato HTML con classi ex-* */
.ex-product-card,
.edx-product-card{
  display:grid;
  grid-template-columns:minmax(220px,340px) 1fr;
  gap:28px;
  align-items:center;
  margin-top:20px;
}

.ex-product-image img,
.edx-product-image img{
  display:block;
  width:100%;
  height:auto;
  border-radius:24px;
  background:#fff;
}

.ex-product-copy h3,
.edx-product-copy h3{
  font-size:38px;
  line-height:1.05;
  margin:10px 0;
}

.ex-price,
.edx-price{
  font-size:34px;
  font-weight:1000;
  color:#ff5a78;
  margin:14px 0;
}

.ex-demo-grid,
.ex-reseller-grid,
.edx-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:22px;
}

.ex-demo-card,
.ex-reseller-card,
.edx-mini-card{
  padding:26px;
  border-radius:24px;
  border:1px solid var(--ex-line);
  background:rgba(255,255,255,.03);
}

.ex-demo-card strong,
.ex-reseller-card strong,
.edx-mini-card strong{
  display:block;
  font-size:34px;
  margin:10px 0 8px;
  color:#fff;
}

/* ----------------------------------------------------------
   WooCommerce: shop, prodotto, carrello, checkout
   ---------------------------------------------------------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce div.product,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{
  background:linear-gradient(180deg,rgba(23,25,34,.86),rgba(13,14,20,.94));
  border:1px solid var(--ex-line);
  border-radius:28px;
  box-shadow:var(--ex-shadow-card);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  padding:18px;
  overflow:hidden;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover{
  border-color:rgba(255,23,68,.28);
  transform:translateY(-2px);
  box-shadow:0 28px 80px rgba(0,0,0,.45),0 0 30px rgba(255,23,68,.12);
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.woocommerce div.product div.images img{
  border-radius:22px;
  background:#fff;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.woocommerce-account h2,
.woocommerce-checkout h3{
  color:#fff;
  font-weight:1000;
  letter-spacing:-.035em;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color:#ff5a78 !important;
  font-weight:1000;
  font-size:1.25em;
}

.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select{
  background:rgba(255,255,255,.05) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:14px !important;
  min-height:46px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
input:focus,
textarea:focus,
select:focus{
  border-color:rgba(255,23,68,.52) !important;
  box-shadow:0 0 0 4px rgba(255,23,68,.12) !important;
  outline:none !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  background:linear-gradient(180deg,rgba(23,25,34,.94),rgba(13,14,20,.96));
  color:#fff;
  border-top-color:var(--ex-red);
  border-radius:18px;
  box-shadow:0 16px 48px rgba(0,0,0,.28);
}

.woocommerce table.shop_table{
  background:rgba(255,255,255,.03);
  border:1px solid var(--ex-line);
  border-radius:22px;
  overflow:hidden;
  color:#fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td{
  border-color:rgba(255,255,255,.08);
}

.woocommerce table.shop_table a{
  color:#ff5a78;
  font-weight:800;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a{
  color:var(--ex-muted);
}

.woocommerce span.onsale{
  background:linear-gradient(180deg,var(--ex-red),var(--ex-red-2));
  color:#fff;
  box-shadow:0 12px 30px rgba(255,23,68,.32);
}

/* ----------------------------------------------------------
   Footer Astra
   ---------------------------------------------------------- */
.site-footer,
.ast-footer-copyright,
.ast-builder-footer-grid-columns,
.site-primary-footer-wrap,
.site-below-footer-wrap{
  background:linear-gradient(180deg,transparent,rgba(255,23,68,.08)),#07080d !important;
  color:var(--ex-muted);
  border-top:1px solid rgba(255,23,68,.18);
}

.site-footer a{
  color:#fff;
  font-weight:750;
}

.site-footer a:hover{
  color:#ff8ca4;
  text-shadow:0 0 18px rgba(255,23,68,.45);
}

/* ----------------------------------------------------------
   Classi originali EdictumX v35 conservate
   ---------------------------------------------------------- */
.ex-header{position:sticky;top:0;z-index:50;background:linear-gradient(180deg,rgba(16,18,26,.96),rgba(16,18,26,.84));backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,23,68,.25)}
.ex-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 0}
.ex-brand img{display:block;max-height:54px;width:auto}
.ex-brand-text{text-decoration:none;font-weight:900;font-size:28px}
.ex-menu-list{list-style:none;display:flex;gap:28px;margin:0;padding:0}
.ex-menu-list li{list-style:none}
.ex-menu-list a{text-decoration:none;font-weight:800;color:#f8f8fb}
.ex-menu-list a:hover{text-shadow:0 0 18px rgba(255,23,68,.45)}
.ex-site-main{min-height:60vh}
.ex-footer{border-top:1px solid rgba(255,23,68,.18);padding:32px 0 40px;background:linear-gradient(180deg,transparent,rgba(255,23,68,.08))}
.ex-footer-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px;border:1px solid var(--ex-line);border-radius:26px;background:linear-gradient(90deg,rgba(90,0,20,.55),rgba(255,255,255,.03))}
.ex-footer-top h3{margin:8px 0 0;font-size:clamp(28px,4vw,52px);line-height:1}
.ex-footer-bottom{margin-top:22px;color:var(--ex-muted);text-align:center}
.entry-content img{max-width:100%;height:auto}
.screen-reader-text{position:absolute;left:-9999px}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width:921px){
  .site-header,
  .ast-primary-header-bar,
  .main-header-bar{
    position:sticky;
    top:0;
  }

  .main-header-menu > .menu-item.menu-cta > .menu-link,
  .ast-builder-menu-1 .menu-item.menu-cta > .menu-link{
    margin-left:0;
    margin-top:8px;
  }
}

@media (max-width:900px){
  .ex-hero-grid,
  .edx-hero-grid,
  .ex-product-card,
  .edx-product-card,
  .ex-demo-grid,
  .ex-reseller-grid,
  .edx-grid-2{
    grid-template-columns:1fr;
  }

  .ex-menu-list{
    gap:16px;
    flex-wrap:wrap;
  }

  .ex-nav{
    align-items:flex-start;
    flex-direction:column;
  }

  .ex-brand img,
  .site-branding img,
  .ast-site-identity img,
  .custom-logo-link img{
    max-height:44px;
  }

  .entry-title,
  .page-title,
  .ast-single-post .entry-title,
  .woocommerce-products-header__title,
  .ex-page-title{
    font-size:clamp(36px,10vw,58px);
  }
}

@media (max-width:544px){
  .ex-card,
  .edx-card,
  .wp-block-group.edx-card{
    padding:24px;
    border-radius:24px;
  }

  .ex-btn,
  .edx-btn,
  .ast-button,
  .button,
  button,
  input[type="button"],
  input[type="submit"],
  .wp-block-button__link,
  .wp-element-button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce .single_add_to_cart_button,
  .woocommerce .checkout-button{
    width:100%;
    min-height:54px;
  }
}
.edx-home-section--light{
  background:#f6f1f3;
  color:#11131a;
}
.edx-home-section--light p,
.edx-home-section--light .edx-lead,
.edx-home-section--light .edx-list li{
  color:#3a3d46;
}
.edx-home-section--light h2,
.edx-home-section--light h3{
  color:#11131a;
}
.edx-home-section--light .edx-feature-card,
.edx-home-section--light .edx-stat{
  background:#ffffff;
  border:1px solid rgba(17,19,26,.08);
  box-shadow:0 16px 40px rgba(0,0,0,.08);
}
/* EdictumX - Area Rivenditori */

.edx-reseller-public,
.edx-reseller-area {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 18px;
  color: #f5f5f5;
}

.edx-hero-reseller {
  position: relative;
  overflow: hidden;
  padding: 54px 42px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(214, 34, 34, 0.34), transparent 35%),
    linear-gradient(135deg, #13090b 0%, #241014 45%, #090909 100%);
  box-shadow: 0 22px 55px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.edx-hero-reseller h1 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  margin: 8px 0 20px;
  color: #ffffff;
  letter-spacing: -1.5px;
}

.edx-hero-reseller p {
  max-width: 820px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  line-height: 1.65;
}

.edx-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffdddd;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.edx-section-card {
  background: linear-gradient(180deg, #191919 0%, #101010 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.edx-section-card h2 {
  color: #ffffff;
  font-size: 30px;
  margin: 0 0 14px;
}

.edx-section-card p {
  color: rgba(255,255,255,0.76);
  line-height: 1.65;
}

.edx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.edx-step {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 22px;
}

.edx-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #b20f1b;
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}

.edx-step h3 {
  color: #ffffff;
  margin: 0 0 8px;
  font-size: 19px;
}

.edx-step p {
  margin: 0;
  font-size: 15px;
}

.edx-two-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.edx-login-card,
.edx-login-ok,
.edx-login-denied {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 22px;
  color: rgba(255,255,255,0.82);
}

.edx-login-card label {
  display: block;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 6px;
}

.edx-login-card input[type="text"],
.edx-login-card input[type="password"] {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f0f0f;
  color: #ffffff;
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 14px;
}

.edx-login-card input[type="submit"],
.edx-btn,
.edx-cf7-grid input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.edx-login-card input[type="submit"],
.edx-btn-primary,
.edx-cf7-grid input[type="submit"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #e11d2e 0%, #8f0610 100%);
  box-shadow: 0 0 24px rgba(225, 29, 46, 0.38);
}

.edx-btn-secondary {
  color: #ffffff !important;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
}

.edx-login-card input[type="submit"]:hover,
.edx-btn:hover,
.edx-cf7-grid input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(225, 29, 46, 0.55);
}

.edx-small-note {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-top: 18px;
}

.edx-cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.edx-cf7-grid label {
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.edx-cf7-grid input,
.edx-cf7-grid textarea,
.edx-cf7-grid select {
  width: 100%;
  margin-top: 7px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0d0d0d;
  color: #ffffff;
  padding: 13px 14px;
}

.edx-cf7-grid textarea {
  min-height: 135px;
}

.edx-full {
  grid-column: 1 / -1;
}

.edx-privacy {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.edx-private-actions {
  margin-top: 24px;
}

.edx-reseller-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.edx-reseller-rules div {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
}

.edx-reseller-rules strong {
  display: block;
  color: #ffffff;
  margin-bottom: 7px;
  font-size: 17px;
}

.edx-reseller-rules span {
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
}

.edx-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.edx-package {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(184, 15, 27, 0.24), transparent 36%),
    linear-gradient(180deg, #1b1b1b 0%, #0e0e0e 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 20px 42px rgba(0,0,0,0.28);
}

.edx-package-featured {
  border-color: rgba(225, 29, 46, 0.65);
  box-shadow: 0 0 42px rgba(225, 29, 46, 0.22);
  transform: translateY(-8px);
}

.edx-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #e11d2e;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.edx-package h2 {
  color: #ffffff;
  font-size: 34px;
  margin: 0;
}

.edx-package-top p {
  color: rgba(255,255,255,0.65);
  margin: 6px 0 22px;
}

.edx-price {
  color: #ffffff;
  font-size: 46px;
  font-weight: 950;
  letter-spacing: -1px;
}

.edx-price-note {
  color: #ffb7bd;
  font-weight: 800;
  margin-bottom: 22px;
}

.edx-package ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.edx-package li {
  color: rgba(255,255,255,0.76);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.edx-package li:before {
  content: "\2713";
  color: #ff3b4d;
  font-weight: 900;
  margin-right: 8px;
}

.edx-final-box {
  text-align: center;
}

@media (max-width: 980px) {
  .edx-steps,
  .edx-packages,
  .edx-reseller-rules,
  .edx-two-columns {
    grid-template-columns: 1fr;
  }

  .edx-package-featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .edx-hero-reseller,
  .edx-section-card,
  .edx-package {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .edx-cf7-grid {
    grid-template-columns: 1fr;
  }
}
/* Nasconde icona account Astra nell'header */
.ast-header-account,
.ast-header-account-wrap,
.ast-builder-layout-element.ast-header-account,
.ast-header-account-link,
.ast-header-account-type-icon {
  display: none !important;
}
/* Nasconde badge Google reCAPTCHA */
.grecaptcha-badge {
  visibility: hidden !important;
}
/* ----------------------------------------------------------
   Cookie banner - pulsante Preferenze poco invasivo
   ---------------------------------------------------------- */

#edx-cookie-manage {
  position: fixed !important;
  left: 14px !important;
  bottom: 14px !important;
  z-index: 999998 !important;
  width: auto !important;
  min-height: auto !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  opacity: .25 !important;
  transform: scale(.85) !important;
  box-shadow: none !important;
}

#edx-cookie-manage:hover {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Su smartphone il pulsante Preferenze cookie viene nascosto */
@media (max-width: 768px) {
  #edx-cookie-manage {
    display: none !important;
  }
}
/* ==========================================================
   CHECKOUT CARTA / STRIPE - FIX DEFINITIVO TEMA SCURO
   Sostituisce i vecchi blocchi Stripe.
   Obiettivo: nessun testo chiaro su sfondo chiaro.
   ========================================================== */

/* Area metodi di pagamento */
.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods li {
  background: transparent !important;
  color: #f5f5f7 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom-color: rgba(255,255,255,.12) !important;
}

/* Label principali: Carta / Bonifico */
.woocommerce-checkout #payment ul.payment_methods li > label,
.woocommerce-checkout #payment ul.payment_methods li label[for^="payment_method_"] {
  color: #f5f5f7 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  opacity: 1 !important;
}

/* Pallini radio */
.woocommerce-checkout #payment input[type="radio"] {
  accent-color: #2d9cff !important;
}

/* Box aperto del pagamento carta */
.woocommerce-checkout #payment div.payment_box,
.woocommerce-checkout #payment .payment_box.payment_method_stripe,
.woocommerce-checkout #payment .payment_box.payment_method_woocommerce_payments,
.woocommerce-checkout #payment .payment_box.payment_method_woocommerce_payments_cc {
  background: #101827 !important;
  color: #f5f5f7 !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.30) !important;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #101827 !important;
}

/* Testi nel box carta: non usare più un bianco generico su tutto il form */
.woocommerce-checkout #payment div.payment_box p,
.woocommerce-checkout #payment div.payment_box .form-row,
.woocommerce-checkout #payment div.payment_box .woocommerce-SavedPaymentMethods-saveNew,
.woocommerce-checkout #payment div.payment_box .woocommerce-SavedPaymentMethods-saveNew label {
  color: #f5f5f7 !important;
  opacity: 1 !important;
}

.woocommerce-checkout #payment div.payment_box a {
  color: #ff5a78 !important;
  font-weight: 700 !important;
}

/* Contenitore campi carta: resta scuro, così anche i testi Stripe chiari diventano leggibili */
.woocommerce-checkout #payment .wc-credit-card-form,
.woocommerce-checkout #payment fieldset#wc-stripe-cc-form,
.woocommerce-checkout #payment fieldset.woocommerce-SavedPaymentMethods,
.woocommerce-checkout #payment .woocommerce-SavedPaymentMethods,
.woocommerce-checkout #payment .wc-stripe_cc-container,
.woocommerce-checkout #payment .wc-stripe-card-group,
.woocommerce-checkout #payment .wc-payment-form {
  background: #0b1220 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

/* Etichette dentro il form carta */
.woocommerce-checkout #payment .wc-credit-card-form label,
.woocommerce-checkout #payment fieldset#wc-stripe-cc-form label,
.woocommerce-checkout #payment .wc-payment-form label,
.woocommerce-checkout #payment .payment_box label,
.woocommerce-checkout label[for="stripe-card-element"],
.woocommerce-checkout label[for="stripe-exp-element"],
.woocommerce-checkout label[for="stripe-cvc-element"],
.woocommerce-checkout label[for="wc-stripe-card-element"],
.woocommerce-checkout label[for="wc-stripe-exp-element"],
.woocommerce-checkout label[for="wc-stripe-cvc-element"] {
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Campi Stripe / WooPayments */
.woocommerce-checkout .StripeElement,
.woocommerce-checkout .wc-stripe-elements-field,
.woocommerce-checkout .wc-stripe-card-element,
.woocommerce-checkout .wc-stripe-exp-element,
.woocommerce-checkout .wc-stripe-cvc-element,
.woocommerce-checkout #stripe-card-element,
.woocommerce-checkout #stripe-exp-element,
.woocommerce-checkout #stripe-cvc-element,
.woocommerce-checkout #wc-stripe-card-element,
.woocommerce-checkout #wc-stripe-exp-element,
.woocommerce-checkout #wc-stripe-cvc-element,
.woocommerce-checkout .components-form-token-field__input-container {
  background: #182235 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  min-height: 52px !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Placeholder per eventuali input non iframe */
.woocommerce-checkout #payment .payment_box input,
.woocommerce-checkout #payment .payment_box select,
.woocommerce-checkout #payment .payment_box textarea {
  background: #182235 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.28) !important;
}

.woocommerce-checkout #payment .payment_box input::placeholder,
.woocommerce-checkout #payment .payment_box textarea::placeholder {
  color: rgba(255,255,255,.72) !important;
  opacity: 1 !important;
}

/* Focus */
.woocommerce-checkout .StripeElement--focus,
.woocommerce-checkout .wc-stripe-elements-field.focused,
.woocommerce-checkout .wc-stripe-elements-field:focus,
.woocommerce-checkout #payment .payment_box input:focus {
  border-color: #ff1744 !important;
  box-shadow: 0 0 0 3px rgba(255,23,68,.24) !important;
  outline: none !important;
}

/* Icone carte */
.woocommerce-checkout #payment .payment_method_stripe img,
.woocommerce-checkout #payment .payment_method_woocommerce_payments img,
.woocommerce-checkout #payment .wc-stripe-card-icons img {
  background: #ffffff !important;
  border-radius: 5px !important;
  padding: 3px 6px !important;
  opacity: 1 !important;
}

/* Checkbox salva carta */
.woocommerce-checkout #payment .woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: #ff1744 !important;
  margin-right: 10px !important;
}

/* Testo privacy sotto i metodi di pagamento */
.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
  color: #f5f5f7 !important;
}

/* Messaggi errore Stripe */
.woocommerce-checkout #payment .stripe-source-errors,
.woocommerce-checkout #payment .woocommerce-error,
.woocommerce-checkout #payment .wc-stripe-error {
  color: #ffffff !important;
  background: rgba(255,23,68,.16) !important;
  border: 1px solid rgba(255,23,68,.36) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

/* ==========================================================
   PAGINA DOWNLOAD EDICTUMX
   Namespace isolato: #edxd-page / .edxd-*
   Deve restare alla fine del CSS per prevalere sulle regole
   generali soltanto dentro la pagina Download.
   ========================================================== */
#edxd-page {
  --edxd-bg:var(--ex-bg,#07080d);
  --edxd-panel:var(--ex-panel,#11131b);
  --edxd-panel2:var(--ex-panel-2,#171922);
  --edxd-text:var(--ex-text,#f5f5f7);
  --edxd-muted:var(--ex-muted,#b6b8c0);
  --edxd-red:var(--ex-red,#ff1744);
  --edxd-red2:var(--ex-red-2,#b0002e);
  --edxd-line:var(--ex-line,rgba(255,255,255,.08));
  color:var(--edxd-text);
  background:
    radial-gradient(circle at 13% 4%,rgba(255,37,63,.13),transparent 27rem),
    radial-gradient(circle at 90% 35%,rgba(93,63,211,.10),transparent 31rem),
    var(--edxd-bg);
  overflow:hidden;
}

#edxd-page,
#edxd-page * {
  box-sizing:border-box;
}

#edxd-page img {
  display:block;
  max-width:100%;
  height:auto;
}

#edxd-page a {
  color:inherit;
}

#edxd-page .edxd-wrap {
  width:min(1180px,calc(100% - 34px));
  margin-inline:auto;
}

#edxd-page .edxd-section {
  padding:82px 0;
}

#edxd-page .edxd-section-compact {
  padding-top:22px;
}

#edxd-page h1,
#edxd-page h2,
#edxd-page h3,
#edxd-page p {
  margin-top:0;
}

#edxd-page h1 {
  max-width:820px;
  margin:18px 0 20px;
  color:#fff;
  font-size:clamp(42px,6vw,82px);
  line-height:.98;
  letter-spacing:-.05em;
}

#edxd-page h2 {
  margin:18px 0;
  color:#fff;
  font-size:clamp(31px,4vw,54px);
  line-height:1.05;
  letter-spacing:-.04em;
}

#edxd-page h3 {
  margin-bottom:10px;
  color:#fff;
  font-size:23px;
  line-height:1.18;
}

#edxd-page h1 span,
#edxd-page h2 span {
  color:var(--edxd-red);
}

#edxd-page p {
  color:var(--edxd-muted);
  font-size:17px;
  line-height:1.7;
}

#edxd-page .edxd-lead {
  max-width:790px;
}

#edxd-page .edxd-eyebrow {
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 13px;
  border:1px solid var(--edxd-line);
  border-radius:999px;
  color:#ffd6dc;
  background:rgba(255,255,255,.04);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

#edxd-page .edxd-eyebrow::before {
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--edxd-red);
  box-shadow:0 0 18px var(--edxd-red);
}

#edxd-page .edxd-hero {
  padding:42px 0 68px;
}

#edxd-page .edxd-hero-card {
  position:relative;
  min-height:570px;
  overflow:hidden;
  border:1px solid var(--edxd-line);
  border-radius:30px;
  background:#080b12;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
}

#edxd-page .edxd-hero-img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

#edxd-page .edxd-hero-overlay {
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(3,7,15,.95) 0%,rgba(3,7,15,.74) 42%,rgba(3,7,15,.08) 75%);
}

#edxd-page .edxd-hero-content {
  position:relative;
  z-index:2;
  width:min(660px,94%);
  padding:clamp(35px,6vw,76px);
}

#edxd-page .edxd-hero-content p {
  max-width:620px;
  color:#d9dee8;
  font-size:18px;
}

#edxd-page .edxd-btns {
  display:flex;
  flex-wrap:wrap;
  gap:13px;
  margin-top:27px;
}

#edxd-page .edxd-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:13px 21px;
  border:1px solid var(--edxd-line);
  border-radius:14px;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:800;
  transition:transform .22s ease,filter .22s ease;
}

#edxd-page .edxd-btn:hover {
  transform:translateY(-3px);
  filter:brightness(1.08);
}

#edxd-page .edxd-btn-primary {
  border-color:transparent;
  background:linear-gradient(135deg,var(--edxd-red),var(--edxd-red2));
  box-shadow:0 14px 30px rgba(255,37,63,.24);
}

#edxd-page .edxd-btn-secondary {
  background:rgba(255,255,255,.055);
}

#edxd-page .edxd-trust {
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  margin:28px 0 0;
  padding:0;
  color:#edf0f5;
  list-style:none;
  font-size:14px;
  font-weight:700;
}

#edxd-page .edxd-trust li::before {
  content:"\2713";
  margin-right:8px;
  color:#58dc91;
}

#edxd-page .edxd-intro-grid {
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:30px;
  align-items:center;
}

#edxd-page .edxd-note {
  padding:25px;
  border:1px solid rgba(255,190,71,.32);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(255,190,71,.11),rgba(255,255,255,.025));
}

#edxd-page .edxd-note strong {
  display:block;
  margin-bottom:8px;
  color:#ffd38a;
  font-size:19px;
}

#edxd-page .edxd-note p {
  margin:0;
}

#edxd-page .edxd-platform-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:38px;
}

#edxd-page .edxd-platform {
  position:relative;
  min-height:265px;
  padding:27px 27px 68px;
  border:1px solid var(--edxd-line);
  border-radius:24px;
  background:linear-gradient(150deg,var(--edxd-panel2),var(--edxd-panel));
  box-shadow:0 16px 40px rgba(0,0,0,.20);
  transition:transform .24s ease,border-color .24s ease;
}

#edxd-page .edxd-platform:hover {
  transform:translateY(-7px);
  border-color:rgba(255,37,63,.55);
}

#edxd-page .edxd-platform-icon {
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  margin-bottom:21px;
  border:1px solid var(--edxd-line);
  border-radius:18px;
  background:rgba(255,255,255,.07);
  color:#fff;
  font-size:31px;
}

#edxd-page .edxd-chip {
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(83,217,140,.11);
  color:#8cefb7;
  font-size:12px;
  font-weight:800;
}

#edxd-page .edxd-platform > a {
  position:absolute;
  right:27px;
  bottom:25px;
  left:27px;
  color:#fff !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:850;
}

#edxd-page .edxd-download-zone {
  border-top:1px solid var(--edxd-line);
  border-bottom:1px solid var(--edxd-line);
  background:linear-gradient(180deg,rgba(255,255,255,.026),transparent);
}

#edxd-page .edxd-form-shell {
  margin:22px 0;
  padding:26px;
  border:1px solid var(--edxd-line);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.052),rgba(255,255,255,.018));
}

#edxd-page .edxd-form-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--edxd-line);
}

#edxd-page .edxd-form-head h3,
#edxd-page .edxd-form-head p {
  margin-bottom:0;
}

#edxd-page .edxd-form-placeholder {
  display:grid;
  place-items:center;
  min-height:140px;
  padding:22px;
  border:2px dashed rgba(255,255,255,.2);
  border-radius:17px;
  background:rgba(0,0,0,.13);
  color:#e7eaf0;
  text-align:center;
}

#edxd-page .edxd-form-placeholder small {
  display:block;
  margin-top:8px;
  color:#ff9dad;
}

#edxd-page .edxd-demo-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:32px;
}

#edxd-page .edxd-demo-card {
  padding:24px;
  border:1px solid var(--edxd-line);
  border-radius:21px;
  background:var(--edxd-panel);
}

#edxd-page .edxd-number {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:17px;
  border-radius:12px;
  background:rgba(255,37,63,.14);
  color:#ff7385;
  font-weight:900;
}

#edxd-page details {
  margin-bottom:12px;
  overflow:hidden;
  border:1px solid var(--edxd-line);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}

#edxd-page summary {
  padding:19px 21px;
  color:#fff;
  cursor:pointer;
  font-size:17px;
  font-weight:850;
  list-style:none;
}

#edxd-page summary::-webkit-details-marker {
  display:none;
}

#edxd-page summary::after {
  content:"+";
  float:right;
  color:var(--edxd-red);
  font-size:23px;
  line-height:.8;
}

#edxd-page details[open] summary::after {
  content:"−";
}

#edxd-page .edxd-details-content {
  padding:0 21px 20px;
  color:var(--edxd-muted);
  line-height:1.7;
}

#edxd-page .edxd-specs {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

#edxd-page .edxd-specs th,
#edxd-page .edxd-specs td {
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.09);
  text-align:left;
  vertical-align:top;
}

#edxd-page .edxd-specs th {
  color:#fff;
}

#edxd-page .edxd-specs td {
  color:var(--edxd-muted);
}

#edxd-page .edxd-cta {
  display:grid;
  grid-template-columns:1fr auto;
  gap:25px;
  align-items:center;
  padding:38px;
  border:1px solid rgba(255,37,63,.3);
  border-radius:27px;
  background:linear-gradient(120deg,rgba(255,37,63,.19),rgba(82,54,171,.14));
}

#edxd-page .edxd-cta h2 {
  margin-bottom:8px;
  font-size:clamp(29px,4vw,48px);
}

#edxd-page .edxd-cta p {
  margin-bottom:0;
}

#edxd-page .edxd-cta .edxd-btns {
  margin-top:0;
}

@media (max-width:900px) {
  #edxd-page .edxd-intro-grid,
  #edxd-page .edxd-platform-grid,
  #edxd-page .edxd-demo-grid {
    grid-template-columns:1fr;
  }

  #edxd-page .edxd-hero-card {
    min-height:650px;
  }

  #edxd-page .edxd-hero-overlay {
    background:linear-gradient(180deg,rgba(3,7,15,.73),rgba(3,7,15,.97) 76%);
  }

  #edxd-page .edxd-hero-img {
    object-position:69% center;
  }

  #edxd-page .edxd-hero-content {
    padding:35px 25px;
  }

  #edxd-page .edxd-cta {
    grid-template-columns:1fr;
  }
}

@media (max-width:590px) {
  #edxd-page .edxd-section {
    padding:61px 0;
  }

  #edxd-page .edxd-hero {
    padding-top:18px;
  }

  #edxd-page .edxd-hero-card {
    min-height:690px;
    border-radius:20px;
  }

  #edxd-page h1 {
    font-size:42px;
  }

  #edxd-page .edxd-form-head {
    align-items:flex-start;
    flex-direction:column;
  }

  #edxd-page .edxd-specs {
    font-size:12px;
  }

  #edxd-page .edxd-specs th,
  #edxd-page .edxd-specs td {
    padding:9px 6px;
  }
}

/* Moduli generati dallo shortcode EdictumX Large Download Manager */
#edxd-page .edxd-shortcode-slot {
  min-height:0;
}
#edxd-page .edictumx-download,
#edxd-page .edictumx-download-form,
#edxd-page form {
  width:100%;
}
#edxd-page form label {
  display:block;
  margin-bottom:8px;
  color:#fff;
  font-weight:700;
}
#edxd-page form input[type="email"],
#edxd-page form input[type="text"] {
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:12px;
  background:#0f1728;
  color:#fff;
}
#edxd-page form button,
#edxd-page form input[type="submit"] {
  min-height:50px;
  margin-top:12px;
  padding:12px 20px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--edxd-red),var(--edxd-red2));
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

/* Compatibilità con le regole globali Astra/WooCommerce giÃ  presenti */
#edxd-page .edxd-btn {
  width:auto;
  min-height:52px;
  padding:13px 21px;
}

#edxd-page .edxd-btn-secondary {
  border:1px solid var(--edxd-line) !important;
  background:rgba(255,255,255,.055) !important;
  box-shadow:none !important;
}

#edxd-page .edxd-platform > a {
  min-height:initial;
  padding:0;
  border:0;
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
}

#edxd-page .edxd-platform > a:hover {
  transform:none;
  color:#ff8ca4 !important;
  text-shadow:0 0 18px rgba(255,23,68,.35);
}

#edxd-page details summary {
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  min-height:initial;
}

#edxd-page .edxd-form-shell form input[type="email"],
#edxd-page .edxd-form-shell form input[type="text"] {
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.17) !important;
  border-radius:12px !important;
  background:#0f1728 !important;
  color:#fff !important;
}

#edxd-page .edxd-form-shell form input[type="submit"],
#edxd-page .edxd-form-shell form button[type="submit"] {
  width:auto;
  min-height:50px;
  margin-top:12px;
  padding:12px 20px;
  border:0 !important;
  border-radius:12px !important;
  background:linear-gradient(135deg,var(--edxd-red),var(--edxd-red2)) !important;
  color:#fff !important;
  box-shadow:0 14px 30px rgba(255,23,68,.24) !important;
  font-weight:800;
}

@media (max-width:544px) {
  #edxd-page .edxd-btn,
  #edxd-page .edxd-form-shell form input[type="submit"],
  #edxd-page .edxd-form-shell form button[type="submit"] {
    width:100%;
  }
}

/* ==========================================================
   EDICTUMX DOWNLOAD — CORREZIONE TITOLO E ICONE
   Aggiungere ALLA FINE del CSS unificato.
   ========================================================== */

/* Mantiene le parole "download gratuito" unite su desktop */
#edxd-page .edxd-hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.25vw, 76px);
}

#edxd-page .edxd-hero-content h1 .edxd-nowrap {
  display: block;
  white-space: nowrap;
}

/* Evita simboli corrotti come \2713 */
#edxd-page .edxd-trust li::before {
  content: "\2713" !important;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(83,217,140,.12);
  color: #58dc91;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
}

/* Miniature nelle tre schede di scelta */
#edxd-page .edxd-platform-icon.edxd-platform-icon-image {
  width: 94px;
  height: 94px;
  padding: 0;
  overflow: hidden;
  background: #090d17;
}

#edxd-page .edxd-platform-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Struttura dei tre download: icona a sinistra e modulo a destra */
#edxd-page .edxd-form-shell {
  padding: 28px;
}

#edxd-page .edxd-download-card-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

#edxd-page .edxd-download-visual {
  position: sticky;
  top: 105px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: #080c16;
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
}

#edxd-page .edxd-download-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

#edxd-page .edxd-download-content {
  min-width: 0;
}

#edxd-page .edxd-download-content .edxd-form-head {
  margin-top: 0;
}

/* Il contenuto generato dallo shortcode deve restare allineato */
#edxd-page .edxd-shortcode-slot,
#edxd-page .edxd-shortcode-slot + *,
#edxd-page .edxd-download-content > form {
  width: 100%;
}

/* Tablet */
@media (max-width: 820px) {
  #edxd-page .edxd-download-card-grid {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
  }

  #edxd-page .edxd-download-visual {
    position: static;
  }
}

/* Smartphone */
@media (max-width: 590px) {
  #edxd-page .edxd-hero-content h1 .edxd-nowrap {
    white-space: normal;
  }

  #edxd-page .edxd-download-card-grid {
    grid-template-columns: 1fr;
  }

  #edxd-page .edxd-download-visual {
    width: 150px;
    margin: 0 auto 4px;
  }

  #edxd-page .edxd-form-head {
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================
   PAGINA ACQUISTA EDICTUMX
   Incollare alla FINE del CSS unificato.
   Namespace isolato: #edxa-page / #edxa-page-after / .edxa-*
   ========================================================== */

#edxa-page,
#edxa-page-after {
  --edxa-red: var(--ex-red,#ff1744);
  --edxa-red2: var(--ex-red-2,#b0002e);
  --edxa-bg: var(--ex-bg,#07080d);
  --edxa-panel: var(--ex-panel,#11131b);
  --edxa-panel2: var(--ex-panel-2,#171922);
  --edxa-text: var(--ex-text,#f5f5f7);
  --edxa-muted: var(--ex-muted,#b6b8c0);
  --edxa-line: var(--ex-line,rgba(255,255,255,.08));
  color: var(--edxa-text);
}

#edxa-page *,
#edxa-page-after * { box-sizing:border-box; }

#edxa-page img,
#edxa-page-after img {
  display:block;
  width:100%;
  height:auto;
}

#edxa-page .edxa-wrap,
#edxa-page-after .edxa-wrap {
  width:min(1180px,calc(100% - 34px));
  margin-inline:auto;
}

#edxa-page .edxa-section,
#edxa-page-after .edxa-section {
  padding:84px 0;
}

#edxa-page h1,
#edxa-page h2,
#edxa-page h3,
#edxa-page-after h1,
#edxa-page-after h2,
#edxa-page-after h3 {
  color:#fff;
  font-weight:950;
  letter-spacing:-.045em;
}

#edxa-page h1 {
  max-width:760px;
  margin:18px 0 22px;
  font-size:clamp(44px,6vw,82px);
  line-height:.98;
}

#edxa-page h2,
#edxa-page-after h2 {
  margin:17px 0;
  font-size:clamp(32px,4.5vw,58px);
  line-height:1.03;
}

#edxa-page h1 span,
#edxa-page h2 span,
#edxa-page-after h2 span {
  color:var(--edxa-red);
}

#edxa-page p,
#edxa-page-after p {
  color:var(--edxa-muted);
  font-size:17px;
  line-height:1.7;
}

#edxa-page .edxa-kicker,
#edxa-page-after .edxa-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 13px;
  border:1px solid rgba(255,23,68,.3);
  border-radius:999px;
  background:rgba(255,23,68,.07);
  color:#ff9bad;
  font-size:12px;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}

#edxa-page .edxa-kicker::before,
#edxa-page-after .edxa-kicker::before {
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--edxa-red);
  box-shadow:0 0 14px var(--edxa-red);
}

#edxa-page .edxa-hero {
  padding:46px 0 72px;
  background:
    radial-gradient(circle at 12% 8%,rgba(255,23,68,.16),transparent 28rem),
    radial-gradient(circle at 91% 45%,rgba(102,53,210,.12),transparent 30rem);
}

#edxa-page .edxa-hero-grid {
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:38px;
  align-items:center;
}

#edxa-page .edxa-lead {
  max-width:700px;
  color:#dde1ea;
  font-size:19px;
}

#edxa-page .edxa-actions,
#edxa-page-after .edxa-actions {
  display:flex;
  flex-wrap:wrap;
  gap:13px;
  margin-top:28px;
}

#edxa-page .edxa-btn,
#edxa-page-after .edxa-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:54px;
  padding:13px 23px;
  border-radius:15px !important;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:850;
}

#edxa-page .edxa-btn-primary,
#edxa-page-after .edxa-btn-primary {
  background:linear-gradient(135deg,var(--edxa-red),var(--edxa-red2)) !important;
  box-shadow:0 15px 35px rgba(255,23,68,.27) !important;
}

#edxa-page .edxa-btn-secondary,
#edxa-page-after .edxa-btn-secondary {
  border:1px solid var(--edxa-line) !important;
  background:rgba(255,255,255,.05) !important;
  box-shadow:none !important;
}

#edxa-page .edxa-trust {
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin:27px 0 0;
  padding:0;
  color:#fff;
  list-style:none;
  font-weight:750;
}

#edxa-page .edxa-trust li::before {
  content:"\2713";
  margin-right:8px;
  color:#5be197;
}

#edxa-page .edxa-hero-visual {
  position:relative;
  overflow:hidden;
  border:1px solid var(--edxa-line);
  border-radius:28px;
  background:#0b0e16;
  box-shadow:0 28px 75px rgba(0,0,0,.42);
}

#edxa-page .edxa-hero-visual img {
  aspect-ratio:1.55/1;
  object-fit:cover;
}

#edxa-page .edxa-float {
  position:absolute;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:13px;
  background:rgba(8,11,18,.82);
  backdrop-filter:blur(10px);
  color:#fff;
  font-size:13px;
  font-weight:800;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}

#edxa-page .edxa-float-one { left:20px; bottom:22px; }
#edxa-page .edxa-float-two { right:20px; top:22px; }

#edxa-page .edxa-license-section {
  padding-bottom:32px;
}

#edxa-page .edxa-heading,
#edxa-page-after .edxa-heading {
  max-width:830px;
  margin-bottom:36px;
}

/* Griglia prodotti WooCommerce presente fra i due blocchi */
body.page-id-0 .woocommerce ul.products,
.page .woocommerce ul.products {
  max-width:1180px;
  margin:0 auto 70px !important;
  padding-inline:17px;
}

.woocommerce ul.products li.product {
  position:relative;
}

.woocommerce ul.products li.product:nth-child(2) {
  border-color:rgba(255,23,68,.5);
  box-shadow:0 22px 60px rgba(255,23,68,.14),0 20px 55px rgba(0,0,0,.34);
}

#edxa-page-after .edxa-value-section {
  padding-top:20px;
}

#edxa-page-after .edxa-value-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

#edxa-page-after .edxa-value-card {
  padding:27px;
  border:1px solid var(--edxa-line);
  border-radius:23px;
  background:linear-gradient(145deg,var(--edxa-panel2),var(--edxa-panel));
}

#edxa-page-after .edxa-value-card > span,
#edxa-page-after .edxa-number {
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:15px;
  border-radius:13px;
  background:rgba(255,23,68,.13);
  color:#ff728a;
  font-weight:900;
}

#edxa-page-after .edxa-value-card h3 {
  margin:0 0 8px;
  font-size:24px;
}

#edxa-page-after .edxa-showcase {
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:42px;
  align-items:center;
  margin:58px 0 90px;
}

#edxa-page-after .edxa-showcase-right {
  grid-template-columns:.92fr 1.08fr;
}

#edxa-page-after .edxa-showcase-image {
  overflow:hidden;
  border:1px solid var(--edxa-line);
  border-radius:25px;
  background:#0b0e16;
  box-shadow:0 24px 65px rgba(0,0,0,.35);
}

#edxa-page-after .edxa-showcase-image img {
  aspect-ratio:1.6/1;
  object-fit:cover;
}

#edxa-page-after .edxa-showcase-copy h3 {
  margin:0 0 14px;
  font-size:clamp(28px,3vw,43px);
  line-height:1.07;
}

#edxa-page-after .edxa-showcase-copy ul,
#edxa-page-after .edxa-included-grid ul {
  margin:20px 0 0;
  padding:0;
  list-style:none;
}

#edxa-page-after .edxa-showcase-copy li,
#edxa-page-after .edxa-included-grid li {
  margin:10px 0;
  color:#d7dbe4;
}

#edxa-page-after .edxa-showcase-copy li::before,
#edxa-page-after .edxa-included-grid li::before {
  content:"\2713";
  margin-right:9px;
  color:#5be197;
}

#edxa-page-after .edxa-dark-band {
  border-top:1px solid var(--edxa-line);
  border-bottom:1px solid var(--edxa-line);
  background:linear-gradient(180deg,rgba(255,255,255,.025),transparent);
}

#edxa-page-after .edxa-feature-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

#edxa-page-after .edxa-feature {
  overflow:hidden;
  border:1px solid var(--edxa-line);
  border-radius:22px;
  background:var(--edxa-panel);
}

#edxa-page-after .edxa-feature img {
  aspect-ratio:1.55/1;
  object-fit:cover;
  border-bottom:1px solid var(--edxa-line);
}

#edxa-page-after .edxa-feature > div {
  padding:21px;
}

#edxa-page-after .edxa-feature h3 {
  margin:0 0 8px;
  font-size:23px;
}

#edxa-page-after .edxa-feature p {
  margin:0;
  font-size:15px;
}

#edxa-page-after .edxa-included-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

#edxa-page-after .edxa-included-grid > div {
  padding:27px;
  border:1px solid var(--edxa-line);
  border-radius:23px;
  background:linear-gradient(145deg,var(--edxa-panel2),var(--edxa-panel));
}

#edxa-page-after .edxa-included-grid h3 {
  margin:0;
  font-size:24px;
}

#edxa-page-after .edxa-faq-section details {
  margin-bottom:12px;
  overflow:hidden;
  border:1px solid var(--edxa-line);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}

#edxa-page-after .edxa-faq-section summary {
  padding:19px 21px;
  color:#fff;
  cursor:pointer;
  list-style:none;
  font-size:17px;
  font-weight:850;
}

#edxa-page-after .edxa-faq-section summary::-webkit-details-marker { display:none; }

#edxa-page-after .edxa-faq-section summary::after {
  content:"+";
  float:right;
  color:var(--edxa-red);
  font-size:23px;
}

#edxa-page-after .edxa-faq-section details[open] summary::after { content:"−"; }

#edxa-page-after .edxa-faq-section details > div {
  padding:0 21px 20px;
  color:var(--edxa-muted);
  line-height:1.7;
}

#edxa-page-after .edxa-final-cta {
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
  padding:39px;
  border:1px solid rgba(255,23,68,.3);
  border-radius:27px;
  background:linear-gradient(120deg,rgba(255,23,68,.19),rgba(82,54,171,.14));
}

#edxa-page-after .edxa-final-cta h2 {
  margin-bottom:9px;
  font-size:clamp(30px,4vw,49px);
}

#edxa-page-after .edxa-final-cta p {
  margin-bottom:0;
}

@media (max-width:900px) {
  #edxa-page .edxa-hero-grid,
  #edxa-page-after .edxa-value-grid,
  #edxa-page-after .edxa-feature-grid,
  #edxa-page-after .edxa-included-grid,
  #edxa-page-after .edxa-final-cta {
    grid-template-columns:1fr;
  }

  #edxa-page-after .edxa-showcase,
  #edxa-page-after .edxa-showcase-right {
    grid-template-columns:1fr;
  }

  #edxa-page-after .edxa-showcase-right .edxa-showcase-copy {
    order:2;
  }

  #edxa-page-after .edxa-showcase-right .edxa-showcase-image {
    order:1;
  }
}

@media (max-width:544px) {
  #edxa-page .edxa-section,
  #edxa-page-after .edxa-section {
    padding:62px 0;
  }

  #edxa-page h1 {
    font-size:43px;
  }

  #edxa-page .edxa-btn,
  #edxa-page-after .edxa-btn {
    width:100%;
  }

  #edxa-page .edxa-float {
    display:none;
  }

  #edxa-page-after .edxa-final-cta {
    padding:27px 22px;
  }
}

/* ==========================================================
   FAQ EDICTUMX — BLOCCO AUTONOMO PER WORDPRESS
   Namespace isolato: #edxf-page / .edxf-*
   Utilizza le variabili giÃ  presenti nel CSS globale EdictumX.
   ========================================================== */

#edxf-page{
  --edxf-red:var(--ex-red,#ff1744);
  --edxf-red2:var(--ex-red-2,#b0002e);
  --edxf-bg:var(--ex-bg,#07080d);
  --edxf-panel:var(--ex-panel,#11131b);
  --edxf-panel2:var(--ex-panel-2,#171922);
  --edxf-text:var(--ex-text,#f5f5f7);
  --edxf-muted:var(--ex-muted,#b6b8c0);
  --edxf-line:var(--ex-line,rgba(255,255,255,.08));
  color:var(--edxf-text);
  background:
    radial-gradient(circle at 12% 3%,rgba(255,23,68,.15),transparent 28rem),
    radial-gradient(circle at 92% 26%,rgba(93,63,211,.11),transparent 32rem),
    var(--edxf-bg);
  overflow:hidden;
}

#edxf-page,
#edxf-page *{box-sizing:border-box;}

#edxf-page a{color:inherit;}

#edxf-page .edxf-wrap{
  width:min(1180px,calc(100% - 34px));
  margin-inline:auto;
}

#edxf-page .edxf-hero{
  padding:56px 0 54px;
}

#edxf-page .edxf-hero-card{
  position:relative;
  overflow:hidden;
  padding:clamp(34px,6vw,76px);
  border:1px solid var(--edxf-line);
  border-radius:32px;
  background:
    linear-gradient(112deg,rgba(9,11,18,.98) 0%,rgba(17,13,22,.96) 58%,rgba(60,4,18,.88) 100%);
  box-shadow:0 28px 80px rgba(0,0,0,.38);
}

#edxf-page .edxf-hero-card::before{
  content:"?";
  position:absolute;
  right:clamp(12px,6vw,72px);
  top:50%;
  transform:translateY(-52%);
  color:rgba(255,255,255,.025);
  font-size:clamp(230px,34vw,470px);
  font-weight:1000;
  line-height:.8;
  pointer-events:none;
}

#edxf-page .edxf-kicker{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 14px;
  border:1px solid rgba(255,23,68,.35);
  border-radius:999px;
  background:rgba(255,23,68,.08);
  color:#ff9daf;
  font-size:12px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}

#edxf-page .edxf-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--edxf-red);
  box-shadow:0 0 18px var(--edxf-red);
}

#edxf-page h1,
#edxf-page h2,
#edxf-page h3,
#edxf-page p{margin-top:0;}

#edxf-page h1{
  position:relative;
  z-index:1;
  max-width:880px;
  margin:20px 0 20px;
  color:#fff;
  font-size:clamp(43px,6.8vw,86px);
  font-weight:1000;
  line-height:.96;
  letter-spacing:-.055em;
}

#edxf-page h1 span,
#edxf-page h2 span{color:var(--edxf-red);}

#edxf-page .edxf-hero-lead{
  position:relative;
  z-index:1;
  max-width:780px;
  margin-bottom:0;
  color:#d8dce5;
  font-size:clamp(17px,2vw,20px);
  line-height:1.72;
}

#edxf-page .edxf-hero-actions{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:13px;
  margin-top:28px;
}

#edxf-page .edxf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:54px;
  padding:13px 23px;
  border-radius:15px !important;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:850;
}

#edxf-page .edxf-btn-primary{
  border:0 !important;
  background:linear-gradient(135deg,var(--edxf-red),var(--edxf-red2)) !important;
  box-shadow:0 15px 35px rgba(255,23,68,.27) !important;
}

#edxf-page .edxf-btn-secondary{
  border:1px solid var(--edxf-line) !important;
  background:rgba(255,255,255,.05) !important;
  box-shadow:none !important;
}

#edxf-page .edxf-stats{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  max-width:720px;
  margin-top:36px;
}

#edxf-page .edxf-stat{
  padding:17px 18px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:17px;
  background:rgba(255,255,255,.035);
}

#edxf-page .edxf-stat strong{
  display:block;
  margin-bottom:3px;
  color:#fff;
  font-size:22px;
  font-weight:950;
}

#edxf-page .edxf-stat span{
  color:var(--edxf-muted);
  font-size:13px;
}

#edxf-page .edxf-tools-section{
  padding:0 0 54px;
}

#edxf-page .edxf-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:18px;
  border:1px solid var(--edxf-line);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.052),rgba(255,255,255,.018));
  box-shadow:0 18px 48px rgba(0,0,0,.22);
}

#edxf-page .edxf-search-wrap{
  position:relative;
}

#edxf-page .edxf-search-wrap::before{
  content:"";
  position:absolute;
  left:18px;
  top:50%;
  width:15px;
  height:15px;
  border:2px solid #ff8298;
  border-radius:50%;
  transform:translateY(-65%);
  pointer-events:none;
  box-sizing:border-box;
}

#edxf-page .edxf-search-wrap::after{
  content:"";
  position:absolute;
  left:31px;
  top:calc(50% + 5px);
  width:8px;
  height:2px;
  border-radius:999px;
  background:#ff8298;
  transform:rotate(45deg);
  transform-origin:left center;
  pointer-events:none;
}

#edxf-page #edxf-search{
  width:100%;
  min-height:54px;
  margin:0;
  padding:12px 46px 12px 50px;
  border:1px solid rgba(255,255,255,.13) !important;
  border-radius:15px !important;
  background:#0e1320 !important;
  color:#fff !important;
  box-shadow:none !important;
  font-size:16px;
}

#edxf-page #edxf-search::placeholder{
  color:rgba(255,255,255,.5);
}

#edxf-page #edxf-search:focus{
  border-color:rgba(255,23,68,.65) !important;
  box-shadow:0 0 0 4px rgba(255,23,68,.12) !important;
  outline:none !important;
}

#edxf-page .edxf-clear{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  display:none;
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
  box-shadow:none !important;
  font-size:19px;
  line-height:1;
}

#edxf-page .edxf-clear.is-visible{display:inline-grid;}

#edxf-page .edxf-tool-actions{
  display:flex;
  gap:8px;
}

#edxf-page .edxf-tool-btn{
  width:auto !important;
  min-width:auto !important;
  min-height:46px !important;
  padding:10px 15px !important;
  border:1px solid rgba(255,255,255,.11) !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.045) !important;
  color:#fff !important;
  box-shadow:none !important;
  font-size:13px;
  font-weight:800;
}

#edxf-page .edxf-tool-btn:hover{
  transform:none !important;
  border-color:rgba(255,23,68,.42) !important;
  background:rgba(255,23,68,.1) !important;
}

#edxf-page .edxf-search-result{
  display:none;
  margin:13px 4px 0;
  color:var(--edxf-muted);
  font-size:14px;
}

#edxf-page .edxf-search-result.is-visible{display:block;}

#edxf-page .edxf-category-nav{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}

#edxf-page .edxf-category-nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--edxf-line);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  color:#dfe3eb !important;
  text-decoration:none !important;
  font-size:13px;
  font-weight:750;
}

#edxf-page .edxf-category-nav a:hover{
  border-color:rgba(255,23,68,.42);
  background:rgba(255,23,68,.09);
  color:#fff !important;
}

#edxf-page .edxf-main{
  padding-bottom:82px;
}

#edxf-page .edxf-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:32px;
  align-items:start;
}

#edxf-page .edxf-sidebar{
  position:sticky;
  top:105px;
  padding:22px;
  border:1px solid var(--edxf-line);
  border-radius:22px;
  background:linear-gradient(155deg,var(--edxf-panel2),var(--edxf-panel));
  box-shadow:0 18px 48px rgba(0,0,0,.22);
}

#edxf-page .edxf-sidebar strong{
  display:block;
  margin-bottom:14px;
  color:#fff;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

#edxf-page .edxf-sidebar ol{
  margin:0;
  padding:0;
  list-style:none;
}

#edxf-page .edxf-sidebar li+li{margin-top:5px;}

#edxf-page .edxf-sidebar a{
  display:grid;
  grid-template-columns:30px 1fr;
  gap:8px;
  align-items:center;
  padding:9px 10px;
  border-radius:11px;
  color:var(--edxf-muted) !important;
  text-decoration:none !important;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
}

#edxf-page .edxf-sidebar a span{
  color:#ff7189;
  font-weight:900;
}

#edxf-page .edxf-sidebar a:hover{
  background:rgba(255,23,68,.09);
  color:#fff !important;
}

#edxf-page .edxf-sidebar-note{
  margin:18px 0 0;
  padding-top:16px;
  border-top:1px solid var(--edxf-line);
  color:var(--edxf-muted);
  font-size:12px;
  line-height:1.55;
}

#edxf-page .edxf-content{
  min-width:0;
}

#edxf-page .edxf-group{
  scroll-margin-top:105px;
  margin-bottom:58px;
}

#edxf-page .edxf-group:last-child{margin-bottom:0;}

#edxf-page .edxf-group-head{
  display:grid;
  grid-template-columns:62px minmax(0,1fr);
  gap:17px;
  align-items:start;
  margin-bottom:22px;
}

#edxf-page .edxf-group-number{
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  border:1px solid rgba(255,23,68,.25);
  border-radius:18px;
  background:rgba(255,23,68,.1);
  color:#ff7890;
  font-size:17px;
  font-weight:950;
}

#edxf-page .edxf-group h2{
  margin:0 0 7px;
  color:#fff;
  font-size:clamp(29px,4vw,46px);
  font-weight:1000;
  line-height:1.04;
  letter-spacing:-.045em;
}

#edxf-page .edxf-group-intro{
  max-width:760px;
  margin:0;
  color:var(--edxf-muted);
  font-size:16px;
  line-height:1.65;
}

#edxf-page .edxf-faq{
  margin-bottom:12px;
  overflow:hidden;
  border:1px solid var(--edxf-line);
  border-radius:17px;
  background:rgba(255,255,255,.03);
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

#edxf-page .edxf-faq:hover{
  border-color:rgba(255,23,68,.26);
}

#edxf-page .edxf-faq[open]{
  border-color:rgba(255,23,68,.34);
  background:linear-gradient(145deg,rgba(255,23,68,.075),rgba(255,255,255,.025));
  box-shadow:0 14px 36px rgba(0,0,0,.18);
}

#edxf-page .edxf-faq summary{
  position:relative;
  display:block;
  min-height:initial;
  padding:21px 62px 21px 22px;
  border:0 !important;
  background:transparent !important;
  color:#fff;
  box-shadow:none !important;
  cursor:pointer;
  list-style:none;
  font-size:17px;
  font-weight:850;
  line-height:1.42;
}

#edxf-page .edxf-faq summary::-webkit-details-marker{display:none;}

#edxf-page .edxf-faq summary::after{
  content:"+";
  position:absolute;
  right:20px;
  top:50%;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  transform:translateY(-50%);
  border-radius:10px;
  background:rgba(255,23,68,.11);
  color:var(--edxf-red);
  font-size:22px;
  font-weight:500;
  line-height:1;
}

#edxf-page .edxf-faq[open] summary::after{content:"−";}

#edxf-page .edxf-answer{
  padding:0 22px 22px;
  color:var(--edxf-muted);
  font-size:16px;
  line-height:1.72;
}

#edxf-page .edxf-answer p{margin:0;}

#edxf-page .edxf-empty{
  display:none;
  padding:30px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:18px;
  color:var(--edxf-muted);
  text-align:center;
}

#edxf-page .edxf-empty.is-visible{display:block;}

#edxf-page .edxf-final{
  padding:0 0 88px;
}

#edxf-page .edxf-final-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  padding:clamp(28px,5vw,46px);
  border:1px solid rgba(255,23,68,.3);
  border-radius:28px;
  background:linear-gradient(120deg,rgba(255,23,68,.19),rgba(82,54,171,.14));
}

#edxf-page .edxf-final-card h2{
  margin:0 0 9px;
  color:#fff;
  font-size:clamp(30px,4vw,50px);
  font-weight:1000;
  line-height:1.03;
  letter-spacing:-.045em;
}

#edxf-page .edxf-final-card p{
  max-width:720px;
  margin:0;
  color:#d4d8e1;
  font-size:16px;
  line-height:1.65;
}

#edxf-page .edxf-final-actions{
  display:flex;
  flex-wrap:wrap;
  gap:11px;
  justify-content:flex-end;
}

@media(max-width:960px){
  #edxf-page .edxf-layout{grid-template-columns:1fr;}
  #edxf-page .edxf-sidebar{display:none;}
}

@media(max-width:760px){
  #edxf-page .edxf-tools{grid-template-columns:1fr;}
  #edxf-page .edxf-tool-actions{justify-content:flex-start;}
  #edxf-page .edxf-stats{grid-template-columns:1fr;}
  #edxf-page .edxf-final-card{grid-template-columns:1fr;}
  #edxf-page .edxf-final-actions{justify-content:flex-start;}
}

@media(max-width:544px){
  #edxf-page .edxf-hero{padding-top:22px;}
  #edxf-page .edxf-hero-card{padding:31px 22px;border-radius:22px;}
  #edxf-page h1{font-size:43px;}
  #edxf-page .edxf-hero-actions,
  #edxf-page .edxf-final-actions{display:grid;grid-template-columns:1fr;}
  #edxf-page .edxf-btn{width:100%;}
  #edxf-page .edxf-tool-actions{display:grid;grid-template-columns:1fr 1fr;}
  #edxf-page .edxf-tool-btn{width:100% !important;}
  #edxf-page .edxf-group-head{grid-template-columns:48px minmax(0,1fr);gap:13px;}
  #edxf-page .edxf-group-number{width:48px;height:48px;border-radius:14px;}
  #edxf-page .edxf-group h2{font-size:30px;}
  #edxf-page .edxf-faq summary{padding:18px 54px 18px 18px;font-size:16px;}
  #edxf-page .edxf-answer{padding:0 18px 19px;font-size:15px;}
  #edxf-page .edxf-final-card{padding:28px 22px;}
}
/* ==========================================================
   FIX ICONE APERTURA FAQ - SENZA CARATTERI SPECIALI
   ========================================================== */

#edxf-page .edxf-faq summary::after {
  content: "" !important;
  position: absolute;
  right: 20px;
  top: 50%;
  display: block;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 10px;

  /* Disegna il simbolo + */
  background:
    linear-gradient(#ff1744, #ff1744) center / 12px 2px no-repeat,
    linear-gradient(#ff1744, #ff1744) center / 2px 12px no-repeat,
    rgba(255, 23, 68, .11) !important;
}

/* Quando la FAQ è aperta rimane soltanto la linea orizzontale */
#edxf-page .edxf-faq[open] summary::after {
  content: "" !important;
  background:
    linear-gradient(#ff1744, #ff1744) center / 12px 2px no-repeat,
    rgba(255, 23, 68, .11) !important;
}

/* ==========================================================
   HUB GUIDE MANIFESTI FUNEBRI - EDICTUMX
   Incollare alla fine del CSS aggiuntivo.
   Namespace isolato: #edxh-page
   ========================================================== */
#edxh-page{
  --r:var(--ex-red,#ff1744);
  --r2:var(--ex-red-2,#b0002e);
  --bg:var(--ex-bg,#07080d);
  --p:var(--ex-panel,#11131b);
  --p2:var(--ex-panel-2,#171922);
  --txt:var(--ex-text,#f5f5f7);
  --mut:var(--ex-muted,#b6b8c0);
  --line:var(--ex-line,rgba(255,255,255,.08));
  color:var(--txt);
  background:
    radial-gradient(circle at 12% 4%,rgba(255,23,68,.14),transparent 29rem),
    radial-gradient(circle at 88% 32%,rgba(92,57,199,.10),transparent 32rem),
    var(--bg);
  overflow:clip;
}
#edxh-page,#edxh-page *{box-sizing:border-box}
#edxh-page [id]{scroll-margin-top:125px}
#edxh-page a{color:inherit}
#edxh-page .edxh-wrap{width:min(1180px,calc(100% - 34px));margin-inline:auto}
#edxh-page .edxh-section{padding:82px 0}
#edxh-page .edxh-soft{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.025),transparent)}
#edxh-page h1,#edxh-page h2,#edxh-page h3{color:#fff;margin-top:0;font-weight:950}
#edxh-page h1{max-width:820px;margin:18px 0 22px;font-size:clamp(44px,6vw,82px);line-height:.98;letter-spacing:-.055em}
#edxh-page h2{margin:16px 0;font-size:clamp(32px,4.2vw,56px);line-height:1.04;letter-spacing:-.045em}
#edxh-page h3{margin:0 0 10px;font-size:23px;line-height:1.18;letter-spacing:-.025em}
#edxh-page h1 span,#edxh-page h2 span{color:var(--r);text-shadow:0 0 30px rgba(255,23,68,.22)}
#edxh-page p{margin-top:0;color:var(--mut);font-size:17px;line-height:1.72}
#edxh-page .edxh-eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border:1px solid rgba(255,23,68,.30);border-radius:999px;background:rgba(255,23,68,.07);color:#ff9bad;font-size:12px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
#edxh-page .edxh-eyebrow i{display:block;width:7px;height:7px;border-radius:50%;background:var(--r);box-shadow:0 0 14px var(--r)}
#edxh-page .edxh-lead{max-width:760px;color:#dfe3ec;font-size:clamp(18px,2vw,21px)}
#edxh-page .edxh-actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:28px}
#edxh-page .edxh-btn{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:54px;padding:13px 23px;border-radius:15px!important;color:#fff!important;text-decoration:none!important;font-weight:850;transition:.2s ease}
#edxh-page .edxh-btn:hover{transform:translateY(-2px);filter:brightness(1.06)}
#edxh-page .edxh-btn-primary{border:0!important;background:linear-gradient(135deg,var(--r),var(--r2))!important;box-shadow:0 15px 35px rgba(255,23,68,.27)!important}
#edxh-page .edxh-btn-secondary{border:1px solid var(--line)!important;background:rgba(255,255,255,.05)!important;box-shadow:none!important}

/* Hero */
#edxh-page .edxh-hero{padding:48px 0 74px}
#edxh-page .edxh-hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:42px;align-items:center}
#edxh-page .edxh-meta{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:23px;color:#e7eaf0;font-size:14px;font-weight:750}
#edxh-page .edxh-meta span{display:inline-flex;align-items:center;gap:8px}
#edxh-page .edxh-meta b{width:7px;height:7px;border-radius:50%;background:#5be197;box-shadow:0 0 12px rgba(91,225,151,.4)}
#edxh-page .edxh-visual{position:relative;min-height:510px;overflow:hidden;border:1px solid var(--line);border-radius:30px;background:radial-gradient(circle at 75% 16%,rgba(255,23,68,.22),transparent 18rem),linear-gradient(145deg,#141722,#080a10 66%);box-shadow:0 28px 78px rgba(0,0,0,.42)}
#edxh-page .edxh-stack{position:absolute;inset:50% auto auto 50%;width:min(360px,72%);aspect-ratio:.72/1;transform:translate(-50%,-48%)}
#edxh-page .edxh-sheet{position:absolute;inset:0;border-radius:11px;background:#f4efe5;box-shadow:0 28px 60px rgba(0,0,0,.44)}
#edxh-page .edxh-sheet.back{transform:rotate(-8deg) translate(-18px,9px);opacity:.55;background:#d8d1c6}
#edxh-page .edxh-sheet.mid{transform:rotate(6deg) translate(17px,5px);opacity:.72;background:#e7dfd3}
#edxh-page .edxh-sheet.front{padding:30px 27px 25px;color:#252020;border:1px solid rgba(0,0,0,.12);overflow:hidden}
#edxh-page .edxh-label{margin-bottom:13px;color:#8b001f;font-size:12px;font-weight:900;letter-spacing:.12em;text-align:center;text-transform:uppercase}
#edxh-page .edxh-name{margin-bottom:18px;color:#1f1b1b;font-family:Georgia,serif;font-size:clamp(25px,3.2vw,40px);font-weight:700;line-height:1.03;text-align:center}
#edxh-page .edxh-photo{width:92px;height:108px;margin:0 auto 20px;border:5px solid #fff;border-radius:50% 50% 46% 46%;background:radial-gradient(circle at 50% 34%,#c8c0b7 0 18%,transparent 19%),radial-gradient(ellipse at 50% 80%,#9f968e 0 34%,transparent 35%),linear-gradient(145deg,#ddd5cb,#aea59c);box-shadow:0 5px 16px rgba(0,0,0,.18)}
#edxh-page .edxh-line{height:7px;margin:9px auto;border-radius:999px;background:rgba(40,33,33,.17)}
#edxh-page .w1{width:88%} #edxh-page .w2{width:72%} #edxh-page .w3{width:93%} #edxh-page .w4{width:62%}
#edxh-page .edxh-bottom{display:flex;align-items:end;justify-content:space-between;gap:17px;margin-top:24px;color:#5d5353;font-size:11px;font-weight:800}
#edxh-page .edxh-qr{width:48px;height:48px;border:6px solid #fff;background:repeating-linear-gradient(0deg,#111 0 5px,#fff 5px 9px),repeating-linear-gradient(90deg,transparent 0 5px,#fff 5px 9px);box-shadow:0 0 0 1px rgba(0,0,0,.16)}
#edxh-page .edxh-float{position:absolute;padding:11px 14px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(8,11,18,.80);backdrop-filter:blur(12px);color:#fff;font-size:13px;font-weight:820;box-shadow:0 13px 34px rgba(0,0,0,.28)}
#edxh-page .edxh-float.one{left:20px;bottom:27px}
#edxh-page .edxh-float.two{right:20px;top:25px}

/* Internal nav */
#edxh-page .edxh-nav-wrap{position:sticky;top:82px;z-index:15;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(7,8,13,.86);backdrop-filter:blur(17px)}
#edxh-page .edxh-nav{display:flex;gap:10px;overflow-x:auto;padding:2px 0 5px}
#edxh-page .edxh-nav a{flex:0 0 auto;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);color:#eef1f6!important;text-decoration:none!important;font-size:13px;font-weight:800;white-space:nowrap}
#edxh-page .edxh-nav a:hover{border-color:rgba(255,23,68,.45);background:rgba(255,23,68,.10);color:#fff!important}

/* Cards and content */
#edxh-page .edxh-intro{display:grid;grid-template-columns:1.05fr .95fr;gap:35px;align-items:start}
#edxh-page .edxh-note{padding:27px;border:1px solid rgba(241,199,120,.27);border-radius:23px;background:linear-gradient(145deg,rgba(241,199,120,.10),rgba(255,255,255,.025))}
#edxh-page .edxh-note h3{color:#ffe0a6}
#edxh-page .edxh-note p{margin-bottom:0}
#edxh-page .edxh-heading{max-width:840px;margin-bottom:38px}
#edxh-page .edxh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
#edxh-page .edxh-card{display:flex;min-height:270px;flex-direction:column;padding:28px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,var(--p2),var(--p));box-shadow:0 17px 42px rgba(0,0,0,.21);transition:.22s ease}
#edxh-page .edxh-card:hover{transform:translateY(-5px);border-color:rgba(255,23,68,.38);box-shadow:0 24px 54px rgba(0,0,0,.31),0 0 25px rgba(255,23,68,.08)}
#edxh-page .edxh-num{display:grid;place-items:center;width:44px;height:44px;margin-bottom:18px;border:1px solid rgba(255,23,68,.25);border-radius:14px;background:rgba(255,23,68,.11);color:#ff7189;font-size:14px;font-weight:950}
#edxh-page .edxh-card p{font-size:15px}
#edxh-page .edxh-link{margin-top:auto;color:#ff7189!important;text-decoration:none!important;font-size:14px;font-weight:850}
#edxh-page .edxh-link:hover{color:#fff!important}
#edxh-page .edxh-topic{padding:80px 0;border-bottom:1px solid var(--line)}
#edxh-page .edxh-topic-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:47px;align-items:start}
#edxh-page .edxh-side{position:sticky;top:164px}
#edxh-page .edxh-kicker{color:#ff7990;font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
#edxh-page .edxh-list{margin:23px 0 0;padding:0;list-style:none}
#edxh-page .edxh-list li{position:relative;margin:12px 0;padding-left:23px;color:#d7dbe4;line-height:1.55}
#edxh-page .edxh-list li:before{content:"";position:absolute;left:0;top:.65em;width:8px;height:8px;border-radius:50%;background:var(--r);box-shadow:0 0 10px rgba(255,23,68,.42)}
#edxh-page .edxh-content{padding:30px;border:1px solid var(--line);border-radius:25px;background:rgba(255,255,255,.03)}
#edxh-page .edxh-content+.edxh-content{margin-top:17px}
#edxh-page .edxh-content p:last-child{margin-bottom:0}
#edxh-page .edxh-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:20px}
#edxh-page .edxh-mini div{padding:20px;border:1px solid rgba(255,255,255,.075);border-radius:18px;background:rgba(255,255,255,.025)}
#edxh-page .edxh-mini strong{display:block;margin-bottom:7px;color:#fff}
#edxh-page .edxh-mini span{color:var(--mut);font-size:14px;line-height:1.55}

/* Resources */
#edxh-page .edxh-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#edxh-page .edxh-resource{display:flex;min-height:225px;flex-direction:column;padding:25px;border:1px solid var(--line);border-radius:22px;background:radial-gradient(circle at 100% 0,rgba(255,23,68,.12),transparent 12rem),var(--p)}
#edxh-page .edxh-type{display:inline-flex;align-self:flex-start;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.055);color:#ff9aac;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
#edxh-page .edxh-resource h3{margin-top:19px}
#edxh-page .edxh-resource p{font-size:14px}
#edxh-page .edxh-coming{opacity:.78}
#edxh-page .edxh-coming .edxh-type{color:#ffe0a6;background:rgba(241,199,120,.08)}
#edxh-page .edxh-cta{display:grid;grid-template-columns:1fr auto;gap:31px;align-items:center;padding:41px;border:1px solid rgba(255,23,68,.30);border-radius:28px;background:linear-gradient(120deg,rgba(255,23,68,.19),rgba(82,54,171,.14))}
#edxh-page .edxh-cta p{margin-bottom:0}

@media(max-width:980px){
  #edxh-page .edxh-hero-grid,#edxh-page .edxh-intro,#edxh-page .edxh-topic-layout,#edxh-page .edxh-cta{grid-template-columns:1fr}
  #edxh-page .edxh-grid,#edxh-page .edxh-resources{grid-template-columns:repeat(2,minmax(0,1fr))}
  #edxh-page .edxh-side{position:static}
}
@media(max-width:760px){
  #edxh-page .edxh-nav-wrap{position:static}
  #edxh-page .edxh-grid,#edxh-page .edxh-resources,#edxh-page .edxh-mini{grid-template-columns:1fr}
  #edxh-page .edxh-card{min-height:auto}
}
@media(max-width:590px){
  #edxh-page .edxh-section,#edxh-page .edxh-topic{padding:61px 0}
  #edxh-page .edxh-hero{padding-top:27px}
  #edxh-page h1{font-size:43px}
  #edxh-page .edxh-visual{min-height:450px;border-radius:22px}
  #edxh-page .edxh-stack{width:69%}
  #edxh-page .edxh-sheet.front{padding:24px 20px 20px}
  #edxh-page .edxh-float{display:none}
  #edxh-page .edxh-btn{width:100%}
  #edxh-page .edxh-card,#edxh-page .edxh-content,#edxh-page .edxh-resource{padding:23px}
  #edxh-page .edxh-cta{padding:28px 22px}
}

/* =========================================================
   EDICTUMX - ARTICOLI APPROFONDIMENTO
   ========================================================= */

.edictum-article {
    max-width: 1050px;
    margin: 0 auto;
    padding: 10px 0 50px;
    color: #e8edf5;
    font-size: 18px;
    line-height: 1.72;
}

/* PARAGRAFI */
.edictum-article p {
    color: #d8dee9;
    margin: 0 0 24px;
    line-height: 1.75;
}

/* INTRO */
.edictum-article header p {
    font-size: 20px !important;
    line-height: 1.7 !important;
    color: #bfc7d5 !important;
}

/* TITOLI */
.edictum-article h2 {
    color: #ffffff;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.7px;
    margin: 52px 0 24px;
}

.edictum-article h3 {
    color: #ffffff;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    font-weight: 750;
    margin: 38px 0 18px;
}

/* GRASSETTI */
.edictum-article strong {
    color: #ffffff;
    font-weight: 700;
}

/* LINK */
.edictum-article a {
    color: #e84555;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.edictum-article a:hover {
    color: #ff6976;
    text-decoration: underline;
}

/* =========================================================
   CITAZIONI
   ========================================================= */

.edictum-article blockquote {
    position: relative;
    margin: 35px 0;
    padding: 26px 30px 26px 34px !important;
    background: #172033 !important;
    color: #f4f6fa !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 5px solid #e52d3d !important;
    border-radius: 0 10px 10px 0;
    font-size: 20px;
    font-style: italic;
    line-height: 1.55;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.edictum-article blockquote p {
    color: #f4f6fa !important;
    margin: 0;
}

/* =========================================================
   IMMAGINI
   ========================================================= */

.edictum-article figure {
    width: 100%;
    max-width: 900px;
    margin: 42px auto !important;
    text-align: center;
}

.edictum-article figure img,
.edictum-article img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.28);
}

.edictum-article figcaption {
    color: #8e99aa !important;
    font-size: 14px !important;
    line-height: 1.5;
    margin-top: 12px !important;
}

/* Se l'immagine non esiste evita il box enorme del browser */
.edictum-article img:not([src]),
.edictum-article img[src=""] {
    display: none;
}

/* =========================================================
   ELENCHI
   ========================================================= */

.edictum-article ul,
.edictum-article ol {
    color: #d8dee9;
    margin: 15px 0 30px 25px;
    padding-left: 20px;
}

.edictum-article li {
    margin-bottom: 10px;
    line-height: 1.65;
}

.edictum-article li::marker {
    color: #e52d3d;
}

/* =========================================================
   BOX SCURO
   ========================================================= */

.edictum-article .edictum-dark-box {
    margin: 38px 0;
    padding: 28px 32px;
    background:
        linear-gradient(
            135deg,
            rgba(229,45,61,0.12),
            rgba(255,255,255,0.02)
        ),
        #0b1220;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #ffffff;
}

.edictum-article .edictum-dark-box p {
    color: #ffffff;
}

/* =========================================================
   BOX CENTRATO
   ========================================================= */

.edictum-article .edictum-highlight {
    margin: 40px 0;
    padding: 30px;
    background: #172033;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
}

.edictum-article .edictum-highlight strong {
    font-size: 28px;
}

/* =========================================================
   PAROLE CHIAVE COMUNICARE/RICORDARE/RIUNIRE
   ========================================================= */

.edictum-article .edictum-three-words {
    margin: 45px auto;
    padding: 32px 20px;
    text-align: center;
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.edictum-article .edictum-three-words p {
    margin: 4px 0;
    color: #ffffff !important;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================================================
   SEPARATORE
   ========================================================= */

.edictum-article hr {
    border: 0;
    height: 1px;
    margin: 55px 0 35px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.22),
        transparent
    );
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .edictum-article {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 17px;
    }

    .edictum-article header p {
        font-size: 18px !important;
    }

    .edictum-article h2 {
        margin-top: 42px;
    }

    .edictum-article blockquote {
        padding: 22px 22px 22px 25px !important;
        font-size: 18px;
    }

    .edictum-article figure {
        margin: 30px auto !important;
    }

}

/* ==========================================================
   EDICTUMX — MANIFESTI / MARKETPLACE / VOTAZIONE
   BLOCCO UNIFICATO E PULITO
   ========================================================== */

.edx-vote-page,
.edx-market-page{
  --edx-red:#e1262f;
  --edx-red-light:#ff4d55;
  --edx-bg:#10192b;
  --edx-panel:#171f30;
  --edx-panel-2:#101724;
  --edx-text:#f6f7f9;
  --edx-muted:#b8bec8;
  --edx-border:rgba(255,255,255,.08);
  color:var(--edx-text);
}
.edx-vote-page *,
.edx-market-page *{box-sizing:border-box}

.edx-market-kicker,
.edx-vote-kicker,
.edx-vote-section-label{
  display:inline-block;
  margin-bottom:15px;
  color:var(--edx-red-light)!important;
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

/* HERO */
.edx-market-hero{
  max-width:1180px;
  margin:48px auto 90px;
  padding:68px 40px;
  text-align:center;
}
.edx-market-hero-inner{max-width:920px;margin:auto}

.edx-market-hero h1,
.edx-layers-heading h2,
.edx-assets-copy h2,
.edx-pack-section h2,
.edx-market-research h2,
.edx-vote-process-heading h2,
.edx-before-vote h2,
.edx-voting-heading h2,
.edx-vote-thanks h2{
  color:#fff!important;
  font-weight:800;
  line-height:1.04;
  letter-spacing:-.045em;
}
.edx-market-hero h1{
  margin:0 0 28px;
  font-size:clamp(42px,5.6vw,76px);
}
.edx-market-hero h1 span,
.edx-pack-section h2 span,
.edx-market-research h2 span,
.edx-before-vote h2 span,
.edx-voting-heading h2 span,
.edx-vote-thanks h2 span{
  color:var(--edx-red-light)!important;
}
.edx-market-hero p{
  max-width:800px;
  margin:0 auto 15px;
  color:#d3d7de!important;
  font-size:18px;
  line-height:1.75;
}
.edx-market-hero-lead{font-size:21px!important}

/* ==========================================================
   TRE LIVELLI — SCROLL ANIMATION
   Il movimento è pilotato dal JS WPCode.
   Nessuna regola :hover: funziona anche su mobile.
   ========================================================== */
.edx-layers-section{
  position:relative;
  max-width:1220px;
  margin:0 auto 120px;
  padding:70px 45px;
  overflow:visible;
  border:1px solid var(--edx-border);
  border-radius:28px;
  background:
    radial-gradient(circle at 70% 20%,rgba(225,38,47,.12),transparent 32%),
    linear-gradient(145deg,#171f30,#101724);
  box-shadow:0 25px 65px rgba(0,0,0,.18);
}
.edx-layers-heading{
  position:relative;
  z-index:10;
  max-width:800px;
  margin:0 auto 28px;
  text-align:center;
}
.edx-layers-heading h2{
  margin:0 0 18px;
  font-size:clamp(39px,5vw,64px);
}
.edx-layers-heading h2 span{color:var(--edx-red-light)!important}
.edx-layers-heading p{
  max-width:700px;
  margin:auto;
  color:#c6cbd3!important;
  font-size:17px;
  line-height:1.7;
}

/* Durata dell'animazione */
.edx-layer-scroll{
  position:relative;
  height:150vh;
  min-height:1050px;
}

/* Il manifesto resta fermo mentre i livelli si ricompongono */
.edx-layers-sticky{
  position:sticky;
  top:105px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  height:calc(100vh - 125px);
  min-height:620px;
}

.edx-layer-stack{
  position:relative;
  width:100%;
  max-width:1000px;
  height:min(62vh,600px);
  perspective:1600px;
  transform-style:preserve-3d;
}

.edx-layer-item{
  position:absolute;
  top:50%;
  left:50%;
  width:min(650px,67vw);
  transform-style:preserve-3d;
  will-change:transform,opacity,filter;
}
.edx-layer-item img{
  display:block;
  width:100%;
  height:auto;
  margin:0;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  filter:drop-shadow(0 22px 30px rgba(0,0,0,.22));
}

.edx-layer-sfondo{
  z-index:1;
  transform:translate(-72%,-50%) rotateY(14deg) translateZ(-110px);
}
.edx-layer-immagine{
  z-index:2;
  width:min(500px,53vw);
  transform:translate(-52%,-56%) rotateY(6deg) translateZ(30px);
}
.edx-layer-cornice{
  z-index:3;
  transform:translate(-28%,-50%) rotateY(-14deg) translateZ(120px);
}

.edx-layer-tag{
  position:absolute;
  left:50%;
  bottom:-42px;
  transform:translateX(-50%);
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(12,18,29,.88);
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  white-space:nowrap;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:opacity .25s linear,transform .25s linear;
}

.edx-compose-status{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:18px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#c9ced6;
  font-size:12px;
  font-weight:700;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.edx-compose-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--edx-red-light);
  box-shadow:0 0 12px rgba(239,65,71,.7);
}
.edx-compose-progress{
  width:min(360px,70%);
  height:3px;
  margin-top:14px;
  overflow:hidden;
  border-radius:20px;
  background:rgba(255,255,255,.09);
}
.edx-compose-progress span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#bd1b23,#ff4b53);
  box-shadow:0 0 12px rgba(239,65,71,.4);
}

/* Schede sotto l'animazione */
.edx-layers-explain{
  position:relative;
  z-index:10;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  max-width:1000px;
  margin:-20px auto 0;
}
.edx-layers-explain article{
  padding:26px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.04);
}
.edx-layers-explain article>span{
  display:block;
  margin-bottom:17px;
  color:rgba(255,255,255,.17);
  font-size:34px;
  font-weight:900;
}
.edx-layers-explain h3{
  margin:0 0 9px;
  color:#fff!important;
  font-size:21px;
}
.edx-layers-explain p{
  margin:0;
  color:#b8bec7!important;
  font-size:14px;
  line-height:1.65;
}

/* 600+ GRAFICHE */
.edx-assets-section{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:55px;
  align-items:center;
  max-width:1100px;
  margin:0 auto 120px;
  padding:0 30px;
}
.edx-assets-number{text-align:center}
.edx-assets-number strong{
  display:block;
  color:var(--edx-red-light);
  font-size:clamp(85px,10vw,135px);
  font-weight:900;
  line-height:.85;
  letter-spacing:-.07em;
}
.edx-assets-number span{
  display:block;
  margin-top:18px;
  color:#fff;
  font-size:13px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.edx-assets-copy h2{
  margin:0 0 22px;
  font-size:clamp(34px,4vw,52px);
}
.edx-assets-copy p{
  color:#c2c7cf!important;
  font-size:17px;
  line-height:1.72;
}
.edx-assets-copy strong{color:#fff}

/* MANIFESTI PACK */
.edx-pack-section{
  max-width:1100px;
  margin:0 auto 115px;
  padding:70px 65px;
  border-radius:28px;
  background:#fff;
  color:#17191d;
  box-shadow:0 30px 70px rgba(0,0,0,.16);
}
.edx-pack-inner{max-width:900px;margin:auto}
.edx-pack-section h2{
  margin:0 0 25px;
  color:#17191d!important;
  font-size:clamp(38px,4.5vw,58px);
}
.edx-pack-section h2 span{color:var(--edx-red)!important}
.edx-pack-section p{
  color:#59616b!important;
  font-size:17px;
  line-height:1.75;
}
.edx-pack-section strong{color:#17191d}
.edx-pack-lead{
  color:#17191d!important;
  font-size:22px!important;
  font-weight:700;
}
.edx-pack-points{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:38px;
}
.edx-pack-points>div{
  padding:24px;
  border-radius:16px;
  background:#f5f6f7;
}
.edx-pack-points strong{
  display:block;
  margin-bottom:8px;
  font-size:16px;
}
.edx-pack-points span{
  display:block;
  color:#737a84;
  font-size:13px;
  line-height:1.55;
}

/* RICERCA DI MERCATO / SCOPO DEL VOTO */
.edx-market-research{
  max-width:1180px;
  margin:0 auto 115px;
  padding:70px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  background:linear-gradient(135deg,#171f30,#0e1522);
}
.edx-market-research-inner{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);
  gap:55px;
  align-items:center;
}
.edx-market-research h2{
  margin:0 0 20px;
  font-size:clamp(38px,4.5vw,58px);
}
.edx-market-research p{
  color:#c3c8d0!important;
  font-size:17px;
  line-height:1.75;
}
.edx-market-research strong{color:#fff}
.edx-market-research-lead{
  color:#fff!important;
  font-size:23px!important;
  font-weight:700;
}
.edx-market-insight{
  padding:38px;
  border:1px solid rgba(225,38,47,.25);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(225,38,47,.12),rgba(255,255,255,.035));
}
.edx-market-insight-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:55px;
  height:55px;
  margin-bottom:25px;
  border-radius:14px;
  background:var(--edx-red);
  color:#fff;
  font-size:27px;
}
.edx-market-insight>span{
  display:block;
  margin-bottom:10px;
  color:#9da4af;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
}
.edx-market-insight>strong{
  display:block;
  margin-bottom:18px;
  color:#fff;
  font-size:29px;
  line-height:1.15;
}

/* PROCESSO */
.edx-vote-process{
  max-width:1100px;
  margin:0 auto 110px;
  padding:0 30px;
}
.edx-vote-process-heading{
  max-width:760px;
  margin:0 auto 40px;
  text-align:center;
}
.edx-vote-process-heading h2{
  margin:0;
  font-size:clamp(36px,4vw,50px);
}
.edx-vote-process-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.edx-vote-process-grid article{
  padding:30px;
  border-radius:18px;
  background:#fff;
  color:#17191d;
  box-shadow:0 14px 35px rgba(0,0,0,.08);
}
.edx-process-number{
  display:block;
  margin-bottom:25px;
  color:#e1e3e6;
  font-size:46px;
  font-weight:900;
}
.edx-vote-process-grid h3{
  margin:0 0 10px;
  color:#17191d!important;
  font-size:22px;
}
.edx-vote-process-grid p{
  margin:0;
  color:#646b74!important;
  line-height:1.65;
}

/* CTA PRIMA DEL VOTO */
.edx-before-vote{
  max-width:900px;
  margin:0 auto 80px;
  padding:30px;
  text-align:center;
}
.edx-before-vote h2{
  margin:0 0 20px;
  font-size:clamp(38px,4.5vw,56px);
}
.edx-before-vote p{
  max-width:680px;
  margin:0 auto 30px;
  color:#c2c7cf!important;
  font-size:18px;
  line-height:1.7;
}
.edx-market-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:52px;
  padding:14px 24px;
  border-radius:12px!important;
  background:linear-gradient(135deg,#d9232c,#f0444c)!important;
  color:#fff!important;
  font-weight:800;
  text-decoration:none!important;
  box-shadow:0 14px 30px rgba(225,38,47,.25)!important;
  transition:transform .25s ease,box-shadow .25s ease;
}
.edx-market-button:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 38px rgba(225,38,47,.32)!important;
}

/* AREA VOTAZIONE */
.edx-voting-area{
  position:relative;
  margin:0 -20px;
  padding:95px 30px;
  background:linear-gradient(180deg,rgba(255,255,255,.025),transparent);
  border-top:1px solid rgba(255,255,255,.07);
}
.edx-voting-heading{
  max-width:800px;
  margin:0 auto 45px;
  text-align:center;
}
.edx-voting-heading h2{
  margin:0 0 15px;
  font-size:clamp(40px,5vw,60px);
}
.edx-voting-heading p{
  max-width:650px;
  margin:0 auto;
  color:#c2c7cf!important;
  font-size:18px;
  line-height:1.65;
}
.edx-protection-note{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:20px;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#c7cbd2;
  font-size:12px;
}
.edx-lock{color:var(--edx-red-light)}

/* Plugin votazione */
.edx-vote-plugin-wrap{
  max-width:1240px;
  margin:auto;
}
.edx-vote-plugin-wrap .emv-wrap{
  margin:0 auto!important;
  padding:28px!important;
  border-radius:22px!important;
  background:#12151a!important;
  box-shadow:0 25px 60px rgba(0,0,0,.18)!important;
}
.edx-vote-plugin-wrap .emv-hero-copy .emv-kicker,
.edx-vote-plugin-wrap .emv-hero-copy h2,
.edx-vote-plugin-wrap .emv-hero-copy p,
.edx-vote-plugin-wrap .emv-hero-note,
.edx-vote-plugin-wrap .emv-hero-chips,
.edx-vote-plugin-wrap .emv-hero-media{
  display:none!important;
}
.edx-vote-plugin-wrap .emv-hero{display:block!important}
.edx-vote-plugin-wrap .emv-hero-copy{
  padding:0!important;
  text-align:center;
}
.edx-vote-plugin-wrap .emv-counter{
  display:inline-flex!important;
  margin:0 auto 25px!important;
}
.edx-vote-plugin-wrap .emv-header{
  margin-bottom:10px!important;
  text-align:center;
}
.edx-vote-plugin-wrap .emv-card{
  border:1px solid #292e36!important;
  border-radius:16px!important;
  background:#1a1e24!important;
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease!important;
}
.edx-vote-plugin-wrap .emv-card:hover{
  transform:translateY(-6px)!important;
  border-color:rgba(216,32,39,.55)!important;
  box-shadow:0 20px 40px rgba(0,0,0,.25)!important;
}
.edx-vote-plugin-wrap .emv-vote-btn{
  min-height:44px!important;
  padding:10px 15px!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,#c91f26,#ed383e)!important;
  box-shadow:0 8px 22px rgba(216,32,39,.23)!important;
}

/* RINGRAZIAMENTO */
.edx-vote-thanks{
  max-width:850px;
  margin:110px auto;
  padding:0 25px;
  text-align:center;
}
.edx-thanks-symbol{
  margin-bottom:20px;
  color:var(--edx-red);
  font-size:36px;
  animation:edxHeartBeat 3s ease-in-out infinite;
}
.edx-vote-thanks h2{
  margin:4px 0 23px;
  font-size:clamp(38px,5vw,58px);
}
.edx-vote-thanks p{
  max-width:650px;
  margin:0 auto 30px;
  color:#c2c7cf!important;
  font-size:17px;
  line-height:1.7;
}
.edx-vote-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:50px;
  padding:12px 20px;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.05)!important;
  color:#fff!important;
  font-weight:700;
  text-decoration:none!important;
  box-shadow:none!important;
}

/* Animazioni leggere non dipendenti dal JS */
.edx-reveal{
  opacity:1!important;
  transform:none!important;
  animation:edxFadeUp .8s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes edxFadeUp{
  from{opacity:0;transform:translateY(26px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes edxHeartBeat{
  0%,100%{transform:scale(1)}
  10%{transform:scale(1.13)}
  20%{transform:scale(1)}
}

/* TABLET */
@media(max-width:950px){
  .edx-assets-section,
  .edx-market-research-inner{
    grid-template-columns:1fr;
  }
  .edx-assets-number{margin-bottom:10px}
  .edx-pack-points,
  .edx-vote-process-grid,
  .edx-layers-explain{
    grid-template-columns:1fr;
  }
  .edx-market-research,
  .edx-pack-section{
    padding:52px 36px;
  }
  .edx-layer-scroll{
    height:135vh;
    min-height:880px;
  }
  .edx-layers-sticky{
    top:88px;
    height:calc(100vh - 105px);
    min-height:540px;
  }
  .edx-layer-stack{height:500px}
}

/* MOBILE */
@media(max-width:650px){
  .edx-market-hero{
    margin-top:22px;
    margin-bottom:70px;
    padding:45px 20px;
  }
  .edx-market-hero h1{font-size:42px}
  .edx-market-hero p{font-size:16px}

  .edx-layers-section,
  .edx-market-research,
  .edx-pack-section{
    margin-left:12px;
    margin-right:12px;
    padding:42px 18px;
    border-radius:22px;
  }

  .edx-layers-heading h2{font-size:38px}

  .edx-layer-scroll{
    height:125vh;
    min-height:760px;
  }
  .edx-layers-sticky{
    top:68px;
    height:calc(100vh - 82px);
    min-height:500px;
  }
  .edx-layer-stack{height:380px}
  .edx-layer-item{width:84vw}
  .edx-layer-immagine{width:66vw}
  .edx-layer-sfondo{
    transform:translate(-70%,-50%) rotateY(9deg) translateZ(-70px);
  }
  .edx-layer-immagine{
    transform:translate(-52%,-55%) rotateY(4deg) translateZ(18px);
  }
  .edx-layer-cornice{
    transform:translate(-30%,-50%) rotateY(-9deg) translateZ(75px);
  }
  .edx-layer-tag{
    bottom:-31px;
    padding:5px 9px;
    font-size:9px;
  }
  .edx-compose-status{
    margin-top:4px;
    font-size:10px;
  }

  .edx-assets-section{padding:0 18px}

  .edx-voting-area{
    margin:0;
    padding:70px 14px;
  }
  .edx-vote-plugin-wrap .emv-wrap{padding:17px!important}
  .edx-vote-thanks{margin:80px auto}
}

/* ACCESSIBILITÀ */
@media(prefers-reduced-motion:reduce){
  .edx-reveal,
  .edx-thanks-symbol{
    animation:none!important;
  }
  .edx-layer-item,
  .edx-layer-tag{
    transition:none!important;
  }
}

/* ==========================================================
   EDICTUMX — FIX DEFINITIVO ANIMAZIONE 3 LIVELLI
   ========================================================== */

.edx-layers-section {
    position: relative;
    overflow: visible !important;
}


/* Area dell'animazione */

.edx-layer-scroll {
    position: relative;
    height: 145vh;
    min-height: 950px;
}


/* Se stai ancora usando il vecchio HTML con .edx-layers-stage
   funziona ugualmente */

.edx-layers-stage {
    position: relative;
    max-width: 1000px;
    height: 600px;
    margin: 0 auto 50px;
    perspective: 1600px;
}


/* VERSIONE NUOVA STICKY */

.edx-layers-sticky {
    position: sticky;
    top: 105px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: calc(100vh - 125px);
    min-height: 600px;
}


/* PALCO */

.edx-layer-stack {
    position: relative;

    width: 100%;
    max-width: 1000px;

    height: min(62vh, 600px);

    perspective: 1600px;
    transform-style: preserve-3d;

    cursor: default !important;
}


/* ==========================================================
   IMPORTANTISSIMO:
   TUTTI E TRE I PNG DEVONO AVERE LA STESSA DIMENSIONE
   ========================================================== */

.edx-layer-item,
.edx-layer-sfondo,
.edx-layer-immagine,
.edx-layer-cornice {

    position: absolute;

    top: 50%;
    left: 50%;

    width: min(650px, 72vw) !important;

    margin: 0 !important;

    transform-origin: center center;

    transform-style: preserve-3d;

    will-change: transform, opacity;

    transition: none !important;
}


.edx-layer-item img {

    display: block;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;

    pointer-events: none;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    filter:
        drop-shadow(
            0 20px 28px
            rgba(0,0,0,.20)
        );
}


/* ==========================================================
   POSIZIONE INIZIALE
   Il JavaScript partirà da questi valori.
   ========================================================== */

.edx-layer-sfondo {

    z-index: 1;

    transform:
        translate(-74%, -50%)
        rotateY(13deg)
        translateZ(-100px);
}


.edx-layer-immagine {

    z-index: 2;

    transform:
        translate(-50%, -60%)
        rotateY(4deg)
        translateZ(25px);
}


.edx-layer-cornice {

    z-index: 3;

    transform:
        translate(-26%, -50%)
        rotateY(-13deg)
        translateZ(105px);
}


/* ==========================================================
   DISATTIVA DEFINITIVAMENTE IL VECCHIO HOVER
   ========================================================== */

.edx-layer-stack:hover .edx-layer-sfondo,
.edx-layer-stack:hover .edx-layer-immagine,
.edx-layer-stack:hover .edx-layer-cornice {

    /* Lo scroll, non il mouse, decide la posizione */
}


/* ==========================================================
   ETICHETTE
   ========================================================== */

.edx-layer-tag {

    position: absolute;

    left: 50%;
    bottom: -40px;

    transform: translateX(-50%);

    padding: 7px 12px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 999px;

    background:
        rgba(10,16,27,.88);

    color: #fff;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    will-change:
        opacity,
        transform;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .edx-layer-scroll {

        height: 125vh;
        min-height: 720px;
    }


    .edx-layers-sticky {

        top: 70px;

        height:
            calc(100vh - 85px);

        min-height: 480px;
    }


    .edx-layer-stack,
    .edx-layers-stage {

        height: 390px;
    }


    .edx-layer-item,
    .edx-layer-sfondo,
    .edx-layer-immagine,
    .edx-layer-cornice {

        width: min(88vw, 570px) !important;
    }


    .edx-layer-tag {

        bottom: -30px;

        padding: 5px 8px;

        font-size: 9px;
    }

}