/* ===================================================================
   ANTONA - REGOLE CSS AGGIUNTIVE (versione unificata)
   Sostituisce TUTTO il contenuto attuale del campo.
   La riga @import DEVE restare la prima regola del campo.
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600;700&display=swap');


/* ===================================================================
   1. IMPOSTAZIONI GENERALI - font e colori di tutto il sito
      Si cambiano QUI e valgono ovunque (anche nei blocchi HTML)
   =================================================================== */
:root{
  --antona-font-titoli: 'Montserrat', 'Open Sans', sans-serif;  /* titoli, prezzi, banner */
  --antona-font-testo:  'Open Sans', Helvetica, sans-serif;     /* tutto il resto */
  --antona-rosso:       #e30613;   /* rosso del logo: pulsanti, etichette */
  --antona-rosso-scuro: #b8050f;   /* rosso al passaggio del mouse */
  --antona-verde:       #00c853;   /* voce di menu evidenziata (webArea_13) */
  --antona-verde-scuro: #059842;
  --antona-nero:        #1d1d1f;   /* testo principale */
  --antona-grigio:      #6b6b70;   /* testo secondario */
}

/* --- Testo: un solo font ovunque (anche campi e pulsanti, che usavano Arial) --- */
body,
input, select, textarea, button{
  font-family: var(--antona-font-testo);
}

/* --- Titoli principali (categoria, scheda prodotto, pagine di contenuti) ---
   :where() tiene "leggera" la regola: i blocchi HTML possono
   sempre personalizzare i propri titoli senza conflitti */
:where(h1, .boxTitle, #staticPage h2, #staticPage h3){
  font-family: var(--antona-font-titoli);
  font-weight: 700;
  letter-spacing: 0;
}

/* --- Prezzi: stesso font dei titoli --- */
.mainPrice{
  font-family: var(--antona-font-titoli);
  font-weight: 700;
}

/* --- Nomi prodotto negli elenchi e nei caroselli: Open Sans, più leggibile --- */
.resultBox h2.title,
.carousel_item h2.title{
  font-family: var(--antona-font-testo);
  font-weight: 600;
}

/* --- Classe di comodo per i blocchi HTML: class="font-titoli" --- */
.font-titoli{ font-family: var(--antona-font-titoli); }


/* ===================================================================
   2. PAGINA, LOGO, MENU
   =================================================================== */

/* Sfondo pagina */
body {
  background: #FFF;
}

/* Logo sito desktop
   >>> max-width = larghezza del logo (prima era 300px) */
#header_responsive #logo {
  padding: 5px !important;
  max-width: 200px;
  height: auto;
}
/* Logo sito mobile */
@media only screen and (max-width: 480px) {
  #header_responsive #logo {
    max-width: 150px !important;
  }
}

/* Voce di menu evidenziata in verde (webArea_13) */
li#webArea_13 {
  background-color: var(--antona-verde);
  border-radius: 30px;
}
li#webArea_13 a {
  color: #ffffff !important;
}
li#webArea_13 a:hover {
  background-color: var(--antona-verde-scuro);
  border-radius: 30px;
}

/* Nasconde navbar */
#navBar {
  display: none;
}


/* ===================================================================
   3. RICERCA E AREA UTENTE
   =================================================================== */

/* --- Barra di ricerca, Accedi e carrello ---
   Solo da tablet in su (768px): su telefono resta la lente originale */
@media (min-width: 768px) {

/* Barra di ricerca: bordo scuro spesso, a pillola */
#header_responsive .top_buttons li.box_search input.txt_search {
  max-width: 100%;
  height: 44px;                              /* altezza barra */
  border: 2px solid var(--antona-nero);      /* >>> spessore e colore del contorno */
  border-radius: 999px;                      /* forma a pillola */
  padding: 0 64px 0 20px;                    /* spazio testo a sinistra / pulsante a destra */
  font-size: 15px;
  color: var(--antona-nero);
  background: #fff;
  outline: none;
}
/* contorno rosso quando si scrive */
#header_responsive .top_buttons li.box_search input.txt_search:focus {
  border-color: var(--antona-rosso);
}
/* testo segnaposto "Cerca" */
#header_responsive .top_buttons li.box_search input.txt_search::placeholder {
  color: #8a8a8f;
  font-style: normal;
}
/* pulsante lente rosso, stessa altezza della barra */
#header_responsive .top_buttons li.box_search input.btn_search.main_butt {
  height: 44px;
  width: 60px;
  padding: 0;
  border-radius: 0 999px 999px 0;
  box-sizing: border-box;
  border: 2px solid var(--antona-nero);      /* il contorno continua attorno al pulsante */
  border-left: 0;
  background-color: var(--antona-rosso);
  background-position: center;
  cursor: pointer;
}
/* quando si scrive, anche il contorno del pulsante diventa rosso */
#header_responsive .top_buttons li.box_search #top_search:focus-within input.btn_search.main_butt {
  border-color: var(--antona-rosso);
}
#header_responsive .top_buttons li.box_search input.btn_search.main_butt:hover {
  background-color: var(--antona-rosso-scuro);
}

/* --- "Accedi / Registrati" e carrello: grassetto, 14px --- */
#header_responsive .top_buttons li.btn_login > a,
#header_responsive .top_buttons li.btn_cart > a {
  font-family: var(--antona-font-testo);
  font-size: 14px;
  font-weight: 700;
  color: var(--antona-nero);
}
#header_responsive .top_buttons li.btn_login > a span,
#header_responsive .top_buttons li.btn_cart > a span {
  font-weight: 700;
}
#header_responsive .top_buttons li.btn_login > a:hover,
#header_responsive .top_buttons li.btn_cart > a:hover {
  color: var(--antona-rosso);
}

} /* fine @media min-width 768px */

/* === LOGGATO: box area personale stretto === */
#top_login:has(#userBoxTop) {
  width: 260px !important;
  max-width: 260px !important;
  min-width: 0 !important;
  right: 0 !important;
  left: auto !important;
  box-sizing: border-box !important;
  padding: 10px !important;
}
#top_login:has(#userBoxTop) #userBox_Title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === NON LOGGATO: box login largo === */
#top_login:has(#loginAndRegisterTop) {
  width: 360px !important;
  max-width: 360px !important;
  min-width: 0 !important;
  right: 0 !important;
  left: auto !important;
  box-sizing: border-box !important;
  padding: 12px !important;
}
#top_login:has(#loginAndRegisterTop) * {
  max-width: none !important;
  white-space: normal !important;
}

/* ===================================================================
   BOX DI ACCESSO (popup "Accedi / Registrati" in testata)
   Layout a una colonna: prima l'accesso, sotto la registrazione.
   =================================================================== */

/* --- Contenitore del popup --- */
#top_login:has(#loginAndRegisterTop) {
  width: 340px !important;
  max-width: 340px !important;
  padding: 24px !important;
  border: 1px solid #ececee !important;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
}

/* --- Da due colonne a una colonna --- */
#loginAndRegisterTop,
#loginAndRegisterTop .existent_user_box,
#loginAndRegisterTop .new_user_box {
  display: block;
  width: 100%;
  text-align: left;
}

/* --- Titoli: niente riquadro grigio, font titoli --- */
#loginAndRegisterTop .boxTitle {
  background: none;
  padding: 0;
  margin: 0 0 14px 0;
  text-align: left;
  font-family: var(--antona-font-titoli);
  font-size: 19px;
  font-weight: 700;
  color: var(--antona-nero);
}

/* --- Testi descrittivi lunghi: nascosti (>>> togli queste righe per mostrarli) --- */
#loginAndRegisterTop .existent_user_box > p,
#loginAndRegisterTop .new_user_box > p {
  display: none;
}

/* --- Etichette e campi E-mail / Password --- */
#loginAndRegisterTop fieldset {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}
#loginAndRegisterTop fieldset label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0 0 12px 0;
  text-align: left;
}
#loginAndRegisterTop fieldset label strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--antona-grigio);
  margin-bottom: 5px;
}
#loginAndRegisterTop fieldset input[type="text"],
#loginAndRegisterTop fieldset input[type="password"] {
  width: 100% !important;
  height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 2px solid #d6d6da;
  border-radius: 10px;
  font-size: 15px;
  color: var(--antona-nero);
  outline: none;
}
#loginAndRegisterTop fieldset input[type="text"]:focus,
#loginAndRegisterTop fieldset input[type="password"]:focus {
  border-color: var(--antona-nero);
}

/* --- Casella "Ricorda" (se presente): casella e testo sulla stessa riga --- */
#loginAndRegisterTop label:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--antona-grigio);
}

/* --- Pulsanti: pillola a tutta larghezza --- */
#loginAndRegisterTop input.butt1 {
  display: block;
  width: 100%;
  height: 46px;
  margin: 6px 0 0 0;
  border-radius: 999px;
  font-family: var(--antona-font-testo);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
/* Accedi: rosso pieno */
#loginAndRegisterTop .existent_user_box input.butt1 {
  background-color: var(--antona-rosso) !important;
  border: 2px solid var(--antona-rosso) !important;
  color: #fff;
}
#loginAndRegisterTop .existent_user_box input.butt1:hover {
  background-color: var(--antona-rosso-scuro) !important;
  border-color: var(--antona-rosso-scuro) !important;
}
/* Registrati: bianco con contorno scuro */
#loginAndRegisterTop .new_user_box input.butt1 {
  background-color: #fff !important;
  border: 2px solid var(--antona-nero) !important;
  color: var(--antona-nero);
}
#loginAndRegisterTop .new_user_box input.butt1:hover {
  background-color: var(--antona-nero) !important;
  color: #fff;
}

/* --- "Hai perso la password?" --- */
#loginAndRegisterTop .existent_user_box form > a {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--antona-grigio);
  text-decoration: underline;
}
#loginAndRegisterTop .existent_user_box form > a:hover {
  color: var(--antona-rosso);
}

/* --- Separatore tra accesso e registrazione --- */
#loginAndRegisterTop .new_user_box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ececee;
}
#loginAndRegisterTop .new_user_box .boxTitle {
  font-size: 16px;
  margin-bottom: 10px;
}

/* === Box area utente === */
#homeRegUsers .panel ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 5px;
  justify-items: start;
  align-items: start;
  width: fit-content;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}


/* ===================================================================
   4. PULSANTI - tutti con il rosso del logo (variabile --antona-rosso)
   =================================================================== */

/* Pulsante pieno rosso (usato nei contenuti) */
a.pulsanteAntona {
  color: #fff !important;
  background-color: var(--antona-rosso);
  box-shadow: none;
  border-radius: 25px;
  border: 2px solid var(--antona-rosso) !important;
  padding: 5px 15px !important;
}

/* Pulsante bordato (contorno rosso, sfondo trasparente) */
a.pulsanteAntonaInv {
  display: block;
  width: auto;
  color: var(--antona-rosso);
  text-align: left;
  padding: 10px 15px;
  font-family: var(--antona-font-testo);
  font-size: 15px;
  font-weight: normal;
  line-height: 1.5em;
  border: 2px solid var(--antona-rosso);
  border-radius: 25px;
  text-decoration: none;
  cursor: pointer;
  transition-duration: 0.5s;
}

/* Pulsanti principali */
.butt1 {
  text-align: center;
  border: 1px solid var(--antona-rosso) !important;
}

/* Pulsanti rossi generici */
#colDx input.butt1,
#colMid input.butt1,
#colSx input.butt1,
#footer_custom_els_container input.butt1,
#head input.butt1,
#homeRegUsers .butt1,
#homeRegUsers .panel a,
.fancybox-inner .butt1 {
  background-color: var(--antona-rosso) !important;
  border: 1px solid var(--antona-rosso) !important;
}

/* Pulsanti popup e cross selling */
.btn_wrapp .close,
.btn_wrapp .ko,
.btn_wrapp .ok,
.cross_selling.lightbox .cross_selling_cart .butt1 {
  background-color: var(--antona-rosso);
  font-weight: 700;
  border: 1px solid var(--antona-rosso);
}

/* Pulsanti agenti (grigi) */
#preRegistrationPage th a,
#user_agente .agente_contacts_button,
#user_agente .agente_orders_button,
a.agente_create_anag {
  text-align: center;
  background-color: #5f5f5f !important;
  border: 1px solid #5f5f5f !important;
}

/* Nasconde pulsante stampa */
a.buttServPrint {
  display: none;
}


/* ===================================================================
   5. SCHEDA PRODOTTO - immagini e colonna destra
   =================================================================== */

/* Desktop */
@media screen and (min-width: 1025px) {
  /* Proporzioni delle colonne: modifica solo questi valori */
  #sheetBoxTopDetails {
    --larghezza-foto: 55%;   /* colonna foto (es. 50% = metà e metà) */
    --spazio-colonne: 30px;  /* spazio tra foto e informazioni */
    --max-foto: 460px;       /* dimensione massima dell'immagine principale */
  }

  #sheetBoxTopDetails .imagesBox {
    width: var(--larghezza-foto) !important;
    max-width: 100% !important;
    margin: 0 var(--spazio-colonne) 20px 0 !important;
  }

  /* Immagine principale: limitata e centrata nella colonna */
  #sheetBoxTopDetails .imagesBox img.image {
    width: 100% !important;
    max-width: var(--max-foto) !important;
    height: auto !important;
    margin: 0 auto;
    border-radius: 6px;
  }

  #sheetBoxTopDetails .thumbsList img.thumb {
    width: 90px !important;
    height: auto !important;
    margin: 5px;
    border-radius: 4px;
    transition: transform 0.2s ease;
  }
  #sheetBoxTopDetails .thumbsList img.thumb:hover {
    transform: scale(1.05);
  }

  /* La colonna informazioni parte subito dopo le foto */
  #sheetBoxTopDetails .detailsBox,
  #sheetBoxTopDetails .servicesBox,
  #sheetBoxTopDetails #addVotoBox {
    margin-left: calc(var(--larghezza-foto) + var(--spazio-colonne)) !important;
  }
}

/* Mobile e tablet */
@media screen and (max-width: 1024px) {
  #sheetBoxTopDetails .detailsBox,
  #sheetBoxTopDetails .servicesBox,
  #sheetBoxTopDetails #addVotoBox {
    margin-left: 0 !important;
  }
}


/* ===================================================================
   6. ELENCO CATEGORIE
   =================================================================== */

/* Rimuove contorni nell'elenco delle categorie */
ul.onlyLinks.noDesc li,
ul.onlyLinks.noDesc li * {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}


/* ===================================================================
   7. FOOTER
   =================================================================== */
#foot {
  display: none;
}
div#bottomElements {
  background-color: #ffffff !important;
}
div#footer_custom_els_container {
  background-color: #ebebeb !important;
}

/* ===================================================================
   8. SCHEDE PRODOTTO NEI CAROSELLI (elementi "Inserzioni")
      Valgono per tutti i caroselli prodotti del sito.
      Lo scorrimento automatico lo aggiunge il blocco HTML
      "CAROSELLI PRODOTTI AUTOMATICI" in fondo alla pagina.
   =================================================================== */

/* --- PANNELLO IMPOSTAZIONI SCHEDE --- */
.carousel {
  --scheda-bordo:   #ececee;   /* >>> colore del contorno della scheda */
  --scheda-raggio:  14px;      /* >>> arrotondamento angoli */
  --scheda-spazio:  8px;       /* >>> metà dello spazio tra una scheda e l'altra */
  --scheda-prezzo:  var(--antona-rosso);  /* >>> colore del prezzo */
  --scheda-btn:     var(--antona-nero);   /* >>> colore pulsante Aggiungi */
}

/* --- Il carosello imposta altezze fisse: le liberiamo, così tutte le
       schede di una riga hanno la stessa altezza --- */
.carousel .carousel_wp { height: auto !important; padding: 4px 0 10px; }
.carousel .carousel_wp > ul { display: flex; align-items: stretch; }
.carousel .carousel_wp > ul > li.carousel_item {
  flex: none;
  height: auto !important;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  padding: 0 calc(var(--scheda-spazio) + 1px) !important;
  text-align: left;
}

/* --- Cornice bianca della scheda (disegnata dietro ai contenuti) --- */
.carousel_item::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--scheda-spazio); right: var(--scheda-spazio);
  z-index: -1;
  background: #fff;
  border: 1px solid var(--scheda-bordo);
  border-radius: var(--scheda-raggio);
  transition: box-shadow .25s ease, transform .25s ease;
}
.carousel_item:hover::before {
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

/* --- Foto: riquadro quadrato, prodotto intero e centrato, linea sotto --- */
.carousel_item a.imageLink {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 16px;
  margin: 0 1px;
  border-bottom: 1px solid var(--scheda-bordo);
  box-sizing: border-box;
  overflow: hidden;
}
.carousel_item a.imageLink img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .35s ease;
}
.carousel_item:hover a.imageLink img { transform: scale(1.05); }

/* --- Nome prodotto: a sinistra, massimo 2 righe --- */
.carousel_wp > ul > li.carousel_item h2.title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 2.6em;
  overflow: hidden;
  margin: 14px 0 6px 0 !important;
  padding: 0 16px !important;
  font-family: var(--antona-font-testo);
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.3em;
  text-align: left;
}
.carousel_item h2.title a { color: var(--antona-nero) !important; }
.carousel_item h2.title a:hover { color: var(--antona-rosso) !important; }

/* --- Prezzo e pulsante: in fondo alla scheda --- */
.carousel_item .details {
  margin-top: auto;
  padding: 0 16px 16px;
  box-sizing: border-box;
  text-align: left;
}
.carousel_item .mainPrice {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-start !important;
  margin: 4px 0 12px;
  font-family: var(--antona-font-titoli);
  font-size: 22px;
  font-weight: 800;
  color: var(--scheda-prezzo) !important;
}
.carousel_item .mainPrice span { color: inherit !important; }

/* Prezzo pieno barrato (se il prodotto è scontato) */
.carousel_item .grossPrice {
  justify-content: flex-start !important;
  font-size: 13px;
  color: var(--antona-grigio);
  text-decoration: line-through;
}

/* --- Pulsante "Aggiungi" (si attiva nell'elemento Inserzioni:
       opzione Pulsante ACQUISTA) --- */
.carousel_item form.cart_form,
.carousel_item form.cart_form_disabled {
  display: flex !important;
  width: 100%;
  margin: 0;
}
.carousel_item .cart_form_quantity { display: none !important; }   /* nasconde la quantità */
/* :is(#colMid,...) serve a vincere la regola rossa generica dei pulsanti (sezione 4) */
.carousel_item form input.butt1,
:is(#colMid, #colSx, #colDx) .carousel_item form input.butt1 {
  display: block;
  flex: 1 1 auto;
  width: 100% !important;
  padding: 0 !important;
  height: 44px;
  margin: 0;
  border: 0 !important;
  border-radius: 10px;
  background: var(--scheda-btn) !important;
  color: #fff !important;
  font-family: var(--antona-font-testo);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.carousel_item form input.butt1:hover,
:is(#colMid, #colSx, #colDx) .carousel_item form input.butt1:hover { background: var(--antona-rosso) !important; }
.carousel_item form.cart_form_disabled input.butt1 { opacity: .45; cursor: not-allowed; }

/* --- Frecce laterali: tonde, discrete --- */
.carousel .carousel_nav.left:after,
.carousel .carousel_nav.right:after {
  width: 26px;
  height: 37px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  opacity: .9;
}

/* --- Telefono: una scheda alla volta, foto meno alta --- */
@media (max-width: 600px) {
  .carousel_item a.imageLink { aspect-ratio: 4 / 3; padding: 12px; }
  .carousel_wp > ul > li.carousel_item h2.title { font-size: 15px !important; }
}


/* ===================================================================
   9. CAROSELLI PRODOTTI AUTOMATICI (scorrimento, frecce, puntini)
      Si attiva solo dove c'è lo script "Caroselli prodotti automatici"
      (Contenuti > Script). Senza lo script queste regole non fanno nulla.
   =================================================================== */
/* --- PANNELLO IMPOSTAZIONI CAROSELLI --- */
.carousel.apc {
  --apc-min: 200px;    /* >>> COMPUTER: larghezza minima di una scheda.
                               200px = 5 schede su schermo largo.
                               Più alta = meno schede per riga */
}
@media (max-width: 600px) {
  .carousel.apc {
    --apc-min: 150px;  /* >>> SMARTPHONE: 150px = 2 schede affiancate.
                               Metti 300px per averne 1 sola */
  }
}
/* Velocità: APC_PAUSA nello script (Contenuti > Script), in millisecondi */

/* --- STILE CAROSELLI: di norma non va modificato
       (vale solo dopo che lo script ha aggiunto la classe "apc") --- */

/* --- Binario che scorre --- */
.carousel.apc { position: relative; }
.carousel.apc .carousel_wp {
  width: 100% !important;
  height: auto !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel.apc .carousel_wp::-webkit-scrollbar { display: none; }
.carousel.apc .carousel_wp > ul {
  width: 100% !important;
  left: 0 !important;
  display: flex;
}

/* --- Larghezza di ogni scheda: --apc-n la calcola lo script --- */
.carousel.apc .carousel_wp > ul > li.carousel_item {
  flex: 0 0 calc(100% / var(--apc-n, 4)) !important;
  width: calc(100% / var(--apc-n, 4)) !important;
  scroll-snap-align: start;
}

/* --- Foto sempre quadrata, prodotto intero --- */
.carousel.apc .carousel_item a.imageLink { aspect-ratio: 1 / 1; }

/* --- Frecce originali nascoste: usiamo le nostre --- */
.carousel.apc .carousel_nav { display: none !important; }
.apc-btn {
  position: absolute;
  top: 45%;
  z-index: 5;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid #ececee;
  border-radius: 50%;
  background: #fff;
  color: var(--antona-nero);
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  transition: background .2s, color .2s;
}
.apc-btn:hover { background: var(--antona-nero); color: #fff; }
.apc-prev { left: -4px; }
.apc-next { right: -4px; }

/* --- Puntini sotto il carosello --- */
.apc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 4px;
}
.apc-dots button {
  width: 7px; height: 7px;
  padding: 0; border: 0;
  border-radius: 999px;
  background: #cfcfd4;
  cursor: pointer;
  transition: width .25s, background .25s;
}
.apc-dots button.on { width: 20px; background: var(--antona-rosso); }
.carousel.apc.apc-fermo .apc-dots,
.carousel.apc.apc-fermo .apc-btn { display: none; }   /* tutto visibile: niente frecce né puntini */

/* --- SMARTPHONE: schede più compatte, niente frecce (si scorre col dito) --- */
@media (max-width: 600px) {
  .carousel.apc { padding: 0 !important; }
  .carousel.apc .boxTitle,
  .carousel.apc .bottomLink { margin-left: 0 !important; margin-right: 0 !important; }
  .apc-btn { display: none; }
  .carousel.apc .carousel_wp > ul > li.carousel_item { padding: 0 4px !important; }
  .carousel.apc .carousel_item::before { left: 4px; right: 4px; border-radius: 12px; }
  .carousel.apc .carousel_item a.imageLink { padding: 10px; }
  .carousel.apc .carousel_wp > ul > li.carousel_item h2.title {
    font-size: 13px !important; padding: 0 10px !important; margin: 10px 0 4px !important;
  }
  .carousel.apc .carousel_item .details { padding: 0 10px 10px; }
  .carousel.apc .carousel_item .mainPrice { font-size: 17px; margin: 2px 0 8px; }
  :is(#colMid, #colSx, #colDx) .carousel.apc .carousel_item form input.butt1 { height: 38px; font-size: 14px; border-radius: 9px; }
}


/* ===================================================================
   10. BANNER CATEGORIA + PRODOTTI AFFIANCATI (blocchi "acat")
       Computer: banner a sinistra, prodotti a destra.
       Tablet e smartphone: banner sopra, prodotti sotto.
   =================================================================== */

/* --- PANNELLO IMPOSTAZIONI --- */
.acat {
  --acat-banner: 1fr;      /* >>> larghezza del banner ...            */
  --acat-prodotti: 2fr;    /* >>> ... rispetto ai prodotti (1 a 2)     */
  --acat-altezza: 380px;   /* >>> altezza minima del banner su computer */
}

/* --- Griglia: banner + prodotti --- */
.acat {
  display: grid;
  grid-template-columns: minmax(260px, var(--acat-banner)) var(--acat-prodotti);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 30px;
  align-items: stretch;
}
.acat:has(.acat-prodotti:empty) { grid-template-columns: 1fr; }  /* nessun carosello: solo banner */
.acat-prodotti:empty { display: none; }
.acat-prodotti { min-width: 0; display: flex; flex-direction: column; justify-content: center; }

/* --- Variante "acat-inverti": prodotti a sinistra, banner a destra --- */
.acat.acat-inverti { grid-template-columns: var(--acat-prodotti) minmax(260px, var(--acat-banner)); }
.acat.acat-inverti .acat-banner { order: 2; }

/* --- Banner: foto a tutta altezza, sfumatura scura in basso --- */
.acat-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--acat-altezza);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  color: #fff !important;
  text-decoration: none !important;
}
.acat-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  z-index: -2;
  transition: transform .5s ease;
}
.acat-banner:hover img { transform: scale(1.04); }
.acat-banner::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.40) 45%, rgba(0,0,0,.05) 80%);
}

/* --- Testi del banner --- */
.acat-txt { padding: 26px; text-align: left; }
.acat-eyebrow {
  display: inline-block;
  background: var(--antona-rosso); color: #fff;
  font-family: var(--antona-font-testo);
  font-size: 11px; font-weight: 700; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 6px; margin-bottom: 12px;
}
.acat-banner .acat-title {
  font-family: var(--antona-font-titoli);
  font-size: 28px; font-weight: 800; line-height: 1.1;
  color: #fff; margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.acat-sub {
  font-family: var(--antona-font-testo);
  font-size: 15px; line-height: 1.45;
  color: #fff; opacity: .95;
  margin: 8px 0 18px;
}
.acat-btn {
  display: inline-block;
  font-family: var(--antona-font-testo);
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 13px 20px; border-radius: 999px;
  background: #fff; color: var(--antona-nero);
  transition: background .2s, color .2s;
}
.acat-banner:hover .acat-btn { background: var(--antona-rosso); color: #fff; }

/* --- Carosello dentro il blocco: niente titolo doppio, niente margini --- */
.acat-prodotti .carousel { margin: 0 !important; }
.acat-prodotti .carousel .boxTitle,
.acat-prodotti .carousel .bottomLink { display: none !important; }

/* --- TABLET (fino a 900px): banner sopra, prodotti sotto --- */
@media (max-width: 900px) {
  .acat, .acat.acat-inverti { grid-template-columns: 1fr; }
  .acat.acat-inverti .acat-banner { order: 0; }   /* anche invertito: banner sopra */
  .acat-banner { min-height: 220px; align-items: center; }
  .acat-banner::before {
    background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 85%);
  }
}

/* --- SMARTPHONE (fino a 600px) --- */
@media (max-width: 600px) {
  .acat { padding: 0 10px; gap: 10px; margin-bottom: 24px; }
  .acat-banner { min-height: 170px; }
  .acat-txt { padding: 18px; }
  .acat-banner .acat-title { font-size: 22px; }
  .acat-sub { display: none; }
  .acat-btn { font-size: 13px; padding: 9px 14px; margin-top: 12px; }
}


/* ======================== FINE REGOLE CSS ======================== */

