/*
Theme Name: Fruttavera_Blog
Theme URI: https://fruttavera.it
Author: Fruttavera s.r.l.
Description: Tema catalogo/blog per Fruttavera, senza funzioni ecommerce visibili e con richieste preventivo/campioni.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietario
Text Domain: fruttavera-blog
*/

/* =====================================================
   RESET & VARIABILI
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #11d442;
  --green-dark:  #0db036;
  --bg:          #f6f8f6;
  --surface:     #ffffff;
  --text:        #0d1b11;
  --muted:       #6b7280;
  --border:      #e7f3ea;
  --border-mid:  #cfe7d5;
  --font:        'Work Sans', sans-serif;
  --r-sm:  .25rem; --r-md: .5rem; --r-lg: .75rem;
  --r-xl:  1rem;   --r-2xl: 1.25rem; --r-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --max-w: 1280px;
  --ease:  200ms ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  line-height: 1.6; font-size: 1rem; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--green); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: var(--font); }

/* =====================================================
   TIPOGRAFIA
   ===================================================== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 900; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(1.75rem, 5vw, 3.2rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { line-height: 1.75; }

/* =====================================================
   LAYOUT
   ===================================================== */
main { flex-grow: 1; display: flex; flex-direction: column; align-items: center; }
.page-wrap { width: 100%; max-width: var(--max-w); padding: 1.75rem 2.5rem 4rem; }

/* =====================================================
   BOTTONI
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; padding: .6rem 1.25rem; border-radius: var(--r-md);
  font-size: .9rem; font-weight: 700; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: var(--text); }
.btn-primary:hover { background: var(--green-dark); color: var(--text); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-mid); color: var(--text); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: .7rem 2.5rem; gap: 1rem;
}
.site-branding { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.site-branding .logo-icon { color: var(--green); font-size: 1.8rem; }
.site-branding .site-name { font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.site-branding img { max-height: 44px; width: auto; }

#site-navigation { display: flex; align-items: center; margin-left: auto; margin-right: 1.25rem; }
#site-navigation ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
#site-navigation ul li { margin: 0; padding: 0; }
#site-navigation ul li a {
  font-size: .9rem; font-weight: 500; color: var(--text); white-space: nowrap;
  display: block; padding: .2rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item > a,
#site-navigation ul li.current_page_item > a { color: var(--green); border-bottom-color: var(--green); }
#site-navigation ul ul { display: none !important; }

.cart-contents {
  display: flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem; border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md); font-size: .85rem; font-weight: 700;
  color: var(--text); flex-shrink: 0;
  transition: border-color var(--ease), color var(--ease);
}
.cart-contents:hover { border-color: var(--green); color: var(--green); }
.cart-contents .material-symbols-outlined { font-size: 1.2rem; }

.header-cta { flex-shrink: 0; }
.menu-toggle { display: none; color: var(--text); font-size: 1.6rem; padding: .25rem; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .82rem; margin-bottom: 1.75rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: #c0c0c0; font-size: .9rem; }
.breadcrumb .current { color: var(--green); font-weight: 600; }

/* =====================================================
   BADGE & CARD
   ===================================================== */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: var(--r-full); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.badge-primary { background: var(--green); color: var(--text); }
.badge-white   { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem; }

/* =====================================================
   NOTA INFORMATIVA
   ===================================================== */
.product-note { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; background: #eff8ff; border: 1px solid #bae6fd; border-radius: var(--r-md); font-size: .85rem; line-height: 1.55; color: #0369a1; }
.product-note .note-icon { flex-shrink: 0; font-size: 1rem; margin-top: .1rem; }
.product-note strong { font-weight: 700; }

/* =====================================================
   SINGOLO PRODOTTO
   ===================================================== */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-bottom: 3.5rem; align-items: start; }

.gallery-main { position: relative; aspect-ratio: 4/3; border-radius: var(--r-2xl); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: .9rem; }
.gallery-main img, .gallery-main-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-badges { position: absolute; top: .85rem; left: .85rem; z-index: 10; display: flex; flex-direction: column; gap: .4rem; }

.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.thumb-item { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--border); cursor: pointer; background: #fff; transition: border-color var(--ease); }
.thumb-item:hover, .thumb-item.active { border-color: var(--green); }
.thumb-item img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb-item.thumb-video { display: flex; align-items: center; justify-content: center; background: #f3f4f6; color: #9ca3af; font-size: 1.75rem; }
.thumb-item.thumb-video:hover { color: var(--green); }

.product-line  { font-size: .95rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.product-desc  { font-size: .97rem; color: #374151; line-height: 1.8; margin-bottom: 1.75rem; }

.product-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: 1.75rem; }
.spec-card { display: flex; align-items: flex-start; gap: .65rem; padding: .9rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-mid); }
.spec-card-icon { width: 2rem; height: 2rem; border-radius: var(--r-full); background: #f0fdf4; color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.spec-card-label { font-size: .67rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .1rem; }
.spec-card-value { font-size: 1.3rem; font-weight: 900; color: var(--text); line-height: 1.2; }

.product-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.25rem; }
.product-actions .btn { flex: 1; min-width: 160px; }

.product-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-bottom: 3.5rem; }
.section-title { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 900; margin-bottom: 1.1rem; }
.section-title .section-icon { color: var(--green); font-size: 1.3rem; }

.ingredients-text { font-size: .88rem; color: #374151; line-height: 1.65; margin-bottom: 1.1rem; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-top: 1px solid var(--border); font-size: .88rem; gap: 1rem; }
.detail-row .label { color: var(--muted); flex-shrink: 0; }
.detail-row .value { font-weight: 700; text-align: right; }
.detail-section-title { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: .9rem; margin-bottom: .4rem; }
.detail-note { font-size: .8rem; color: var(--muted); line-height: 1.5; }

.nutrition-header { font-size: .78rem; color: var(--muted); margin-bottom: .9rem; }
.nutrition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.nutrition-item { display: flex; flex-direction: column; }
.nutrition-item .nut-label { font-size: .82rem; color: var(--muted); margin-bottom: .08rem; }
.nutrition-item .nut-value { font-size: 1.2rem; font-weight: 900; color: var(--text); }
.nutrition-item .nut-sub   { font-size: .72rem; color: #9ca3af; }
.nutrition-item.highlight  { padding: .55rem; background: rgba(17,212,66,.06); border-radius: var(--r-md); }
.nutrition-item.highlight .nut-label { color: #166534; font-weight: 600; }
.nutrition-item.highlight .nut-value { color: var(--green); }

/* =====================================================
   GRIGLIA PRODOTTI
   ===================================================== */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.product-card  { cursor: pointer; }
.product-card-img { aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--border); margin-bottom: .65rem; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-title { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: .15rem; transition: color var(--ease); }
.product-card:hover .product-card-title { color: var(--green); }
.product-card-sub { font-size: .82rem; color: var(--muted); }
.product-card-all { aspect-ratio: 4/3; border-radius: var(--r-md); border: 2px dashed #d1d5db; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: #f9fafb; color: #9ca3af; margin-bottom: .65rem; transition: border-color var(--ease), color var(--ease); }
.product-card:hover .product-card-all { border-color: var(--green); color: var(--green); }
.product-card-all .all-icon  { font-size: 2.2rem; }
.product-card-all .all-label { font-size: .88rem; font-weight: 700; }

.related-products { padding-top: 2.5rem; border-top: 1px solid var(--border); margin-bottom: 3rem; }
.related-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.75rem; flex-wrap: wrap; gap: .75rem; }
.related-header h3 { font-size: 1.4rem; font-weight: 900; }
.related-header p  { font-size: .88rem; color: var(--muted); }
.slider-arrows { display: flex; gap: .4rem; }
.slider-arrow { width: 2.25rem; height: 2.25rem; border-radius: var(--r-full); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); background: transparent; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.slider-arrow:hover { background: var(--bg); border-color: var(--green); color: var(--green); }

/* =====================================================
   ARCHIVIO
   ===================================================== */
.archive-header { text-align: center; margin-bottom: 2.5rem; }
.archive-header h1 { margin-bottom: .4rem; }
.archive-header p  { color: var(--muted); font-size: 1rem; }
.archive-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.25rem; }
.filter-btn { padding: .38rem .9rem; border-radius: var(--r-full); border: 1.5px solid var(--border-mid); font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--surface); transition: all var(--ease); cursor: pointer; }
.filter-btn:hover, .filter-btn.active { background: var(--green); border-color: var(--green); color: var(--text); }

/* =====================================================
   HERO HOMEPAGE
   ===================================================== */
.hero-section { width: 100%; background: linear-gradient(135deg, #0d1b11 0%, #1a3a20 100%); color: #fff; padding: 5rem 2.5rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-section h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-section p  { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 600px; margin-inline: auto; margin-bottom: 1.75rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 2.5rem 1.75rem; }
.footer-inner { max-width: var(--max-w); margin-inline: auto; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand { max-width: 300px; }
.footer-brand .brand-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.footer-brand .brand-icon { color: var(--green); font-size: 1.4rem; }
.footer-brand .brand-name { font-weight: 700; font-size: 1.1rem; }
.footer-brand p { font-size: .88rem; color: var(--muted); line-height: 1.65; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-col h4 { font-size: .82rem; font-weight: 700; margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.footer-col a  { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid #f0f0f0; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; font-size: .76rem; color: #aaa; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--muted); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* =====================================================
   WOOCOMMERCE – PREZZI E BOTTONI
   ===================================================== */
.woocommerce-Price-amount, .price .amount { font-size: 1.65rem; font-weight: 900; color: var(--text); }
.price del .woocommerce-Price-amount { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price ins { text-decoration: none; color: #dc2626; }
.woocommerce-Price-currencySymbol { font-size: 1rem; }

.single_add_to_cart_button, button.single_add_to_cart_button,
.woocommerce a.button, .woocommerce button.button {
  background: var(--green) !important; color: var(--text) !important;
  border: none !important; border-radius: var(--r-md) !important;
  font-family: var(--font) !important; font-size: 1rem !important;
  font-weight: 700 !important; padding: .75rem 1.5rem !important;
  cursor: pointer !important; transition: background var(--ease) !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
}
.single_add_to_cart_button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--green-dark) !important; color: var(--text) !important; }

.quantity .qty { width: 72px; padding: .6rem .65rem; border: 1.5px solid var(--border-mid); border-radius: var(--r-md); font-family: var(--font); font-size: 1rem; font-weight: 600; text-align: center; }

/* =====================================================
   WOOCOMMERCE – CARRELLO
   ===================================================== */
.fv-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.fv-cart-table { width: 100%; border-collapse: collapse; }
.fv-cart-table th { text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 .75rem 1rem; border-bottom: 2px solid var(--border); }
.fv-cart-table td { padding: 1rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .93rem; }
.fv-cart-table .product-thumbnail img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-md); border: 1px solid var(--border); mix-blend-mode: multiply; }
.fv-cart-table .product-name a { font-weight: 600; }
.fv-cart-table .product-remove a { color: var(--muted); display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: var(--r-full); transition: background var(--ease), color var(--ease); }
.fv-cart-table .product-remove a:hover { background: #fee2e2; color: #dc2626; }
.fv-cart-subtotal { font-weight: 700; }
.fv-cart-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.fv-coupon { display: flex; gap: .5rem; flex-wrap: wrap; }
.fv-coupon input { padding: .55rem .9rem; border: 1.5px solid var(--border-mid); border-radius: var(--r-md); font-family: var(--font); font-size: .88rem; min-width: 160px; }
.fv-coupon input:focus { outline: none; border-color: var(--green); }
.fv-cart-totals { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem; }
.fv-cart-totals h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 1.1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--border); }
.fv-totals-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; font-size: .93rem; border-bottom: 1px solid var(--border); }
.fv-totals-row:last-child { border-bottom: none; }
.fv-totals-row.total { font-weight: 900; font-size: 1.1rem; padding-top: .85rem; }
.fv-totals-row.total .woocommerce-Price-amount { font-size: 1.4rem; color: var(--green); }

/* =====================================================
   WOOCOMMERCE – CHECKOUT
   ===================================================== */
.fv-checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.fv-checkout-section h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.fv-form-group { margin-bottom: 1rem; }
.fv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fv-form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.fv-form-group label .required { color: #dc2626; }
.fv-field { width: 100%; padding: .6rem .9rem; border: 1.5px solid var(--border-mid); border-radius: var(--r-md); font-family: var(--font); font-size: .93rem; color: var(--text); background: var(--surface); transition: border-color var(--ease); }
.fv-field:focus { outline: none; border-color: var(--green); }
select.fv-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.25rem; }
textarea.fv-field { resize: vertical; min-height: 90px; }
.fv-order-review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem; }
.fv-order-review h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 1.1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.fv-order-item { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; gap: .75rem; }
.fv-order-item:last-child { border-bottom: none; }
.fv-order-item .item-name { font-weight: 600; }
.fv-order-item .item-qty  { font-size: .78rem; color: var(--muted); }
#place_order, .fv-place-order-btn { width: 100%; padding: .85rem !important; background: var(--green) !important; color: var(--text) !important; border: none !important; border-radius: var(--r-md) !important; font-family: var(--font) !important; font-size: 1rem !important; font-weight: 700 !important; cursor: pointer !important; transition: background var(--ease) !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: .4rem !important; margin-top: 1.25rem !important; }
#place_order:hover { background: var(--green-dark) !important; }
.fv-payment-methods { margin-bottom: 1.25rem; }
.fv-payment-method { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border: 1.5px solid var(--border-mid); border-radius: var(--r-md); margin-bottom: .5rem; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.fv-payment-method:hover, .fv-payment-method.selected { border-color: var(--green); background: #f0fdf4; }
.fv-payment-method input[type="radio"] { accent-color: var(--green); }

/* =====================================================
   WOOCOMMERCE – IL MIO ACCOUNT
   ===================================================== */
.fv-account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.fv-account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.fv-account-nav a { display: flex; align-items: center; gap: .65rem; padding: .85rem 1.1rem; font-size: .9rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); transition: background var(--ease), color var(--ease); }
.fv-account-nav a:last-child { border-bottom: none; }
.fv-account-nav a:hover, .fv-account-nav a.is-active { background: #f0fdf4; color: var(--green); }
.fv-account-nav a .material-symbols-outlined { font-size: 1.1rem; color: var(--green); }
.fv-account-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.75rem; }
.fv-account-content h2 { font-size: 1.2rem; font-weight: 900; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.fv-orders-table { width: 100%; border-collapse: collapse; }
.fv-orders-table th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 .75rem .85rem; border-bottom: 2px solid var(--border); text-align: left; }
.fv-orders-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.fv-orders-table tr:last-child td { border-bottom: none; }
.order-status { display: inline-block; padding: .2rem .65rem; border-radius: var(--r-full); font-size: .72rem; font-weight: 700; }
.order-status.processing { background: #dbeafe; color: #1d4ed8; }
.order-status.completed  { background: #dcfce7; color: #166534; }
.order-status.cancelled  { background: #fee2e2; color: #dc2626; }
.order-status.pending    { background: #fef9c3; color: #854d0e; }

/* =====================================================
   NOTIFICHE WOOCOMMERCE
   ===================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error { display: flex; align-items: flex-start; gap: .65rem; padding: .9rem 1.1rem; border-radius: var(--r-md); font-size: .9rem; line-height: 1.55; margin-bottom: 1.5rem; border-left: 4px solid var(--green); background: #f0fdf4; color: var(--text); }
.woocommerce-error { border-left-color: #dc2626; background: #fff5f5; color: #7f1d1d; }
.woocommerce-info  { border-left-color: #3b82f6; background: #eff6ff; color: #1e3a5f; }
.woocommerce-message .button { margin-left: auto; background: var(--green) !important; border-radius: var(--r-md) !important; padding: .35rem .85rem !important; font-size: .82rem !important; font-weight: 700 !important; }

/* =====================================================
   PAGINE DI TESTO (Privacy, Rimborsi, ecc.)
   ===================================================== */
.fv-text-page { max-width: 780px; margin: 0 auto; padding: 2rem 0 4rem; }
.fv-text-page h1 { margin-bottom: 2rem; }
.fv-text-page h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--green); border-radius: var(--r-full); margin-top: .85rem; }
.fv-text-page h2 { font-size: 1.2rem; margin-top: 2.5rem; margin-bottom: .85rem; padding-left: .9rem; border-left: 3px solid var(--green); }
.fv-text-page h3 { font-size: 1rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .5rem; color: var(--green-dark); }
.fv-text-page p  { font-size: .95rem; color: #374151; margin-bottom: 1rem; }
.fv-text-page ul { margin: .75rem 0 1.25rem 1rem; }
.fv-text-page ul li { font-size: .95rem; color: #374151; margin-bottom: .5rem; padding-left: 1rem; position: relative; }
.fv-text-page ul li::before { content: ""; position: absolute; left: -.4rem; top: .65rem; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.fv-text-page a { color: var(--green-dark); font-weight: 600; }
.fv-text-page strong { color: var(--text); font-weight: 700; }
.fv-info-box { background: #f0fdf4; border: 1px solid var(--border-mid); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; margin: 1.5rem 0; font-size: .9rem; color: #166534; display: flex; gap: .65rem; align-items: flex-start; }
.fv-info-box .material-symbols-outlined { flex-shrink: 0; font-size: 1.1rem; }
.fv-warning-box { background: #fefce8; border: 1px solid #fde68a; border-radius: var(--r-lg); padding: 1.1rem 1.25rem; margin: 1.5rem 0; font-size: .9rem; color: #78350f; display: flex; gap: .65rem; align-items: flex-start; }

/* =====================================================
   CHI SIAMO
   ===================================================== */
.fv-numeri-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.fv-storia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.fv-valori-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.fv-steps-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.fv-cert-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.fv-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   RESPONSIVE – 1024px
   ===================================================== */
@media (max-width: 1024px) {
  .fv-cart-layout     { grid-template-columns: 1fr; }
  .fv-checkout-layout { grid-template-columns: 1fr; }
  .fv-cart-totals, .fv-order-review { max-width: 100%; }
}

/* =====================================================
   RESPONSIVE – 900px
   ===================================================== */
@media (max-width: 900px) {
  .product-hero         { grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 2.5rem; }
  .product-details-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
  .fv-storia-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .fv-valori-grid       { grid-template-columns: repeat(2,1fr); }
  .fv-cert-grid         { grid-template-columns: repeat(2,1fr); }
  .fv-account-layout    { grid-template-columns: 1fr; }
  .fv-account-nav       { display: flex; flex-wrap: wrap; }
  .fv-account-nav a     { border-bottom: none; border-right: 1px solid var(--border); flex: 1; min-width: 100px; justify-content: center; padding: .65rem .75rem; font-size: .82rem; }
  .products-grid        { grid-template-columns: repeat(2,1fr); gap: 1.1rem; }
  .footer-top           { grid-template-columns: 1fr; }
}

/* =====================================================
   RESPONSIVE – 768px
   ===================================================== */
@media (max-width: 768px) {
  .site-header  { padding: .65rem 1rem; }
  #site-navigation { display: none !important; margin: 0; }
  #site-navigation.is-open {
    display: flex !important; flex-direction: column !important;
    position: fixed; top: 57px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1.25rem; z-index: 999; box-shadow: var(--shadow-md);
  }
  #site-navigation.is-open ul { flex-direction: column !important; gap: .75rem; width: 100%; }
  #site-navigation.is-open ul li a { font-size: 1rem; padding: .4rem 0; border-bottom: none; }
  .header-cta   { display: none; }
  .menu-toggle  { display: flex; align-items: center; }
  .cart-contents .amount { display: none; }

  .page-wrap    { padding: 1rem 1rem 2.5rem; }
  .hero-section { padding: 3rem 1.25rem; }
  .hero-btns    { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; }

  .gallery-thumbs   { grid-template-columns: repeat(4,1fr); gap: .5rem; }
  .product-specs-grid { grid-template-columns: 1fr 1fr; }
  .product-actions  { flex-direction: column; }
  .product-actions .btn { min-width: unset; width: 100%; }
  .nutrition-grid   { grid-template-columns: 1fr 1fr; }
  .related-header   { flex-direction: column; align-items: flex-start; }

  .fv-form-row { grid-template-columns: 1fr; }

  .fv-cart-table thead { display: none; }
  .fv-cart-table tr    { display: flex; flex-wrap: wrap; padding: .75rem 0; border-bottom: 1px solid var(--border); align-items: center; gap: .5rem; }
  .fv-cart-table td    { border-bottom: none; padding: .25rem .4rem; }
  .fv-cart-table .product-thumbnail img { width: 56px; height: 56px; }
  .fv-cart-table .product-subtotal { margin-left: auto; font-weight: 700; }
  .fv-cart-actions { flex-direction: column; align-items: stretch; }

  .fv-numeri-grid { grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
  .fv-steps-grid  { grid-template-columns: repeat(2,1fr); gap: 1.75rem; }
  .fv-steps-line  { display: none !important; }
  .fv-cta-buttons { flex-direction: column; align-items: center; }
  .fv-cta-buttons a { width: 100%; max-width: 300px; justify-content: center; }

  .site-footer  { padding: 2.5rem 1rem 1.5rem; }
  .footer-cols  { flex-direction: column; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal  { justify-content: center; }
}

/* =====================================================
   RESPONSIVE – 480px
   ===================================================== */
@media (max-width: 480px) {
  .product-specs-grid { grid-template-columns: 1fr; }
  .spec-card-value    { font-size: 1.1rem; }
  .products-grid      { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .gallery-thumbs     { grid-template-columns: repeat(3,1fr); }
  .fv-steps-grid      { grid-template-columns: 1fr; }
  .fv-valori-grid     { grid-template-columns: 1fr; }
  .fv-cert-grid       { grid-template-columns: repeat(2,1fr); gap: .75rem; }
  .fv-orders-table thead { display: none; }
  .fv-orders-table tr    { display: flex; flex-direction: column; padding: .85rem 0; border-bottom: 1px solid var(--border); }
  .fv-orders-table td    { border-bottom: none; padding: .2rem .5rem; }
}

/* ── Quantità + Aggiungi al carrello in linea ── */
.single_product_wrapper .cart,
form.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

form.cart .quantity {
    flex-shrink: 0;
}

form.cart .quantity .qty {
    width: 80px;
    text-align: center;
}

form.cart .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    margin-top: 0 !important;
}

@media (max-width: 480px) {
    form.cart {
        flex-direction: column;
        align-items: stretch;
    }
    form.cart .single_add_to_cart_button {
        min-width: unset;
        width: 100%;
    }
}
/* Quantità con KG */

form.cart .quantity {
    position: relative;
    display: flex;
    align-items: center;
}

form.cart .quantity::after {

    content: "kg";

    position: absolute;
    right: 14px;

    font-size: .9rem;
    font-weight: 700;

    color: #6b7280;

    pointer-events: none;
}

form.cart .quantity .qty {

    width: 100px;
    height: 48px;

    padding-right: 2.2rem !important;

    text-align: center;
}
/* KG vicino quantità carrello */

.fv-qty-wrap {

    position: relative;

    display: inline-flex;
    align-items: center;
}

.fv-qty-wrap .qty {

    width: 90px;

    padding-right: 2rem !important;
}

.fv-qty-kg {

    position: absolute;

    right: 14px;

    font-size: .85rem;
    font-weight: 700;

    color: #6b7280;

    pointer-events: none;
}
/* =====================================================
   QUANTITY WITH KG
   ===================================================== */

.fv-qty-container {

    display: flex;
    align-items: center;
    gap: .6rem;
}

/* Input */
.fv-qty-container input.qty {

    width: 85px !important;
    min-width: 85px;

    height: 44px;

    padding: 0 .75rem !important;

    text-align: center;

    border: 1px solid #d1d5db;
    border-radius: .6rem;

    font-weight: 700;
    font-size: .95rem;

    background: #fff;
}

/* KG */
.fv-kg-label {

    font-size: .95rem;
    font-weight: 700;

    color: #6b7280;

    white-space: nowrap;
}


/* =====================================================
   FINITURE WOOCOMMERCE – COERENZA FRONT-END
   ===================================================== */
.woocommerce,
.woocommerce-page,
.woocommerce-page .page-wrap,
.woocommerce input,
.woocommerce textarea,
.woocommerce select,
.woocommerce button,
.woocommerce a.button,
.woocommerce-page input,
.woocommerce-page textarea,
.woocommerce-page select,
.woocommerce-page button {
  font-family: var(--font) !important;
}

.woocommerce-page .page-wrap {
  color: var(--text);
}

.woocommerce-page table,
.woocommerce-page th,
.woocommerce-page td,
.woocommerce-page label,
.woocommerce-page p,
.woocommerce-page li {
  font-family: var(--font) !important;
}

/* Header carrello: solo icona + totale, senza badge quantità */
.cart-contents {
  min-height: 40px;
  gap: .45rem;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(13,27,17,.04);
}
.cart-contents .count { display: none !important; }
.cart-contents .amount {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  font-size: .86rem;
}
.cart-contents .amount .woocommerce-Price-amount,
.cart-contents .amount bdi {
  font-size: .86rem !important;
  font-weight: 800;
  color: inherit;
}
.cart-contents .amount .woocommerce-Price-currencySymbol { font-size: .78rem; }
.cart-contents .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--green-dark);
}
.cart-contents:hover .material-symbols-outlined { color: var(--green); }

/* Carrello: il pulsante update resta tecnico, non visibile all'utente */
.fv-update-btn {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fv-cart-form { width: 100%; }
.fv-cart-table .quantity { margin: 0; }
.fv-cart-table .product-price .woocommerce-Price-amount,
.fv-cart-table .product-subtotal .woocommerce-Price-amount {
  font-size: .98rem;
  font-weight: 800;
}
.fv-cart-table .product-subtotal {
  transition: background-color var(--ease), color var(--ease);
  border-radius: var(--r-md);
}
.fv-subtotal-flash { background: #f0fdf4; color: var(--green-dark); }
.fv-cart-sync-notice {
  min-height: 1.25rem;
  margin-top: .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.fv-cart-syncing {
  opacity: .82;
  pointer-events: none;
}

/* Messaggi / popup WooCommerce: evita testo sovrapposto */
.woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 1rem;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  position: relative;
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem 1rem;
  padding: .95rem 1.1rem !important;
  min-height: 0;
  list-style: none !important;
  word-break: normal;
  overflow-wrap: anywhere;
  clear: both;
}
.woocommerce-error {
  display: block !important;
  padding-left: 1.25rem !important;
}
.woocommerce-error li {
  display: block;
  margin: .25rem 0;
  padding: 0;
  line-height: 1.55;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
  display: none !important;
  content: none !important;
}
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-notices-wrapper .button {
  float: none !important;
  order: 2;
  margin: 0 !important;
  white-space: nowrap;
  align-self: center;
}

/* Finiture generali pagine WooCommerce */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  width: 100%;
  min-height: 44px;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  line-height: 1.4;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17,212,66,.12);
}
.woocommerce form .form-row label {
  margin-bottom: .35rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
}
.woocommerce form .form-row .required { color: #dc2626; }

.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  border: none !important;
}
.woocommerce-pagination ul.page-numbers li {
  border: none !important;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  min-width: 2.35rem;
  height: 2.35rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border-mid);
  background: var(--surface);
  font-weight: 700;
}
.woocommerce-pagination .page-numbers .current,
.woocommerce-pagination .page-numbers a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--text);
}

@media (max-width: 768px) {
  .cart-contents .amount { display: inline-flex !important; }
  .cart-contents { padding: .38rem .55rem; }
  .cart-contents .amount .woocommerce-Price-amount,
  .cart-contents .amount bdi { font-size: .78rem !important; }

  .woocommerce-message,
  .woocommerce-info {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button,
  .woocommerce-notices-wrapper .button {
    width: 100%;
    white-space: normal;
  }

  .fv-cart-layout { gap: 1.25rem; }
  .fv-cart-table tr { position: relative; }
  .fv-cart-table .product-remove { order: 1; }
  .fv-cart-table .product-thumbnail { order: 2; }
  .fv-cart-table .product-name { order: 3; flex: 1 1 calc(100% - 92px); }
  .fv-cart-table .product-price { order: 4; flex: 1 1 45%; color: var(--muted); }
  .fv-cart-table .product-quantity { order: 5; flex: 1 1 45%; }
  .fv-cart-table .product-subtotal { order: 6; flex: 1 1 100%; margin-left: 0; text-align: right; }
  .fv-qty-container { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .site-header { gap: .55rem; }
  .site-branding img { max-height: 38px; }
  .cart-contents { margin-left: auto; }
  .fv-coupon { flex-direction: column; width: 100%; }
  .fv-coupon input,
  .fv-coupon button { width: 100%; }
  .fv-cart-totals { padding: 1.1rem; }
  .fv-totals-row { align-items: flex-start; gap: .75rem; }
}

/* Fix carrello live: non blocca più il box totali durante l'aggiornamento AJAX */
.fv-cart-syncing { opacity: 1; pointer-events: auto; }
.fv-cart-sync-notice { display: none; }
.fv-row-syncing .product-subtotal { opacity: .78; }

/* =====================================================
   B2B / fatturazione / popup WooCommerce
   ===================================================== */
.fv-field-hidden {
  display: none !important;
}

.fv-b2b-account-note {
  display: none;
  margin: .75rem 0 1rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  background: #f0fdf4;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.55;
}
.fv-b2b-account-note.is-visible {
  display: block;
}

#billing_customer_type_field {
  background: rgba(240,253,244,.72);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: .85rem;
}

.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce-notices-wrapper {
  position: relative !important;
  z-index: 2;
  display: block;
  width: 100%;
  clear: both;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  box-sizing: border-box;
  float: none !important;
  min-height: auto !important;
  margin: 0 0 1rem !important;
  border-radius: var(--r-md) !important;
  border: 1.5px solid var(--border-mid) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  line-height: 1.5 !important;
  overflow: visible !important;
}

.woocommerce .woocommerce-error {
  display: flex !important;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.1rem !important;
  background: #fff7ed;
  border-color: #fed7aa !important;
}
.woocommerce .woocommerce-error li {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}

.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-error .button {
  flex: 0 0 auto;
  min-height: 38px;
}

.woocommerce form.checkout .form-row {
  float: none !important;
  box-sizing: border-box;
}

.woocommerce-checkout .create-account,
.woocommerce-checkout .woocommerce-account-fields {
  grid-column: 1 / -1;
  padding: .85rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  background: var(--surface);
}

.fv-admin-fiscal-data p {
  margin: 0 0 .35rem;
}

@media (max-width: 700px) {
  .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-message {
    display: block !important;
  }
  .woocommerce .woocommerce-info .button,
  .woocommerce .woocommerce-message .button,
  .woocommerce .woocommerce-error .button {
    width: 100%;
    margin-top: .75rem !important;
    text-align: center;
  }
  #billing_customer_type_field {
    padding: .75rem;
  }
}


/* Area account: dati fiscali azienda */
.fv-account-fiscal-fields {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  background: var(--surface);
}
.fv-account-fiscal-fields legend {
  padding: 0 .35rem;
  font-weight: 800;
  color: var(--text);
}
.fv-account-fiscal-fields .form-row {
  box-sizing: border-box;
}
.fv-account-fiscal-fields label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.fv-account-company-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4%;
}
.fv-account-company-fields .form-row-wide { width: 100%; }
.fv-account-company-fields .form-row-first,
.fv-account-company-fields .form-row-last { width: 48%; }
.fv-discount-amount { color: #dc2626; font-weight: 800; }

@media (max-width: 700px) {
  .fv-account-company-fields .form-row-first,
  .fv-account-company-fields .form-row-last { width: 100%; }
}

/* Coupon personale account */
.fv-personal-coupon-box {
  margin: 0 0 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(77, 119, 68, .22);
  background: rgba(77, 119, 68, .07);
  border-radius: var(--r-md, 12px);
  font-family: var(--font, inherit);
  color: var(--text, #1f2933);
}
.fv-personal-coupon-box p {
  margin: .35rem 0 0;
  line-height: 1.45;
}
.fv-personal-coupon-box code {
  display: inline-block;
  padding: .14rem .38rem;
  border-radius: .35rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  font-size: .92em;
}

/* Header: link area account coerente con il carrello */
.account-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}
.account-link:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.account-link .material-symbols-outlined { font-size: 1.15rem; color: var(--green); }

/* Checkout/account: la ragione sociale non è obbligatoria per aziende */
#billing_company_field .optional,
.fv-account-fiscal-fields .optional { font-weight: 500; opacity: .65; }

@media (max-width: 640px) {
  .account-link { padding: .42rem .52rem; }
  .account-link-text { display: none; }
}


/* =====================================================
   FRUTTAVERA BLOG: catalogo senza ecommerce
   ===================================================== */
body.fruttavera-blog-catalog .cart-contents,
body.fruttavera-blog-catalog .account-link,
body.fruttavera-blog-catalog .add_to_cart_button,
body.fruttavera-blog-catalog .single_add_to_cart_button,
body.fruttavera-blog-catalog .quantity,
body.fruttavera-blog-catalog .price,
body.fruttavera-blog-catalog .woocommerce-Price-amount,
body.fruttavera-blog-catalog .product_meta .sku_wrapper,
body.fruttavera-blog-catalog .woocommerce-breadcrumb {
  display: none !important;
}

.sample-request-box {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.sample-request-box .btn { width: 100%; }
.sample-request-note {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

.sample-form-card input,
.sample-form-card select,
.sample-form-card textarea {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
  background: #fff;
}
.sample-form-card input:focus,
.sample-form-card select:focus,
.sample-form-card textarea:focus {
  border-color: var(--green);
}
.sample-form-card label {
  font-size: .86rem;
  font-weight: 700;
  display: block;
  margin-bottom: .38rem;
}
.sample-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sample-products-title {
  font-size: .86rem;
  font-weight: 700;
  display: block;
  margin-bottom: .38rem;
}
.sample-products-checklist {
  width: 100%;
  max-height: 260px;
  overflow: auto;
  padding: .55rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  background: #fff;
}
.sample-products-checklist:focus-within {
  border-color: var(--green);
}
.sample-product-check {
  display: flex !important;
  align-items: flex-start;
  gap: .65rem;
  padding: .62rem .7rem;
  margin: 0 !important;
  border-radius: .75rem;
  cursor: pointer;
  font-weight: 600 !important;
  line-height: 1.35;
}
.sample-product-check:hover {
  background: rgba(47, 107, 47, .08);
}
.sample-product-check input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: .12rem;
  padding: 0;
  accent-color: var(--green);
}
.sample-product-check small {
  display: block;
  margin-top: .12rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}
.sample-products-select { min-height: 180px; }
.sample-form-help {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .35rem;
}
.sample-form-feedback {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r-md);
  text-align: center;
  font-weight: 700;
}
.sample-form-feedback.is-success { background: #dcfce7; color: #166534; display: block; }
.sample-form-feedback.is-error { background: #fee2e2; color: #b91c1c; display: block; }

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  clear: both;
  width: 100%;
  max-width: var(--max-w);
  margin: 1rem auto;
  line-height: 1.55;
  border-radius: var(--r-lg);
  z-index: 2;
}
.woocommerce-error li { margin: .35rem 0; }

@media (max-width: 720px) {
  .sample-form-grid { grid-template-columns: 1fr; }
  .header-cta .btn { padding: .55rem .8rem; font-size: .82rem; }
}
