/* Pappa Fresh — Design System (premium restyle). Class contract preserved; fonts via <link> in <head>. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

:root {
    /* Premium palette: refined forest greens + warm terracotta accent */
    --primary-color: #3A7D44;     /* refined medium green (was lime) */
    --primary-dark: #2C5E3A;      /* deep forest — CTAs, links */
    --green-700: #1F4630;         /* darkest */
    --green-50: #EAF1E7;          /* soft green tint */
    --secondary-color: #D9694A;   /* warm terracotta accent */
    --amber-50: #F7E9E2;          /* soft terracotta tint */
    /* Neutrals (warm) */
    --ink: #23302A;               /* deep green-black text */
    --dark: #23302A;
    --muted: #5C665F;
    --gray: #5C665F;
    --bg: #FAF6EF;                /* warm cream page background */
    --light: #EEF3EA;             /* subtle tinted section background */
    --surface: #FFFFFF;
    --white: #FFFFFF;
    --line: #E7E3D9;
    /* Shape & depth */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow: 0 6px 24px rgba(35,48,42,.06);
    --shadow-hover: 0 18px 44px rgba(35,48,42,.12);
    /* Typography: editorial serif display + clean sans UI/body */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-head: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--ink);
}
/* Editorial serif for the large headings (premium food-brand feel) */
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
}
.lead { font-size: 1.2rem; color: var(--muted); }
a { color: var(--primary-dark); }
/* Responsive display sizes (fix oversize headings on smaller viewports/long text) */
.display-1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.display-2 { font-size: clamp(2.3rem, 5.5vw, 3.5rem); }
.display-3 { font-size: clamp(2rem, 5vw, 3rem); }
.display-4 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); font-weight: 700; }
.display-5 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); }

/* Eyebrow label + soft pills (new helpers for conversion sections) */
.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--green-50);
    padding: .35rem .85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}
.pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-pill); padding: .4rem .9rem;
    font-weight: 600; font-size: .9rem; box-shadow: var(--shadow);
}
.pill i { color: var(--primary-dark); }
.benefit-list li { padding: .4rem 0; font-weight: 500; display: flex; align-items: flex-start; }
.benefit-list li i { margin-top: .2rem; }
.rounded-4 { border-radius: var(--radius-lg) !important; }
/* UGC social-proof video wall (real customer clips, muted autoplay loops) */
.ugc-video { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow); background: #0c0c0c; }
.ugc-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Vet-authority video (Dott. Bellei) */
.vet-video video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
    border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #0c0c0c; }
.ugc-video::after { content: ''; position: absolute; inset: auto 0 0 0; height: 38%;
    background: linear-gradient(transparent, rgba(0,0,0,.28)); pointer-events: none; }

/* Navigation */
.navbar {
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(140%) blur(10px);
    box-shadow: 0 1px 0 var(--line);
    padding: .65rem 0;
    position: sticky; top: 0; z-index: 1000;
}
.navbar-brand {
    font-family: var(--font-head);
    font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em;
    color: var(--primary-dark); text-decoration: none;
    display: flex; align-items: center; gap: .5rem;
}
.navbar-brand span { font-family: var(--font-head); }
.navbar-brand:hover { color: var(--green-700); }
.navbar-brand img { height: 36px; width: auto; }
.nav-link {
    font-weight: 600; color: var(--ink);
    padding: .5rem 1rem !important; border-radius: var(--radius-pill);
    transition: all .2s ease; text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--primary-dark); background: var(--green-50); }
.cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--secondary-color); color: var(--ink);
    border-radius: 50%; width: 20px; height: 20px;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.lang-switch {
    cursor: pointer; padding: .2rem .45rem; border-radius: 6px;
    transition: all .2s ease; font-weight: 600; font-size: .9rem; color: var(--muted);
}
.lang-switch:hover { background: var(--light); }
.lang-switch.active { background: var(--primary-color); color: var(--white); }

/* Hero — editorial, warm, premium */
.hero-section {
    background:
        radial-gradient(900px 520px at 88% -20%, rgba(255,255,255,.16), transparent 60%),
        radial-gradient(760px 520px at -5% 120%, rgba(217,105,74,.22), transparent 55%),
        linear-gradient(160deg, var(--primary-dark) 0%, var(--green-700) 100%);
    color: var(--white);
    padding: 5rem 0 5.5rem;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #fff;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
    padding: .4rem .9rem; border-radius: var(--radius-pill); margin-bottom: 1.1rem;
}
.hero-title { font-family: var(--font-display); color: #fff; font-weight: 600;
    font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: -.02em; }
.hero-sub { color: rgba(255,255,255,.92); font-size: 1.15rem; line-height: 1.6; max-width: 34rem; }
.hero-offer li { color: #fff; font-weight: 500; font-size: .9rem;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    padding: .4rem .85rem; border-radius: var(--radius-pill); }
.hero-offer li i { opacity: .9; margin-right: .15rem; }
.hero-media { position: relative; }
.hero-media::before { content: ''; position: absolute; right: -16px; top: -16px;
    width: 148px; height: 148px; background: var(--secondary-color); opacity: .85;
    border-radius: 50%; z-index: 1; }
.hero-img { width: 100%; max-height: 520px; object-fit: cover;
    border-radius: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.30); position: relative; z-index: 2; }

/* Buttons — premium 2026 restyle: tighter proportions, layered depth,
   smooth lift on hover, tactile press, optional sliding arrow. */
.btn {
    --btn-shadow: 0 6px 16px rgba(35,48,42,.14);
    --btn-shadow-hover: 0 12px 28px rgba(35,48,42,.22);
    font-family: var(--font-head);
    font-weight: 700; letter-spacing: -.005em;
    padding: .72rem 1.6rem;
    border-radius: var(--radius-pill);
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .15rem;
    line-height: 1.2; white-space: nowrap; position: relative; isolation: isolate;
    transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease, background-color .2s ease, border-color .2s ease, filter .2s ease;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }

/* Solid fills get a subtle top-light gradient + layered shadow for depth.
   A flat background-color precedes each gradient as a fallback for browsers
   without color-mix() support (the invalid gradient is simply ignored there). */
.btn-primary {
    background-color: var(--primary-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 88%, #fff) 0%, var(--primary-color) 55%, var(--primary-dark) 100%);
    color: var(--white); box-shadow: var(--btn-shadow);
}
.btn-primary:hover { filter: saturate(1.05) brightness(1.02); box-shadow: var(--btn-shadow-hover); color: var(--white); }
.btn-success {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--green-700) 100%);
    color: #fff; box-shadow: var(--btn-shadow);
}
.btn-success:hover { filter: brightness(1.06); box-shadow: var(--btn-shadow-hover); color: #fff; }
.btn-secondary {
    background-color: var(--secondary-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--secondary-color) 86%, #fff) 0%, var(--secondary-color) 52%, #C2573B 100%);
    color: #fff; box-shadow: 0 8px 20px rgba(217,105,74,.28);
}
.btn-secondary:hover { filter: saturate(1.06) brightness(1.02); box-shadow: 0 14px 30px rgba(217,105,74,.38); color: #fff; }
.btn-outline-primary { background: var(--surface); color: var(--primary-dark); border-color: var(--primary-color); box-shadow: 0 3px 10px rgba(35,48,42,.06); }
.btn-outline-primary:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); box-shadow: var(--btn-shadow-hover); }
.btn-outline-secondary { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-outline-secondary:hover { border-color: var(--primary-color); color: var(--primary-dark); }
.btn-light { background: var(--white); color: var(--primary-dark); box-shadow: var(--btn-shadow); }
.btn-light:hover { background: var(--green-50); box-shadow: var(--btn-shadow-hover); }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.08rem; gap: .25rem; }

/* Keyboard focus: clear, high-contrast ring on all buttons */
.btn:focus-visible { outline: 3px solid rgba(44,94,58,.55); outline-offset: 3px; }
.btn-secondary:focus-visible { outline-color: rgba(217,105,74,.6); }

/* Sliding arrow micro-interaction. Opt-in: add .btn-arrow and an .btn-arrow won't
   force an icon — it animates a trailing ▸ that nudges right on hover. */
.btn-arrow::after {
    content: "\2192"; /* → */
    font-weight: 700; margin-left: .15rem;
    transition: transform .22s cubic-bezier(.2,.7,.2,1);
}
.btn-arrow:hover::after { transform: translateX(.28rem); }
/* Nudge any trailing Bootstrap-icon arrow inside a CTA on hover too */
.btn:hover > .bi-arrow-right-circle,
.btn:hover > .bi-arrow-right { transform: translateX(.22rem); transition: transform .22s cubic-bezier(.2,.7,.2,1); }

/* Cards */
/* NB: no global height:100% — that stretched standalone cards to full column height and
   overlapped footers on policy/success pages. Equal-height grids use Bootstrap `h-100`
   (or .product-card/.blog-card, which set their own height). */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: all .25s ease; overflow: hidden; background: var(--surface); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img-top { height: 250px; object-fit: cover; transition: transform .35s ease; }
.product-img-contain { height: 250px; object-fit: contain; background: #fff; padding: .5rem; }
.card:hover .card-img-top { transform: scale(1.04); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.2rem; margin-bottom: .75rem; color: var(--ink); }
.shadow-sm { box-shadow: var(--shadow) !important; }

/* Features */
.feature-box { text-align: center; padding: 2rem 1rem; transition: transform .25s ease; }
.feature-box:hover { transform: translateY(-4px); }
.feature-icon {
    width: 76px; height: 76px; margin: 0 auto 1.25rem;
    background: var(--green-50); color: var(--primary-dark);
    border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.feature-icon i { color: var(--primary-dark); }

/* Forms */
.form-control, .form-select {
    border: 1.5px solid var(--line); border-radius: 12px;
    padding: .8rem 1rem; font-size: 1rem; transition: all .2s ease; background: var(--surface);
}
.form-control:focus, .form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 .2rem rgba(139,195,74,.22); outline: none; }
.form-label { font-weight: 600; margin-bottom: .5rem; color: var(--ink); }

/* Quiz / Calculator */
.calculator-container { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.calculator-step { display: none; }
.calculator-step.active { display: block; animation: fadeIn .35s ease; }
.step-indicator { display: flex; justify-content: center; align-items: center; margin-bottom: 2.5rem; }
.step { display: flex; align-items: center; color: var(--muted); font-weight: 600; }
.step.active { color: var(--primary-dark); }
.step-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); transition: all .2s ease; }
.step.active .step-circle { background: var(--primary-color); color: var(--white); box-shadow: 0 6px 16px rgba(139,195,74,.4); }
.step.completed .step-circle { background: var(--primary-dark); color: var(--white); }
.step-line { width: 90px; height: 3px; background: var(--line); margin: 0 1rem; border-radius: 2px; }

/* Nutrition results */
.nutrition-card { background: linear-gradient(135deg, var(--primary-color) 0%, var(--green-700) 100%); color: var(--white); padding: 2rem; border-radius: var(--radius-lg); margin-top: 2rem; }
.nutrition-metric { text-align: center; padding: 1.5rem; background: rgba(255,255,255,.12); border-radius: 14px; margin-bottom: 1rem; }
.nutrition-value { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; margin-bottom: .25rem; }
.nutrition-label { font-size: .85rem; opacity: .92; }

/* Product grid */
.product-card { cursor: pointer; height: 100%; }
.product-badge { position: absolute; top: 1rem; right: 1rem; background: var(--secondary-color); color: var(--ink); padding: .25rem .75rem; border-radius: var(--radius-pill); font-weight: 700; font-size: .82rem; }
.price-tag { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); margin: 1rem 0; }
.price-old { text-decoration: line-through; color: var(--gray); font-size: 1rem; margin-left: .5rem; }

/* How it works (new) */
.how-step { text-align: center; padding: 1.5rem 1rem; }
.how-num { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--primary-color); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(139,195,74,.35); }

/* Comparison table (new) */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 1rem 1.1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-head); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare .col-pf { background: var(--green-50); }
/* Featured column header: white text was inheriting onto the light-green col-pf bg
   (unreadable). Give the Pappa Fresh header a solid brand-green fill instead. */
.compare thead th.col-pf { background: var(--primary-dark); color: #fff; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--primary-dark); font-weight: 700; }
.compare .no { color: #C0392B; }

/* Ingredient transparency bar (new) */
.ingredient-bar { height: 12px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.ingredient-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--primary-dark)); }

/* Reviews carousel (new) */
.reviews-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.reviews-track::-webkit-scrollbar { height: 6px; }
.reviews-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.review-card { scroll-snap-align: start; min-width: 300px; flex: 0 0 320px; }

/* Sticky mobile CTA (new) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: .65rem 1rem; box-shadow: 0 -6px 24px rgba(38,48,42,.1); }

/* Chat */
.chat-container { max-width: 900px; margin: 0 auto; height: 600px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.chat-header { background: var(--primary-color); color: var(--white); padding: 1.5rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; background: var(--light); }
.message { margin-bottom: 1rem; display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.message.user { justify-content: flex-end; }
.message-content { max-width: 70%; padding: .75rem 1rem; border-radius: 15px; }
.message.bot .message-content { background: var(--surface); border: 1px solid var(--line); }
.message.user .message-content { background: var(--primary-color); color: var(--white); }
.chat-input-container { padding: 1.5rem; background: var(--surface); border-top: 1px solid var(--line); }
.typing-indicator { display: inline-flex; gap: 4px; padding: 1rem; background: var(--surface); border-radius: 15px; border: 1px solid var(--line); }
.typing-dot { width: 8px; height: 8px; background: var(--primary-color); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }

/* Accordion */
.accordion-button:not(.collapsed) { background: var(--green-50); color: var(--primary-dark); }
.accordion-button:focus { box-shadow: none; border-color: var(--primary-color); }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 3.5rem 0 2rem; margin-top: 5rem; }
footer h5 { color: var(--white); margin-bottom: 1.25rem; font-size: 1.15rem; }
footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s ease; }
footer a:hover { color: var(--primary-color); }
footer .list-unstyled li { margin-bottom: .65rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.footer-logo img { height: 34px; }
.social-links { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); }

/* Checkout thumbnails */
.checkout-item-image { width: 40px; height: 40px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }

/* Blog */
.blog-card { height: 100%; transition: transform .25s ease; }
.blog-card:hover { transform: translateY(-4px); }
.blog-meta { color: var(--gray); font-size: .85rem; margin-bottom: .5rem; }
.blog-category { display: inline-block; background: var(--primary-color); color: var(--white); padding: .25rem .75rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; margin-bottom: 1rem; }

/* Testimonials */
.testimonial-card { background: var(--surface); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.testimonial-stars { color: var(--secondary-color); font-size: 1.15rem; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: var(--ink); margin-bottom: 1.25rem; }
.testimonial-author { font-weight: 700; color: var(--primary-dark); }

/* Utilities */
.text-primary { color: var(--primary-dark) !important; }
.text-success { color: var(--primary-dark) !important; }
.text-secondary { color: var(--muted) !important; }
.bg-primary { background: var(--primary-color) !important; }
.bg-secondary { background: var(--secondary-color) !important; }
.bg-light { background: var(--light) !important; }
.bg-dark { background: var(--ink) !important; }
.bg-success { background: var(--primary-dark) !important; }
.section-padding { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.section-title p { color: var(--muted); font-size: 1.1rem; }
.rounded-3 { border-radius: var(--radius-lg) !important; }

/* Cart */
.cart-item { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.cart-item-image { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: 12px; }
.quantity-control { display: flex; align-items: center; gap: 1rem; }
.quantity-btn { width: 35px; height: 35px; border: 2px solid var(--primary-color); background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; }
.quantity-btn:hover { background: var(--primary-color); color: var(--white); }
.order-summary { background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); position: sticky; top: 90px; }

/* Scroll-reveal (used by a tiny IIFE; safe no-op if JS off) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Accessibility */
:focus-visible { outline: 3px solid rgba(139,195,74,.55); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 768px) {
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2rem; }
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.7rem; }
    .hero-section { padding: 3rem 0; text-align: center; }
    .hero-section .ms-auto, .navbar-nav { text-align: center; padding: .5rem 0; }
    .chat-container { height: 500px; }
    .message-content { max-width: 85%; }
    .card-img-top { height: 200px; }
    .step-line { width: 36px; }
    .section-padding { padding: 3.25rem 0; }
    footer { text-align: center; }
    .social-links { justify-content: center; }
    body { padding-bottom: 76px; } /* room for sticky CTA */
}

/* ── 2026 polish: smoother motion + tactile, playful micro-interactions (CSS-only, a11y-safe) ── */
html { scroll-behavior: smooth; }
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { border-color: rgba(58,125,68,.4); }
.feature-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s ease; }
.feature-box:hover .feature-icon { transform: scale(1.07) rotate(-4deg); background: var(--amber-50); } /* playful wobble */
.hero-img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-media:hover .hero-img { transform: translateY(-5px) scale(1.012); }
.pill { transition: transform .2s ease, box-shadow .2s ease; }
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.how-num { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.how-step:hover .how-num { transform: scale(1.08) translateY(-2px); }
.blog-category, .product-badge { transition: transform .2s ease; }
.blog-card:hover .blog-category { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Language switcher + cart: bigger & more visible (founder feedback) ── */
.navbar-nav .nav-item.ms-lg-3 { font-size: 1rem !important; }
.navbar-nav .nav-item.ms-lg-3 a { padding: .15rem .4rem; border-radius: 7px; transition: background .15s ease; }
.navbar-nav .nav-item.ms-lg-3 a:hover { background: var(--green-50); }
.navbar-nav .nav-item.ms-lg-3 a.fw-bold { background: var(--green-50); }
.navbar .nav-link[aria-label="Carrello"] .bi-cart3,
.navbar .nav-link[aria-label="Cart"] .bi-cart3,
.navbar .nav-link[aria-label="Panier"] .bi-cart3 { font-size: 1.5rem; vertical-align: -2px; }

/* ════════════════════════════════════════════════════════════════════
   HOMEPAGE 2026 — premium restyle (Farmer's Dog-inspired: warm, honest,
   big photography, generous whitespace). Additive only.
   ════════════════════════════════════════════════════════════════════ */

/* Hero: secondary text-link CTA + floating trust badge on the photo */
.hero-link {
    display: inline-flex; align-items: center; font-family: var(--font-head);
    font-weight: 600; color: #fff; text-decoration: none; padding: .5rem .25rem;
    border-bottom: 2px solid transparent; transition: border-color .2s ease, opacity .2s ease;
}
.hero-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.7); }
.hero-badge {
    position: absolute; left: -14px; bottom: 22px; z-index: 3;
    display: flex; align-items: center; gap: .65rem;
    background: rgba(255,255,255,.96); color: var(--ink);
    padding: .7rem 1rem; border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0,0,0,.22); backdrop-filter: blur(4px);
    max-width: 78%;
}
.hero-badge-emoji { font-size: 1.5rem; line-height: 1; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: .95rem; line-height: 1.2; }
.hero-badge span { font-size: .78rem; color: var(--muted); }

/* Trust strip — quiet credibility bar right under the hero */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.trust-items {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 1rem 2.2rem; margin: 0;
}
.trust-items li { display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.trust-items li i { color: var(--primary-color); font-size: 1.2rem; }

/* Reusable editorial photo frame (rounded, soft shadow, subtle hover) */
.media-frame {
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
    background: var(--surface); line-height: 0;
}
.media-frame img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    max-height: 480px; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.media-frame:hover img { transform: scale(1.03); }

/* "Come funziona" — photo step cards */
.step-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow); height: 100%;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(58,125,68,.4); }
.step-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-50); }
.step-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.step-card:hover .step-card-media img { transform: scale(1.05); }
.step-card-num {
    position: absolute; left: 14px; top: 14px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--secondary-color); color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(217,105,74,.4);
}
.step-card-body { padding: 1.5rem; }
.step-card-body h5 { margin-bottom: .5rem; }

/* Benefit cards — proteina unica / senza freezer */
.benefit-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.25rem; box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(58,125,68,.4); }
.benefit-icon {
    width: 64px; height: 64px; margin-bottom: 1.25rem; border-radius: 18px;
    background: var(--green-50); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.benefit-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .85rem; }
.benefit-card p { color: var(--muted); margin-bottom: 1.1rem; }

/* Vet video caption */
.vet-video-caption {
    display: block; margin-top: .85rem; font-size: .9rem; color: var(--muted);
    font-weight: 500; text-align: center;
}
.vet-video-caption i { color: var(--primary-color); }

/* Featured testimonial — large pull-quote treatment */
.testimonial-feature { position: relative; padding: 2.5rem 2.5rem 2.25rem; text-align: center; overflow: hidden; }
.testimonial-quote-mark {
    position: absolute; top: -.3rem; left: 1rem; font-size: 5rem; line-height: 1;
    color: var(--green-50); z-index: 0; pointer-events: none;
}
.testimonial-feature > * { position: relative; z-index: 1; }
.testimonial-feature .testimonial-text { font-size: 1.2rem; line-height: 1.6; }
.testimonial-feature .testimonial-stars { font-size: 1.3rem; }

/* Final CTA — warm photo backdrop with green wash overlay */
.final-cta { position: relative; padding: 6rem 0; color: #fff; overflow: hidden; isolation: isolate; }
.final-cta-media { position: absolute; inset: 0; z-index: -2; }
.final-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(160deg, rgba(31,70,48,.92) 0%, rgba(44,94,58,.88) 100%);
}
.final-cta-inner { max-width: 720px; }
.final-cta .hero-eyebrow { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.final-cta h2 { color: #fff; }
.final-cta-note { color: rgba(255,255,255,.85); }

/* Responsive tuning for new homepage blocks */
@media (max-width: 991.98px) {
    .hero-badge { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}
@media (max-width: 768px) {
    .trust-items { gap: .85rem 1.4rem; }
    .trust-items li { font-size: .85rem; }
    .benefit-card { padding: 1.75rem; }
    .testimonial-feature { padding: 2rem 1.5rem; }
    .testimonial-feature .testimonial-text { font-size: 1.08rem; }
    .final-cta { padding: 4rem 0; }
    .media-frame img { max-height: 340px; }
}

/* ════════════════════════════════════════════════════════════════════
   MADE IN ITALY — premium quality signal (refined tricolore, not kitsch)
   ════════════════════════════════════════════════════════════════════ */

/* Thin tricolore hairline used as an elegant accent on badges/cards */
.tricolore-line {
    display: block; height: 3px; width: 100%; border-radius: 2px;
    background: linear-gradient(90deg,
        #2E7D32 0 33.33%, #F4F1EA 33.33% 66.66%, #C62828 66.66% 100%);
}

/* Homepage hero badge — upgrade to a confident Made-in-Italy crest.
   Reuses existing .hero-badge positioning; adds a tricolore edge + flag chip. */
.hero-badge { border: 1px solid rgba(255,255,255,.7); padding: .75rem .95rem .8rem; gap: .7rem; }
.hero-badge::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(180deg, #2E7D32 0 33.33%, #F4F1EA 33.33% 66.66%, #C62828 66.66% 100%);
}
.hero-badge-flag {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; line-height: 1;
    background: var(--green-50); box-shadow: inset 0 0 0 1px var(--line);
}
.hero-badge .hero-badge-emoji { font-size: 1.35rem; }
.hero-badge strong { letter-spacing: .01em; }

/* "Perché italiano" — premium origin band (homepage) */
.italy-band {
    background:
        radial-gradient(640px 360px at 92% -30%, rgba(217,105,74,.10), transparent 60%),
        var(--surface);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.italy-flag-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--green-50); color: var(--primary-dark);
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    padding: .4rem .9rem .4rem .55rem; font-family: var(--font-head);
    font-weight: 700; font-size: .9rem; margin-bottom: 1.1rem;
}
.italy-flag-badge .flag-dot {
    width: 26px; height: 26px; border-radius: 50%; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.italy-points { margin: 0; }
.italy-points li {
    display: flex; gap: .85rem; padding: .65rem 0; align-items: flex-start;
    border-top: 1px solid var(--line);
}
.italy-points li:first-child { border-top: none; }
.italy-points .ip-ico {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-50); color: var(--primary-dark); font-size: 1.25rem;
}
.italy-points h3 { font-family: var(--font-head); font-size: 1.02rem; margin: .1rem 0 .15rem; }
.italy-points p { color: var(--muted); margin: 0; font-size: .96rem; line-height: 1.5; }

/* Product page — "artigianalità italiana" craft strip */
.italy-craft {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(160deg, var(--green-700) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 2.5rem;
}
.italy-craft::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, #2E7D32 0 33.33%, #F4F1EA 33.33% 66.66%, #C62828 66.66% 100%);
}
.italy-craft .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.italy-craft h2 { color: #fff; }
.italy-craft p { color: rgba(255,255,255,.92); }
.italy-craft-points { margin: 1.25rem 0 0; }
.italy-craft-points li {
    display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0;
    color: rgba(255,255,255,.95); font-weight: 500;
}
.italy-craft-points li i { color: #fff; margin-top: .15rem; font-size: 1.1rem; }
.flag-emoji { font-size: 1.5rem; vertical-align: -2px; line-height: 1; }

@media (max-width: 768px) {
    .italy-craft { padding: 1.85rem; }
}

/* ════════════════════════════════════════════════════════════════════
   MOTION — scroll-reveal stagger + gentle hero parallax (a11y-safe)
   ════════════════════════════════════════════════════════════════════ */

/* Per-element reveal variants the IntersectionObserver toggles via .in.
   .reveal already exists above; these add directionality + stagger. */
.reveal-up    { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-left  { opacity: 0; transform: translateX(-26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-right { opacity: 0; transform: translateX(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-up.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }

/* Stagger children (benefit/step grids, stat rows) once the parent reveals */
[data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: .04s; }
[data-stagger].in > *:nth-child(2) { transition-delay: .12s; }
[data-stagger].in > *:nth-child(3) { transition-delay: .20s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .28s; }
[data-stagger].in > *:nth-child(5) { transition-delay: .36s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .44s; }

/* Gentle pointer parallax on the hero photo (JS sets --px/--py in px) */
.hero-media { --px: 0px; --py: 0px; }
.hero-media .hero-img {
    transform: translate3d(var(--px), var(--py), 0);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hero-media:hover .hero-img { transform: translate3d(var(--px), calc(var(--py) - 5px), 0) scale(1.012); }

@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-left, .reveal-right,
    [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hero-media .hero-img { transform: none !important; }
}

/* ── Social proof: real Trustpilot reviews marquee + Instagram UGC (js/social-proof.js) ── */
.pf-reviews-head { margin-bottom: 1.4rem; }
.pf-trust-line { font-size: 1.05rem; }
.pf-stars { color: #00b67a; display: inline-flex; gap: 1px; }
.pf-stars .bi-star { color: #cfd6d0; }
.pf-trust-line .pf-stars { font-size: 1.05rem; vertical-align: -1px; }
.pf-marquee { overflow: hidden; padding: .5rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.pf-track { display: flex; gap: 1.25rem; width: max-content; animation: pf-scroll 72s linear infinite; }
.pf-marquee:hover .pf-track, .pf-marquee:focus-within .pf-track { animation-play-state: paused; }
@keyframes pf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pf-review { flex: 0 0 340px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.4rem; display: flex; flex-direction: column; }
.pf-review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.pf-verified { font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; }
.pf-verified .bi-patch-check-fill { color: #00b67a; }
.pf-review-text { font-size: .94rem; line-height: 1.5; color: var(--ink); flex: 1 1 auto; margin: 0 0 1rem; }
.pf-review-author { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.pf-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-50); color: var(--primary-dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); flex: 0 0 auto; }
.pf-flag { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.pf-ugc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pf-ugc-cell { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.pf-ugc-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.pf-ugc-cell:hover img { transform: scale(1.05); }
.pf-ugc-cell figcaption { position: absolute; inset: auto 0 0 0; padding: .55rem .8rem; font-size: .8rem; font-weight: 600;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; align-items: center; gap: .35rem; }
/* Made in Italy badge — refined premium (founder: "così non ci siamo"); CSS flag (no unreliable emoji) */
.hero-badge { border-radius: 14px; box-shadow: 0 16px 40px rgba(35,48,42,.22); border: 1px solid rgba(255,255,255,.85); padding: .72rem .95rem; }
.hero-badge-flag { width: 32px; height: 32px; border-radius: 50%; font-size: 0;
  background: linear-gradient(90deg, #2E7D32 0 33.33%, #fff 33.33% 66.66%, #C62828 66.66%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.18); }
@media (max-width: 768px) { .pf-review { flex-basis: 285px; } .pf-ugc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pf-track { animation: none; width: 100%; overflow-x: auto; } .pf-marquee { -webkit-mask-image: none; mask-image: none; } }

.pf-disclaimer { font-size: .72rem; margin-top: .55rem; margin-bottom: 0; }

/* Hero Trustpilot — stars + score (immediate "excellence", reliable static badge) */
.hero-trust { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.hero-trust-stars { display: inline-flex; gap: 2px; }
.hero-trust-stars i { background: #00b67a; color: #fff; font-size: .72rem; padding: 3px; border-radius: 3px; line-height: 1; }
.hero-trust-text { color: rgba(255,255,255,.92); font-size: .9rem; }
.hero-trust:hover .hero-trust-text { color: #fff; }

/* Cookie consent banner (GDPR) */
#pf-cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2000; width: min(680px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--white, #fff); color: #2b2b2b; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 12px 34px rgba(0,0,0,.18); border-radius: 16px; padding: 14px 18px; animation: pf-cookie-in .35s ease both; }
@keyframes pf-cookie-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
#pf-cookie .pf-cookie-msg { margin: 0; font-size: .88rem; line-height: 1.45; flex: 1 1 300px; }
#pf-cookie .pf-cookie-msg a { color: var(--primary-dark, #2C5E3A); text-decoration: underline; font-weight: 600; }
#pf-cookie .pf-cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
#pf-cookie button { border-radius: 999px; padding: 9px 20px; font-size: .88rem; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; transition: filter .15s, background .15s; }
#pf-cookie .pf-cookie-reject { background: transparent; border-color: rgba(0,0,0,.22); color: #444; }
#pf-cookie .pf-cookie-reject:hover { background: rgba(0,0,0,.05); }
#pf-cookie .pf-cookie-accept { background: var(--primary-color, #3A7D44); color: #fff; }
#pf-cookie .pf-cookie-accept:hover { filter: brightness(.93); }
@media (max-width: 520px) { #pf-cookie { flex-direction: column; align-items: stretch; bottom: 8px; } #pf-cookie .pf-cookie-msg { flex: 0 0 auto; } #pf-cookie .pf-cookie-actions { justify-content: flex-end; } }
