/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Template: blocksy
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Tags: accessibility-ready,blog,block-patterns,e-commerce,wide-blocks,block-styles,grid-layout,one-column,two-columns,three-columns,four-columns,right-sidebar,left-sidebar,translation-ready,custom-colors,custom-logo,custom-menu,featured-images,footer-widgets,full-width-template,theme-options,threaded-comments
Version: 2.1.9.1756465995
Updated: 2025-08-29 13:13:15

*/

/* ============================================================
   WISEPICK SHELL — identità neutra e portabile
   Vale SOLO per la "shell" condivisa (header bar, carrello,
   checkout, schermate campagna, documenti legali, footer).
   Le landing (.wpk-landing) hanno il LORO branding per-cliente
   e NON usano queste variabili.
   - Accent neutro quasi-nero (non il blu del vecchio brand)
   - Font: system stack (zero richieste di rete, niente layout-shift)
   ============================================================ */
:root {
    --wpk-accent: #111111;          /* accent principale shell */
    --wpk-accent-strong: #000000;   /* hover / stati forti */
    --wpk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* Custom Header Bar */
.custom-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 44px;
    display: flex;
    align-items: center;
}

.header-bar-container {
    width: 100%;
    padding-left:8px;
    padding-right:15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid #eee;
    height: 44px;
}

.header-bar-container .back-link {
    margin-right: auto;
}

/* Back Link */
.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--wpk-accent);
}

.back-link:hover {
    color: var(--wpk-accent-strong);
}

.chevron-left {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    flex-shrink: 0;
}

.back-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Countdown campagna dentro la header bar (centrato) */
#wpk-countdown.wpk-countdown--bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: baseline;
    font-size: 13px;
    font-weight: 600;
    color: var(--wpk-accent);
    white-space: nowrap;
    pointer-events: none;
}
#wpk-countdown .wpk-cd-label { font-weight: 500; opacity: .75; }
#wpk-countdown .wpk-cd-time { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
    #wpk-countdown.wpk-countdown--bar { font-size: 12px; }
    #wpk-countdown.wpk-countdown--bar .wpk-cd-label { display: none; } /* su mobile solo il tempo */
}

/* Schermata di stato campagna (Disponibile a breve / Campagna conclusa) */
.wpk-campaign-screen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}
.wpk-campaign-card {
    max-width: 540px;
    text-align: center;
}
.wpk-campaign-card h1 {
    font-family: var(--wpk-font);
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 .5em;
    color: #111827;
}
.wpk-campaign-card p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}
.wpk-countdown--block {
    margin-top: 26px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wpk-accent);
    font-variant-numeric: tabular-nums;
}
.wpk-countdown--block .wpk-cd-label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 6px;
}

/* Cart Link & Icon */
.cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--wpk-accent);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.cart-icon {
    stroke-width: 2;
}

.cart-badge {
    position: absolute;
    top: 3px;
    right: 8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.cart-badge.animate {
    animation: badgePulse 0.6s ease-in-out;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        background: #e74c3c;
    }
    50% {
        transform: scale(1.3);
        background: #27ae60;
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.6);
    }
    100% {
        transform: scale(1);
        background: #e74c3c;
    }
}

/* Badge nascosto quando il carrello è vuoto (niente "0" rosso fuorviante) */
.cart-badge.is-empty {
    display: none;
}

/* Stato "ci sono articoli": anello che pulsa attorno all'icona per invitare al
   click verso il checkout. Anima SOLO transform+opacity di uno pseudo-elemento
   => gestita dal compositor (GPU): nessun repaint/reflow, iper leggera. */
.cart-link.cart-has-items .cart-icon-wrapper::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid var(--wpk-accent);
    opacity: 0;
    pointer-events: none;
    animation: cartRing 2.4s ease-out infinite;
}

@keyframes cartRing {
    0%   { transform: scale(0.75); opacity: 0.5; }
    70%  { transform: scale(1.3);  opacity: 0; }
    100% { transform: scale(1.3);  opacity: 0; }
}

/* Rispetta le preferenze di chi vuole meno animazioni */
@media (prefers-reduced-motion: reduce) {
    .cart-link.cart-has-items .cart-icon-wrapper::after { animation: none; }
}

.cart-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--wpk-accent);
    white-space: nowrap;
}

/* Site Structure */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Footer Styles */
.site-footer {
    margin-top: 100px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky footer: il footer resta in fondo alla finestra anche con poco contenuto */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}
.wpk-site-footer {
    margin-top: auto;
}

/* Body Padding for Fixed Header (solo quando la barra è effettivamente presente) */
body.wpk-has-headerbar {
    padding-top: 44px;
}

/* Toast Notification — minimal, coerente con la UI (card bianca, ombra morbida) */
.cart-toast {
    position: fixed;
    top: 8px;                  /* vicino al bordo superiore, sopra la header bar */
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    width: calc(100% - 32px);
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--theme-border-color, #ececec);
    border-radius: 16px;
    box-shadow: 0 14px 34px -14px rgba(20,30,50,.28), 0 2px 6px -2px rgba(20,30,50,.08);
    font-family: var(--wpk-font);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.cart-toast-check {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7f7ec;
    color: #1ea150;
    display: grid;
    place-content: center;
}

.cart-toast-check svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
}

.cart-toast-content {
    flex: 1;
    min-width: 0;
}

.cart-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #16202e;
    line-height: 1.2;
}

.cart-toast-link {
    display: inline-block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--wpk-accent);
}

.cart-toast-link:hover {
    text-decoration: underline;
}

.cart-toast-close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #b7bcc4;
    font-size: 20px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

.cart-toast-close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

@media (prefers-reduced-motion: reduce) {
    .cart-toast { transition: opacity .2s ease; }
}

/* Order Success Message Custom Styling */
.woocommerce-order-received .woocommerce-notice {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 20px 20px 20px 50px !important;
    border-radius: 8px !important;
    position: relative;
}

.woocommerce-order-received .woocommerce-notice strong {
    color: white !important;
}

.woocommerce-order-received .woocommerce-notice em {
    color: #e8f5e8 !important;
}


