/*
Theme Name: Astra Child
Theme URI:  https://wpastra.com/
Description: Child Theme per Astra
Author:      Coty10
Template:    astra
Version:     1.0.0
*/


/* STICKIY HEADER */
.ast-primary-header-bar {
    border-bottom: 1px solid hsl(35, 15%, 88%);
    background-color: hsla(35 20% 98% / 0.6);
    transition: background-color .3s ease, background-image .3s ease, backdrop-filter .3s ease;
}
#masthead {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: transparent !important;
    transition: background-color .3s ease, backdrop-filter .3s ease;
}
#masthead.is-scrolled .ast-primary-header-bar {
    background-color: hsla(35 20% 98% / 0.6); !important; /* override il gradient pieno */
    background-color: transparent !important; /* assicura trasparenza, il gradient sopra ha già alpha */
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}
@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
  #masthead.is-scrolled .ast-primary-header-bar {
    background-image: linear-gradient(180deg, hsla(35 20% 98% / 0.6), hsla(35 15% 92% / 0.6)) !important;
  }
}

/* Se sei loggato in WP, evita che il menu si sovrapponga alla barra admin */
body.admin-bar #masthead {
    top: 32px;
}

.header-login {
    font-family: Inter, sans-serif;
    padding: 15px 30px;
    color: #294756;
    font-weight: 600;
    transition: all .3s ease;
}

.header-login:hover {
    background-color: hsl(35, 40%, 85%);
    border-radius: 20px;
    padding: 15px 30px;
    color: #294756;

}

/*CONTAINER*/
.ast-container {
    background-color: hsla(35 20% 98% / 0.6);
}
@media (min-width:922px){
    .ast-container {
        max-width: 100% !important;
    }
}
/*MENU*/
.site-header-primary-section-left {
    display: flex;
    justify-content: space-between; /* distribuisce gli elementi */
    align-items: center;
}

.menu-link{
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}
.menu-link:hover{
    text-shadow: 2px 2px 3px rgba(166, 166, 166, 0.7) !important;
}
[aria-current]:not([aria-current="false"]) {
    font-weight: bold;
}

/*SLIDER*/
.dotted_list .n2-ss-text p{
  display:flex !important;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin:0;
  flex-wrap:nowrap;
}
/* OGNI VOCE: dot + testo allineati in alto; il testo può andare a capo */
.dotted_list .n2-ss-text p > span{
  display:inline-flex !important;
  align-items:flex-start;
  gap:8px;
  max-width:calc(33.333% - 8px);
  width:100%;
}
/* DOT: usa il primo span interno come pallino, bloccalo a 8x8 e arrotonda */
.dotted_list .n2-ss-text p > span > span:first-child{
  flex: 0 0 8px;
  width:8px; height:8px;
  border-radius:50%;
  background:#3D405B; /* primary */
  margin-top:0.25em;   /* allinea con la prima riga del testo */
}
/* Colori 2° e 3° dot */
.dotted_list .n2-ss-text p > span:nth-child(2) > span:first-child{ background:#E07A5F; }
.dotted_list .n2-ss-text p > span:nth-child(3) > span:first-child{ background:#81B29A; }

/* Mobile: resta affiancato (3 colonne), ma lascia andare a capo le label */
@media (max-width:640px){
  .dotted_list .n2-ss-text p{ gap:12px; }
  .dotted_list .n2-ss-text p > span{ max-width:calc(33.333% - 8px); }
  .dotted_list .n2-ss-text p > span > span:last-child{
    white-space: normal !important;
    line-height:1.25; font-size:14px;
  }
}

.rounded-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.rounded-img img {
    border-radius: 0;
    display: block;
}

.slide_text {
    font-family: 'Inter', sans-serif;
    font-weight: 500 !important;
    font-size: 1.29rem !important;
    line-height: 1.3 !important;
    color: #5A6B75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* BUTTON SLIDER (Smart Slider layer with class .btn-hero) */
.btn-hero .n2-ss-button-container{
  background: transparent;
  padding: 0;
}

div#n2-ss-2 .btn-hero a{ /* style the actual clickable element */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* spazio tra icona e testo */
  white-space: nowrap;
  text-decoration: none;

  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.75rem;

  color: #fff;
  background: linear-gradient(135deg, hsl(200 35% 25%), hsl(200 45% 35%));

  /* sostituisci con i tuoi hsl var(--primary), var(--primary-glow) se li definisci */

  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  transition: opacity 0.15s cubic-bezier(.4,0,.2,1),
              background-color 0.15s cubic-bezier(.4,0,.2,1);
}

div#n2-ss-2 .btn-hero a:hover{ opacity: 0.9; }
div#n2-ss-2 .btn-hero a:focus{ outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 8px 20px rgba(0,0,0,0.15); }
div#n2-ss-2 .btn-hero a:active{ transform: translateY(0.5px); }

/*REWIEWS*/

.wc-overall-rating{
    color:#EAF0F2; /* testo chiaro sul blu */
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.wc-overall-rating strong{ color:#EAF0F2; font-weight:700; }
.wc-overall-rating .wc-stars{ margin-right:.5rem; }

/*FOOTER*/

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* spazio tra dots e testo */
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-dots {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* spazio tra i singoli quadratini */
}

.footer-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 4px; /* smussa i bordi, non completamente rotondi */
    background: #1F292E; /* colore di base (bg-background) */
}

.footer-dots .dot-100 {
    background: hsl(35 20% 98%);
}
.footer-dots .dot-60 {
    background: hsl(35 20% 98% / .6);
}
.footer-dots .dot-40 {
    background: hsl(35 20% 98% / .4);
}

.footer-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;       /* ~ text-2xl */
    font-weight: 300;        /* font-light */
    letter-spacing: 0.02em;  /* tracking-wide */
    margin: 0;
    color: #FBFAF9;
}

.footer-leftText {
    color: #FBFAF9 !Important;
    font-size: 1.3rem !important;
    font-family: 'Inter', sans-serif;
}

.footer-title .footer-bold {
    font-weight: 500; /* font-medium */
}

.ast-footer-social-1-wrap .ast-social-color-type-custom svg {
    fill: none;
}
.ast-builder-social-element{ color: rgba(235,239,241,.85); !important}
.ast-builder-social-element{color: rgba(235,239,241, 1); !important}


.ast-footer-social-1-wrap .ast-social-color-type-custom svg {
    fill: none;
}
.ast-builder-social-element{ color: rgba(235,239,241,.85); !important}
.ast-builder-social-element{color: rgba(235,239,241, 1); !important}


.payments-secure{display:flex;align-items:center;gap:12px;color:#EAF0F2;font:500 1rem/1.4 Inter,sans-serif}
.stripe-logo{height:30px;width:auto;display:inline-block;vertical-align:middle}

.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    min-height: 60px;
    border: none; /* tolgo il border classico */
    position: relative;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background-color: rgba(235,239,241, .2);
}

/*ABOUT US*/
.about-icon {
    width: 96px;              /* w-24 (24 * 4px) */
    height: 96px;             /* h-24 */
    background: rgba(61,64,91,0.1); /* bg-primary/10 (adatta al tuo primary) */
    border-radius: 50%;       /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;    /* mx-auto mb-6 */
}

.about-dots {
    display: flex;
    align-items: center;
    gap: 4px;                 /* space-x-1 */
}

.about-dots .dot {
    width: 16px;              /* w-4 */
    height: 16px;             /* h-4 */
    border-radius: 8px;       /* rounded-sm */
}

.dot-primary {
    background: hsl(200, 35%, 25%);
}

.dot-secondary {
    background: hsl(15, 60%, 70%);
}

.dot-accent {
    background: hsl(35 40% 85%);
}

.about-icon-small {
    width: 64px;
    height: 64px;
    background: rgba(61,64,91,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.dot-primary-big {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: hsl(200, 35%, 25%);
}

.dot-secondary-big {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: hsl(15, 60%, 70%);
}

.dot-accent-big {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: hsl(35 40% 85%);
}


.ast-custom-button {
    background: linear-gradient(135deg, hsl(200 35% 25%), hsl(200 45% 35%));
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: opacity 0.15s cubic-bezier(.4,0,.2,1), background-color 0.15s cubic-bezier(.4,0,.2,1);
}

.ast-custom-button:hover {
    opacity: .9;
    color: #fff;
}

/*CONTATTI*/
.contatti_title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: .5rem;
}

.contatti_first_sub {
    font-family: 'Inter', sans-serif;
    color: hsl(200 12% 45%);
    margin-bottom: .25rem;
}

/* Layout */
.wpcf7 .cf7-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
}
.wpcf7 .cf7-grid .field.full{ grid-column:1 / -1; }
@media (min-width:900px){
    .wpcf7 .cf7-grid{ grid-template-columns:1fr 1fr; }
    .wpcf7 .cf7-grid .field.half{ grid-column:auto; }
}

/* Label */
.wpcf7 .cf7-grid label{
    display:block;
    margin-bottom:8px;
    font: 700 1.05rem/1.2 Inter,system-ui,sans-serif;
    color:#1F292E;
}

/* Campi */
.wpcf7 .cf7-grid input[type="text"],
.wpcf7 .cf7-grid input[type="email"],
.wpcf7 .cf7-grid textarea{
    width:100%;
    font: 400 1rem/1.4 Inter,system-ui,sans-serif;
    color:#294756;
    background-color: #FBFAF9; /* hsl(35 20% 98%) */
    border:1px solid #E6E1DA; /* ~ hsl(35 15% 88%) */
    border-radius:16px;
    padding:16px 20px;
    outline:0;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wpcf7 .cf7-grid textarea{
        height: 100px;   /* forza l’altezza effettiva */
        min-height: 0 !important;  /* annulla eventuali min-height più alte */
        box-sizing: border-box;    /* include padding nel calcolo dell’altezza */
        line-height: 1.4;          /* assicura che 80px bastino per due righe */
        resize: vertical;
    }

/* Placeholder */
.wpcf7 .cf7-grid ::placeholder{
    color:#5A6B75; /* muted */
    opacity:1;
}

/* Focus state */
.wpcf7 .cf7-grid input:focus,
.wpcf7 .cf7-grid textarea:focus{
    border-color: rgba(61,64,91,.35); /* primary soft */
    box-shadow: 0 0 0 3px rgba(61,64,91,.10);
}

/* Bottone submit */
.wpcf7 .submit-wrap input[type="submit"]{
    width:100%;
    border:0;
    border-radius:16px;
    padding:18px 22px;
    font:700 1.125rem/1 Inter,system-ui,sans-serif;
    color:#fff;
    background-image: linear-gradient(135deg, hsl(200 35% 25%), hsl(200 45% 35%));
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    cursor:pointer;
    transition: opacity .15s ease, transform .1s ease;
}
.wpcf7 .submit-wrap input[type="submit"]:hover{ opacity:.95; }
.wpcf7 .submit-wrap input[type="submit"]:active{ transform: translateY(1px); }

/* Messaggi di errore/risposta */
.wpcf7-not-valid-tip{ color:#E07A5F; margin-top:6px; font-size:.9rem; }
.wpcf7 form.invalid .wpcf7-response-output{ border-left:4px solid #E07A5F; }
.wpcf7 form.sent .wpcf7-response-output{ border-left:4px solid #81B29A; }


/*WOOCOMMERCE*/

/* === LAYOUT COLUMNS === */
.shop-wrap{
  display:grid !important;
  grid-template-columns: 320px 1fr;  /* sidebar + contenuto */
  gap:32px;
  align-items:start;
    padding-bottom: 3rem;
}
.shop-filters{ position: sticky; top: 100px; align-self:flex-start; } /* sticky come mockup */

/* === CARD FILTRI === */
.shop-filters .filters-card{
  background:#fff;
  border:1px solid #E6E1DA;           /* hsl(35 15% 88%) approx */
  border-radius:16px;
  padding:20px;
  box-shadow:0 6px 24px rgba(0,0,0,.06);
}
.filters-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}
.filters-header h2{
  margin:0; font-size:1.7rem !important; font-weight:800; color:#1F292E;
}
.filters-header .reset{
  font-size:14px; color:#7A8790; text-decoration:none;
}
.filters-header .reset:hover{ text-decoration:underline; }

/* === CONTROLLI GENERICI === */
.shop-filters label{ display:block; font-weight:600; color:#294756; margin:12px 0 6px; }

.shop-filters select,
.shop-filters input[type="number"]{
  width:100%;
  background:#fff;
  border:1px solid #E6E1DA;
  border-radius:12px;
  padding:10px 12px;
  font-size:15px;
  color:#1F292E;
}

/* Select con freccetta custom */
.shop-filters select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A8790' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position: right 12px center;
  padding-right:36px;
}

/* === SLIDER PREZZO (range) === */
.shop-filters input[type="range"]{
  -webkit-appearance:none; width:100%; height:6px; border-radius:999px;
  background:#D9D6D2; outline:none; margin:8px 0 6px;
}
.shop-filters input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:18px; height:18px;
  background:#294756; border-radius:50%; cursor:pointer; border:3px solid #fff;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.shop-filters input[type="range"]::-moz-range-thumb{
  width:18px; height:18px; background:#294756; border:3px solid #fff; border-radius:50%; cursor:pointer;
}

/* Righe min/max (se resti con 2 input type=number) */
.price-row{ display:flex; align-items:center; gap:8px; }
.price-row input[type="number"]{ text-align:left; }

/* === CHIP “FILTRI RAPIDI” === */
.quick-filters > span{ display:block; font-weight:600; color:#294756; margin:12px 0 6px; }
.quick-filters .chips{ display:flex; flex-wrap:wrap; gap:8px; }

.quick-filters .chips label{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 12px; border:1px solid #E6E1DA; border-radius:999px; background:#F8FAFC;
  color:#294756; font-weight:600; cursor:pointer; user-select:none;
}
.quick-filters .chips input[type="radio"]{ accent-color:#294756; }

/* === CHECKBOX lista (Orientamento) === */
.shop-filters input[type="checkbox"]{
  width:18px; height:18px; accent-color:#294756; margin-right:8px;
}
.shop-filters .checkbox-row{ display:flex; align-items:center; gap:10px; }

/* === BOTTONE APPLICA === */
.btn-apply{
  display:block; width:100%; margin-top:16px;
  padding:12px 14px; border:0; border-radius:12px; font-weight:700; color:#fff;
  background: linear-gradient(135deg, hsl(200 35% 25%), hsl(200 45% 35%));
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: filter .2s ease, transform .02s ease-in-out;
}
.btn-apply:hover{ filter:brightness(1.02); }
.btn-apply:active{ transform:translateY(1px); }

/* === SPAZIATURE E RESPONSIVE === */
@media (max-width: 992px){
  .shop-wrap{ grid-template-columns: 1fr; }
  .shop-filters{ position:static; }
}

/* Griglia prodotti */
ul.products{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width: 1200px){ ul.products{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 640px){ ul.products{ grid-template-columns:1fr; } }

/* Card */
.ppx-card{
    list-style:none;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    border:1px solid #E6E1DA;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
    transition: box-shadow .2s ease;
}
.ppx-card:hover{ box-shadow: 0 10px 30px rgba(0,0,0,.08); }

.ppx-card-media{ position:relative; overflow:hidden; }
.ppx-thumb img{ display:block; width:100%; height:auto; }
.ppx-card-media::after{ /* leggero overlay radiale come nel mockup hover */
    content:""; position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity .2s;
    background: radial-gradient(120% 120% at 50% 0%, rgba(0,0,0,.12), rgba(0,0,0,0));
}
.ppx-card:hover .ppx-card-media::after{ opacity:1; }

/* Badge */
.ppx-badge{
    position:absolute; top:10px; right:10px;
    padding:6px 10px; border-radius:999px; font-weight:700; font-size:.85rem;
    z-index: 10;
}
.badge-new{ background:#F9E9E2; color:#294756; }
.badge-bestseller{ background:#294756; color:#fff; }
.badge-sale{ background:#E07A5F; color:#fff; }

/* Body card */
.ppx-card-body{ padding:16px 18px 18px; }
.ppx-cat{ font-size:.78rem; letter-spacing:.06em; color:#7A8790; text-transform:uppercase; margin-bottom:4px; }
.ppx-title{ font-size:1.25rem; line-height:1.3; margin:0 0 6px; }
.ppx-title a{ color:#1F292E; text-decoration:none; }
.ppx-price{ font-weight:800; font-size:1.25rem; color:#294756; margin:6px 0 14px; }

/* CTA doppie */
.ppx-ctas{ display:flex; gap:12px; }
.ppx-btn{
    flex:1 1 0; text-align:center; padding:12px 14px; border-radius:12px; text-decoration:none; font-weight:700;
    border:1px solid #29475633;
}
.ppx-btn.primary{
    color:#fff; border-color:transparent;
    background: linear-gradient(135deg, hsl(200 35% 25%), hsl(200 45% 35%));
}
.ppx-btn.ghost{
    color:#294756; background:#fff; border-color:#D0D7DC;
}
.ppx-btn:hover{ opacity:.95; }

/* Contenitore card prodotto */
.woocommerce ul.products li.product {
    overflow: hidden; /* per evitare che l'immagine zoomata esca fuori */
}

/* Immagine prodotto: stato normale */
.woocommerce ul.products li.product img {
    transition: transform 0.4s ease;
    transform: scale(1);
}

/* Immagine prodotto: hover */
.woocommerce ul.products li.product:hover img {
    transform: scale(1.05); /* piccolo zoom in */
}

/* === Shop Hero (archive-product) === */
.shop-hero{
    text-align:center;
    padding: 56px 16px 56px;
}
.shop-title{
    font-family: "Playfair Display", Sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    color: #294756;
    margin: 0 0 12px;
}
.shop-subtitle{
    max-width: 780px;
    margin: 0 auto;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    color: hsl(200 12% 45%); /* muted */
    font-weight: 600;
}
@media (min-width: 1024px){
    .shop-hero{ padding-top: 72px; }
}

.shop-filters {
    position: sticky;
    top:150px;
    align-self: flex-start; /* importante se usi flex/grid */
}


/* Toolbar sopra la griglia: conteggio a sx, ordinamento a dx */
.shop-main .shop-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}

.shop-main .woocommerce-ordering {
    margin-bottom: 0;

}

.shop-main .shop-ordering .woocommerce-ordering select {
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    display:inline-block;
    height:48px;
    line-height:1.1;
    background:#FBFAF9;               /* beige chiaro */
    color:#1F292E;                     /* testo scuro */
    border:2px solid #294756;          /* bordo esterno petrolio */
    box-shadow: inset 0 0 0 4px #F1EEE9; /* anello interno chiaro */
    border-radius:999px;               /* pill */
    padding:12px 48px 12px 16px;       /* spazio per freccia */
    font-weight:700;
    min-width:240px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A8790' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 16px center;
    background-size:14px 14px;
}

.shop-main .shop-ordering .woocommerce-ordering select:focus {
    outline:none;
    box-shadow: inset 0 0 0 4px #F1EEE9,
    0 0 0 3px rgba(41,71,86,.18);
}

/* === Toolbar shop: stile mockup (pill + toggle) === */
.shop-main .shop-controls{ display:flex; align-items:center; gap:16px; }

/* Select ordinamento: pill con doppio bordo */
.shop-main .shop-ordering{ position:relative; }



/* Toggle vista: pill contenitore + bottoni tondi */
/* Toggle container e bottoni (logica: attivo pieno, non attivo bianco con bordo) */
.view-toggle{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:30px 10px;
    height:48px;
    border:2px solid #ECE6DF;
    background:#FBFAF9;
    border-radius:20px;
    box-sizing:border-box;
}
.view-toggle .view-btn{
    width:20px; height:20px; border-radius:999px;
    border:2px solid #294756; background:#fff; color:#294756;
    display:inline-flex; align-items:center; justify-content:center;
    line-height:1; cursor:pointer; transition:all .2s ease;
}
.view-toggle .view-btn.is-active{
    background:#294756; color:#fff; border-color:#294756;
}
.view-toggle .view-btn:hover:not(.is-active){ background:#F1EEE9; }

/* SVG: usa il colore del bottone e non riempire */
.view-toggle .view-btn svg{
    display:block; width:18px; height:18px; opacity:1;
    stroke: currentColor; fill: none;
}
.view-toggle .view-btn svg *{
    stroke: currentColor; fill: none;
}

/* Vista lista opzionale (quando verrà collegato il toggle) */
.shop-wrap.is-list ul.products li.product{ display:grid; grid-template-columns:220px 1fr; gap:18px; align-items:start; min-width: 1024px;}
.shop-wrap.is-list ul.products li.product a.woocommerce-LoopProduct-link{ display:contents; }
.shop-wrap.is-list ul.products li.product img{ width:100%; height:auto; border-radius:12px; }

/* Sidebar filtri sticky (già presente) */



/* Ensure SVG icons are visible inside view-toggle buttons */
.view-toggle .view-btn svg{
  display:block;
  width:18px;
  height:18px;
  stroke: currentColor;
  fill: none;
  pointer-events:none;
}

/* === FIX FINALE: forza visibilità icone Lucide nel toggle === */
.view-toggle .view-btn[aria-label] svg.lucide,
.view-toggle .view-btn[aria-label] svg.lucide *{
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
}
.view-toggle .view-btn[aria-label] svg.lucide{
  display:inline-block !important;
  width:20px !important;
  height:20px !important;
  line-height:1 !important;
  opacity:1 !important;
  visibility:visible !important;
}
/* Colori coerenti: bottone inattivo petrolio, attivo bianco */
.view-toggle .view-btn{ color:#294756 !important; }
.view-toggle .view-btn.is-active{ color:#fff !important; }
/* === FIX STATO SVG PER VIEW-TOGGLE (forza colori per stato) === */
.view-toggle .view-btn svg{
  width:24px !important;
  height:24px !important;
  display:inline-block !important;
  color:inherit !important; /* abilita currentColor sugli svg */
}
.view-toggle .view-btn svg rect,
.view-toggle .view-btn svg path,
.view-toggle .view-btn svg line,
.view-toggle .view-btn svg polyline {
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
}
/* Colore esplicito per stato */
.view-toggle .view-btn.is-active svg{ color:#FFFFFF !important; }
.view-toggle .view-btn:not(.is-active) svg{ color:#294756 !important; }




/* === OVERRIDE: icone toggle via background-image (niente mask) === */
.view-toggle .view-btn::before{
  content:"";
  display:block;
  width:20px; height:20px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:20px 20px;
  /* disattiva eventuali mask precedenti */
  -webkit-mask-image:none !important; mask-image:none !important;
}

/* GRID icon — inattivo (petrolio) */
.view-toggle .view-btn[data-view="grid"]::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294756' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='3' rx='2'/><path d='M3 9h18'/><path d='M3 15h18'/><path d='M9 3v18'/><path d='M15 3v18'/></svg>");
}
/* GRID icon — attivo (bianco) */
.view-toggle .view-btn.is-active[data-view="grid"]::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='3' rx='2'/><path d='M3 9h18'/><path d='M3 15h18'/><path d='M9 3v18'/><path d='M15 3v18'/></svg>");
}

/* LIST icon — inattivo (petrolio) */
.view-toggle .view-btn[data-view="list"]::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294756' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h.01'/><path d='M3 18h.01'/><path d='M3 6h.01'/><path d='M8 12h13'/><path d='M8 18h13'/><path d='M8 6h13'/></svg>");
}
/* LIST icon — attivo (bianco) */
.view-toggle .view-btn.is-active[data-view="list"]::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h.01'/><path d='M3 18h.01'/><path d='M3 6h.01'/><path d='M8 12h13'/><path d='M8 18h13'/><path d='M8 6h13'/></svg>");
}

/* Forza visibilità icone Lucide nel toggle */
.view-toggle .view-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.view-toggle .view-btn {
    padding: 20px;
    border-radius: 12px;
}

/* === LIST VIEW: usa tutta la larghezza, niente colonne/floats === */
.shop-wrap.is-list ul.products{
    display: block !important;            /* togli la grid al contenitore */
}

.shop-wrap.is-list ul.products::before,
.shop-wrap.is-list ul.products::after{
    content: none !important;             /* disattiva clearfix di Woo */
}

.shop-wrap.is-list ul.products li.product{
    width: 100% !important;               /* piena larghezza */
    max-width: none !important;
    float: none !important;               /* spegni la griglia a float del tema */
    clear: both !important;
    margin: 0 0 24px !important;

    display: grid !important;             /* layout a riga: immagine | contenuto */
    grid-template-columns: 220px 1fr !important;
    gap: 18px !important;
    align-items: start !important;
}

.shop-wrap.is-list ul.products li.product a.woocommerce-LoopProduct-link{
    display: contents;                    /* link “avvolge” sia img che contenuto */
}

.shop-wrap.is-list ul.products li.product img{
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.shop-controls{ display:flex; align-items:center; gap:12px; }
.shop-columns select{
    border:1px solid #E6E1DA; border-radius:8px;
    padding:6px 10px; font-size:14px; color:#1F292E;
    background:#fff;
}

.shop-container {
    display: flex;
    flex-direction: column;
}


/*SHOP PAGINATION*/
/* === PAGINATION – stile mockup: numeri tondi + Prev/Next pill === */
.woocommerce nav.woocommerce-pagination { margin-top: 36px; }

.woocommerce nav.woocommerce-pagination ul{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    border:0;
    padding:0;
    margin:0;
}
.woocommerce nav.woocommerce-pagination ul li{
    border:0;
    margin:0;
    padding:0;
}

/* Base per tutti i link/spans */
.woocommerce nav.woocommerce-pagination ul li .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:44px;
    min-width:32px;
    padding:0 15px;
    border-radius:13px;
    font:700 1.25rem/1 Inter,system-ui,sans-serif;
    text-decoration:none;
    transition:all .2s ease;
}

/* Numeri non attivi: cerchio bianco con doppio bordo beige */
.woocommerce nav.woocommerce-pagination ul li a.page-numbers{
    background:#FBFAF9;
    color:#1F292E;
    border:1px solid #E8E0D8;            /* anello esterno beige */
    padding:0;                             /* numeri tondi */
}

/* Numero corrente: tondo pieno petrolio */
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current{
    background:#294756;
    color:#fff;
    border:0;
    box-shadow:none;
}

/* Hover sui numeri */
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover{
    background:hsl(35, 40%, 85%);
}

/* Prev / Next in formato “pill” grande con testo */
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next{
    background:#FBFAF9;
    color:#5A6B75;
    border:1px solid #E8E0D8;
    padding:0 20px;
    min-width:120px;
    height:40px;
    font-weight:700;
    font-size:1.2rem; /* come nel mockup */
    border-radius:15px;
}

/* Hover Prev/Next */
.woocommerce nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce nav.woocommerce-pagination ul li a.next:hover{
    background:hsl(35, 40%, 85%);
    color:#1F292E;
}

/* Rimuovi bordi default del tema */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li{
    border:0 !important;
}

/* Responsive */
@media (max-width: 900px){
    .woocommerce nav.woocommerce-pagination ul{ gap:12px; }
    .woocommerce nav.woocommerce-pagination ul li .page-numbers{
        height:52px; min-width:52px; font-size:1.05rem;
    }
    .woocommerce nav.woocommerce-pagination ul li a.prev,
    .woocommerce nav.woocommerce-pagination ul li a.next{
        min-width:160px; height:60px; font-size:1.35rem; padding:0 22px;
    }
}
@media (max-width: 600px){
    .woocommerce nav.woocommerce-pagination ul{ gap:10px; flex-wrap:wrap; }
    .woocommerce nav.woocommerce-pagination ul li a.prev,
    .woocommerce nav.woocommerce-pagination ul li a.next{
        min-width:140px; height:54px; font-size:1.1rem;
    }
}

/* SINGLE PRODUCT*/
/* ====== SINGLE PRODUCT – PIXUPRINT ====== */
.ppx-product{max-width:1240px;margin:40px auto;padding:0 24px}
.ppx-breadcrumbs{display:flex;align-items:self-start; justify-content: start; flex-direction: column; gap:16px;margin-bottom:20px}
.ppx-bc{color:#7a8790;font-size:14px}
.ppx-back{margin-left:0;font-size:14px;color:#294756;text-decoration:none; font-weight:500; padding: 10px 20px}
.ppx-back:hover{background-color: hsl(35, 40%, 85%); ; border-radius:14px;}
.ppx-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:32px}
@media (max-width:992px){.ppx-grid{grid-template-columns:1fr;gap:24px}}

.ppx-gallery .woocommerce-product-gallery{border-radius:16px;overflow:hidden;}
.ppx-cat{font-size:12px;letter-spacing:.06em;color:#7a8790;text-transform:uppercase;margin-bottom:6px}
.ppx-title{font-size:34px;line-height:1.2;margin:0 0 8px;color:#1F292E}
.ppx-rating{display:flex;align-items:center;gap:8px;margin:6px 0 10px}
.ppx-price{font-size:24px;font-weight:600;color:#294756;margin:8px 0 12px}
.ppx-excerpt{color:#465965;line-height:1.7;margin-bottom:14px}

.ppx-ctas{display:flex;gap:12px;margin:14px 0 8px}
.ppx-btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 22px;border-radius:12px;font-weight:600;text-decoration:none;transition:.2s}
.ppx-btn-primary{color:#fff;background:linear-gradient(135deg,#294756,#355e72);box-shadow:0 6px 18px rgba(41,71,86,.15)}
.ppx-btn-primary:hover{color:#fff;filter:brightness(1.03)}
.ppx-btn-ghost{background:#fff;color:#294756;border:2px solid #294756}

/* === SINGLE PRODUCT – Azioni (Preferiti / Condividi) === */
.ppx-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:14px;
}

.ppx-action{
    background:#fff;color:#294756;border:2px solid #294756
}
.ppx-action:hover{
    background: hsl(35 40% 85%);         /* hover beige */
}

/* Icona generica prima del testo */
.ppx-action::before{
    content:"";
    display:inline-block;
    width:18px; height:18px;
    background-repeat:no-repeat;
    background-position:center;
    background-size:18px 18px;
}

/* Aggiungi ai preferiti – cuore (primo bottone) */
.ppx-actions .ppx-action:first-child::before{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294756' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 1 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'/></svg>");
}

/* Condividi – freccia */
.ppx-actions .ppx-action:last-child::before{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294756' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12v7a1 1 0 0 0 1 1h7'/><path d='M20 12V5a1 1 0 0 0-1-1h-7'/><path d='M5 19 19 5'/></svg>");
}

/* Stato attivo/invertito (se lo usi via JS) */
.ppx-action.is-active{
    background:#294756; color:#fff; border-color:#294756; box-shadow:none;
}
.ppx-action.is-active:first-child::before{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 1 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'/></svg>");
}
.ppx-action.is-active:last-child::before{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12v7a1 1 0 0 0 1 1h7'/><path d='M20 12V5a1 1 0 0 0-1-1h-7'/><path d='M5 19 19 5'/></svg>");
}


.ppx-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ppx-chip{display:inline-block;padding:4px 10px;border-radius:999px;background:#F5F2EE;border:1px solid #E6E1DA;color:#294756;font-size:12px;font-weight:600}

/* (Rimosso) UI alternativa per select attributo "Tipo" */

.ppx-specs{margin-top:36px;border:1px solid #E6E1DA;border-radius:16px;padding:18px 20px;background:#fff}
.ppx-specs-title{font-size:18px;margin:0 0 8px;color:#1F292E}
.ppx-specs-content{color:#465965;line-height:1.8}

/* ====== REVIEWS TWO-COLUMN ====== */
.ppx-reviews{margin-top:28px}
.ppx-rev-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media (max-width:992px){.ppx-rev-grid{grid-template-columns:1fr}}
.ppx-rev-title{margin:0 0 10px;color:#1F292E}
.woocommerce-Reviews .commentlist li{border:1px solid #E6E1DA;border-radius:16px;padding:16px 18px;margin:12px 0;background:#fff}
.woocommerce-Reviews .comment-text p{margin:6px 0}
.ppx-rev-form .ppx-btn-primary{width:100%;height:46px;border-radius:12px;color:#fff!important;background:linear-gradient(135deg,#294756,#355e72)!Important;box-shadow:0 6px 18px rgba(41,71,86,.15);font-weight: 500}

.ppx-rev-form input[type="text"],
.ppx-rev-form input[type="email"],
.ppx-rev-form select,
.ppx-rev-form textarea{width:100%;border:1px solid #E6E1DA;border-radius:12px;padding:10px 12px}
.ppx-rev-form textarea{min-height:140px}


.ppx-specs-dl{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-family: Inter, sans-serif;
}
.ppx-spec {
    display: flex;
    flex-direction: column;
}

.desc_title {
    color: hsl(200, 12%, 45%);
    font-weight: 600;
    font-size: 1rem;
}

.desc_value {
    color: hsl(200, 20%, 15%);
    font-weight: 600;
    font-size: 1.1rem;
}

.woocommerce .star-rating, .woocommerce .comment-form-rating .stars a, .woocommerce .star-rating::before {
    color: rgb(250, 204, 21) !important;
}

/* Woo reviews: ensure star links are visible even if theme/woocommerce CSS hides text */
/* Lascia la gestione visuale delle stelle al CSS WooCommerce.
   Qui ci limitiamo al colore (già sopra). */

.ppx-summary .ppx-tags{
    display:flex; flex-direction:column ;align-items:start; gap:10px; margin-top:12px;
}
.ppx-summary .ppx-tags-label{
    font-weight:600; color:#294756; font-size:14px;
}
.ppx-summary .ppx-chiplist{
    display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0;
}
.ppx-summary .ppx-chipitem{ margin:0; padding:0; }
.ppx-summary .ppx-chip{
    display:inline-flex; align-items:center; gap:6px;
    padding:6px 10px;
    border:1px solid #E6E1DA;           /* hsl(35 15% 88%) approx */
    border-radius:999px;
    background:hsl(15, 60%, 70%);
    color:#294756;
    font-weight:600;
    text-decoration:none;
    transition:background-color .2s ease, border-color .2s ease;
}
.ppx-summary .ppx-chip-hash{ opacity:.6; }
.ppx-summary .ppx-chip:hover{
    background:hsla(15, 60%, 70%, .8);                 /* subtle hover tint */
    border-color:#D9D3CB;
}

.review-rating {
    order: 0;
}

.star-rating {
    margin-right: 0;
}

.woocommerce-js #reviews .comment-form-rating{
    flex-direction: column;
}

.review_first_line {
    display: flex;
    flex-direction: row;
    align-items:flex-start;
    gap:8px;

}

.review_first_line > :nth-child(-n+2){
    flex: 0 0 auto; /* non allargare, tienili vicini */
    align-items: start;
}

/* Il terzo resta a misura del contenuto (es. data) */
.review_first_line > :last-child{
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
}

.ppx-review__body {
    display: flex;
    flex-direction: column;
}

.ppx-review__content {
    margin-top: 1rem;
}

.ppx-review__avatar img {
    border-radius: 50%;
}

.woocommerce img, .woocommerce-page img {
    border-radius: 14px;
}

.ppx-gallery .woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
}

.ppx-gallery .woocommerce-product-gallery ol {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    list-style: none;
}
.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;   /* se vuoi riempire evitando bande bianche */
}

.ppx-cart-link {
    color: hsl(200, 35%, 25%);
    padding: 23px 12px 14px 12px;
}

.ppx-cart-link:hover {
    color: hsl(200, 35%, 25%);
    background-color: hsl(35, 40%, 85%);
    border-radius: 14px;
    padding: 23px 12px 14px 12px;
}

.ppx-cart-count {
    background-color: hsl(200, 35%, 25%);
    font-weight: 600;
    font-family: inter, sans-serif;
    color: #fff;
    border-radius: 21px;
    padding: 2px 10px;
    position: absolute;
    top: 6px;
}

.woocommerce-js a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button {
    background-color: rgba(41, 71, 86, 0.9) !important;
    color: #fff !important;
    border-radius: 10px;
    border: none;
    padding: 15px 16px;
    font-weight: 600;
}

.woocommerce-js a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button:hover {
  background: rgba(41, 71, 86, 0.996) !important;
  color: #fff !important;
}
.wpcf7-recaptcha-wrap {
    margin-top: -50px !important;
}

.menu-link img {
    border-radius: 0 !important;
}
.quantity{
    margin-bottom: 10px;
}
.single_add_to_cart_button {
    width: 100%;
}
.woocommerce-cart .qty { border: 1px solid hsl(200, 35%, 25%) !important; }
/* === Single Product: Variations + Quantity UI === */
/* Variations table → stacked fields */
.ppx-summary table.variations{ width:100%; border-collapse:separate; border-spacing:0; margin:18px 0 10px; }
.ppx-summary table.variations tr{ display:block; margin:0 0 18px; }
.ppx-summary table.variations th.label{ display:block; padding:0 0 8px; font-weight:800; font-size:1rem; color:#1F292E; border: none; }
.ppx-summary table.variations td.value{ display:block; padding:0; border: none; }
.ppx-summary table.variations select{
  width:100%;
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:#fff;
  border:1px solid hsl(200, 35%, 25%) ;
  border-radius:16px;
  padding:8px 16px;
  color:#1F292E;
  font-weight:500;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A8790' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right 14px center; padding-right:46px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.ppx-summary table.variations select:focus{ outline:none; border-color:#E0DBD6; box-shadow:0 0 0 3px rgba(41,71,86,.08); }
.ppx-summary a.reset_variations{ display:inline-block; margin-top:8px; color:#7A8790; font-size:.9rem; text-decoration:none; }
.ppx-summary a.reset_variations:hover{ text-decoration:underline; }

/* Quantity row with - [qty] + */
.ppx-summary .quantity{ display:flex; align-items:center; gap:10px; margin:16px 0 12px; }
.ppx-summary .ppx-qty{ display:flex; align-items:center; gap:8px; }
.ppx-summary .ppx-qty-btn{
  width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid hsl(200, 35%, 25%) ; border-radius:12px; background:#fff; color:#294756; font-size:20px; line-height:1; cursor:pointer; user-select:none;
}
.ppx-summary .ppx-qty-btn:hover{ background:#FAF9F7; }
.ppx-summary .ppx-qty input.qty{
  width:96px; height:42px; text-align:center; border:1px solid hsl(200, 35%, 25%) ; border-radius:12px; outline:none; box-shadow:none;
  background:#fff; color:#1F292E; font-weight:600; padding:0 8px;
}
.ppx-summary .ppx-qty input.qty:focus{ border-color:#E0DBD6; box-shadow:0 0 0 3px rgba(41,71,86,.08); }

.ppx-summary .variations {
    border: none;
}