/*
Theme Name: 	SPEED
Description: 	Responsive WordPress Theme based on Boostrap and Font Awesome.
Version: 1.0.1
Author:     	Andrea Marchetti
Author URI:   http://www.marchettidesign.net/chi-sono/
Site:         http://www.marchettidesign.net
Text Domain: 	nakedpress
Domain Path: 	/languages
Tags:        	grid-layout, blog, custom-menu, featured-image
License:     	GNU General Public License v3.0
License URI: 	http://www.gnu.org/licenses/gpl-3.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Sidebar fissa a sinistra (solo su desktop) */
.shop-sidebar{
  position: fixed;
  top: 100px;       /* uguale all'altezza del tuo header */
  left: 0;
  width: 250px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #eee;
  padding: 20px;
  z-index: 10;      /* BASSO, così il footer può stare sopra */
}

/* Colonna prodotti spostata a destra della sidebar */
.shop-content{
  margin-left: 250px;   /* (= larghezza sidebar) */
  padding: 20px;
}

/* Media queries responsive per sidebar */
@media (max-width: 1024px) {
  .shop-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
    border-right: none;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
  }
  
  .shop-content {
    margin-left: 0;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .shop-sidebar {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .shop-content {
    padding: 15px;
  }
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 400;
  src: url("fonts/Inter-Regular.woff2?v=3.3") format("woff2"),
       url("fonts/Inter-Regular.woff?v=3.3") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 700;
  src: url("fonts/Inter-Bold.woff2?v=3.3") format("woff2"),
       url("fonts/Inter-Bold.woff?v=3.3") format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 800;
  src: url("fonts/Inter-ExtraBold.woff2?v=3.3") format("woff2"),
       url("fonts/Inter-ExtraBold.woff?v=3.3") format("woff");
}

:root {
  --speed-font-body: 'DM Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --speed-font-display: 'Quicksand', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --speed-font-ui: 'DM Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   iOS / SAFARI GLOBAL FIXES
   ============================================================ */

/* Rimuovi il tap-highlight blu/grigio su iOS */
a, button, input, select, textarea,
[role="button"], label, summary {
  -webkit-tap-highlight-color: transparent;
}

/* Rimuovi callout/long-press su link e immagini iOS */
a, img {
  -webkit-touch-callout: none;
}

/* touch-action: manipulation rimuove il ritardo 300ms tap su iOS
   e disabilita double-tap-to-zoom su bottoni interattivi */
button, [role="button"],
.btn, .button,
.hamburger, .mobile-menu-close,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.mobile-cart .cart-link,
.cart-link,
.speed-btn-login,
.speed-btn-register,
.add_to_cart_button,
.single_add_to_cart_button {
  touch-action: manipulation;
}

/* Pulsante submit e input type submit */
input[type="submit"],
input[type="button"],
input[type="reset"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Previeni zoom automatico iOS su input/select con font-size < 16px */
@media (max-width: 768px) {
  input[type="email"],
  input[type="number"],
  input[type="search"],
  input[type="text"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  textarea,
  select {
    font-size: 16px !important;
  }
}


/* WP Admin Bar: gestione offset spostata in JavaScript (padding-top dinamico) */


/* ------------------------------------------------------------------------- *
/* ! Base */
/* ------------------------------------------------------------------------- */

/* Skip Link per accessibilità tastiera */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #EA4343;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 100000;
  border-radius: 0 0 4px 0;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.screen-reader-text:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Typography */
body{
  font-size: 15px; 
  line-height: 22px; 
  font-family: var(--speed-font-body);
  -webkit-font-smoothing: antialiased; 
  -webkit-text-size-adjust: 100%;
  /* Sfondo corpo pagina: bianco pieno */
  background: #ffffff;
  min-height: 100vh;
}

button,
input,
select,
textarea,
.button,
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--speed-font-ui);
}

/* Title */
h1, h2, h3, h4, h5, h6 {
  color: #000000;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: var(--speed-font-display);
  letter-spacing: -0.02em;
}

.page-title,
.product_title,
.woocommerce-loop-product__title,
.shop-sidebar-title,
.widget-title {
  font-family: var(--speed-font-display);
}

/* Link color */
a{ color: #da0000;  text-decoration: none;}
a:focus, a:hover { color: #D00D0D; }

h1{font-size: 65px;}
h2{font-size: 50px;}
h3{font-size: 30px;}

.no-col{padding-top: 0;}
hr{border-top: 1px solid #ccc}
.upp{font-weight: bold;text-transform: uppercase;}


/* --------------------------------------------------------------------------------------------------------------------------- */
/* ! Header */
/* --------------------------------------------------------------------------------------------------------------------------- */

/* Body: padding-top calcolato dinamicamente via JS (include admin bar offset quando presente) */
body{overflow-x: hidden;}
body.page-template-gutemberg{padding-top: 0;}

/* Header: fixed top con sfondo bianco, responsive, compatibile con WP admin bar */
header.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px 20px;
  /* iOS safe area: aggiunge padding laterale per notch in landscape */
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Nuova struttura header - singola fila */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
  gap: 20px;
}

/* Menu dinamico (wp_nav_menu) - stile professionale */
.nav-container { 
  flex: 1; 
  display: flex; 
  justify-content: center; 
  align-items: center;
}

.header-menu { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 36px; /* leggermente ridotto per migliore equilibrio visivo */
}

header.nav-wrap .header-menu > li > a { 
  font-family: var(--speed-font-display);
  font-weight: 700; 
  font-size: 15px; 
  color: #000000; 
  text-decoration: none; 
  padding: 10px 16px; /* padding ridotto per evitare eccessiva larghezza complessiva */
  display: flex; 
  align-items: center; 
  position: relative; 
  line-height: 1.2; 
  white-space: nowrap;
  border-radius: 6px; 
  transition: all 0.3s ease; 
  letter-spacing: 0.3px;
}

/* Pannello mobile nascosto su desktop per evitare doppia lista */
.mobile-menu-panel { display: none; }

/* Blocca scroll del body quando il menu mobile è aperto */
body.mobile-menu-open { overflow: hidden; }

header.nav-wrap .header-menu > li > a:hover { 
  color: #EA4343; 
  background: rgba(234, 67, 67, 0.08);
  transform: translateY(-1px);
}

header.nav-wrap .header-menu > li.active > a, 
header.nav-wrap .header-menu > li.current-menu-item > a { 
  color: #EA4343; 
}

header.nav-wrap .header-menu > li.active > a:after, 
header.nav-wrap .header-menu > li.current-menu-item > a:after { 
  content: ''; 
  position: absolute; 
  left: 50%; 
  bottom: -2px; 
  transform: translateX(-50%); 
  width: 30px; 
  height: 3px; 
  border-radius: 2px; 
  background: #EA4343; 
}

/* ============================================================
   PULSANTE "SHOP" IN EVIDENZA NELL'HEADER
   Stessi colori/materiale del bottone "Aggiungi" sulle card prodotto
   (gradiente rosso->blu del brand), qui in versione "pulsante fisico"
   con bordo/ombra a gradino per dare profondita' e un vero stato
   premuto al click. Selezionato per href (niente classi disponibili
   dal walker del menu) cosi' funziona su ogni pagina del sito.
   ============================================================ */
header.nav-wrap .header-menu > li > a[href$="/negozio/"] {
    color: #fff !important;
    background: linear-gradient(135deg, #E60012 0%, #005BAC 100%) !important;
    padding: 10px 26px !important;
    font-weight: 800;
    letter-spacing: 0.4px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 3px 0 rgba(0,0,0,0.22),
        0 8px 16px rgba(0,0,0,0.18);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}
header.nav-wrap .header-menu > li > a[href$="/negozio/"]:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #E60012 0%, #005BAC 100%) !important;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 5px 0 rgba(0,0,0,0.22),
        0 12px 22px rgba(0,0,0,0.24);
}
header.nav-wrap .header-menu > li > a[href$="/negozio/"]:active {
    transform: translateY(1px);
    filter: brightness(0.97);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 1px 0 rgba(0,0,0,0.22),
        0 3px 8px rgba(0,0,0,0.18);
}
/* Niente sottolineatura/rosso di stato attivo sopra un bottone pieno */
header.nav-wrap .header-menu > li.active > a[href$="/negozio/"],
header.nav-wrap .header-menu > li.current-menu-item > a[href$="/negozio/"] {
    color: #fff !important;
}
header.nav-wrap .header-menu > li.active > a[href$="/negozio/"]:after,
header.nav-wrap .header-menu > li.current-menu-item > a[href$="/negozio/"]:after {
    display: none;
}

@media (max-width: 1180px) {
    header.nav-wrap .header-menu > li > a[href$="/negozio/"] {
        padding: 10px 20px !important;
    }
}

/* Stessa identita' visiva nel pannello menu mobile */
@media (max-width: 1024px) {
    .mobile-menu-panel ul.header-menu > li > a[href$="/negozio/"] {
        color: #fff !important;
        background: linear-gradient(135deg, #E60012 0%, #005BAC 100%) !important;
        border: none !important;
        font-weight: 800;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.35),
            0 3px 0 rgba(0,0,0,0.22),
            0 6px 14px rgba(0,0,0,0.18);
    }
    .mobile-menu-panel ul.header-menu > li > a[href$="/negozio/"]:hover {
        background: linear-gradient(135deg, #E60012 0%, #005BAC 100%) !important;
        filter: brightness(1.08);
    }
    .mobile-menu-panel ul.header-menu > li > a[href$="/negozio/"]:active {
        transform: translateY(1px);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.2),
            0 1px 0 rgba(0,0,0,0.22),
            0 2px 6px rgba(0,0,0,0.18);
    }
}

header.nav-wrap .header-menu .tana-mini-logo { 
  height: 100px; 
  width: auto; 
  display: block; 
  transition: transform 0.3s ease;
}

/* Rimuovi hover rosso da link Tana, solo movimento logo */
header.nav-wrap .header-menu li:has(.tana-mini-logo) > a {
  padding: 0 !important;
}

header.nav-wrap .header-menu li:has(.tana-mini-logo) > a:hover {
  color: #000 !important;
  background: transparent !important;
  transform: none !important;
}

header.nav-wrap .header-menu > li > a:hover .tana-mini-logo {
  transform: scale(1.08);
}

header.nav-wrap .header-menu li:has(.tana-mini-logo) > a:hover .tana-mini-logo {
  transform: scale(1.08);
}

/* Desktop stretto (prima del tablet): recupera spazio per evitare wrap su "Il mio account" */
@media (max-width: 1180px) {
  .header-menu { gap: 22px; }
  header.nav-wrap .header-menu > li > a { font-size: 14px; padding: 10px 12px; }
  header.nav-wrap .header-menu .tana-mini-logo { height: 85px; }
}

/* Responsive: tablet/desktop intermedio */
@media (max-width: 1024px) {
  header.nav-wrap { padding: 6px 14px; }
  .header-row { gap: 12px; }
  .nav-container { padding: 0 6px; }
  .header-menu {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  header.nav-wrap .header-menu > li > a {
    font-size: 14px;
    padding: 8px 8px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  header.nav-wrap .header-menu .tana-mini-logo { height: 70px; }
}

/* Responsive: tablet stretto */
@media (max-width: 900px) {
  header.nav-wrap { padding: 4px 10px; }
  .header-row { gap: 8px; padding: 6px 0; }
  .nav-container { padding: 0 4px; }
  .header-menu {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  header.nav-wrap .header-menu > li > a { font-size: 13px; padding: 6px 6px; white-space: nowrap; }
  header.nav-wrap .header-menu .tana-mini-logo { height: 65px; }
}

/* Header Item e Logo principale */
.header-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo principale */
.logo-item .logo img {
  height: 50px;
  width: auto;
}

/* Carrello desktop: icona + badge */
/* Carrello desktop: icona + badge */
.cart-item {
  position: relative;
}
header.nav-wrap .cart-link { 
  display: flex; 
  align-items: center; 
  text-decoration: none; 
}
header.nav-wrap .cart-icon-wrapper { 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
header.nav-wrap .cart-icon-svg { 
  width: 34px; 
  height: 34px; 
  stroke: #111; 
  transition: stroke .3s ease, transform .3s ease; 
}
header.nav-wrap .cart-link:hover .cart-icon-svg { 
  stroke: #111; 
  transform: translateY(-2px); 
}
header.nav-wrap .header-menu li:has(.cart-link) > a:hover {
  color: #000 !important;
  background: transparent !important;
  transform: none !important;
}
header.nav-wrap .cart-badge { 
  position: absolute; 
  top: -6px; 
  right: -6px; 
  background: #EA4343; 
  color: #fff; 
  font-weight: 700; 
  font-size: 11px; 
  line-height: 1; 
  padding: 4px 6px; 
  border-radius: 14px; 
  min-width: 20px; 
  text-align: center; 
  box-shadow: 0 2px 6px rgba(0,0,0,.15); 
}

/* Hamburger e carrello mobile: nascosti su desktop */
.hamburger,
.mobile-cart { 
  display: none; 
}

@media (max-width: 768px) {
  /* Header mobile: fisso in alto, altezza aumentata */
  header.nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px; /* Più padding interno */
    height: 70px; /* Altezza aumentata */
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
  
  .header-row {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    padding: 0;
    height: 100%;
  }
  
  /* Logo nascosto su mobile per risparmiare spazio */
  .logo-item {
    display: none;
  }
  
  /* Menu desktop nascosto */
  .nav-container {
    display: none;
  }
  
  /* Padding-top body calcolato dinamicamente da script.js per includere admin bar */

  /* Hamburger - mostrato solo su mobile, perfettamente centrato */
  .hamburger {
    display: flex;
    width: 50px;
    height: 50px; /* Aumentato per migliore proporzione */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all .25s ease;
    order: 1;
  }
  .hamburger:hover { 
    background: #f8f8f8; 
    border-color: #ccc; 
  }
  .hamburger:active { 
    transform: scale(0.95); 
  }
  /* Linee hamburger - perfettamente centrate */
  .hamburger-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 1px;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity .2s ease, 
                top .3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .hamburger-line:nth-child(1) { top: 16px; }
  .hamburger-line:nth-child(2) { top: 24px; }
  .hamburger-line:nth-child(3) { top: 32px; }
  
  /* Animazione X quando attivo */
  .hamburger.is-active .hamburger-line:nth-child(1) { 
    top: 24px; 
    transform: rotate(45deg); 
  }
  .hamburger.is-active .hamburger-line:nth-child(2) { 
    opacity: 0; 
  }
  .hamburger.is-active .hamburger-line:nth-child(3) { 
    top: 24px; 
    transform: rotate(-45deg); 
  }

  /* Carrello mobile - mostrato solo su mobile, perfettamente centrato */
  .mobile-cart {
    display: flex;
    order: 3;
  }
  
  .mobile-cart .cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    background: #ffffff;
    transition: all .25s ease;
    height: 50px; /* Match hamburger height */
    box-sizing: border-box;
    text-decoration: none;
  }
  .mobile-cart .cart-link:hover { 
    border-color: #ccc; 
    background: #f8f8f8; 
  }
  .mobile-cart .cart-link:active { 
    transform: scale(0.95); 
  }
  .mobile-cart .cart-icon-svg { 
    width: 26px; 
    height: 26px; 
  }
  .mobile-cart .cart-badge { 
    top: -6px; 
    right: -6px; 
  }
  
  /* Nascondi carrello desktop dal menu */
  .header-menu .cart-item {
    display: none;
  }
  .header-menu .cart-item { display:none; }

  /* Pannello menu mobile overlay - slide da sinistra */
  #mobile-menu.mobile-menu-panel {
    display: flex;
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* iOS dynamic viewport */
    background: #ffffff;
    padding: 0 24px;
    /* iOS safe area: evita sovrapposizione con home indicator e notch */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: max(24px, env(safe-area-inset-left, 24px));
    padding-right: max(24px, env(safe-area-inset-right, 24px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; /* Previeni scroll chaining su iOS */
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity .4s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000001; /* Sopra a TUTTO incluso header e cart-icon */
  }

  /* Logo e tasto chiusura menu mobile */
  .mobile-menu-top {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      margin-bottom: 12px; 
      margin-top: 0;
      width: 100%;
      flex-shrink: 0;
      padding: 0 16px;
  }

  .mobile-menu-logo {
      height: 100px !important;
      max-height: 100px !important;
      width: auto !important;
      object-fit: contain;
  }

  /* Tasto chiusura posizionato in alto a destra nel pannello */
  .mobile-menu-close {
      position: fixed;
      right: 20px; 
      top: 14px;
      transform: none;
      background: #E53935;
      border: none;
      border-radius: 8px;
      width: 44px; /* Leggermente più grande per tocco facile */
      height: 44px;
      font-size: 28px;
      font-weight: 300;
      line-height: 1;
      color: #fff;
      cursor: pointer;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, transform 0.2s ease;
      z-index: 100; /* Assicura che sia sopra tutto */
      box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
  }

  .mobile-menu-close:hover {
      background: #C62828;
      transform: scale(1.05); /* Effetto hover */
  }

  .mobile-menu-close:active {
      background: #B71C1C;
  }

  #mobile-menu.mobile-menu-panel.open { 
    transform: translateX(0);
    opacity: 1; 
    pointer-events: auto; 
  }

  /* Body scroll lock quando menu aperto (overflow gestito da JS per iOS) */
  body.mobile-menu-open {
    overflow: hidden !important;
    /* position:fixed e top dinamico applicati via JS per iOS Safari */
  }

  /* Nasconde header quando menu mobile è aperto (menu ha z-index superiore) */
  body.mobile-menu-open header.nav-wrap {
    z-index: 999 !important;
  }

  .mobile-menu-panel ul.header-menu { 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    width: 100%; 
    text-align: center;
    padding: 0 8px;
    margin: 0;
  }
  .mobile-menu-panel ul.header-menu > li { 
    width: 100%; 
    max-width: 300px;
  }
  .mobile-menu-panel ul.header-menu > li > a { 
    padding: 10px 18px;
    width: 100%; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
    display: flex;
    align-items: center;
  }
  .mobile-menu-panel ul.header-menu > li > a:hover { background:#f5f5f5; transform:none; }
  .mobile-menu-panel ul.header-menu > li > a:active { background:#ececec; }
  .mobile-menu-panel ul.header-menu > li > a:focus { outline:2px solid #EA4343; outline-offset:2px; }
  
  /* Logo Tana delle Mini: niente bordo, solo logo più grande */
  .mobile-menu-panel ul.header-menu > li:has(.tana-mini-logo) > a {
    border: none;
    background: transparent;
    padding: 6px 0;
  }
  .mobile-menu-panel ul.header-menu > li:has(.tana-mini-logo) > a:hover {
    background: transparent;
  }
  .mobile-menu-panel .tana-mini-logo { 
    height: 50px;
  }
}

/* Ulteriore raffinazione per viewport molto strette (<600px) */
@media (max-width: 600px) {
  header.nav-wrap {
    height: 64px; /* Riduce altezza per guadagnare spazio verticale */
    padding: 0 14px; /* Margini laterali più compatti */
  }
  .header-row { gap: 12px; }
  /* Hamburger e carrello più compatti */
  .hamburger, .mobile-cart .cart-link {
    width: 44px;
    height: 44px;
  }
  .hamburger-line:nth-child(1) { top: 14px; }
  .hamburger-line:nth-child(2) { top: 22px; }
  .hamburger-line:nth-child(3) { top: 30px; }
  .hamburger.is-active .hamburger-line:nth-child(1) { top: 22px; }
  .hamburger.is-active .hamburger-line:nth-child(3) { top: 22px; }
  /* Pannello overlay: forza sempre fullscreen da top:0 */
  #mobile-menu.mobile-menu-panel { 
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 18px;
  }
  .mobile-menu-panel ul.header-menu { gap: 8px; }
  .mobile-menu-panel ul.header-menu > li > a { 
    font-size: 14px; 
    padding: 10px 16px; 
  }
  .mobile-cart .cart-icon-svg { width: 24px; height: 24px; }
  header.nav-wrap .cart-badge { font-size: 10px; padding: 3px 5px; }
}

/* ============================================================
   WORDPRESS ADMIN BAR - FORZA POSIZIONE FISSA SU TUTTI I VIEWPORT
   WordPress di default la rende position:absolute sotto i 600px.
   Qui forziamo il comportamento fisso per coerenza con l'header sticky.
   ============================================================ */
#wpadminbar {
  position: fixed !important;
  top: 0 !important;
}
/* WordPress core inietta uno stile inline "html { margin-top: 32px !important; }"
   (funzione _admin_bar_bump_cb in wp-includes/admin-bar.php) per fare spazio alla
   admin bar. Qui è già gestito da updateBodyPadding() in script.js (che include
   già l'altezza della admin bar nel padding-top del body), quindi va annullato:
   senza questo reset i due meccanismi si sommano, creando 32px di spazio vuoto
   sotto l'header visibile solo da utenti loggati. Selettore "html:root" invece di
   "html" per avere una specificità più alta della regola di WordPress e vincere
   sempre, a prescindere dall'ordine di caricamento dei fogli di stile. */
html:root {
  margin-top: 0 !important;
}

/* --------------------------------------------------------------------------------------------------------------------------- */
/* ! Content */
/* --------------------------------------------------------------------------------------------------------------------------- */

/* NASCONDE elementi mobile shop su desktop */
.shop-mobile-cat-bar {
  display: none;
}

/* Su desktop: pannello categorie sempre visibile (non è un pannello, è il contenuto sidebar) */
#shop-cat-panel {
  display: block;
}

/* Mobile Shop Category Toggle - Styles moved to css/woocommerce-custom.css */
/* Styles for shop category toggle and panel are now managed in the dedicated WooCommerce stylesheet */


/* Assicura che il contenuto interno non tocchi i bordi superiori su desktop larghi */
header.nav-wrap .grid.no-pad-menu { min-height: 100%; }

/* Mobile: riduciamo solo padding, altezza già responsiva con aspect-ratio */
@media (max-width: 767px) {
  header.nav-wrap { padding: 0 15px; }
}

.logo { display: block; float: left; }
.logo img { height: 60px; width: auto; margin-top: 2px; }

.spotlight{min-width: 80px}

.nav-light .alux-arrow{opacity: 0.5}
@media (min-width: 768px){
  .nav-light .alux-arrow{top:32px; right: 4px}
}

.nav-light a {
  color: #000000;
  font-weight: bold;
}

ul.dropdown-menu{box-shadow: none;border: 1px solid #ddd}
ul.primary ul.dropdown-menu li a{ border: none;}
ul.primary li a {padding: 28px 14px 22px 14px;}


/* Rimosso effetto cambio colore header allo scroll */
/* .navbar-scroll-down .nav-wrap{background: #fff;} */

/* Homepage: nasconde media (parte sinistra) del blocco hero fullwidth e centra contenuto */
body.home .wp-block-media-text.alignfull.is-stacked-on-mobile .wp-block-media-text__media {display: none !important;}
body.home .wp-block-media-text.alignfull.is-stacked-on-mobile {grid-template-columns: 1fr !important;}
body.home .wp-block-media-text.alignfull.is-stacked-on-mobile .wp-block-media-text__content {
  margin: 0 auto !important;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px !important;
}
body.home .wp-block-media-text.alignfull.is-stacked-on-mobile .wp-block-media-text__content a {
  display: inline-block;
  margin-top: 25px;
}

/* Spostamento immagine wp-image-114 di 250px verso l'alto,
   con larghezza completa responsive */
body.home img.wp-image-114 {
  display: block;
  margin-top: -250px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto;
  position: relative;
  z-index: 5;
  object-fit: cover;
}

@media (max-width: 1550px) {
  body.home img.wp-image-114 {
    margin-top: -200px !important;
  }
}

@media (max-width: 1250px) {
  body.home img.wp-image-114 {
    margin-top: -140px !important;
  }
}

@media (max-width: 767px) {
  body.home .wp-block-media-text.alignfull.is-stacked-on-mobile .wp-block-media-text__content {padding: 30px 20px !important;}
}

.nav-wrap li.active a {color: #EA4343; }

/* Promo homepage tra header e immagine hero */
.speed-home-promo {
  max-width: 1250px;
  margin: 0 auto 16px;
  padding: 24px 20px 0;
}

.speed-home-promo__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #E60012 0%, #005BAC 100%) border-box;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 14px 32px rgba(0, 91, 172, 0.08);
}

.speed-home-promo__inner::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(230, 0, 18, 0.16) 0%, rgba(230, 0, 18, 0) 72%);
  pointer-events: none;
}

.speed-home-promo__inner::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 91, 172, 0.18) 0%, rgba(0, 91, 172, 0) 74%);
  pointer-events: none;
}

.speed-home-promo__inner strong {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  background: linear-gradient(90deg, #c51c28 0%, #005BAC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.speed-home-promo__inner span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.35;
  color: #333;
}

.speed-home-promo__inner span strong {
  background: none;
  -webkit-text-fill-color: initial;
  color: #111;
}

.speed-home-promo__inner em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(230, 0, 18, 0.18), 0 10px 24px rgba(0, 91, 172, 0.16);
}

@media (max-width: 767px) {
  .speed-home-promo {
    margin: 8px auto 10px;
    padding: 0 14px;
  }

  .speed-home-promo__inner {
    padding: 12px 12px;
    gap: 8px;
  }

  .speed-home-promo__inner strong {
    font-size: 15px;
  }

  .speed-home-promo__inner span {
    font-size: 13px;
  }

  .speed-home-promo__inner em {
    font-size: 12px;
    padding: 6px 9px;
  }
}

/* Mobile: promo spostato tra carosello e seconda immagine */
@media (max-width: 1024px) {
  .speed-home-promo.is-mobile-placement {
    max-width: 90%;
    margin: 24px auto -52px !important;
    padding: 0 6px;
    position: relative;
    z-index: 6;
  }

  body.home img.wp-image-114 + .speed-home-promo.is-mobile-placement {
    margin-top: 24px !important;
  }

  body.home .speed-home-promo.is-mobile-placement + * {
    margin-top: 0 !important;
  }
}

@media (max-width: 767px) {
  .speed-home-promo.is-mobile-placement {
    max-width: 88%;
    margin: 20px auto -82px !important;
    padding: 0 6px;
  }

  .speed-home-promo.is-mobile-placement .speed-home-promo__inner {
    padding: 8px 9px;
    gap: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .speed-home-promo.is-mobile-placement .speed-home-promo__inner strong {
    font-size: 13px;
  }

  .speed-home-promo.is-mobile-placement .speed-home-promo__inner span {
    font-size: 11px;
    line-height: 1.25;
  }

  .speed-home-promo.is-mobile-placement .speed-home-promo__inner em {
    font-size: 10px;
    letter-spacing: 0.3px;
    padding: 4px 7px;
    border-radius: 7px;
  }
}


/* ------------------------------------------------------------------------- *
/* ! Modules */
/* ------------------------------------------------------------------------- */

.cover{padding: 150px 20px; text-align: center;position: relative;}
.cover:before { content : ''; position : absolute; top : 0; left : 0; bottom : 0; right : 0; background-color : #000000; opacity : 0.5; z-index : 0; }
.cover h1,
.cover h2{color:#fff;z-index: 1;position: relative;}


/* ---------------------------------------------
Blocks
---------------------------------------------- */

/* Media text */
.wp-block-media-text{margin-bottom: -140px;}
.wp-block-media-text h2{font-size: 35px;}
.wp-block-media-text h3{font-size: 23px; display: block;padding-left: 100px;position: relative;}
.wp-block-media-text h3:after{content: ' '; position: absolute;top:12px; left:0; height: 8px;width: 80px;background: #333;}
.wp-block-media-text p{font-size: 20px;line-height: 28px; padding: 0px 20px;}
.wp-block-media-text__content{position: relative;}

/* Button */
.wp-block-button__link{padding: 15px 40px;}
.button-right{display: inline-block;position: absolute; right: -71px;}
.button-right a{padding: 0;}
.button-right strong{padding:15px; background: #fff;color:#000; width: 70px;display: inline-block;}
.button-right em{padding: 15px 20px;display: inline-block; font-style: normal;}


/* Hero */
.hero .wp-block-media-text__media{height: 100vh;}
.hero .wp-block-media-text__media img{width: 100%; height: 100%; object-fit: cover;}
.hero .wp-block-media-text__content{margin-right:-150px; margin-left: calc( 100vw / 2 - 620px );padding-left: 20px;}
.hero .wp-block-media-text.has-media-on-the-right {grid-template-columns: auto 55%;}

.wp-block-media-text {grid-template-columns: 65% 1fr;}

/* Newsletter */
.newsletter-banner{position: relative; top: -250px; display: flex; font-weight: bold;margin-bottom: -50px;}
.newsletter-banner strong{padding: 20px; width: 42%; background: #EDEDED;}
.newsletter-banner em{background: #fff;color:#666; padding: 20px; font-style: normal;width: 30%;box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.08); }
.newsletter-banner a{background: #EA4343;padding: 20px; text-align: center; width: 15%;color:#fff}

/* Vertical Text */
.vertical-text{  position: absolute;top:50%;right: -47%; width: 100%;text-align: center;
  transform: rotate(-90deg);
  max-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Google Maps */

.google-map-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* Rapporto 4:3 (width/height) */
}

.google-map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* ------------------------------------------------------------------------- *
/* ! WooCommerce */
/* ------------------------------------------------------------------------- */

/* Button */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wp-block-button__link{ background: #da0000; color:#fff; text-transform: uppercase;font-weight: bold;border-radius:10px}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wp-block-button__link:hover{background: #000000; color:#fff}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price{color:#999; font-weight: bold;}

/* Variations */
.variations label{margin-top: 0;}


/* Input */
input[type='email'],
input[type='number'],
input[type='search'],
input[type='text'],
input[type='tel'],
input[type='url'],
input[type='password']{height: 35px;}

.woocommerce input[type=text],
.woocommerce input[type=email] {background: #fff;border:1px solid #bbb; border-radius: 3px}

/* Column fix  */
.woocommerce-cart .woocommerce [class*='col'],
.woocommerce-checkout .woocommerce [class*='col']{padding:0;}

/* Coupon */
#coupon_code{width: 129px;}

/* Single product */
.woocommerce .quantity .qty{width: 4em}
.woocommerce-page article{width: 100%}
.woocommerce-product-gallery {padding:0;}


/* Minicart */
.nav-wrap .grid{position: relative}

.minicart { list-style-type : none; margin : 0px; width : 270px; max-height : 0px; overflow : hidden; position : absolute; z-index : 2; top : 62px; right : 25px; background : #ffffff; box-shadow : 0 10px 15px rgba(0,0,0,0.15); }
.minicart__inside { padding : 20px; position: relative;}
.minicart .widget { margin-bottom : 0; }
.minicart .widget li { position : relative; margin-top : 5px!important; display: block;width: 100%}
.minicart .widget li a { border : none; padding : 0px 0 0 0; color:#000;}
.minicart .widget a.button { padding : 10px; }
.minicart .widget_shopping_cart .total{ border-top : 1px solid #dddddd; margin-top : 10px; padding-top : 20px; }
.minicart .woocommerce-mini-cart__buttons { margin-bottom : 0; }

.cart-icon { display : block; position : absolute; right : 30px; width : 40px; height : 40px; z-index : 900; }
.cart-icon .cart-contents { background : transparent url('img/shopping-cart.png') no-repeat center center; line-height : 40px; text-align : center; cursor : pointer; color : #fff; width : 50px; height : 50px; border-radius : 100px; font-size : 22px; line-height : 50px; position : relative;}
.cart-icon .cart-contents__number {
  position : absolute;
  height : 20px;
  width : 20px;
  line-height : 21px;
  border-radius : 20px;
  text-align : center;
  font-size : 10px; right : -15px; bottom : 14px;
  font-weight : bold; background : #da0000; color : #ffffff;
}

.woocommerce-mini-cart__buttons { margin-bottom : 0; }
.cart--open { min-height : 50px; max-height : 600px; }


/* Products */
.woocommerce ul.products li.product{margin: 0;}

.type-product{position: relative;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size: 20px;}
.woocommerce ul.products li.product a.button{padding: 12px 20px; font-size: 16px; width: 120px;text-align: center; color: #fff; background: linear-gradient(135deg, #E60012 0%, #005BAC 100%); border: none; border-radius: 10px; font-weight: 800; letter-spacing: 0.4px; box-shadow: 0 6px 16px rgba(0,91,172,0.18); transition: filter 0.25s, box-shadow 0.25s, transform 0.25s;}
.woocommerce ul.products li.product a.button:hover{color: #fff; background: linear-gradient(135deg, #E60012 0%, #005BAC 100%); filter: brightness(1.12); box-shadow: 0 10px 24px rgba(0,91,172,0.28); transform: translateY(-1px);}
.woocommerce ul.products li.product .price{font-size: 16px;color:#333;position: static;}
.woocommerce ul.products li.product a img {margin: 0 0 0em;}

.product-tag{position: absolute;top: 15px; left: 15px;text-transform: uppercase; font-weight: bold;color: transparent;}



/* Category */
.woocommerce ul.products li.product .woocommerce-loop-category__title{font-size: 25px;padding-bottom: 30px;}
.woocommerce ul.products li.product .woocommerce-loop-category__title mark{background: #fff;font-weight: normal;color:#999; font-style: normal;}
.category-desc{color: #000000;font-size: 16px;}

.products .product.product-category .category-desc{position: relative;}
.products .product.product-category .category-desc strong{position: absolute;top:-50px; right: 0;}

/* Page */
.woocommerce-page .page-title{font-size: 28px;text-transform: uppercase;margin-top: 10px; margin-bottom: 25px; text-align: center;}
.woocommerce-result-count{font-size: 13px;color:#999}
.term-description p{font-size: 26px; line-height: 35px; padding: 30px 0}



/* Product */
.single .product_title{margin-bottom: 0;font-size: 59px;}
.woocommerce #review_form #respond .form-submit input{margin-top: 42px;}


/* Select in shop page */
 .variations .value{position: relative;}

 .variations .value select{
   border: 1px solid #ddd;
   background: transparent;
   padding: 5px 35px 5px 10px;
   font-size: 16px;
   border-radius: 0px;
   height: 34px;
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   position: relative;
   z-index: 1;
   line-height: 20px;
 }
 .variations .value:before{font-family: FontAwesome; content: '\f107';  font-size: 18px;color:#999;  position: absolute; top: 13px; right:30px;z-index: 0;}

 /* Nasconde pseudo-freccia FontAwesome su .woocommerce-ordering (gestita via CSS background-image) */
 .woocommerce-ordering:before{display: none !important;}

 /* Button ajax */
 .woocommerce #respond input#submit.added::after, .woocommerce a.button.added::after, .woocommerce button.button.added::after, .woocommerce input.button.added::after {
    font-family: WooCommerce;
    content: '\e017';
    margin-left: .53em;
    vertical-align: bottom;
    position: absolute;
    top: 10px;
    right: 15px;
}

/* Added to cart */
.woocommerce a.added_to_cart {
    position: absolute;
    bottom: -30px;
    left: 0;
}





/* ------------------------------------------------------------------------- *
/* ! Index */
/* ------------------------------------------------------------------------- */

/* Home Title */
.home-title { position: absolute; top:-9999px; color: #fff; font-size: 12px;}

.page h1, .single h1{margin-bottom: 60px;font-size: 50px;margin-top: 20px;}


/* ------------------------------------------------------------------------- *
/* ! Sidebar */
/* ------------------------------------------------------------------------- */

.widget_search{margin-bottom: 50px;}

.widget{margin-bottom: 60px;}
.widget h3{font-size: 14px;text-transform: uppercase;}
.woocommerce-product-search button{display: none;}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
.woocommerce .widget_price_filter .ui-slider .ui-slider-range{background: #EA4343;}
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content{background: #a71c1c;}


/* Sidebar fissa a sinistra (come l’hai voluta) */
.shop-sidebar{
  position: fixed;
  top: 100px;       /* uguale all’altezza del tuo header */
  left: 0;
  width: 250px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #eee;
  padding: 20px;
  z-index: 10;      /* BASSO, così il footer può stare sopra */
}

/* Colonna prodotti spostata a destra della sidebar */
.shop-content{
  margin-left: 250px;   /* (= larghezza sidebar) */
  padding: 20px;
}

/* Footer FULL-WIDTH sopra la sidebar */
footer.footer{
  position: relative;
  z-index: 50;      /* MAGGIORE della sidebar */
  background: #fff; /* Sfondo bianco per il footer */
}

/* Ridurre spazio tra contenuto e footer in home */
body.home main#content {
  margin-bottom: 0;
  padding-bottom: 0;
}
body.home main#content .grid,
body.home main#content .col-70 {
  margin-bottom: 0;
}
body.home section.grid.no-col {
  margin-bottom: 0;
}

/* Linea separatrice footer: stessa "sfumatura" dell'header ma verso l'alto */
hr.footer-divider {
  display: block;
  width: 100%;
  height: 6px;
  margin: 0;
  border: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0) 100%);
}

/* Spaziatura interna footer */
footer.footer > .grid {
  padding-top: 48px;
  padding-bottom: 36px;
}

/* Se vuoi essere ultra-sicuro anche sulla barra copyright */
.footer__bottom{
  position: relative;
  z-index: 50;
}


/* ------------------------------------------------------------------------- *
/* ! Footer */
/* ------------------------------------------------------------------------- */

/* Regole generali per tutti gli elementi nel footer */
.footer, .footer * {
  background-color: transparent;
  color: #000; /* Testi neri nel footer */
}

.footer p{font-size: 15px; color: #000;}

.footer__logo{ width: 110px; height: 110px; object-fit: contain; display: block; margin-bottom: 14px; }
.footer__menu {list-style-type: none;padding: 10px;}
.footer__menu li{display: inline-block;}
.footer__menu li a{padding: 10px;font-weight: bold;color:#000; font-size: 18px;}

.sub-menu{margin-left: 0;}
.sub-menu li{display: block;}
.sub-menu li a{color:#000; font-weight: normal;font-size: 16px;}


.footer__bottom{ background: #fff; color:#000;text-align: center;padding: 10px;margin-bottom: 0;}
.footer__bottom a{color:#000}
/* Stati dei link nel footer su sfondo bianco */
.footer a{ color:#000; }
.footer a:visited{ color:#000; }
.footer a:hover{ text-decoration: underline; color:#000; }


/* --------------------------------------------------------------------------------------------------------------------------- */
/* ! Responsive */
/* --------------------------------------------------------------------------------------------------------------------------- */

/* ----------------------------- */
/* ! -- Desktop Small */
/* ----------------------------- */

@media (max-width: 1250px) {

  .hero .wp-block-media-text__content{margin-left: 0; margin-right: 0;margin-top: 80px;}

}


/* ----------------------------- */
/* ! -- Desktop */
/* ----------------------------- */
@media (min-width: 1023px) {

  .nav-light{background: transparent;}

}


/* ----------------------------- */
/* ! -- Tablet */
/* ----------------------------- */

@media (max-width: 998px) {


  /* Products */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {font-size: 15px;}
  .woocommerce ul.products li.product a.button {width: 100px;font-size: 12px;padding: 10px;}
  .woocommerce ul.products li.product .price{position: relative;left:0;}
  .product-tag{font-size: 12px;}

  /* Newsletter */
  .newsletter-banner {top: -50px; flex-direction: column; text-align: center;margin-bottom: 50px;}
  .newsletter-banner strong{width: 100%; font-size: 20px; line-height: 28px;}
  .newsletter-banner em{width: 100%; border: 3px solid #EDEDED; box-shadow: none}
  .newsletter-banner a{width: 100%}

  /* vertical text */
  .vertical-text{text-align: right;right: -45%; top: 37%;font-size: 14px;}




}

/* ----------------------------- */
/* ! -- Smarthphone */
/* ----------------------------- */

@media (max-width: 767px) {

  /* padding-top body gestito dinamicamente da script.js */
  body.page-template-gutemberg{padding-top: 0 !important;}
  h2{margin-bottom: 25px;}

  .page h1, .single h1 {
    margin-bottom: 60px;
    font-size: 30px;
    margin-top: 20px;
  }


    .logo img{height: 50px;width: auto; margin-top: -5px;}


.divisorio-scacchi {margin-top: 110px; margin-bottom: 100px;}


  
  /* WooCommerce */

  .cart-icon { right: auto;top:auto;z-index: 9999; bottom:10px; left: 15px; position: fixed;}
  .minicart{position: fixed;bottom: 70px; left:0px; top: auto;box-shadow: 0 -10px 15px rgba(0,0,0,0.15);}

  /* Blocks */

  .wp-block-buttons>.wp-block-button {padding: 0px 30px;}

  .wp-block-media-text{display: block;}
  .wp-block-media-text .wp-block-media-text__media{margin-bottom: 20px;}
  .wp-block-media-text .wp-block-media-text__content{padding: 0;}
  .wp-block-media-text h2{font-size: 55px; padding: 0px 20px;}

  .button-right{position: relative; right: 0;}
  .button-right a{font-size: 14px;}
  .button-right em{padding: 10px 15px;}

  .hero.wp-block-media-text .wp-block-media-text__content{padding-left: 20px;margin-top: -50px;}
  .hero.wp-block-media-text .wp-block-media-text__media{height:300px}


  /* category */
  .woocommerce ul.products li.product .woocommerce-loop-category__title {font-size: 18px;padding-right: 40px;}

  /* product */
  .single .product_title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    margin-top: 18px !important;
  }
  .woocommerce-Tabs-panel h2{font-size: 28px;}
  .woocommerce div.product .woocommerce-tabs ul.tabs li{padding: 0 10px}

  .woocommerce ul.products.columns-3 li.product.last{width: 100%}

  /* shop */
  .woocommerce-ordering{display: block !important;}

  /* footer */
  .footer__bottom{margin-bottom: 70px;}

  /* Footer — centra tutto su mobile */
  .footer .grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer .col-20,
  .footer .col-50,
  .footer .col-30 {
    width: 100%;
    text-align: center;
    float: none;
    margin-bottom: 20px;
  }
  .footer__logo {
    margin: 0 auto 10px;
    display: block;
  }
  .footer .col-30 img {
    display: block;
    margin: 0 auto 10px;
    max-width: 280px;
  }
  .footer__menu {
    padding: 10px 0;
    text-align: center;
  }
  .footer__menu li {
    display: block;
    margin-bottom: 5px;
  }
  .footer__menu li a {
    font-size: 16px;
  }


}


/* --------------------------------------------------------------------------------------------------------------------------- */
/* Layout personalizzato header */
.grid.no-pad-menu {
    position: relative;
    padding-right: 180px; /* Spazio per logo tana e carrello */
}

.nav-header {
    float: left;
    width: auto;
    margin-right: 20px;
}

.nav-container {
    float: left;
    width: calc(100% - 120px); /* Sottraiamo lo spazio del logo principale */
}

.nav-container ul.primary--left {
    float: left;
    max-width: 50%;
}

.nav-container ul.primary--right {
    float: right;
    max-width: 50%;
}

.tana-mini-box {
    position: absolute;
    right: 70px; /* Spazio per il carrello */
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    text-align: center;
}

.site-header-cart {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    text-align: center;
}

/* Stili per il logo Tana delle Mini */
.tana-mini-logo {
    width: auto;
    height: 40px;
    padding: 5px;
    transition: transform 0.3s ease;
}

.tana-mini-link:hover .tana-mini-logo {
    transform: scale(1.1);
}

/* Media query per dispositivi mobili */
@media (max-width: 767px) {
    .tana-mini-box {
        display: none;
    }
}

/* WordPress Default Styles */
/* --------------------------------------------------------------------------------------------------------------------------- */

/* Stile per il box e logo Tana delle Mini */
.tana-mini-box {
    position: absolute;
    right: 80px; /* Spazio per il carrello */
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
}

.tana-mini-link {
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
}

.tana-mini-logo {
    width: auto;
    height: 80%;
    max-height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tana-mini-link:hover .tana-mini-logo {
    transform: scale(1.1);
}


/* Pagination */
.pagination { margin: 40px 0 40px 0; padding: 0; width: 100%; }
.pagination span,
.pagination a { float: left; margin: 0 10px 10px 0; padding: 14px 19px; border: 1px solid #ddd; }

/* Gallery
  Riduciamo la larghezza per evitare overflow orizzontale. */
.gallery { float: left; margin: 20px 0 20px 0; width: 100%; box-sizing: border-box; }
.gallery-item { float: left; width: 33.333333%; text-align: center; }
.gallery img { margin: 0 5% 0 0; width: 90%; height: auto; border: none!important; }
.gallery-caption { width: 90%;margin:10px 0 0 0;}

/* Image */
.alignleft { float: left; margin-right: 20px; margin-bottom: 10px; max-width: 97%; height: auto; }
.alignright { float: right; margin-bottom: 10px; margin-left: 20px; max-width: 97%; height: auto; }
.aligncenter { display: block; margin: 0 auto; max-width: 97%; height: auto; }
.alignnone { max-width: 97%; height: auto; }
.alignfull {
    margin-left  : calc( -100vw / 2 + 100% / 2 );
    margin-right : calc( -100vw / 2 + 100% / 2 );
    max-width    : 100vw;
    width: 100vw;
}

/* Assicura che il contenitore dell'immagine 114 sia full width senza affidarsi a :has */
body.home figure.wp-block-image.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

body.home figure.wp-block-image.alignfull img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* img responsive */
.img-res{width: 100%;height: auto;}

/* video responsive */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Table */
/* table {border-collapse: collapse;margin: 40px 0; width:100%;}
table, th, td {border: 1px solid #ddd;padding:10px; font-size: 18px;text-transform: capitalize;}
table  tr:first-child td {font-weight: 900; text-transform: uppercase; padding:12px 8px;} */

th, td {border-bottom: none;}

/* Image Caption */
.wp-caption { margin-top: 1.5rem;margin-bottom: 0px; padding: 10px; max-width: 97%; border: 1px solid #ddd; text-align: center; }
.wp-caption img { margin: 0; padding: 0; width: 100%!important; height: auto; border: 0 none; }
.wp-caption p.wp-caption-text { margin: 0; padding: 8px; font-size: 1em; line-height: 17px; }

/* Stiky */
.sticky { border-right: 3px solid #eee; border-bottom: 3px solid #ddd; }

/* Search */
.search-form {background: #eee;}
.search-form input[type=text]{ width: 80%; color: #333; }
.search-form button{float:right;padding:10px 15px 0 0;border: none; background: none;padding: 11px;}

/* Contact Form 7 */
.wpcf7 label{width:100%}

/* Comments */
.comment-form-author,
.comment-form-email,
.comment-form-url { float: left; margin-top: 20px; margin-right: 3%; width: 30.3333333%; }
.comment-form-author input,
.comment-form-email input,
.comment-form-url input { width: 100%; }

ol.commentlist { margin: 0 0 1em; padding: 0; list-style: none; text-indent: 0; }
ol.commentlist li.comment { padding: 1em; border-top: 1px solid #eee; }
ol.commentlist li.comment div.vcard cite.fn { text-transform: uppercase; font-size: 14px; }
ol.commentlist li.comment div.vcard img.avatar { float: left; margin: 6px 1em 1em 0; border-radius: 50px; }
ol.commentlist li.comment div.comment-meta { font-size: 12px; }
ol.commentlist li.comment ul { margin: 0 0 1em 2em; }
ol.commentlist li.comment div.reply { margin-left: 80px; font-size: 11px; }
ol.commentlist li.comment div.reply a { font-weight: bold; }
ol.commentlist li.comment ul.children { margin: 1em 0 0; list-style: none; text-indent: 0; }
ol.commentlist li.comment ul.children li.depth-2 { margin: 0 0 .25em .25em; border-left: 1px solid #eee; }
ol.commentlist li.comment ul.children li.depth-3 { margin: 0 0 .25em .25em; border-left: 1px solid #eee; }
ol.commentlist li.comment ul.children li.depth-4 { margin: 0 0 .25em .25em; border-left: 1px solid #eee; }
ol.commentlist li.even { background: #fff; }
ol.commentlist li.parent { border-left: 1px solid #eee; }
ol.commentlist li.bypostauthor .fn { font-weight: bold; }
ol.commentlist li img{max-width: 97%;}

input[type=text],
input[type=email] { 
  width: 98%; 
  margin-right: 10px; 
  padding: 10px; 
  border: none; 
  background: #eee; 
  -webkit-appearance: none; 
  appearance: none; 
  border-radius: 0; 
  font-size: 14px; 
}
textarea { 
  padding: 10px; 
  width: 98%; 
  border: none; 
  background: #eee; 
  -webkit-appearance: none; 
  appearance: none; 
  border-radius: 0; 
  font-size: 14px; 
}
input[type=submit] { margin-top: 10px; padding: 15px 20px; color: #fff; text-transform: uppercase; background: #333; border:none; font-size: 14px;}
#comments { width: 100%; }

/* Calendar Widget */
#wp-calendar { width: 100%; }
#wp-calendar a { padding: 0; border: none; }
#wp-calendar caption,
.screen-reader-text { padding-bottom: 10px; color: #000; text-align: left; text-transform: uppercase; font-weight: 700; font-size: 14px; }
#wp-calendar thead { font-size: 10px; }
#wp-calendar thead th { padding-bottom: 10px; }
#wp-calendar tbody { color: #aaa; }
#wp-calendar tbody td { padding: 8px; border: 1px solid #fff; background: #f5f5f5; text-align: center; }
#wp-calendar tbody td:hover { background: #fff; }
#wp-calendar tbody .pad { background: none; }
#wp-calendar tfoot #next { text-align: right; text-transform: uppercase; font-size: 10px; }
#wp-calendar tfoot #prev { padding-top: 10px; text-transform: uppercase; font-size: 10px; }

/* =========================================
   My Account Mobile Navigation
   ========================================= */
.my-account-mobile-toggle {
    display: none !important; /* Sempre nascosto: navigazione è ora orizzontale inline */
}

/* Mobile Media Query for My Account */
@media (max-width: 768px) {
    /* Override: la navigazione resta visibile come barra scrollabile */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        display: block !important;
        background: transparent;
        border: none;
        margin-top: 0;
        margin-bottom: 16px;
        border-radius: 0;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        margin: 0;
        padding: 12px 14px;
        list-style: none;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        border-bottom: none;
        flex-shrink: 0;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
        border-bottom: none;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        display: inline-flex;
        padding: 8px 16px;
        text-decoration: none;
        white-space: nowrap;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
        background-color: transparent;
    }
    
    /* Make content full width */
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        float: none !important;
    }
}

/* Logout Button Customization */
.speed-account-logout .button {
    color: #fff !important;
    border: 1px solid rgba(0,0,0,0.1); 
}
.speed-account-logout .button:hover {
    color: #000 !important;
}

/* =========================================
   Mini 4WD Showcase Section
   ========================================= */
.speed-mini4wd-showcase {
  max-width: 1280px;
  margin: 42px auto;
  padding: 0 14px;
}

.speed-mini4wd-showcase__head {
  text-align: center;
  margin-bottom: 20px;
}

.speed-mini4wd-showcase__head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.speed-mini4wd-showcase__head p {
  margin: 0;
  color: #4f4f4f;
  font-weight: 600;
}

.speed-mini4wd-showcase__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.speed-mini4wd-showcase__tile {
  position: relative;
  display: block;
  grid-column: span 3;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(230, 0, 18, 0.35);
}

.speed-mini4wd-showcase__tile--featured {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 460px;
}

.speed-mini4wd-showcase__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.speed-mini4wd-showcase__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 75%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.speed-mini4wd-showcase__overlay strong {
  font-size: 15px;
  line-height: 1.2;
}

.speed-mini4wd-showcase__overlay em {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  opacity: .95;
}

.speed-mini4wd-showcase__tile:hover img,
.speed-mini4wd-showcase__tile:focus img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .speed-mini4wd-showcase__tile {
    grid-column: span 4;
    min-height: 210px;
  }

  .speed-mini4wd-showcase__tile--featured {
    grid-column: span 8;
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .speed-mini4wd-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .speed-mini4wd-showcase__tile,
  .speed-mini4wd-showcase__tile--featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 180px;
    border-radius: 12px;
  }
}

/* =========================================
   Homepage - Pannello categoria Mini 4WD
   ========================================= */
.speed-home-mini4wd-panel {
  max-width: 1280px;
  margin: 36px auto 54px;
  padding: 0 14px;
}

.speed-home-mini4wd-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.speed-home-mini4wd-panel__media {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.speed-home-mini4wd-panel__media .speed-mini4wd-showcase {
  margin: 0;
  max-width: none;
  padding: 14px;
}

.speed-home-mini4wd-panel__media .speed-mini4wd-showcase__head {
  display: none;
}

.speed-home-mini4wd-panel__content {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.speed-home-mini4wd-panel__kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: #005BAC;
  margin-bottom: 8px;
}

.speed-home-mini4wd-panel__content h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.06;
}

.speed-home-mini4wd-panel__content p {
  margin: 0 0 20px;
  color: #3d3d3d;
  line-height: 1.65;
  font-size: 16px;
}

.speed-home-mini4wd-panel__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
}

.speed-home-mini4wd-panel__cta:hover {
  color: #fff;
  filter: brightness(1.05);
}

@media (max-width: 1024px) {
  .speed-home-mini4wd-panel__inner {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Homepage - Vetrina prodotti animata
   ========================================= */

/* Striscia animata al top/bottom della sezione */
.speed-home-showcase__stripe {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #E60012 20%,
    #005BAC 50%,
    #E60012 80%,
    transparent 100%);
  background-size: 300% 100%;
  animation: speed-stripe-slide 4s linear infinite;
}
@keyframes speed-stripe-slide {
  0%   { background-position: 100% 0; }
  100% { background-position: -200% 0; }
}

/* Badge sopra il titolo */
.speed-home-showcase__badge {
  display: inline-block;
  font-family: var(--speed-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #E60012;
  border: 1.5px solid rgba(230,0,18,.35);
  border-radius: 30px;
  padding: 4px 16px;
  margin-bottom: 10px;
  background: rgba(230,0,18,.05);
}

/* Testo gradient (usato nel titolo h2) */
.speed-gradient-text {
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
  padding-bottom: 4px;
}

.speed-home-showcase {
  position: relative;
  width: 100vw;
  margin: 48px 0 20px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 8px 0 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.speed-home-showcase__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.speed-home-showcase__head {
  text-align: center;
  padding: 8px 0 18px;
  max-width: 980px;
  margin: 0 auto;
}

.speed-home-showcase__head h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.4px;
  font-family: var(--speed-font-display);
  font-weight: 800;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 4px;
}

.speed-home-showcase__head p {
  margin: 0 0 16px;
  color: #3d3d3d;
  font-weight: 600;
  font-size: 16px;
}

.speed-home-showcase__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
  box-shadow: 0 10px 24px rgba(0, 91, 172, 0.22);
  transition: filter 0.25s, box-shadow 0.25s, transform 0.25s;
}

.speed-home-showcase__cta:hover { color: #fff; background: linear-gradient(135deg, #E60012 0%, #005BAC 100%); filter: brightness(1.12); box-shadow: 0 14px 30px rgba(0, 91, 172, 0.32); transform: translateY(-1px); }

.speed-marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0 18px;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  /* Dissolvenza ai bordi laterali */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0px,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0px,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
}

.speed-marquee *,
.speed-marquee a,
.speed-marquee img,
.speed-marquee li {
  touch-action: pan-y;
}

.speed-marquee:active {
  cursor: grabbing;
}

.speed-marquee__track {
  will-change: transform;
}

/* CSS keyframes mantenuti come fallback (JS li sovrascriverà) */
.speed-marquee--left .speed-marquee__track {
  animation: speed-marquee-left 32s linear infinite;
}

.speed-marquee--right .speed-marquee__track {
  animation: speed-marquee-right 40s linear infinite;
}

.speed-marquee.js-active .speed-marquee__track {
  animation: none !important;
}

.speed-home-showcase:hover .speed-marquee__track {
  animation-play-state: paused;
}

@keyframes speed-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes speed-marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


/* -- Card vetrina: miniature UNIFORMI -- */

/* Override grid/float globali Woo dentro la vetrina */
.speed-home-showcase .speed-marquee__track.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 16px !important;
  padding: 10px 0 24px !important;
  margin: 0 !important;
}

/* Ogni card: dimensione fissa identica + stile identico alle card shop */
.speed-home-showcase .speed-marquee__track.products > li.product {
  flex: 0 0 210px !important;
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  float: none !important;
  margin: 0 !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  /* Stile shop */
  position: relative !important;
  border-radius: 18px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.22),
    0 4px 8px rgba(0,0,0,0.16),
    inset 0 2px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(0,0,0,0.05) !important;
  transition: box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

/* Bordo gradient animato (stessa tecnica mask del shop) */
.speed-home-showcase .speed-marquee__track.products > li.product::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  padding: 3px !important;
  border-radius: inherit !important;
  background: linear-gradient(135deg, #FF5252, #2196F3) !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  pointer-events: none !important;
  transition: background 0.25s !important;
}

/* Hover: colori brand Tamiya (come shop) */
.speed-home-showcase .speed-marquee__track.products > li.product:hover::before {
  background: linear-gradient(135deg, #E60012, #005BAC) !important;
}

.speed-home-showcase .speed-marquee__track.products > li.product:hover {
  box-shadow:
    0 20px 40px rgba(0,0,0,0.28),
    0 8px 16px rgba(0,0,0,0.20),
    inset 0 2px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.08) !important;
  transform: translateY(-6px) scale(1.02) !important;
  z-index: 2 !important;
}

/* Link interno: colonna centrata */
.speed-home-showcase .speed-marquee__track.products > li.product > a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  text-align: center !important;
  flex: 1 !important;
}

/* Immagine: altezza fissa, contenuta */
.speed-home-showcase .speed-marquee__track.products > li.product a img {
  width: 100% !important;
  height: 155px !important;
  object-fit: contain !important;
  background: #fff !important;
}

/* Titolo: 2 righe fisse, troncato, centrato */
.speed-home-showcase .speed-marquee__track.products > li.product .woocommerce-loop-product__title {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin: 0 0 2px !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  text-align: center !important;
  word-break: break-word !important;
}

/* SKU / logo Tamiya */
.speed-home-showcase .speed-marquee__track.products > li.product .product-cat {
  min-height: 18px !important;
  max-height: 18px !important;
  font-size: 10px !important;
  gap: 4px !important;
  margin-bottom: 2px !important;
  overflow: hidden !important;
}
.speed-home-showcase .speed-marquee__track.products > li.product .product-cat .sku-logo {
  max-height: 1.2em !important;
}
.speed-home-showcase .speed-marquee__track.products > li.product .product-cat .sku-text {
  font-size: 10px !important;
}

/* Prezzo: riga fissa */
.speed-home-showcase .speed-marquee__track.products > li.product .price {
  font-size: 13px !important;
  min-height: 20px !important;
  margin-top: 2px !important;
  text-align: center !important;
}

/* Bottone: stesso stile dello shop */
.speed-home-showcase .speed-marquee__track.products > li.product a.button {
  width: 100% !important;
  max-width: 160px !important;
  margin: 6px auto 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 8px 12px !important;
  letter-spacing: 0.4px !important;
  text-align: center !important;
  display: block !important;
  box-shadow: 0 6px 16px rgba(0,91,172,0.18) !important;
  transition: filter 0.25s, box-shadow 0.25s, transform 0.25s !important;
  text-decoration: none !important;
}
.speed-home-showcase .speed-marquee__track.products > li.product a.button:hover {
  color: #fff !important;
  filter: brightness(1.12) !important;
  box-shadow: 0 10px 24px rgba(0,91,172,0.28) !important;
  transform: translateY(-1px) !important;
}

/* Tag prodotto: nascosto */
.speed-home-showcase .speed-marquee__track.products > li.product .product-tag {
  display: none !important;
}

/* micro-bob sulle immagini */
.speed-home-showcase .speed-marquee__track > li.product:nth-child(3n) a img { animation: speed-card-bob 2.8s ease-in-out infinite; }
.speed-home-showcase .speed-marquee__track > li.product:nth-child(3n+1) a img { animation: speed-card-bob 3.2s ease-in-out infinite; }

@keyframes speed-card-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Accessibilita */
@media (prefers-reduced-motion: reduce) {
  .speed-home-showcase .speed-marquee__track,
  .speed-home-showcase .speed-marquee__track li.product a img {
    animation: none !important;
  }
  .speed-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .speed-home-showcase__head h2 { font-size: clamp(26px, 7vw, 36px); }
  .speed-home-showcase .speed-marquee__track.products { gap: 12px !important; }
  .speed-home-showcase .speed-marquee__track.products > li.product {
    flex: 0 0 170px !important; width: 170px !important; min-width: 170px !important; max-width: 170px !important;
    padding: 10px !important;
  }
  .speed-home-showcase .speed-marquee__track.products > li.product a img { height: 115px !important; }
  .speed-home-showcase .speed-marquee__track.products > li.product .woocommerce-loop-product__title { height: 32px !important; min-height: 32px !important; max-height: 32px !important; font-size: 12px !important; }

  /* ---- Fix mobile: abbandona la tecnica 100vw (rotta su iOS Safari con body overflow-x:hidden) ---- */
  /* Usa margini negativi per uscire dal padding del col-70 (padding: 0 20px su mobile) */
  .speed-home-showcase {
    width: auto !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    /* Nessun transform: evita stacking context su elemento con overflow:hidden (bug WebKit) */
    -webkit-transform: none !important;
    transform: none !important;
  }
  /* Rimuovi dissolvenza bordi: inutile su mobile e potenzialmente rotta su iOS Safari */
  .speed-marquee {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  /* Riduci hint GPU su dispositivi a bassa memoria */
  .speed-marquee__track {
    will-change: auto !important;
  }
}

/* =========================================
   Prodotti Correlati — Marquee scheda prodotto
   Variante della vetrina homepage: rimane nel contenitore colonna
   ========================================= */
/* Marquee correlati: ora fuori dal shop-grid, usa il full-bleed nativo della homepage */
.speed-related-marquee {
  margin-top: 0;
  margin-bottom: 0;
}

.speed-related-marquee .speed-home-showcase__head h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 10px;
}

.speed-related-marquee .speed-home-showcase__head {
  padding: 12px 0 8px;
}

@media (max-width: 768px) {
  .speed-related-marquee .speed-home-showcase__head h2 {
    font-size: clamp(18px, 5.5vw, 24px);
  }
}

/* =========================================
   Pagina Eventi - Pannello "in allestimento"
   ========================================= */
.speed-under-construction {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 14px;
  min-height: clamp(520px, 68vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-under-construction__card {
  position: relative;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(230, 0, 18, 0.55) 0%, rgba(0, 91, 172, 0.55) 100%) border-box;
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
  padding: 44px 28px 38px;
  text-align: center;
  overflow: hidden;
  width: min(860px, 100%);
}

.speed-under-construction__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
}

.speed-under-construction__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(230, 0, 18, 0.10) 0px,
      rgba(230, 0, 18, 0.10) 8px,
      rgba(255, 255, 255, 0) 8px,
      rgba(255, 255, 255, 0) 20px,
      rgba(0, 91, 172, 0.10) 20px,
      rgba(0, 91, 172, 0.10) 28px,
      rgba(255, 255, 255, 0) 28px,
      rgba(255, 255, 255, 0) 44px
    );
  opacity: 0.35;
  pointer-events: none;
}

.speed-under-construction__card > * {
  position: relative;
  z-index: 1;
}

.speed-under-construction__card {
  --speed-uc-accent: linear-gradient(180deg, rgba(230, 0, 18, 0.92) 0%, rgba(0, 91, 172, 0.92) 100%);
}

.speed-under-construction__card .speed-under-construction__kicker {
  box-shadow: 0 10px 18px rgba(0, 91, 172, 0.12);
}

.speed-under-construction__card::marker { content: ""; }

.speed-under-construction__card {
  background-clip: padding-box, border-box;
}

.speed-under-construction__card {
  outline: 1px solid rgba(0,0,0,0.02);
}

.speed-under-construction__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #005BAC;
  background: rgba(0, 91, 172, 0.08);
  margin-bottom: 12px;
}

.speed-under-construction__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.3px;
}

.speed-under-construction__subtitle {
  margin: 0 0 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  color: #111;
}

.speed-under-construction__text {
  margin: 0;
  color: #3d3d3d;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .speed-under-construction {
    min-height: min(72vh, 680px);
    padding: 14px;
  }
  .speed-under-construction__card { padding: 34px 18px 28px; }
  .speed-under-construction__subtitle { font-size: 13px; }
}

/* Form contatti */
.speed-contact-form {
  margin: 10px auto 24px;
}

.speed-contact-form__inner {
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #E60012 0%, #005BAC 100%) border-box;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  padding: 22px;
}

.speed-contact-form__title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  color: #111;
}

.speed-contact-form__subtitle {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.speed-contact-form__notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.speed-contact-form__notice--success {
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.30);
  color: #166534;
}

.speed-contact-form__notice--error {
  background: rgba(230, 0, 18, 0.08);
  border: 1px solid rgba(230, 0, 18, 0.28);
  color: #9f1239;
}

.speed-contact-form__form {
  display: grid;
  gap: 10px;
}

.speed-contact-form__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.speed-contact-form__label {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.speed-contact-form__textarea,
.speed-contact-form__input {
  width: 100%;
  border: 1.5px solid #d9d9d9;
  border-radius: 12px;
  background: #fafafa;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #1f2937;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  box-sizing: border-box;
}

.speed-contact-form__textarea {
  min-height: 170px;
  resize: vertical;
}

.speed-contact-form__textarea:focus,
.speed-contact-form__input:focus {
  outline: none;
  border-color: #005BAC;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.14);
}

.speed-contact-form__submit {
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 18px;
  cursor: pointer;
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

.speed-contact-form__submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 20px rgba(0, 91, 172, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .speed-contact-form { margin: 8px auto 18px; }
  .speed-contact-form__inner { padding: 16px; border-radius: 14px; }
  .speed-contact-form__title { font-size: 21px; }
  .speed-contact-form__subtitle { font-size: 14px; margin-bottom: 12px; }
  .speed-contact-form__textarea,
  .speed-contact-form__input { font-size: 14px; padding: 11px 12px; }
  .speed-contact-form__textarea { min-height: 150px; }
  .speed-contact-form__submit { width: 100%; }
}

/* ============================================================
   PAGINA IN COSTRUZIONE
   ============================================================ */
.speed-wip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
  padding: 60px 20px;
}

.speed-wip__icon {
  font-size: 72px;
  line-height: 1;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  animation: speed-wip-spin 6s linear infinite;
}

@keyframes speed-wip-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.speed-wip__text {
  font-family: var(--speed-font-display);
  font-size: clamp(22px, 5vw, 38px);
  font-weight: 700;
  background: linear-gradient(135deg, #E60012 0%, #005BAC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  margin: 0;
  padding-bottom: 6px;
  line-height: 1.3;
}
