/*
Theme Name: Vinatico Custom
Theme URI: https://vinaticodd.ddproject.net
Description: Tema WooCommerce 100% custom, leggero, ad altissime prestazioni per Vinatico.it (zero page builder, zero plugin ridondanti).
Author: Mandarino Agency & Antigravity
Author URI: https://ddproject.net
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: vinatico-custom
Domain Path: /languages
*/

:root {
    /* Design tokens originali Vinatico / 99 Special */
    --gold: #d4af37;
    --champagne-light: #f3e9cc;
    --champagne-dark: #ebdca5;
    --tag-special-bg: #f4d8da;
    --burgundy: #6b1a1a;
    --burgundy-dark: #5a1110;
    --beige: #fbf9f4;
    --beige-light: #f5eedc;

    --color-wine: #5A1110;
    --color-wine-dark: #420B0A;
    --color-wine-deep: #2A0605;
    --color-wine-light: #F7EFF0;
    --color-gold: #B38F4D;
    --color-gold-hover: #9C7B3D;
    --color-gold-light: #FEEFCD;
    --color-gold-border: #EADEC7;
    --color-bg-cream: #FEEFCD;
    --color-bg-sand: #FEEBC6;
    --color-bg-page: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-text-primary: #000000;
    --color-text-secondary: #5A1110;
    --color-text-muted: #767676;
    --color-border: #E5DFD9;
    --color-border-cream: #EADEC7;
    --color-border-sand: #FEEBC6;
    --color-border-wine: #5A1110;
    --color-success: #2E6F40;
    --color-danger: #C71610;

    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    --shadow-sm: 0 1px 3px rgba(90, 17, 16, 0.05);
    --shadow-md: 0 4px 12px rgba(90, 17, 16, 0.08);
    --shadow-lg: 0 10px 25px rgba(90, 17, 16, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: #FFFFFF;
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-wine);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Utilità tipografia */
.vin-nowrap {
    white-space: nowrap !important;
}

.vin-br-desktop {
    display: inline;
}

@media (min-width: 641px) {
    .vin-br-desktop {
        display: block;
    }
}

@media (max-width: 640px) {
    .vin-br-desktop {
        display: none !important;
    }
}

/* ==========================================================================
   Sommelier Digitale - Teaser Home & CTA Scheda Prodotto (Doc 18 Ottobre 2026)
   ========================================================================== */

/* C2: Teaser in front-page */
.hp-sommelier-teaser {
    padding: 32px 0 16px;
    background: #FFFDF8;
}
.hp-sommelier-teaser-box {
    background-color: #FEEFCD;
    border: 1px solid #EADEC7;
    border-radius: 16px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
@media (max-width: 768px) {
    .hp-sommelier-teaser-box {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 18px;
    }
}
.hp-sommelier-teaser-title {
    font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 400;
    color: #5A1110;
    margin: 0 0 8px 0;
    line-height: 1.15;
}
.hp-sommelier-teaser-text {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: clamp(14px, 1.4vw, 15.5px);
    color: #4A3B39;
    margin: 0;
    line-height: 1.5;
    max-width: 620px;
}
.hp-sommelier-teaser-action {
    flex-shrink: 0;
}

/* C1: CTA in fondo alla Scheda del sommelier su single-product */
.vin-sommelier__cta {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(90, 17, 16, 0.12);
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 14.5px;
    line-height: 1.5;
    color: #554845;
}
.vin-sommelier__cta-link {
    color: #5A1110;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.vin-sommelier__cta-link:hover {
    color: #7a201d;
}

/* Feedback validazione input promo/buoni */
.vinatico-input-error {
    border-color: #B02A37 !important;
    outline: 2px solid rgba(176, 42, 55, 0.25) !important;
    animation: vinaticoShake 0.3s ease-in-out;
}
@keyframes vinaticoShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
