@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;600;700&display=swap');

/* FIORIONLINE.SHOP — RESTYLING PREMIUM 2026 */
:root {
  --color-primary: #8B4A6B;
  --color-secondary: #C4956A;
  --color-accent: #D4AF37;
  --color-dark: #2C1810;
  --color-text: #3D2B1F;
  --color-bg: #FDF8F3;
  --color-bg-section: #F5EDE3;
  --color-white: #FFFFFF;
  --color-light: #FFF5EC;
  --color-green: #4A7C59;
  --color-blush: #F2C4CE;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --shadow-soft: 0 4px 20px rgba(139,74,107,0.12);
  --shadow-hover: 0 8px 32px rgba(139,74,107,0.22);
  --radius: 12px;
  --transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

body { font-family: var(--font-body) !important; background-color: var(--color-bg) !important; color: var(--color-text) !important; font-size: 16px !important; line-height: 1.7 !important; }

h1,h2,h3,h4,h5,h6,.elementor-heading-title,.woocommerce-loop-product__title { font-family: var(--font-heading) !important; color: var(--color-dark) !important; letter-spacing: -0.02em !important; }

.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce a.button.alt,.woocommerce button.button.alt,.elementor-button,.elementor-button-wrapper .elementor-button,a.elementor-button,.add_to_cart_button,.single_add_to_cart_button { background: linear-gradient(135deg, #8B4A6B 0%, #A0547A 100%) !important; color: #fff !important; border: none !important; border-radius: 50px !important; padding: 14px 32px !important; font-family: var(--font-body) !important; font-weight: 700 !important; font-size: 14px !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; box-shadow: 0 4px 15px rgba(139,74,107,0.35) !important; transition: var(--transition) !important; cursor: pointer !important; }

.woocommerce a.button:hover,.woocommerce button.button:hover,.elementor-button:hover,.add_to_cart_button:hover,.single_add_to_cart_button:hover { background: linear-gradient(135deg, #D4AF37 0%, #C4956A 100%) !important; transform: translateY(-2px) !important; box-shadow: 0 8px 32px rgba(139,74,107,0.22) !important; color: #fff !important; }

.woocommerce ul.products li.product,.products .product { background: #fff !important; border-radius: 12px !important; overflow: hidden !important; box-shadow: 0 4px 20px rgba(139,74,107,0.12) !important; transition: var(--transition) !important; border: 1px solid rgba(196,149,106,0.15) !important; animation: fadeInUp 0.5s ease both !important; }

.woocommerce ul.products li.product:hover,.products .product:hover { transform: translateY(-6px) !important; box-shadow: 0 8px 32px rgba(139,74,107,0.22) !important; border-color: #F2C4CE !important; }

.woocommerce ul.products li.product a img,.products .product img { transition: transform 0.5s ease !important; width: 100% !important; height: 280px !important; object-fit: cover !important; }

.woocommerce ul.products li.product:hover a img,.products .product:hover img { transform: scale(1.05) !important; }

.woocommerce-loop-product__title { font-family: var(--font-heading) !important; font-size: 1rem !important; font-weight: 600 !important; color: #2C1810 !important; padding: 12px 16px 4px !important; line-height: 1.4 !important; }

.woocommerce ul.products li.product .price,.woocommerce .price,.woocommerce-Price-amount { color: #8B4A6B !important; font-weight: 700 !important; font-size: 1.1rem !important; }

.woocommerce span.onsale { background: #8B4A6B !important; color: #fff !important; border-radius: 50px !important; font-weight: 700 !important; font-size: 11px !important; padding: 4px 12px !important; }

.woocommerce div.product .product_title { font-family: var(--font-heading) !important; font-size: clamp(1.5rem,3vw,2.2rem) !important; color: #2C1810 !important; font-weight: 700 !important; }

.woocommerce div.product p.price,.woocommerce div.product span.price { color: #8B4A6B !important; font-size: 1.8rem !important; font-weight: 700 !important; }

.woocommerce div.product .woocommerce-product-details__short-description { color: #3D2B1F !important; font-size: 1rem !important; line-height: 1.8 !important; border-left: 3px solid #F2C4CE !important; padding-left: 16px !important; margin: 16px 0 !important; }

.site-footer,footer,.footer-area,#colophon { background: #2C1810 !important; color: rgba(255,255,255,0.85) !important; border-top: 3px solid #C4956A !important; }
.site-footer a,footer a,.footer-area a { color: #F2C4CE !important; }
.site-footer a:hover,footer a:hover { color: #D4AF37 !important; }

.woocommerce-message,.woocommerce-info { background: #FFF5EC !important; border-top-color: #8B4A6B !important; color: #2C1810 !important; border-radius: 0 12px 12px 0 !important; }

.woocommerce input[type="text"],.woocommerce input[type="email"],.woocommerce input[type="tel"],.woocommerce textarea,.woocommerce select { border: 1.5px solid rgba(196,149,106,0.4) !important; border-radius: 8px !important; padding: 12px 16px !important; color: #3D2B1F !important; background: #fff !important; }

.woocommerce input[type="text"]:focus,.woocommerce input[type="email"]:focus,.woocommerce textarea:focus { border-color: #8B4A6B !important; box-shadow: 0 0 0 3px rgba(139,74,107,0.12) !important; outline: none !important; }

#iubenda-cs-banner { max-height: 200px !important; }
#iubenda-cs-banner .iubenda-cs-content { background: rgba(44,24,16,0.95) !important; border-top: 2px solid #C4956A !important; padding: 16px 24px !important; }
#iubenda-cs-banner .iubenda-cs-rationale p { font-size: 12px !important; max-height: 60px !important; overflow: hidden !important; }
.iubenda-cs-accept-btn { background: #8B4A6B !important; border-radius: 50px !important; font-weight: 700 !important; }

.star-rating span::before,.woocommerce .star-rating span::before { color: #D4AF37 !important; }

a { color: #8B4A6B !important; transition: all 0.35s ease !important; }
a:hover { color: #C4956A !important; }

::-webkit-scrollbar { width: 6px !important; }
::-webkit-scrollbar-thumb { background: #F2C4CE !important; border-radius: 3px !important; }
::-webkit-scrollbar-thumb:hover { background: #8B4A6B !important; }
::selection { background: #F2C4CE !important; color: #2C1810 !important; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .woocommerce ul.products li.product a img,.products .product img { height: 220px !important; }
  .woocommerce a.button,.woocommerce button.button,.elementor-button { padding: 12px 24px !important; font-size: 13px !important; width: 100% !important; text-align: center !important; }
  .woocommerce-loop-product__title { font-size: 0.9rem !important; }
}
/* === CARRELLO: nascondi calcolatore spedizione === */
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .shipping-calculator-form,
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart table.shop_table tr.shipping td form,
.woocommerce-cart .cart-collaterals .shipping-calculator-form,
.woocommerce-cart a.shipping-calculator-button {
    display: none !important;
}

/* Sposta chat a sinistra */
#tidio-chat-iframe,
#tidio-chat,
[id^="tidio"],
iframe[title*="chat"],
iframe[title*="Chat"],
.chat-widget,
#chat-widget-container {
    left: 20px !important;
    right: auto !important;
}


/* Sposta chat a sinistra */
#tidio-chat-iframe,
#tidio-chat,
[id^="tidio"],
iframe[title*="chat"],
iframe[title*="Chat"],
.chat-widget,
#chat-widget-container {
    left: 20px !important;
    right: auto !important;
}


/* === CHECKOUT SUPER CHIARO: Step-by-step guidato === */

/* Nascondere i campi billing nome/cognome (DUPLICATI) */
.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_last_name_field {
    display: none !important;
}

/* ===== STEP 0: EMAIL MITTENTE - IL PRIMO CAMPO PIÙ IMPORTANTE ===== */
.woocommerce-checkout #billing_email_field {
    display: block !important;
    width: 100% !important;
    order: -10 !important;
    margin-bottom: 30px !important;
    padding: 22px 24px !important;
    background: linear-gradient(135deg, #fff5f8 0%, #fce4ec 100%) !important;
    border-radius: 16px !important;
    border: 3px solid #8B4A6B !important;
    box-shadow: 0 4px 20px rgba(139,74,107,0.15), 0 0 0 4px rgba(139,74,107,0.05) !important;
    position: relative !important;
    animation: pulseGlow 2s ease-in-out infinite alternate !important;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 4px 20px rgba(139,74,107,0.15), 0 0 0 4px rgba(139,74,107,0.05); }
    100% { box-shadow: 0 4px 25px rgba(139,74,107,0.25), 0 0 0 6px rgba(139,74,107,0.08); }
}
.woocommerce-checkout #billing_email_field::before {
    content: "✉️ INSERISCI LA TUA EMAIL — Riceverai qui la conferma dell'ordine";
    display: block !important;
    font-weight: 800 !important;
    color: #8B4A6B !important;
    margin-bottom: 12px !important;
    font-size: 15px !important;
    font-family: var(--font-body) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.4 !important;
}
.woocommerce-checkout #billing_email_field::after {
    content: "👆 Questo è il TUO indirizzo email, non quello del destinatario";
    display: block !important;
    font-weight: 400 !important;
    color: #666 !important;
    font-size: 12px !important;
    margin-top: 8px !important;
    font-style: italic !important;
    font-family: var(--font-body) !important;
}
.woocommerce-checkout #billing_email_field label {
    display: none !important;
}
.woocommerce-checkout #billing_email_field input {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e0c4d4 !important;
    border-radius: 10px !important;
    font-size: 17px !important;
    font-family: var(--font-body) !important;
    background: #fff !important;
}
.woocommerce-checkout #billing_email_field input:focus {
    border-color: #8B4A6B !important;
    box-shadow: 0 0 0 4px rgba(139,74,107,0.15) !important;
    outline: none !important;
}
.woocommerce-checkout #billing_email_field input::placeholder {
    color: #aaa !important;
    font-style: italic !important;
}

/* ===== TELEFONO MITTENTE ===== */
.woocommerce-checkout #billing_phone_field {
    display: block !important;
    width: 100% !important;
    order: -9 !important;
    margin-bottom: 30px !important;
    padding: 18px 22px !important;
    background: linear-gradient(135deg, #FDF8F3 0%, #f5ede3 100%) !important;
    border-radius: 14px !important;
    border: 2px solid #C4956A !important;
    box-shadow: 0 3px 12px rgba(196,149,106,0.1) !important;
}
.woocommerce-checkout #billing_phone_field::before {
    content: "📱 Il tuo numero di telefono — Ti contattiamo solo se necessario per la consegna";
    display: block !important;
    font-weight: 700 !important;
    color: #C4956A !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    font-family: var(--font-body) !important;
}
.woocommerce-checkout #billing_phone_field label {
    display: none !important;
}
.woocommerce-checkout #billing_phone_field input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e8d5c4 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-family: var(--font-body) !important;
    background: #fff !important;
}
.woocommerce-checkout #billing_phone_field input:focus {
    border-color: #C4956A !important;
    box-shadow: 0 0 0 3px rgba(196,149,106,0.15) !important;
    outline: none !important;
}

/* ============================================ */
/* CARRELLO & CHECKOUT - MIGLIORAMENTO UX 2026 */
/* ============================================ */

/* Progress Bar / Step Indicator per Carrello e Checkout */
.fio-checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  margin: 0 auto 30px;
  max-width: 600px;
  gap: 0;
}
.fio-checkout-steps .fio-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}
.fio-checkout-steps .fio-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 3px solid #ddd;
  background: #fff;
  color: #999;
}
.fio-checkout-steps .fio-step.active .fio-step-number {
  background: linear-gradient(135deg, #8B4A6B 0%, #A0547A 100%);
  color: #fff;
  border-color: #8B4A6B;
  box-shadow: 0 4px 15px rgba(139,74,107,0.35);
}
.fio-checkout-steps .fio-step.completed .fio-step-number {
  background: #4A7C59;
  color: #fff;
  border-color: #4A7C59;
}
.fio-checkout-steps .fio-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fio-checkout-steps .fio-step.active .fio-step-label {
  color: #8B4A6B;
  font-weight: 700;
}
.fio-checkout-steps .fio-step.completed .fio-step-label {
  color: #4A7C59;
}
.fio-checkout-steps .fio-step-connector {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #ddd;
  z-index: -1;
}
.fio-checkout-steps .fio-step.completed .fio-step-connector {
  background: #4A7C59;
}

/* Messaggio guida sotto il pulsante Procedi al pagamento */
.fio-cart-hint {
  text-align: center;
  padding: 12px 20px;
  margin-top: 10px;
  background: linear-gradient(135deg, #f8f4ff 0%, #fff5f8 100%);
  border-radius: 10px;
  border: 1px dashed #8B4A6B;
  font-size: 14px;
  color: #5a3a4a;
  line-height: 1.5;
}
.fio-cart-hint .fio-hint-icon {
  font-size: 18px;
  margin-right: 6px;
}

/* Pulsante Procedi al Pagamento migliorato */
.wc-proceed-to-checkout .checkout-button {
  position: relative;
  font-size: 16px !important;
  padding: 18px 40px !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}
.wc-proceed-to-checkout .checkout-button::after {
  content: ' \2192';
  font-size: 20px;
  margin-left: 8px;
}

/* Box rassicurante nel carrello */
.fio-cart-reassurance {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px;
  margin-top: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.fio-cart-reassurance .fio-reassure-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}
.fio-cart-reassurance .fio-reassure-icon {
  font-size: 16px;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .fio-checkout-steps {
    padding: 15px 10px;
    gap: 0;
  }
  .fio-checkout-steps .fio-step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .fio-checkout-steps .fio-step-label {
    font-size: 10px;
  }
  .fio-cart-reassurance {
    gap: 10px;
  }
  .fio-cart-hint {
    font-size: 13px;
    padding: 10px 15px;
  }
}