/* Patch supplementari per classi non presenti nel CSS estratto dalla build. */

/* Allineamenti testo generati dall'editor (Quill) nei contenuti pubblici */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* Evento — pagina post-evento (video + galleria) */
.ev-video { position: relative; aspect-ratio: 16/11; margin: 24px 0; border-radius: 14px; overflow: hidden; background:#000; }
.ev-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 24px; }
.ev-gallery-item { display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #2a2721); }
.ev-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ev-gallery-item:hover img { transform: scale(1.05); }

/* All'apertura dei modali Bootstrap NON spostare il layout:
   la scrollbar di pagina resta visibile, quindi la compensazione padding-right
   di Bootstrap causerebbe solo uno shift a sinistra del contenuto centrato. */
body.modal-open { padding-right: 0 !important; }
body.modal-open header,
body.modal-open .navbar,
body.modal-open .fixed-top,
body.modal-open .sticky-top { padding-right: 0 !important; }

/* ===== Scrollbar globale sito pubblico =====
   NIENTE styling globale della scrollbar: né ::-webkit-scrollbar (Chrome/Safari)
   né scrollbar-width/scrollbar-color su html (Chrome 121+ li onora e spengono
   l'overlay). Così su macOS resta la scrollbar overlay flottante e NON compare
   la banda scura a destra. Lo styling per singoli contenitori (es. .rail,
   .gr-grid, .carousel-container) resta locale e non tocca la scrollbar di pagina. */

/* Carousel "Ultimi Arrivi" in Home (scroll orizzontale con snap) */
.carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

/* Loghi partner in Home */
.partner-card-home {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 104px;
  text-decoration: none;
  transition: border-color .3s;
}
.partner-card-home:hover { border-color: var(--border-gold); }
.partner-card-home:hover img { filter: grayscale(0) brightness(1) !important; }

/* Piccole sicurezze layout */
.sec-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* Overlay ricerca (aggiunta CI4, non presente nella build originale) */
.search-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(14,13,11,.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.search-overlay[hidden] { display: none; }
.search-overlay__form { width: min(680px,90vw); display: flex; gap: 12px; align-items: center; }
.mobile-drawer__submenu[hidden] { display: none; }
.mobile-drawer__submenu { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 6px 14px; }
.arrow.up { transform: rotate(180deg); display: inline-block; }

/* Server-rendered: elementi reveal sempre visibili (niente IntersectionObserver) */
.rv { opacity: 1 !important; transform: none !important; }

/* --- Menu hover-intent: stato aperto stabile gestito da JS (site.js) --- */
.nav-dropdown-wrapper.mm-open > .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%) translateY(0) !important;
}
.nav-dropdown-wrapper.mm-open .arrow-down { transform: rotate(180deg); }

/* --- Pagine senza page-hero: spazio per l'header flottante a OGNI larghezza --- */
.product-detail-page { padding-top: 124px !important; }
.page-top-offset { padding-top: 124px; }

/* --- Rifinitura bottoni azione scheda prodotto --- */
.product-price-action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.product-buy-btn {
  background: linear-gradient(135deg,#bfa05d 0%,#f7e2b2 50%,#e1bf76 100%) !important;
  color: #0c0a08 !important; border: none !important; font-weight: 800 !important;
  border-radius: 8px !important; padding: 14px 24px !important; letter-spacing: .03em;
  cursor: pointer; transition: transform .25s, box-shadow .25s; box-shadow: 0 4px 14px #e1bf7633;
  flex: 1 1 auto; min-width: 180px;
}
.product-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #e1bf7659; }
.product-booking-btn {
  background: #161615 !important; color: var(--text) !important; border: 1px solid var(--border-gold) !important;
  border-radius: 8px !important; padding: 14px 24px !important; font-weight: 600 !important;
  cursor: pointer; transition: .25s; flex: 1 1 auto; min-width: 160px;
}
.product-booking-btn:hover { border-color: var(--gold) !important; color: var(--gold) !important; }

/* ============================================================
   CATALOGO: card sempre scure + hover seconda immagine + select scure
   ============================================================ */

/* Card scure (override del componente .card di Bootstrap) */
.grid .card, .carousel-container .card, .card.card-cta {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.grid .card:hover, .carousel-container .card:hover {
  border-color: var(--border-gold) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.card__title  { color: var(--text) !important; }
.card__variant{ color: #eee !important; display: block !important; margin-top: 2px; font-size: .80em; }
.card__body   { padding: 16px 16px 20px !important; background: transparent !important; }
/* Prezzo sempre in fondo alla card: testo in alto, prezzo allineato in basso */
.grid .card, .carousel-container .card { display: flex; flex-direction: column; }
.grid .card .card__body, .carousel-container .card .card__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.grid .card .card__price, .carousel-container .card .card__price { margin-top: auto; padding-top: 10px; }

/* Hover: mostra la seconda immagine */
.card__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-2); }
.card__media .card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .5s ease, transform .6s ease;
}
.card__media .card__img--hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media .card__img--hover { opacity: 1; }
.card:hover .card__media .card__img { transform: scale(1.05); }

/* Dropdown / input filtri: scuri */
.form-select, .form-control {
  background-color: var(--bg-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}
.form-select:focus, .form-control:focus {
  border-color: var(--border-gold) !important;
  box-shadow: 0 0 0 .15rem rgba(225,191,118,.15) !important;
  background-color: var(--bg-2) !important;
  color: var(--text) !important;
}
.form-select option { background-color: #161310; color: var(--text); }
.form-control::placeholder { color: var(--dim); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e1bf76' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .75rem center !important;
  background-size: 14px 11px !important;
}

/* ============================================================
   Tasto cerca (header) + Modal di ricerca
   ============================================================ */
.header-icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 50%;
  color: var(--text); font-size: 19px; cursor: pointer; padding: 0;
  transition: color .25s, border-color .25s, background .25s;
}
.header-icon-btn:hover { color: var(--gold); border-color: var(--border-gold); background: rgba(225,191,118,.07); }
.header-icon-btn i { line-height: 1; }

/* Modal ricerca */
.search-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,9,8,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center; padding: 15vh 20px 20px;
  animation: searchFade .25s ease both;
}
.search-overlay[hidden] { display: none; }
.search-overlay__box {
  width: min(680px, 94vw); display: flex; flex-direction: column; gap: 16px;
  animation: searchRise .35s cubic-bezier(.22,1,.36,1) both;
}
.search-overlay__kicker {
  color: var(--gold); letter-spacing: .22em; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.search-overlay__form { position: relative; display: flex; align-items: center; gap: 10px; }
.search-overlay__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--dim); font-size: 18px; pointer-events: none;
}
.search-overlay__input {
  flex: 1 1 auto; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 17px 16px 17px 48px; color: var(--text); font-size: 16px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.search-overlay__input::placeholder { color: var(--dim); }
.search-overlay__input:focus { border-color: var(--border-gold); box-shadow: 0 0 0 .18rem rgba(225,191,118,.14); }
.search-overlay__submit { white-space: nowrap; flex: 0 0 auto; }
.search-overlay__close {
  position: absolute; top: 26px; right: 30px;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: 50%;
  color: var(--dim); font-size: 22px; cursor: pointer; transition: color .2s, border-color .2s;
}
.search-overlay__close:hover { color: var(--gold); border-color: var(--border-gold); }
.search-overlay__hints { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
.search-overlay__hints a {
  color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 5px 14px;
  text-decoration: none; font-size: 12.5px; transition: border-color .2s, color .2s;
}
.search-overlay__hints a:hover { border-color: var(--gold); color: var(--gold); }

@keyframes searchFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes searchRise { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .search-overlay { padding-top: 12vh; }
  .search-overlay__submit { display: none; } /* su mobile invio = cerca */
}

/* --- Modali Bootstrap sopra tutto (hubcore usa z-index fino a 99999) --- */
.modal-backdrop { z-index: 100040 !important; }
.modal          { z-index: 100050 !important; }
.modal-dialog   { z-index: 100051; }

/* ============================================================
   FAB (basso-sinistra, glass) + preferiti card + menu + mega
   ============================================================ */

/* FAB in basso a SINISTRA, stile scuro elegante */
.floating-actions { left: 22px !important; right: auto !important; bottom: 22px !important; gap: 12px !important; z-index: 9990 !important; }
.fab { width: 52px !important; height: 52px !important; background: #161310e6 !important; border: 1px solid rgba(225,191,118,.22) !important; color: var(--gold) !important; box-shadow: 0 10px 26px rgba(0,0,0,.55) !important; }
.fab:hover { background: var(--gold) !important; color: #0e0d0b !important; border-color: var(--gold) !important; transform: translateY(-3px) !important; box-shadow: 0 14px 30px rgba(225,191,118,.28) !important; }
.fab i { font-size: 20px !important; line-height: 1; }
/* etichetta a destra (il FAB ora è a sinistra) */
.fab-text { right: auto !important; left: calc(100% + 12px) !important; transform: translate(-10px) !important; }
.fab:hover .fab-text { transform: translate(0) !important; }

/* Cuore "preferiti" sulle card (solo nel catalogo) */
.card__body { display: block; text-decoration: none !important; color: inherit !important; }
.card__media-link { display: block; width: 100%; height: 100%; }
.card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(14,13,11,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(225,191,118,.25); border-radius: 50%; color: var(--text);
  cursor: pointer; font-size: 16px; transition: all .2s; opacity: 0; transform: translateY(-4px);
}
.card:hover .card__fav { opacity: 1; transform: translateY(0); }
.card__fav:hover { border-color: var(--gold); color: var(--gold); }
.card__fav.is-fav { opacity: 1; transform: none; color: var(--gold); border-color: var(--gold); background: rgba(225,191,118,.14); }

/* Font del menu (più raffinato) */
.nav { gap: 30px !important; }
.nav a, .nav-dropdown-trigger { font-size: 0.9em !important; letter-spacing: .03em !important; }

/* Mega menu (rifinito) */
.nav-dropdown-card {
  border-radius: 18px !important;
  border: 1px solid rgba(225,191,118,.28) !important;
  background: rgba(14,13,11,.97) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.6) !important;
}
.mega-menu-title { font-size: 10px !important; letter-spacing: .16em !important; margin-bottom: 12px !important; opacity: .92; }
.nav-dropdown-menu a { font-size: 12.5px !important; border-radius: 6px; transition: color .2s, background .2s; }
.nav-dropdown-menu a:hover { background: rgba(225,191,118,.08) !important; color: var(--gold) !important; }
.mega-menu-sidebar { border-right: 1px solid rgba(225,191,118,.14); }

/* Preferiti: SOLO nel catalogo (.grid), non nella carousel della home */
.card__fav { display: none; }
.grid .card__fav { display: inline-flex; }

/* FAB di nuovo a DESTRA */
.floating-actions { left: auto !important; right: 22px !important; }
.fab-text { left: auto !important; right: calc(100% + 12px) !important; transform: translate(10px) !important; }
.fab:hover .fab-text { transform: translate(0) !important; }

/* ============================================================
   Area riservata (my/)
   ============================================================ */
.my-area { padding: 150px 0 100px; }
.my-area__grid { display: grid; grid-template-columns: 74px 1fr; gap: 32px; align-items: start; }
.my-area__grid--full { grid-template-columns: 1fr !important; }
@media (max-width: 900px) { .my-area__grid { grid-template-columns: 1fr; } }

.my-sidebar { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; position: sticky; top: 120px; }
.my-sidebar__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.my-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(225,191,118,.12); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: 0 0 auto; }
.my-sidebar__name { font-weight: 700; color: #fff; }
.my-sidebar__email { font-size: 12px; color: var(--dim); }
.my-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.my-sidebar__link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.my-sidebar__link i { font-size: 17px; width: 20px; text-align: center; }
.my-sidebar__link:hover { background: rgba(225,191,118,.06); color: var(--text); }
.my-sidebar__link.active { background: rgba(225,191,118,.12); color: var(--gold); }
.my-sidebar__logout { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 16px; color: #c98b8b; }
.my-sidebar__logout:hover { color: #e0a0a0; background: rgba(200,120,120,.06); }

.my-area__content { min-width: 0; }
.my-h1 { margin: 0 0 6px; color: #fff; }
.my-sub { color: var(--dim); margin: 0 0 28px; }
.my-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.my-empty { text-align: center; padding: 56px 20px; color: var(--dim); border: 1px dashed var(--line); border-radius: 14px; }
.my-empty i { font-size: 40px; opacity: .4; display: block; margin-bottom: 12px; }
.my-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; margin-bottom: 24px; }
.my-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.my-stat__num { font-size: 28px; font-weight: 700; color: var(--gold); }
.my-stat__label { font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.my-field { margin-bottom: 16px; }
.my-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 6px; font-weight: 700; }

/* ============================================================
   Hero pagine interne — più eleganti e proporzionati
   ============================================================ */
.page-hero {
  height: auto !important;
  min-height: clamp(260px,40vh,360px) !important;
  max-height: none !important;
  padding-top: 138px !important;
  padding-bottom: 48px !important;
}
.page-hero h1 {
  white-space: normal !important;
  font-size: clamp(30px, 4.6vw, 50px) !important;
  line-height: 1.08 !important;
  max-width: 900px;
}
.page-hero .bg { background-position: center 32% !important; }
/* gradiente: scuro in alto (menu leggibile), morbido al centro, sfuma nel nero in basso */
.page-hero::before {
  background: linear-gradient(180deg,
      rgba(14,13,11,.80) 0%,
      rgba(14,13,11,.30) 38%,
      rgba(14,13,11,.55) 72%,
      #0e0d0b 100%) !important;
}
/* accento oro sotto il titolo (solo se il titolo è l'unico figlio testuale) */

@media (max-width: 640px) {
  .page-hero { min-height: 300px !important; padding-top: 120px !important; padding-bottom: 36px !important; }
}

/* Menu: voce attiva più leggibile */
.nav a.on { color: #fff !important; }
.nav .nav-dropdown-trigger.on { color: #fff !important; }

/* --- Fix drawer mobile: forza lo stato aperto (--open non vinceva sul transform base) --- */
.mobile-drawer.mobile-drawer--open { transform: translate(0) !important; }
.nav-mobile-overlay.nav-mobile-overlay--open { opacity: 1 !important; pointer-events: auto !important; }

/* ============================================================
   Rifiniture da review (coerenza, mobile, a11y)
   ============================================================ */
/* card body: ripristina la riduzione mobile (era annullata dall'override) */
@media (max-width: 600px) { .card__body { padding: 14px 10px !important; } }

/* my: numero + etichetta della stat card impilati */
.my-stat { display: flex; flex-direction: column; gap: 4px; }
.my-stat__num, .my-stat__label { display: block; }

/* Badge di stato a tema (my ordini/richieste) — Bootstrap .badge è senza fondo */
.badge, .status-pill {
  display: inline-block; background: rgba(225,191,118,.14) !important; color: var(--gold) !important;
  border: 1px solid var(--border-gold); border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}

/* Focus tastiera coerente sui bottoni-icona */
.header-icon-btn:focus-visible, .search-overlay__close:focus-visible,
.card__fav:focus-visible, .fab:focus-visible {
  outline: none; border-color: var(--gold) !important; color: var(--gold) !important;
  box-shadow: 0 0 0 .18rem rgba(225,191,118,.18);
}

/* CTA footer mega-menu uniforme (Azienda/Store/Catalogo) */
.mega-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 36px 24px; width: 100%; }

/* ============================================================
   Scheda prodotto — layout ottimizzato
   galleria a larghezza fissa · caratteristiche label/valore · descrizione sotto
   ============================================================ */
.product-detail-grid {
  grid-template-columns: 46% minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.pd-gallery { width: 100%; position: sticky; top: 110px; }
.pd-info { min-width: 0; }

/* --- Galleria: niente ombra, cornice pulita, frecce, thumb attiva --- */
.product-detail-main-img-container {
  cursor: default !important;
}
.product-detail-main-img-container img {

  border-radius: 40px;
}
.product-detail-main-img-container:hover .product-detail-main-img { transform: none !important; }

.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(14,13,11,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--text); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: border-color .15s, color .15s, background .15s;
}
.pd-nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(14,13,11,.8); }
.pd-prev { left: 14px; }
.pd-next { right: 14px; }

.product-detail-thumbnails-list { margin-top: 16px; gap: 12px; }
.product-detail-thumbnail {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  padding: 0; background: var(--bg-2); cursor: pointer; opacity: .6;
  transition: opacity .15s, border-color .15s; width: 76px; height: 76px;
}
.product-detail-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-thumbnail:hover { opacity: 1; border-color: var(--gold); }
.product-detail-thumbnail.is-active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

/* --- Info prodotto: più aria --- */
.pd-info h1 { font-size: 32px; line-height: 1.15; margin: 6px 0 8px; }
.product-price-action-row { margin-bottom: 8px; }

/* Caratteristiche: label a sinistra, valore a destra, righe separate */
.pd-specs { margin-top: 32px; border-top: 1px solid var(--line, #eae6dd1f); }
.pd-spec-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 12px 2px; border-bottom: 1px solid var(--line, #eae6dd1f);
}
.pd-spec-label { flex: 0 0 42%; color: var(--dim); font-size: 13.5px; letter-spacing: .3px; margin: 0; }
.pd-spec-value { flex: 1; color: var(--text); font-weight: 600; text-align: right; margin: 0; }

/* Descrizione sotto, in card più scura */
.pd-description {
  margin-top: 64px;
  background: #0a0908;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 36px;
}
.pd-desc-title { margin: 0 0 16px; font-size: 22px; color: var(--gold); }
.pd-desc-body { color: var(--text); line-height: 1.85; font-size: 15.5px; }
.pd-desc-body p { margin: 0 0 1em; }
.pd-desc-body p:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .pd-gallery { max-width: 100%; position: static; }
  .pd-description { margin-top: 44px; max-width: 100%; }
}
@media (max-width: 600px) {
  .pd-info h1 { font-size: 26px; }
  .pd-nav { width: 40px; height: 40px; font-size: 22px; }
}


/* ===================== BARRA FILTRI CATALOGO ===================== */
:root { --cf-line: rgba(234,230,221,.16); }

/* riga titolo: "Tutte le Collezioni" a sx, pezzi disponibili a dx */
.cf-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px;
}
.cf-count { color: var(--dim); font-size: 15px; letter-spacing: .2px; }
.cf-count strong { color: var(--gold); font-weight: 700; font-size: 17px; }

/* barra a 3 zone: cerca (sx) · filtri (centro) · ordina (dx) */
/* Barra filtri su due righe: 1) cerca 75% + ordina 25% · 2) tutti i filtri */
.cf-bar { display: flex; flex-direction: column; gap: 14px; }
.cf-row { width: 100%; }
.cf-row-top { display: flex; align-items: center; gap: 14px; }
.cf-row-top .cf-left  { flex: 0 0 75%; max-width: 75%; display: flex; align-items: center; gap: 14px; min-width: 0; }
.cf-row-top .cf-left .cf-search-inline { flex: 1 1 auto; }
.cf-row-top .cf-left .cf-search-inline input { width: 100%; max-width: none; }
.cf-row-top .cf-right { flex: 0 0 25%; max-width: 25%; display: flex; align-items: center; justify-content: flex-end; }
.cf-row-top .cf-right .cf-drop-right, .cf-row-top .cf-right .cf-btn-sort { width: 100%; }
.cf-row-top .cf-right .cf-btn-sort { justify-content: space-between; }
.cf-row-filters .cf-center { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: flex-start; }

.cf-drop { position: relative; }

.cf-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--cf-line); border-radius: 12px;
  padding: 13px 20px; font-size: 15px; font-weight: 500; letter-spacing: .2px;
  cursor: pointer; white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}
.cf-btn:hover { border-color: var(--border-gold); color: var(--gold); }
.cf-drop.open .cf-btn { border-color: var(--gold); color: var(--gold); background: #1a1811; }
.cf-btn em { font-style: normal; color: var(--gold); font-weight: 600; }
.cf-btn-sort .cf-sort-lbl { color: var(--dim); font-weight: 500; }

.cf-caret {
  width: 8px; height: 8px; display: inline-block; margin-left: 1px;
  border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.cf-drop.open .cf-caret { transform: rotate(-135deg) translateY(-1px); }

.cf-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: #1a1712; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* pannello dropdown */
.cf-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
  width: 300px; background: #17150f;
  border: 1px solid var(--cf-line); border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0,0,0,.55);
  padding: 16px; display: none;
  animation: cfIn .15s ease;
}
.cf-drop.open .cf-panel { display: block; }
.cf-panel-lg { width: 360px; }
.cf-panel-sort { width: 240px; }
.cf-drop-right .cf-panel { left: auto; right: 0; }
@keyframes cfIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.cf-search { margin-bottom: 12px; }
.cf-search input {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--cf-line); border-radius: 11px;
  padding: 11px 14px; font-size: 14.5px; outline: none;
  transition: border-color .18s;
}
.cf-search input:focus { border-color: var(--gold); }

.cf-list { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.cf-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }

/* ===== Mega menu "Più filtri" (tipologia a sx, valori a dx) ===== */
.cf-panel-mega { width: min(680px, 92vw); padding: 0; overflow: hidden; }
.cf-drop-mega .cf-panel { left: auto; right: 0; }   /* ancorato a destra per non uscire dallo schermo */
.cf-mega { display: flex; align-items: stretch; }
.cf-mega-nav {
  flex: 0 0 216px; max-width: 216px; border-right: 1px solid var(--cf-line);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  max-height: 400px; overflow-y: auto; background: rgba(0,0,0,.18);
}
.cf-mega-tab {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; color: var(--text); cursor: pointer;
  text-align: left; padding: 11px 12px; border-radius: 10px; font-size: 14.5px;
  transition: background .15s, color .15s;
}
.cf-mega-tab > span:first-child { flex: 1 1 auto; }
.cf-mega-tab:hover { background: #1a1811; }
.cf-mega-tab.active { background: #1a1811; color: var(--gold); }
.cf-mega-arrow {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); opacity: .45; flex: 0 0 auto;
}
.cf-mega-tab.active .cf-mega-arrow { opacity: 1; }
.cf-badge-sm { min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
.cf-mega-values { flex: 1 1 auto; padding: 14px 16px; min-width: 0; }
.cf-mega-pane { display: none; }
.cf-mega-pane.active { display: block; }
.cf-mega-pane-head {
  color: var(--gold); font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 800; margin-bottom: 12px;
}
.cf-mega .cf-list { max-height: 330px; }
.cf-panel-mega .cf-actions { padding: 12px 16px; margin-top: 0; }
@media (max-width: 700px) {
  /* Mega menu su mobile: pannello centrato tipo scheda, sempre dentro lo schermo */
  .cf-drop-mega .cf-panel {
    position: fixed; top: 50%; left: 50%; right: auto;
    transform: translate(-50%, -50%);
    width: 94vw; max-width: 460px; max-height: 84vh; overflow-y: auto;
    animation: none;
  }
  .cf-panel-mega { width: 94vw; }
  .cf-mega { flex-direction: column; }
  .cf-mega-nav {
    flex: 0 0 auto; max-width: none; flex-direction: row; gap: 6px;
    overflow-x: auto; border-right: none; border-bottom: 1px solid var(--cf-line);
    max-height: none; -webkit-overflow-scrolling: touch;
  }
  .cf-mega-tab { white-space: nowrap; width: auto; padding: 9px 12px; }
  .cf-mega-arrow { display: none; }
  .cf-mega-values { padding: 12px; }
  .cf-mega .cf-list { max-height: 42vh; }
  .cf-mega .cf-list-grid { grid-template-columns: 1fr 1fr; }
}
/* Scrollbar a tema per le aree scrollabili del pannello "Più filtri"
   (colonna tipologie a sx, lista valori a dx, pannello su mobile): niente banda bianca. */
.cf-list,
.cf-mega-nav,
.cf-drop-mega .cf-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--cf-line) transparent;
}
.cf-list::-webkit-scrollbar,
.cf-mega-nav::-webkit-scrollbar,
.cf-drop-mega .cf-panel::-webkit-scrollbar { width: 8px; height: 8px; }
.cf-list::-webkit-scrollbar-thumb,
.cf-mega-nav::-webkit-scrollbar-thumb,
.cf-drop-mega .cf-panel::-webkit-scrollbar-thumb { background: var(--cf-line); border-radius: 8px; }
.cf-list::-webkit-scrollbar-thumb:hover,
.cf-mega-nav::-webkit-scrollbar-thumb:hover,
.cf-drop-mega .cf-panel::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.cf-list::-webkit-scrollbar-track,
.cf-mega-nav::-webkit-scrollbar-track,
.cf-drop-mega .cf-panel::-webkit-scrollbar-track { background: transparent; }

.cf-group {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--gold); font-weight: 700; padding: 14px 4px 6px; grid-column: 1 / -1;
}
.cf-group:first-child { padding-top: 2px; }

.cf-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: 10px; cursor: pointer;
  color: var(--text); font-size: 15px; transition: background .12s;
}
.cf-opt:hover { background: rgba(225,191,118,.09); }
.cf-opt input { accent-color: var(--gold); width: 17px; height: 17px; flex: 0 0 auto; cursor: pointer; }
.cf-opt span { line-height: 1.25; }
.cf-empty { color: var(--dim); font-size: 14px; padding: 12px 4px; margin: 0; }

.cf-actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cf-line);
}
/* auto-apply: il bottone Applica non serve più (submit automatico al cambio) */
.cf-apply { display: none; }
.cf-clear {
  background: none; border: none; color: var(--dim); font-size: 14px;
  cursor: pointer; padding: 8px 6px; transition: color .15s;
}
.cf-clear:hover { color: var(--text); }
.cf-apply {
  background: var(--gold); color: #1a1712; border: none; border-radius: 10px;
  padding: 10px 22px; font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.cf-apply:hover { filter: brightness(1.08); }
.cf-apply:active { transform: translateY(1px); }

/* prezzo / slider */
.cf-price { padding: 6px 6px 2px; }
.cf-price-vals {
  display: flex; justify-content: space-between; color: var(--text);
  font-size: 15px; font-weight: 600; margin-bottom: 18px;
}
.cf-slider { position: relative; height: 28px; }
.cf-track {
  position: absolute; top: 12px; left: 0; right: 0; height: 4px;
  background: var(--cf-line); border-radius: 4px;
}
.cf-range { position: absolute; top: 12px; height: 4px; background: var(--gold); border-radius: 4px; }
.cf-slider input[type=range] {
  position: absolute; top: 0; left: 0; width: 100%; height: 28px;
  margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.cf-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: 2px solid #1a1712; cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,.5);
}
.cf-slider input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: 2px solid #1a1712; cursor: pointer;
}
.cf-price-inputs { display: flex; gap: 12px; margin-top: 20px; }
.cf-price-inputs label {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--dim);
}
.cf-price-inputs input {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--cf-line); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; outline: none; transition: border-color .18s;
}
.cf-price-inputs input:focus { border-color: var(--gold); }

.cf-opt-radio input { border-radius: 50%; }

/* ricerca inline (sinistra) + reset */
.cf-search-inline {
  display: flex; align-items: center; background: var(--bg-2);
  border: 1px solid var(--cf-line); border-radius: 12px; padding: 4px 6px 4px 4px;
  transition: border-color .18s; min-width: 0;
  flex: 1 1 300px; max-width: 440px; overflow: hidden;
}
.cf-search-inline:focus-within { border-color: var(--border-gold); }
.cf-search-inline input {
  border: none; background: none; outline: none; color: var(--text);
  flex: 1 1 auto; width: auto; min-width: 0; max-width: none; padding: 9px 10px; font-size: 15px;
}
.cf-search-inline input::placeholder { color: var(--dim); }
.cf-go {
  background: var(--gold); border: none; width: 36px; height: 36px;
  border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; transition: filter .15s;
}
.cf-go:hover { filter: brightness(1.08); }
.cf-mag {
  width: 15px; height: 15px; display: inline-block; position: relative;
}
.cf-mag::before {
  content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px;
  border: 2px solid #1a1712; border-radius: 50%;
}
.cf-mag::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 6px; height: 2px;
  background: #1a1712; transform: rotate(45deg); transform-origin: right;
}
.cf-reset { color: var(--dim); font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .15s; }
.cf-reset:hover { color: var(--gold); }

/* ===================== GRIGLIA CATALOGO 6/3/2 ===================== */
#catalogGrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 48px 24px; }
@media (max-width: 1200px) { #catalogGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { #catalogGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (max-width: 600px)  { #catalogGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }

/* paginazione */
.cf-pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.cf-pg {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--cf-line); border-radius: 11px; color: var(--text);
  text-decoration: none; font-size: 15px; transition: border-color .15s, color .15s;
}
.cf-pg:hover { border-color: var(--border-gold); color: var(--gold); }
.cf-pg.is-active { background: var(--gold); color: #1a1712; border-color: var(--gold); font-weight: 700; }

/* responsive barra filtri */
@media (max-width: 900px) {
  .cf-row-top { flex-direction: column; align-items: stretch; }
  .cf-row-top .cf-left, .cf-row-top .cf-right { flex: 1 1 100%; max-width: 100%; justify-content: flex-start; }
  .cf-center { flex: 1 1 100%; justify-content: flex-start; }
  .cf-search-inline input { width: 100%; max-width: none; }
  .cf-search-inline { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .cf-center { gap: 8px; }
  .cf-btn { padding: 11px 15px; font-size: 14px; }
  .cf-panel, .cf-panel-lg { width: min(90vw, 360px); }
}

/* Catalogo: l'hero non deve tagliare i dropdown dei filtri.
   Sgancio height fissa/overflow dello stile generico .page-hero. */
.page-hero.page-hero--catalog {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-top: 118px !important;
  padding-bottom: 34px !important;
}
/* con overflow visibile lo zoom del .bg spillerebbe: lo blocco qui */
.page-hero.page-hero--catalog .bg { animation: none !important; }

/* ===================== HERO SITE-WIDE (più alto, testo elegante) ===================== */
.page-hero {
  height: clamp(340px,45vh,400px) !important;
  min-height: clamp(340px,45vh,400px) !important;
  max-height: clamp(340px,45vh,400px) !important;
  padding-top: 132px !important;
  padding-bottom: 44px !important;
}
.page-hero h1 {
  font-size: clamp(24px, 2.7vw, 34px) !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  white-space: normal !important;
}
.page-hero p { font-size: 15px; max-width: 540px; }
@media (max-width: 600px) {
  .page-hero {
    height: 250px !important; min-height: 250px !important; max-height: 250px !important;
    padding-top: 108px !important; padding-bottom: 28px !important;
  }
  .page-hero h1 { font-size: 24px !important; }
}

/* ===================== TASTI AZIONE SCHEDA PRODOTTO ===================== */
.pd-actions { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 8px; }
.pd-actions-row { display: flex; gap: 12px; }
.pd-actions-row > * { flex: 1 1 0; min-width: 0 !important; }
@media (max-width: 600px) {
  .pd-actions-row { flex-direction: column; }
  .pd-wa-btn {  padding: 6px 10px !important;}

}
.pd-btn-block {
  width: 100%; text-align: center; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Bottone WhatsApp: on-theme (scuro, hover oro). Icona verde solo come accento. */
.pd-wa-btn {
  padding: 14px 20px; border-radius: 8px;
  background: var(--bg-2); color: #fff; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.pd-wa-btn:hover {
  background: rgba(225,191,118,.08); color: var(--gold); border-color: var(--border-gold);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.pd-wa-btn .bi-whatsapp { font-size: 19px; color: #25D366; }

/* Blocca con acconto: outline oro, distinto dal "Compra ora" pieno */
.product-lock-btn {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 8px;
  padding: 14px 24px; font-weight: 700; letter-spacing: .03em;
  cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.product-lock-btn:hover { background: rgba(225,191,118,.1); box-shadow: 0 4px 14px #e1bf7626; }

/* Compra ora come <a> */
a.product-buy-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* "Compra ora" in evidenza (più grande) */
.pd-buy-lg { padding: 18px 28px !important; font-size: 18px !important; }

/* Azioni secondarie compatte: blocca / info / visita (più piccole, a capo) */
.pd-actions-sm { flex-wrap: wrap; gap: 8px; }
.pd-actions-sm > * { flex: 1 1 auto; min-width: auto !important; }
.pd-btn-sm {
  padding: 9px 14px !important; font-size: 13.5px !important; font-weight: 600 !important;
  border-radius: 8px !important;
}

/* Aggiungi ai preferiti */
.pd-fav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 2px; padding: 10px 16px;
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.pd-fav-btn:hover { color: var(--gold); border-color: var(--border-gold); }
.pd-fav-btn i { font-size: 17px; line-height: 1; }
.pd-fav-btn.is-fav { color: var(--gold); border-color: var(--border-gold); background: rgba(225,191,118,.07); }
.pd-fav-btn.is-fav i { color: var(--gold); }

/* Riga marca + cuore preferiti mini (in alto a destra, in linea con la marca) */
.pd-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-fav-mini {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); color: var(--dim);
  font-size: 17px; cursor: pointer; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.pd-fav-mini:hover { color: var(--gold); border-color: var(--border-gold); transform: translateY(-1px); }
.pd-fav-mini.is-fav { color: var(--gold); border-color: var(--border-gold); background: rgba(225,191,118,.09); }
.pd-fav-mini.is-fav i { color: var(--gold); }

/* Richiedi info: azione terziaria discreta (testo con icona, non un box pieno) */
.pd-info-link {
  align-self: center; margin-top: 2px; padding: 6px 10px;
  background: none; border: 0; color: var(--dim);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(225,191,118,.35);
  transition: color .2s;
}
.pd-info-link:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ===================== POPUP BLOCCA CON ACCONTO ===================== */
.pd-lock-modal .modal-content {
  background: #14130f; color: var(--text);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.pd-lock-modal .modal-header, .pd-lock-modal .modal-footer { border-color: var(--line); }
.pd-lock-modal .modal-title { color: var(--gold); font-weight: 700; }
.pd-lock-modal .btn-close { filter: invert(1) grayscale(1) brightness(1.6); opacity: .7; }
.pd-lock-modal .btn-close:hover { opacity: 1; }
.pd-lock-lead { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.pd-lock-steps { margin: 0 0 18px; padding-left: 20px; }
.pd-lock-steps li { margin-bottom: 12px; line-height: 1.6; color: var(--text); }
.pd-lock-steps strong { color: var(--gold); font-weight: 700; }
.pd-lock-note {
  background: rgba(225,191,118,.07); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--dim); margin: 0;
}
.pd-lock-modal .modal-footer .product-buy-btn { min-width: 200px; }

/* ===================== POPUP: importo acconto ===================== */
.pd-lock-amount {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(225,191,118,.1); border: 1px solid var(--gold);
  border-radius: 10px; padding: 8px 14px; margin-bottom: 16px; color: var(--text);
}
.pd-lock-amount strong { color: var(--gold); font-size: 18px; }

/* ===================== POPUP RISERVA: riepilogo prodotto + prezzi ===================== */
.pd-lock-recap {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  height: 100%;
  display: flex; flex-direction: column;
}
/* Testata riepilogo: foto 50% a sinistra, dati a destra */
.pd-lock-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd-lock-figure { flex: 0 0 50%; max-width: 50%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: transparent; }
.pd-lock-figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-lock-prod-txt { flex: 1 1 auto; min-width: 0; text-align: left; }
.pd-lock-brand { text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; font-size: 12px; }
.pd-lock-title { font-weight: 700; color: var(--text); font-size: 18px; line-height: 1.25; margin-top: 2px; }
.pd-lock-ref { color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.pd-lock-prices { display: flex; flex-direction: column; gap: 8px; }
.pd-lock-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pd-lock-price-row span { color: var(--dim); font-size: 13.5px; }
/* Prezzo totale in evidenza */
.pd-lock-total span { color: var(--text); font-weight: 600; font-size: 14.5px; }
.pd-lock-total strong { color: var(--text); font-size: 20px; font-weight: 700; }
/* Da pagare ora: importo principale */
.pd-lock-topay { align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.pd-lock-topay span { font-weight: 600; color: var(--text); font-size: 14.5px; }
.pd-lock-topay strong { color: var(--gold); font-size: 26px; font-weight: 800; }
/* Residuo da versare in evidenza */
.pd-lock-rest span { color: var(--text); font-weight: 600; font-size: 14.5px; }
.pd-lock-rest strong { color: var(--text); font-size: 19px; font-weight: 700; }
/* Scadenza saldo (Entro …) */
.pd-lock-deadline { margin-top: 4px; text-align: right; color: var(--dim); font-size: 13px; }
.pd-lock-deadline strong { color: var(--gold); font-weight: 700; }
.pd-lock-year { text-align: right; color: var(--dim); font-size: 13px; margin-top: 2px; }
.pd-lock-year strong { color: var(--text); font-weight: 700; }
.pd-lock-recap .product-buy-btn { width: 100%; justify-content: center; margin-top: auto; }

/* Step numerati evidenti (colonna sinistra) */
.pd-lock-steps--big { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.pd-lock-steps--big li { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.pd-lock-step-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(225,191,118,.14); border: 1px solid var(--gold);
  color: var(--gold); font-weight: 800; font-size: 16px;
}
.pd-lock-step-tx { line-height: 1.6; color: var(--text); font-size: 15px; }
.pd-lock-steps--big strong { color: var(--gold); font-weight: 700; }

/* Alert a tutta larghezza sotto le colonne */
.pd-lock-note--full { text-align: center; }
.pd-lock-note--full u { color: var(--text); }

/* ===================== CHECKOUT ===================== */
.co-wrap { max-width: 980px; margin: 0 auto; padding-bottom: 90px; }
.co-back { color: var(--dim); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 18px; }
.co-back:hover { color: var(--gold); }
.co-title { color: #fff; text-transform: uppercase; margin: 0 0 28px; font-size: clamp(24px, 3vw, 34px); }

.co-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.co-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px;
}
.co-summary .co-card { position: sticky; top: 110px; }

.co-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; }
.co-piece { color: var(--text); font-size: 20px; font-weight: 700; margin-top: 4px; }
.co-ref { color: var(--dim); font-size: 13.5px; margin-top: 4px; }
.co-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.co-amount-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--text); font-size: 16px; }
.co-amount-row strong { color: var(--gold); font-size: 26px; }
.co-note { color: var(--dim); font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.co-note strong { color: var(--text); }

.co-h3 { color: var(--text); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 14px; }
.co-pay .co-h3:not(:first-child) { margin-top: 26px; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-fields label { display: flex; flex-direction: column; gap: 6px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.co-fields input {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; transition: border-color .15s;
}
.co-fields input:focus { border-color: var(--gold); }

.co-methods { display: flex; flex-direction: column; gap: 10px; }
.co-method {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  color: var(--text); transition: border-color .15s, background .15s;
}
.co-method:hover { border-color: var(--gold); }
.co-method input { accent-color: var(--gold); width: 18px; height: 18px; }
.co-method:has(input:checked) { border-color: var(--gold); background: rgba(225,191,118,.06); }
.co-method-lbl { font-weight: 600; }

.co-submit { margin-top: 22px; }
.co-submit[disabled] { cursor: not-allowed; }
.co-secure { color: var(--dim); font-size: 12.5px; margin: 14px 0 0; text-align: center; }

/* Checkout: fatturazione + consegna */
.co-fields-2 { grid-template-columns: 1fr 1fr 1fr; }
.co-opt { text-transform: none; letter-spacing: 0; color: var(--dim); font-weight: 400; font-size: 11px; }
.co-select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 11px 12px; font-size: 14px;
}
.co-select:focus { border-color: var(--gold); outline: none; }
.co-alert { border-radius: 10px; padding: 11px 14px; font-size: 13px; line-height: 1.5; }
.co-alert-warn { background: rgba(225,191,118,.10); border: 1px solid rgba(225,191,118,.4); color: var(--gold); }
.co-alert-err  { background: rgba(224,85,91,.12); border: 1px solid rgba(224,85,91,.4); color: #f2b8bb; }

.co-empty { text-align: center; }
.co-empty h3 { color: var(--text); margin: 14px 0 8px; font-size: 18px; }
.co-empty p { color: var(--dim); margin: 0 0 18px; }

.co-esito { max-width: 620px; text-align: center; padding-top: 30px; }
.co-esito-card { padding: 44px 32px; }
.co-esito-title { color: #fff; margin: 18px 0 10px; font-size: 26px; }
.co-esito-msg { color: var(--dim); font-size: 15.5px; line-height: 1.7; margin: 0 0 18px; }
.co-esito-code { color: var(--dim); font-size: 13.5px; margin-bottom: 22px; }
.co-esito-code strong { color: var(--gold); }
.co-esito-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary .co-card { position: static; }
  .co-fields { grid-template-columns: 1fr; }
  .co-fields-2 { grid-template-columns: 1fr 1fr; }
  .co-fields-2 label[style*="span 3"] { grid-column: 1 / span 2 !important; }
}

/* ===== Home: Le Grandi Maison (brand) ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.015);
  text-decoration: none;
  transition: border-color .3s, transform .3s, background .3s;
}
.brand-tile:hover {
  border-color: var(--border-gold);
  background: rgba(225,191,118,.04);
  transform: translateY(-3px);
}
.brand-tile img {
  max-height: 60px;
  max-width: 82%;
  object-fit: contain;
  filter: grayscale(100%) brightness(200%);
  opacity: .8;
  transition: filter .3s, opacity .3s;
}
.brand-tile:hover img { filter: grayscale(0) brightness(1); opacity: 1; }
.brand-tile-txt {
  color: var(--dim);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 15px;
  text-align: center;
}

/* ===== Home: FAQ ===== */
/* FAQ: card unica con linee divisorie, accordion compatto */
.faq-card {
  max-width: 860px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.015); overflow: hidden;
}
.faq-item { border-top: 1px solid var(--line); transition: background .25s; }
.faq-item:first-child { border-top: 0; }
.faq-item[open] { background: rgba(225,191,118,.03); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none;
  padding: 15px 22px; font-size: 16px; font-weight: 600; color: #fff;
  transition: color .2s;
}
.faq-q:hover { color: var(--gold); }
.faq-q::-webkit-details-marker { display: none; }
.faq-ico { color: var(--gold); font-size: 20px; transition: transform .3s; flex: 0 0 auto; }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 18px; color: var(--dim); font-size: 15px; line-height: 1.65;
}
@media (max-width: 600px) {
  .faq-q { font-size: 15px; padding: 14px 16px; }
  .faq-a { padding: 0 16px 16px; font-size: 14.5px; }
}

/* ===== Store: card lista (totalmente cliccabili, poche info) ===== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.store-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  text-decoration: none;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.store-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.store-card-media {
  height: 200px;
  background: #000 center/cover no-repeat;
  transition: transform .4s;
}
.store-card:hover .store-card-media { transform: scale(1.04); }
.store-card-body { padding: 22px 24px; }
.store-card-name { margin: 0 0 8px; color: #fff; font-size: 20px; }
.store-card-city { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-size: 14.5px; }
.store-card-city i { color: var(--gold); }
.store-card-link {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; color: var(--gold);
  font-weight: 700; font-size: 15px;
  transition: gap .25s;
}
.store-card:hover .store-card-link { gap: 13px; }

/* ===== Eventi: raggruppati per anno, card orizzontali (immagine a sx) ===== */
.ev-year-group { margin-bottom: 48px; }
.ev-year {
  font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); letter-spacing: .02em;
}
.ev-year::after { content: ''; }
.ev-list { display: flex; flex-direction: column; gap: 18px; }
.ev-card {
  display: flex; align-items: stretch; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ev-card:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.ev-card-media { flex: 0 0 300px; max-width: 300px; background: #000; overflow: hidden; }
.ev-card-media img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block; transition: transform .4s; }
.ev-card:hover .ev-card-media img { transform: scale(1.04); }
.ev-card-body { flex: 1 1 auto; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; }
.ev-card-cat { color: var(--gold); font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.ev-card-title { margin: 6px 0 8px; color: #fff; font-size: 22px; line-height: 1.2; }
.ev-card-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
.ev-card-meta i { color: var(--gold); margin-right: 5px; }
.ev-card-excerpt { color: var(--dim); font-size: 15px; line-height: 1.6; margin: 12px 0 0; }
.ev-card-link {
  margin-top: auto; padding-top: 16px; color: var(--gold); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: gap .2s;
}
.ev-card:hover .ev-card-link { gap: 13px; }
@media (max-width: 640px) {
  .ev-card { flex-direction: column; }
  .ev-card-media { flex-basis: auto; max-width: none; aspect-ratio: 16 / 10; }
  .ev-card-media img { min-height: 0; }
  .ev-card-title { font-size: 19px; }
}

/* ===== Eventi: scheda dettaglio (titolo centrato, data sotto, immagine riquadro) ===== */
.ev-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 150px 20px 150px; background: #0e0d0b;
}
.ev-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .38; filter: saturate(1.05);
}
.ev-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,11,.55) 0%, rgba(14,13,11,.35) 50%, #0e0d0b 100%);
}
.ev-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.ev-hero-cat {
  color: var(--gold); text-transform: uppercase; letter-spacing: .16em;
  font-size: 12.5px; font-weight: 800; margin-bottom: 16px;
}
.ev-hero-title {
  color: #fff; text-transform: uppercase; margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 52px); line-height: 1.08;
}
.ev-hero-date {
  color: var(--gold); font-size: 20px; font-weight: 700; letter-spacing: .02em;
}
.ev-hero-date i { margin-right: 6px; }
.ev-hero-place { color: var(--dim); font-size: 15.5px; margin-top: 8px; }
.ev-hero-place i { color: var(--gold); margin-right: 5px; }

.ev-figure {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #000; margin-bottom: 34px; box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
.ev-figure img { width: 100%; display: block; object-fit: cover; max-height: 520px; }
.ev-body { color: var(--text); font-size: 17.5px; line-height: 1.85; }
.ev-body p { margin: 0 0 16px; }
.ev-body img { max-width: 100%; border-radius: 12px; }

/* ===== Home: Ultimi arrivi (larghezza card fissa, scroll) ===== */
.home-arrivi { gap: 20px;  padding-right: 40px;}
.home-arrivi-item { flex: 0 0 262px; max-width: 262px; scroll-snap-align: start; }
@media (max-width: 600px) { .home-arrivi-item { flex-basis: 78vw; max-width: 78vw; } }

/* ===== Home: Collezioni (4 colonne, tasto dentro la card) ===== */
.collez-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.collez-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
   padding: 0 20px 0 0; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
  border-right: 0;
  transition: border-color .25s, transform .25s, background .25s;
  background: #121212;
background: linear-gradient(304deg, rgba(18, 18, 18, 1) 0%, rgba(225, 191, 118, 0.30) 100%);
}
.collez-card:hover { transform: translateY(-3px); }
.collez-top { display: flex; flex-direction: column; gap: 4px; }
.collez-marca { color: var(--gold); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.collez-nome { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.25; }
/* Variante con foto (pezzo più costoso della collezione) a sinistra */
.collez-card--img { flex-direction: row; align-items: center; gap: 14px; }
.collez-thumb { flex: 0 0 auto; width: 100px; height: 100px; border-radius: 10px; overflow: hidden; border-radius: 14px;   }
.collez-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collez-card--img .collez-top { flex: 1 1 auto; min-width: 0; }
.collez-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--border-gold); border-radius: 999px;
  color: var(--gold); font-size: 13.5px; font-weight: 700;
  transition: background .2s, gap .2s;
}
.collez-card:hover .collez-btn { background: rgba(225,191,118,.12); gap: 12px; }
@media (max-width: 900px) { .collez-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .collez-grid { grid-template-columns: 1fr; } }

/* ===== Scroller orizzontale con frecce (Ultimi arrivi) ===== */
.hscroll { position: relative; }
.hscroll [data-hscroll-track] {
  flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth;
}
.hscroll-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #17150f; border: 1px solid var(--border-gold); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  cursor: pointer; transition: background .2s, opacity .2s; z-index: 3;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.hscroll-prev { left: -8px; }
.hscroll-next { right: -8px; }
.hscroll-nav:hover { background: rgba(225,191,118,.16); }
.hscroll-nav.is-off { opacity: .25; pointer-events: none; }
@media (max-width: 600px) { .hscroll-prev { left: 2px; } .hscroll-next { right: 2px; } }

/* Articoli in home: card orizzontali a tutta larghezza (singola colonna) */
.art-list--home { grid-template-columns: 1fr; }
.art-list--home .art-card-media { flex-basis: 300px; max-width: 300px; }
@media (max-width: 560px) { .art-list--home .art-card-media { flex-basis: auto; max-width: none; } }

/* ===== Articoli: card orizzontali (home + blog) ===== */
.art-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.art-card {
  display: flex; align-items: stretch; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.art-card:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.art-card-media { flex: 0 0 200px; max-width: 200px; background: #000; overflow: hidden; }
.art-card-media img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; transition: transform .4s; }
.art-card:hover .art-card-media img { transform: scale(1.05); }
.art-card-body { flex: 1 1 auto; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; }
.art-card-date { color: var(--dim); font-size: 13px; }
.art-card-date i { color: var(--gold); margin-right: 5px; }
.art-card-title { color: #fff; font-size: 19px; line-height: 1.25; margin: 8px 0 8px; }
.art-card-excerpt { color: var(--dim); font-size: 14.5px; line-height: 1.6; margin: 0; }
.art-card-link { margin-top: auto; padding-top: 14px; color: var(--gold); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; transition: gap .2s; }
.art-card:hover .art-card-link { gap: 13px; }
@media (max-width: 900px) { .art-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .art-card { flex-direction: column; }
  .art-card-media { flex-basis: auto; max-width: none; aspect-ratio: 16 / 10; }
  .art-card-media img { min-height: 0; }
}

/* ===== Area cliente: alert profilo ===== */
.my-alert { display:flex; align-items:center; gap:10px; border-radius:10px; padding:12px 16px; font-size:14px; margin-bottom:18px; }
.my-alert--ok  { background:rgba(225,191,118,.12); border:1px solid rgba(225,191,118,.4); color:var(--gold); }
.my-alert--err { background:rgba(224,85,91,.12); border:1px solid rgba(224,85,91,.4); color:#f2b8bb; }

/* ===== Home: fascia tipologie sotto il hero (icone SVG) ===== */
.hero-tipi { background:#0e0d0b; padding:34px 0 8px; }
.hero-tipi-row {
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px;
}
.hero-tipo {
  flex:1 1 150px; max-width:200px;
  display:flex; flex-direction:column; align-items:center; gap:12px; justify-content: center;
  padding:22px 16px; border:1px solid var(--line); border-radius:16px;
  background:var(--bg-2); color:var(--text); text-decoration:none;
  transition:border-color .25s, transform .25s, background .25s;
   min-height: 160px;
    align-content: center;
  background-color: #232323;
}
.hero-tipo:hover { border-color:var(--border-gold); transform:translateY(-4px); background:rgba(225,191,118,.05); }
.hero-tipo-ico { color:var(--gold); }
.hero-tipo-ico svg {width: 75px; height: 60px; display:block; }
.hero-tipo-lbl {
  font-size:14px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:#fff; text-align:center;
}
.hero-tipo:hover .hero-tipo-lbl { color:var(--gold); }
@media (max-width:600px){
  .hero-tipo { flex-basis:calc(50% - 10px); max-width:none; padding:18px 10px; }
  .hero-tipo-ico svg { width:36px; height:36px; }
}

/* ===== Header: dropdown Catalogo (icone categorie w-100 + brand w-100) ===== */
.cat-mega { min-width: 660px; max-width: 780px; }
.cat-mega-section { padding: 40px 22px; border-bottom: 1px solid var(--line); }
.cat-icons-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.cat-icon-item {
  flex: 1 1 120px;
  min-height: 160px;
    align-content: center;
  background-color: #232323;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 10px !important; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none; transition: border-color .2s, background .2s, transform .2s;
}
.cat-icon-item:hover { border-color: var(--border-gold); background: rgba(225,191,118,.05); transform: translateY(-2px); }
.cat-icon-ico { color: var(--gold); }
.cat-icon-ico svg { width: 75px; height: 60px; display: block; margin:0 auto; }
.cat-icon-lbl { font-size: 1.3em; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; text-align: center; width: 100%;  display: block;}
.cat-icon-item:hover .cat-icon-lbl { color: var(--gold); }
.cat-brands-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-brand-item {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s;
}
.cat-brand-item:hover { border-color: var(--border-gold); color: var(--gold); }
@media (max-width: 760px) { .cat-mega { min-width: 0; max-width: 92vw; } }

/* ===== Azienda: griglia servizi ===== */
.azienda-serv-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px; }
.azienda-serv {
  border:1px solid var(--line); border-radius:16px; background:var(--bg-2);
  padding:26px 24px; transition:border-color .25s, transform .25s;
}
.azienda-serv:hover { border-color:var(--border-gold); transform:translateY(-3px); }
.azienda-serv i { color:var(--gold); font-size:28px; }
.azienda-serv h3 { color:#fff; font-size:18px; margin:14px 0 8px; }
.azienda-serv p { color:var(--dim); font-size:14.5px; line-height:1.6; margin:0; }

/* ===== Home: Recensioni Google ===== */
.gr-summary { display:flex; align-items:center; gap:18px; margin-bottom:28px; flex-wrap:wrap; }
/* Riepilogo tutto in linea: valutazione · stelle · numero recensioni */
.gr-summary-inline { display:inline-flex; align-items:center; gap:12px; flex-wrap:wrap; }
.gr-rating-sm { font-size:26px; font-weight:800; color:var(--gold); line-height:1; }
.gr-stars { color:var(--gold); font-size:17px; letter-spacing:2px; display:inline-flex; }
.gr-stars--sm { font-size:14px; margin:8px 0 10px; }
.gr-count { color:var(--dim); font-size:14px; display:inline-flex; align-items:center; gap:6px; }
.gr-count .bi-google { color:#fff; }
.gr-actions { margin-left:auto; display:inline-flex; align-items:center; gap:10px; }
.gr-write { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; padding:12px 20px; border-radius:999px; background:var(--gold); color:#17150f; font-weight:700; font-size:14.5px; text-decoration:none; border:1px solid var(--gold); transition:background .2s, transform .2s, box-shadow .2s; }
.gr-write:hover { background:transparent; color:var(--gold); transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.4); }
.gr-qr-btn { flex:0 0 auto; width:65px; height:65px; border-radius:12px; background:transparent; border:1px solid var(--border-gold); color:var(--gold); font-size:22px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s, transform .2s; }
.gr-qr-btn:hover { background:rgba(225,191,118,.12); transform:translateY(-1px); }
/* Popup QR — card luxury scura con accenti oro */
.gr-qr-overlay { position:fixed; inset:0; z-index:1200; background:rgba(8,7,4,.78); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:24px; animation:grFade .25s ease; }
.gr-qr-overlay[hidden] { display:none; }
.gr-qr-box { position:relative; width:100%; max-width:360px; text-align:center; padding:34px 30px 30px; border-radius:24px;
  background:radial-gradient(120% 90% at 50% 0%, #221d12 0%, #17150f 55%, #100e0a 100%);
  border:1px solid var(--border-gold); box-shadow:0 30px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(225,191,118,.06) inset;
  animation:grPop .35s cubic-bezier(.2,.9,.3,1.3); }
.gr-qr-stars { color:var(--gold); font-size:15px; letter-spacing:5px; margin-bottom:14px; text-shadow:0 2px 10px rgba(225,191,118,.35); }
.gr-qr-title { color:#fff; font-size:22px; margin:0 0 4px; letter-spacing:.01em; }
.gr-qr-sub { color:var(--dim); font-size:13.5px; margin:0 0 22px; }
.gr-qr-frame { display:inline-block; padding:14px; background:#fff; border-radius:18px; box-shadow:0 12px 30px rgba(0,0,0,.4); position:relative; }
.gr-qr-frame::before, .gr-qr-frame::after { content:""; position:absolute; width:22px; height:22px; border:3px solid var(--gold); border-radius:4px; }
.gr-qr-frame::before { top:-6px; left:-6px; border-right:0; border-bottom:0; }
.gr-qr-frame::after { bottom:-6px; right:-6px; border-left:0; border-top:0; }
.gr-qr-img { display:block; width:240px; max-width:100%; height:auto; }
.gr-qr-cap { margin:20px 0 0; color:#efe7d6; font-size:13.5px; line-height:1.5; display:inline-flex; align-items:center; gap:8px; justify-content:center; }
.gr-qr-cap .bi-camera { color:var(--gold); font-size:16px; }
.gr-qr-links { display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:18px; }
.gr-qr-link { display:inline-flex; align-items:center; gap:8px; color:var(--gold); font-size:13.5px; font-weight:600; text-decoration:none; padding:9px 18px; border:1px solid var(--border-gold); border-radius:999px; background:transparent; cursor:pointer; transition:background .2s, color .2s, border-color .2s; }
.gr-qr-link:hover { background:rgba(225,191,118,.12); }
.gr-qr-copy.is-copied { background:var(--gold); color:#17150f; border-color:var(--gold); }
.gr-qr-close { position:absolute; top:12px; right:14px; width:34px; height:34px; background:rgba(255,255,255,.06); border:1px solid var(--line); border-radius:50%; font-size:15px; line-height:1; color:#cfc6b4; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:background .2s, color .2s; }
.gr-qr-close:hover { background:rgba(225,191,118,.14); color:var(--gold); }
@keyframes grFade { from { opacity:0; } to { opacity:1; } }
@keyframes grPop { from { opacity:0; transform:translateY(14px) scale(.94); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:640px){ .gr-actions { margin-left:0; width:100%; } .gr-write { flex:1 1 auto; justify-content:center; } }
/* Pista orizzontale: scorre in orizzontale con snap, scrollbar nascosta */
.gr-grid { display:flex; align-items:flex-start; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; padding:2px 2px 16px; scrollbar-width:none; -ms-overflow-style:none; }
.gr-grid::-webkit-scrollbar { display:none; }
.gr-card { flex:0 0 340px; max-width:340px; min-height: 300px; scroll-snap-align:start; background:var(--bg-2); border:1px solid var(--line); border-radius:16px; padding:22px; display:flex; flex-direction:column; transition:border-color .2s, box-shadow .2s; }
/* Hover: espandi solo questa card, mostra la recensione per intero */
.gr-card:hover { border-color:var(--border-gold); box-shadow:0 10px 30px rgba(0,0,0,.35); }
.gr-card:hover .gr-text { display:block; -webkit-line-clamp:unset; line-clamp:unset; overflow:visible; }
@media (max-width:640px){ .gr-card { flex-basis:82%; max-width:82%; } }
.gr-card--all { align-items:center; justify-content:center; text-align:center; gap:14px; text-decoration:none; background:linear-gradient(160deg, rgba(225,191,118,.10), rgba(225,191,118,.02)); border-color:var(--border-gold); transition:background .2s, transform .2s; }
.gr-card--all:hover { background:rgba(225,191,118,.14); transform:translateY(-2px); }
.gr-all-g { font-size:34px; color:#fff; opacity:.9; }
.gr-all-k { color:var(--gold); font-weight:700; font-size:16px; }
.gr-all-arrow { width:40px; height:40px; border-radius:50%; border:1px solid var(--border-gold); color:var(--gold); display:inline-flex; align-items:center; justify-content:center; font-size:18px; }
.gr-card-head { display:flex; align-items:center; gap:12px; }
.gr-avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.gr-avatar--ph { background:rgba(225,191,118,.15); color:var(--gold); display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; border:1px solid var(--border-gold); }
.gr-author { color:#fff; font-weight:700; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gr-when { color:var(--dim); font-size:12.5px; }
.gr-g { color:#fff; font-size:18px; flex:0 0 auto; opacity:.8; }
.gr-text { color:var(--dim); font-size:14.5px; line-height:1.65; margin:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; line-clamp:5; overflow:hidden; text-overflow:ellipsis; }
.gr-cta { display:flex; align-items:center; gap:20px; flex-wrap:wrap; background:var(--bg-2); border:1px solid var(--line); border-radius:18px; padding:28px 30px; }
.gr-cta-ico { font-size:40px; color:#fff; }
.gr-cta-body { flex:1 1 260px; }
.gr-cta-body h3 { color:#fff; margin:0 0 6px; font-size:20px; }
.gr-cta-body p { color:var(--dim); margin:0; font-size:15px; }

/* ===== Area cliente: dashboard migliorata ===== */
a.my-stat { text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
a.my-stat:hover { border-color: var(--border-gold); transform: translateY(-2px); background: rgba(225,191,118,.04); }
.my-stat__num i { font-size: 18px; margin-right: 4px; }
.my-section-title { color: #fff; font-size: 18px; margin: 8px 0 16px; }
.my-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 34px; margin-bottom: 30px; }
.my-cards-grid .my-card { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 22px; }
.my-card--link { text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.my-card--link:hover { border-color: var(--border-gold); transform: translateY(-4px); background: rgba(225,191,118,.05); }
.my-card--link > i { font-size: 58px; color: var(--gold); line-height: 1; margin-bottom: 16px; transition: transform .25s; }
.my-card--link:hover > i { transform: scale(1.08); }
.my-card--link h3 { color: #fff; font-size: 17px; letter-spacing: -.01em; margin: 0 0 4px; }
.my-card--link p { color: var(--dim); font-size: 12px; line-height: 1.35; margin: 0; }
.my-help {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
}
.my-help__k { color: #fff; font-weight: 700; font-size: 16px; }
.my-help__t { color: var(--dim); font-size: 14px; margin-top: 4px; }
.my-help__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Area cliente: sidebar SOLO ICONE (rail) con tooltip ===== */
.my-area__grid:has(.my-sidebar--icons) { grid-template-columns: 74px 1fr; }
.my-sidebar--icons { padding: 14px 8px; width: 74px; }
.my-sidebar--icons .my-sidebar__avatar {
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--gold); text-decoration: none;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.my-sidebar--icons .my-sidebar__nav { gap: 6px; align-items: center; }
.my-sidebar--icons .my-sidebar__link {
  position: relative; justify-content: center; gap: 0;
  width: 50px; height: 46px; padding: 0; border-radius: 12px;
}
.my-sidebar--icons .my-sidebar__link i { width: auto; font-size: 20px; }
.my-sidebar--icons .my-sidebar__link.active { background: rgba(225,191,118,.14); color: var(--gold); box-shadow: inset 0 0 0 1px var(--border-gold); }
/* Tooltip col nome all'hover */
.my-sidebar--icons .my-sidebar__link::after,
.my-sidebar--icons .my-sidebar__avatar::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: #17150f; color: #fff; border: 1px solid var(--border-gold); border-radius: 8px;
  padding: 6px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 30;
  box-shadow: 0 8px 20px rgba(0,0,0,.55);
}
.my-sidebar--icons .my-sidebar__avatar { position: relative; }
.my-sidebar--icons .my-sidebar__link:hover::after,
.my-sidebar--icons .my-sidebar__avatar:hover::after { opacity: 1; }
.my-sidebar--icons .my-sidebar__logout { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 12px; }
/* Mobile: rail diventa barra orizzontale di icone */
@media (max-width: 900px) {
  .my-area__grid:has(.my-sidebar--icons) { grid-template-columns: 1fr; }
  .my-sidebar--icons { width: auto; position: static; }
  .my-sidebar--icons .my-sidebar__avatar { display: none; }
  .my-sidebar--icons .my-sidebar__nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .my-sidebar--icons .my-sidebar__link::after { display: none; }
}

/* ===== Area cliente: dispositivi (compatto, meno importanza) ===== */
.dev-list { display: flex; flex-direction: column; gap: 8px; }
.dev-row { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.dev-ico { color: var(--dim); font-size: 18px; flex: 0 0 auto; }
.dev-info { min-width: 0; }
.dev-name { color: #fff; font-weight: 600; font-size: 14px; }
.dev-meta { color: var(--dim); font-size: 12px; }
.dev-meta i { color: var(--gold); margin-right: 4px; }
.dev-btn { background: transparent; border: 1px solid var(--line); color: var(--dim); border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap; }
.dev-btn:hover { border-color: #c98b8b; color: #e0a0a0; }
.dev-off { color: var(--dim); font-size: 12px; }

/* ===== Area cliente: card ordine (negozio + referente + chevron) ===== */
.ord-card { display: flex; align-items: center; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.ord-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.ord-main { flex: 1 1 auto; min-width: 0; }
.ord-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; }
.ord-head > i { color: var(--gold); }
.ord-head strong { font-size: 15.5px; }
.ord-date { color: var(--dim); font-size: 12.5px; font-weight: 400; }
.ord-date i { color: var(--gold); margin-right: 4px; }
.ord-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; color: var(--dim); font-size: 13px; }
.ord-meta i { color: var(--gold); margin-right: 5px; }
.ord-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.ord-total { color: var(--gold); font-size: 16px; white-space: nowrap; }
.ord-chevron { color: var(--dim); font-size: 18px; }

/* Ordini: card come link + stato + "da pagare" */
.ord-card-link { text-decoration: none; color: inherit; }
.ord-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  color: var(--gold); border: 1px solid var(--border-gold); border-radius: 999px; padding: 2px 10px; }
.ord-badge i { color: var(--gold); }
.ord-topay { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: rgba(225,191,118,.10); border: 1px solid rgba(225,191,118,.4); color: var(--gold);
  border-radius: 10px; padding: 6px 12px; font-size: 13px; }
.ord-topay-due { color: var(--dim); }

/* Dettaglio ordine */
.my-back { display: inline-flex; align-items: center; color: var(--dim); text-decoration: none; font-size: 13px; font-weight: 600; }
.my-back:hover { color: var(--gold); }
.ord-detail-alert { background: rgba(225,191,118,.10); border: 1px solid rgba(225,191,118,.4);
  color: var(--gold); border-radius: 12px; padding: 14px 16px; margin: 6px 0 20px; }
.ord-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.ord-box-h { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.ord-box-h i { color: var(--gold); }
.ord-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ord-line:last-child { border-bottom: 0; }
.ord-line-title { color: #fff; font-weight: 600; font-size: 14px; }
.ord-line-sub { color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.ord-line-total { font-size: 15px; }
.ord-line-total strong { color: var(--gold); }
.text-warning-o { color: var(--gold) !important; }
.ord-pay-ok { color: #7bc47f; }
.ord-pay-due { color: var(--gold); }

/*----*/
.homepage > section {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  padding: 15vh 0;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: darken;
  min-height: 30vh;
}

#certificati{
  background-image: url(/img/certificazioni_g_lab.png);
}
#partner{
  background-image: url(/img/img_7.png);
  background-position: top center;
}
#partner{
  background-color: rgba(0, 0, 0, 0.8);
}

#dicono_di_noi{
}

#faq{
  background-image: url(/img/img_2.png);
  background-position: center center;
  background-size: cover;
}
.faq-card {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.85);
}

.homepage > section .box{
  background:  rgba(0,0,0,.85);
  padding:10px;
}

#certificati .box p{
  color:#eee;
}

#contatti
{
  background-image: url(/img/img_11.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  background-color: rgba(0, 0, 0, 0.6);
  background-blend-mode: darken;
  min-height: 30vh;
}
@media (width<=768px) {
.sec-head{
  margin-bottom: 5px !important;
}
.homepage > section {
  padding: 5vh 0;
  min-height: 20vh;
    background-color: rgba(0, 0, 0, 0.7);
}


  #contatti,
  #faq,
  #certificati,
  #partner
  {
    background-color: rgba(0, 0, 0, 0.7);
  }

.homepage > section .box{
  padding:20px;
  margin: 0 -10px;
}
}