/* Fiscal Felix – stile di scheda prodotto, carrello e cassa. v1.0 – 22/11/2026 */

@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/instrument-sans-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2')}

body.ff-negozio{
  --ff-blue:#2C2763; --ff-blue-deep:#1A1540; --ff-orange:#ED6C2A; --ff-orange-d:#C85A1E;
  --ff-ink:#18152B; --ff-ink-60:rgba(24,21,43,.60); --ff-ink-35:rgba(24,21,43,.35);
  --ff-stone:#F3F2EE; --ff-off:#FAFAF8; --ff-rule:rgba(24,21,43,.10);
  background:var(--ff-off);
  color:var(--ff-ink);
  font-family:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px; line-height:1.6;
}

/* Intestazione e footer generici del tema: nascosti (al loro posto quelli Fiscal Felix) */
body.ff-negozio #site-header, body.ff-negozio .site-header,
body.ff-negozio #site-footer, body.ff-negozio .site-footer{display:none!important}

/* ---------- Intestazione Fiscal Felix ---------- */
.ff-top{background:#fff;border-bottom:1px solid var(--ff-rule)}
.ff-top-in{max-width:1140px;margin:0 auto;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.ff-top-logo{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none!important}
.ff-top-logo img{height:44px;width:auto;display:block}
.ff-top-payoff{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ff-ink-60);margin-top:6px}
.ff-top-right{display:flex;align-items:center;gap:18px;font-size:14px}
.ff-top-back{color:var(--ff-blue)!important;text-decoration:none!important;font-weight:500}
.ff-top-back:hover{color:var(--ff-orange)!important}
.ff-secure{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;color:var(--ff-blue);font-weight:600;font-size:13px;letter-spacing:.02em}
.ff-secure svg{flex:none}

/* ---------- Striscia di fiducia ---------- */
.ff-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;padding:14px 20px;margin:0 0 28px;background:#fff;border:1px solid var(--ff-rule);border-radius:6px;font-size:13.5px;color:var(--ff-ink)}
.ff-trust > span{display:inline-block}
.ff-trust svg{vertical-align:-2px;margin-right:4px}
.ff-trust .ff-stars{display:inline}
.ff-trust b{color:var(--ff-blue);font-weight:600}
.ff-trust .ff-stars{color:var(--ff-orange);letter-spacing:1px}

/* Nota sotto il pulsante "Effettua ordine" */
.ff-pay-note{margin-top:14px;font-size:13px;line-height:1.55;color:var(--ff-ink-60)}
.ff-pay-note p{margin:0 0 6px}
.ff-pay-note a{color:var(--ff-blue)!important;font-weight:600}

/* ---------- Contenitore e titoli ---------- */
body.ff-negozio .site-main,
body.ff-negozio main#content{max-width:1140px;margin:0 auto;padding:40px 24px 64px}
body.ff-negozio .page-header .entry-title,
body.ff-negozio h1.entry-title,
body.ff-negozio .product_title,
body.ff-negozio h1, body.ff-negozio h2, body.ff-negozio h3{
  font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; color:var(--ff-blue); letter-spacing:-.01em; line-height:1.15}
body.ff-negozio h1.entry-title, body.ff-negozio .page-header .entry-title{font-size:44px;margin:0 0 24px}
body.ff-negozio a{color:var(--ff-blue)}
body.ff-negozio a:hover{color:var(--ff-orange)}

/* ---------- Pulsanti ---------- */
body.ff-negozio .wc-block-components-button:not(.is-link):not(.wc-block-components-express-payment__button),
body.ff-negozio .wc-block-cart__submit-button,
body.ff-negozio .wc-block-components-checkout-place-order-button,
body.ff-negozio .single_add_to_cart_button,
body.ff-negozio .woocommerce a.button, body.ff-negozio .woocommerce button.button,
body.ff-negozio a.button, body.ff-negozio button.button{
  background:var(--ff-orange)!important; color:#fff!important; border:0!important; border-radius:4px!important;
  font-family:'Instrument Sans',sans-serif!important; font-weight:600!important; font-size:14px!important;
  letter-spacing:.08em!important; text-transform:uppercase!important; text-decoration:none!important;
  min-height:52px; padding:14px 28px!important; box-shadow:none!important; transition:background .2s ease}
body.ff-negozio .wc-block-components-button:not(.is-link):not(.wc-block-components-express-payment__button):hover,
body.ff-negozio .wc-block-cart__submit-button:hover,
body.ff-negozio .wc-block-components-checkout-place-order-button:hover,
body.ff-negozio .single_add_to_cart_button:hover,
body.ff-negozio a.button:hover, body.ff-negozio button.button:hover{background:var(--ff-blue)!important}
body.ff-negozio .wc-block-components-checkout-place-order-button{width:100%}

/* ---------- Campi ---------- */
body.ff-negozio .wc-block-components-text-input input,
body.ff-negozio .wc-block-components-textarea,
body.ff-negozio .wc-blocks-components-select__select,
body.ff-negozio input.input-text, body.ff-negozio .woocommerce .quantity .qty{
  border:1px solid rgba(24,21,43,.22)!important; border-radius:4px!important; background:#fff!important;
  font-family:'Instrument Sans',sans-serif!important; color:var(--ff-ink)!important}
body.ff-negozio .wc-block-components-text-input input:focus,
body.ff-negozio input.input-text:focus{border-color:var(--ff-blue)!important;box-shadow:0 0 0 1px var(--ff-blue)!important;outline:none}
body.ff-negozio .wc-block-components-radio-control__input:checked{border-color:var(--ff-blue)!important}
body.ff-negozio .wc-block-components-radio-control__input:checked::before{background:var(--ff-blue)!important}
body.ff-negozio .wc-block-components-checkbox .wc-block-components-checkbox__input:checked{background:var(--ff-blue)!important;border-color:var(--ff-blue)!important}

/* ---------- Cassa e carrello ---------- */
body.ff-negozio .wc-block-components-checkout-step__title,
body.ff-negozio .wc-block-components-title.wc-block-components-title{
  font-family:'Cormorant Garamond',Georgia,serif!important; font-weight:600!important; font-size:24px!important; color:var(--ff-blue)!important; text-transform:none!important}
body.ff-negozio .wc-block-components-sidebar .wc-block-components-panel,
body.ff-negozio .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.ff-negozio .wc-block-components-order-summary{background:#fff}
body.ff-negozio .wp-block-woocommerce-checkout-order-summary-block{border:1px solid var(--ff-rule)!important;border-radius:6px!important;background:#fff}
body.ff-negozio .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.ff-negozio .wc-block-components-totals-footer-item .wc-block-components-totals-item__label{
  font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:26px; color:var(--ff-blue)}
body.ff-negozio .wc-block-components-product-name{color:var(--ff-blue)!important;font-weight:600;text-decoration:none!important}
body.ff-negozio .wc-block-components-express-payment__title-container .wc-block-components-express-payment__title{
  font-family:'Instrument Sans',sans-serif; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--ff-ink-60)}
body.ff-negozio .wc-block-components-express-payment--checkout{border-radius:6px}
body.ff-negozio .wc-block-checkout__terms,
body.ff-negozio .wc-block-checkout__terms a{font-size:13px}
body.ff-negozio .wc-block-cart-items__header{font-size:12px;letter-spacing:.12em;color:var(--ff-ink-60)}
body.ff-negozio .wc-block-cart, body.ff-negozio .wc-block-checkout{font-family:'Instrument Sans',sans-serif}

/* ---------- Scheda prodotto ---------- */
body.ff-negozio div.product{display:block}
body.ff-negozio div.product .woocommerce-product-gallery img{border-radius:6px}
body.ff-negozio div.product .product_title{font-size:42px;margin:0 0 10px}
body.ff-negozio div.product p.price, body.ff-negozio div.product span.price{
  font-family:'Cormorant Garamond',Georgia,serif!important; font-size:34px!important; font-weight:600; color:var(--ff-orange)!important; margin:0 0 18px}
body.ff-negozio div.product .woocommerce-product-details__short-description{font-size:16px;color:var(--ff-ink)}
body.ff-negozio div.product .woocommerce-product-details__short-description ul{padding-left:0;list-style:none;margin:14px 0 22px}
body.ff-negozio div.product .woocommerce-product-details__short-description li{position:relative;padding-left:26px;margin:0 0 8px}
body.ff-negozio div.product .woocommerce-product-details__short-description li::before{content:"";position:absolute;left:2px;top:7px;width:12px;height:7px;border-left:2px solid var(--ff-orange);border-bottom:2px solid var(--ff-orange);transform:rotate(-45deg)}
body.ff-negozio div.product form.cart{display:flex;gap:12px;align-items:stretch;margin:8px 0 18px}
body.ff-negozio div.product form.cart .quantity{display:none!important}
body.ff-negozio div.product .product_meta{font-size:13px;color:var(--ff-ink-60);border-top:1px solid var(--ff-rule);padding-top:14px;margin-top:18px}
/* "Prodotti correlati" sotto la scheda, non sopra l'immagine */
body.ff-negozio div.product .related.products,
body.ff-negozio div.product .upsells.products,
body.ff-negozio div.product .woocommerce-tabs{clear:both;padding-top:48px}
body.ff-negozio .related.products > h2{font-size:30px;margin-bottom:24px}
body.ff-negozio ul.products li.product .woocommerce-loop-product__title{font-family:'Instrument Sans',sans-serif!important;font-size:15px!important;font-weight:600;color:var(--ff-blue)}
body.ff-negozio ul.products li.product .price{color:var(--ff-orange)!important;font-weight:600}
body.ff-negozio ul.products li.product img{border-radius:6px}
body.ff-negozio .woocommerce-breadcrumb{font-size:13px;color:var(--ff-ink-60);margin-bottom:22px}

/* ---------- Avvisi ---------- */
body.ff-negozio .wc-block-components-notice-banner.is-success,
body.ff-negozio .woocommerce-message{border-color:var(--ff-blue)!important}

/* ---------- Footer Fiscal Felix ---------- */
.ff-foot{background:var(--ff-blue);color:rgba(255,255,255,.82);font-size:13px;line-height:1.7;margin-top:40px}
.ff-foot-in{max-width:1140px;margin:0 auto;padding:36px 24px 28px;display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px}
.ff-foot h4{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;font-size:19px;color:#fff;margin:0 0 8px}
.ff-foot a{color:#fff!important;text-decoration:underline;text-underline-offset:3px}
.ff-foot a:hover{color:var(--ff-orange)!important}
.ff-foot-bottom{max-width:1140px;margin:0 auto;padding:16px 24px 26px;border-top:1px solid rgba(255,255,255,.15);font-size:12px;color:rgba(255,255,255,.6);display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between}

/* ---------- Smartphone ---------- */
@media (max-width:820px){
  .ff-top-in{padding:14px 18px}
  .ff-top-logo img{height:34px}
  .ff-top-payoff{display:none}
  .ff-top-right .ff-top-back{display:none}
  .ff-trust{display:block;font-size:13px}
  .ff-trust > span{display:block;margin:4px 0}
  body.ff-negozio .site-main, body.ff-negozio main#content{padding:24px 16px 48px}
  body.ff-negozio h1.entry-title, body.ff-negozio .page-header .entry-title{font-size:34px}
  body.ff-negozio div.product .product_title{font-size:32px}
  .ff-foot-in{grid-template-columns:1fr;gap:18px}
}

/* ---------- v1.0.1 ---------- */
/* cifre tutte della stessa altezza nei prezzi */
body.ff-negozio .price, body.ff-negozio .amount, body.ff-negozio .woocommerce-Price-amount,
body.ff-negozio .wc-block-components-totals-item__value, body.ff-negozio .wc-block-formatted-money-amount,
body.ff-negozio .wc-block-components-product-price{font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1}
/* titolo del riepilogo ordine */
body.ff-negozio .wc-block-components-checkout-order-summary__title-text,
body.ff-negozio .wc-block-components-order-summary .wc-block-components-panel__button,
body.ff-negozio .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title{
  font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:600!important;font-size:24px!important;color:var(--ff-blue)!important}
/* prodotti correlati: pulsanti allineati in basso */
body.ff-negozio ul.products li.product{display:flex!important;flex-direction:column}
body.ff-negozio ul.products li.product > a.woocommerce-LoopProduct-link{flex:1 1 auto;display:flex;flex-direction:column}
body.ff-negozio ul.products li.product .price{margin-top:auto;font-family:'Instrument Sans',sans-serif!important;font-size:16px!important}
body.ff-negozio ul.products li.product .button{align-self:flex-start;margin-top:12px}
/* eventuali avvisi vuoti */
body.ff-negozio .woocommerce-message:empty, body.ff-negozio .wc-block-components-notice-banner__content:empty{display:none}

/* v1.0.2 */
body.ff-negozio .ff-titolo, body.ff-negozio .wp-block-woocommerce-checkout-order-summary-block h2,
body.ff-negozio .wc-block-components-checkout-order-summary__title p{
  font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:600!important;font-size:24px!important;color:var(--ff-blue)!important}

/* v1.0.6 – titolo "Riepilogo dell'ordine": selettori diretti (React riscrive le classi aggiunte via script) */
body.ff-negozio [class*="checkout-order-summary__title"],
body.ff-negozio [class*="checkout-order-summary__title"] *,
body.ff-negozio .wc-block-components-checkout-order-summary__title-text,
body.ff-negozio .wc-block-components-order-summary__button-text,
body.ff-negozio .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel__button,
body.ff-negozio .wp-block-woocommerce-cart-order-summary-heading-block,
body.ff-negozio .wc-block-cart__totals-title{
  font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:600!important;color:var(--ff-blue)!important;letter-spacing:0!important;text-transform:none!important}
body.ff-negozio .wc-block-components-checkout-order-summary__title-text,
body.ff-negozio .wc-block-cart__totals-title{font-size:24px!important}
