/* =========================================================
   CIOFFI PIETRA DI TRANI SRL — Restyling "Pietra calda"
   ========================================================= */

:root {
    --stone-bg: #f5f1ea;
    --stone-sand: #ebe4d4;
    --stone-sand-light: #d4c5a9;
    --stone-dark: #3d2f1f;
    --stone-medium: #8a7355;
    --stone-medium-hover: #6e5b42;
    --stone-border: rgba(212, 197, 169, 0.45);
    --stone-border-strong: rgba(212, 197, 169, 0.8);
    --shadow-soft: 0 8px 24px rgba(61, 47, 31, 0.08);
    --shadow-card: 0 14px 36px rgba(61, 47, 31, 0.12);
    --shadow-hover: 0 20px 50px rgba(61, 47, 31, 0.18);
    --font-display: "Playfair Display", "Georgia", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-soft: 14px;
    --radius-strong: 22px;
    --header-height: 78px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--stone-bg);
    color: var(--stone-dark);
    line-height: 1.65;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--stone-medium); color: var(--stone-bg); }

/* =========================================================
   HEADER + NAV
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 241, 234, 0.88);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--stone-border);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(245, 241, 234, 0.95);
    box-shadow: 0 2px 18px rgba(61, 47, 31, 0.06);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: padding 0.3s ease;
}

.site-header.scrolled .nav-container {
    padding: 10px 22px;
}

.brand {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--stone-dark);
    line-height: 1.1;
    text-transform: uppercase;
    display: inline-block;
}

.brand span {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    color: var(--stone-medium);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    gap: 34px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--stone-dark);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 8px 2px;
    position: relative;
    transition: color 0.25s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 1.5px;
    width: 0;
    background: var(--stone-medium);
    transition: width 0.3s ease;
}

.nav-menu a:hover { color: var(--stone-medium); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--stone-medium); }

/* CTA pulsante header */
.nav-cta {
    display: none;
    background: var(--stone-dark);
    color: var(--stone-bg);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--stone-medium);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(138, 115, 85, 0.3);
}

/* HAMBURGER */
.nav-toggle {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--stone-dark);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, background 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* MOBILE OVERLAY */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--stone-bg);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    padding-top: var(--header-height);
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-overlay a {
    font-family: var(--font-display);
    text-decoration: none;
    color: var(--stone-dark);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.nav-overlay a:hover,
.nav-overlay a.active {
    color: var(--stone-medium);
}

.nav-overlay-cta {
    margin-top: 12px;
    background: var(--stone-dark);
    color: var(--stone-bg) !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    padding: 14px 32px !important;
    border-radius: 50px;
    letter-spacing: 0.4px !important;
}

/* =========================================================
   SECTIONS / TYPOGRAPHY
   ========================================================= */
main { display: block; }

section {
    padding: 80px 22px;
    text-align: center;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--stone-dark);
    margin: 0 0 18px;
    line-height: 1.18;
    letter-spacing: 0.2px;
}

h1 { font-size: 36px; font-weight: 400; }
h2 { font-size: 30px; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 16px; }

p {
    font-size: 15.5px;
    color: var(--stone-medium);
    margin: 0 0 14px;
    line-height: 1.7;
}

.lead {
    font-size: 17px;
    color: var(--stone-medium);
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
}

/* Eyebrow / kicker */
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--stone-medium);
    margin-bottom: 18px;
}

/* Alternated sections */
.section-sand { background: var(--stone-sand); }

.section-dark {
    background: var(--stone-dark);
    color: var(--stone-sand-light);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--stone-bg); }
.section-dark p,
.section-dark .lead { color: var(--stone-sand-light); }
.section-dark .eyebrow { color: var(--stone-sand-light); opacity: 0.85; }

/* divider decorative */
.divider {
    display: block;
    width: 60px;
    height: 1.5px;
    background: var(--stone-medium);
    margin: 0 auto 24px;
    opacity: 0.5;
}

/* =========================================================
   HERO + PAGE HEROES
   ========================================================= */
.hero {
    position: relative;
    padding: 140px 22px 120px;
    background:
        linear-gradient(180deg, rgba(245, 241, 234, 0.85) 0%, rgba(245, 241, 234, 0.55) 60%, rgba(245, 241, 234, 0.95) 100%),
        url('/assets/img/bck.webp') center/cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(245, 241, 234, 0.35) 100%);
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
    font-size: 42px;
    color: var(--stone-dark);
    max-width: 880px;
    margin: 14px auto 20px;
    letter-spacing: 0.5px;
}

.hero h1 em {
    font-style: italic;
    color: var(--stone-medium);
}

.hero .lead {
    color: var(--stone-dark);
    opacity: 0.78;
    max-width: 640px;
    font-size: 18px;
}

.page-hero {
    position: relative;
    padding: 130px 22px 90px;
    background:
        linear-gradient(180deg, rgba(245, 241, 234, 0.82) 0%, rgba(245, 241, 234, 0.65) 100%),
        url('/assets/img/bck.webp') center/cover no-repeat;
    overflow: hidden;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: 40px;
    color: var(--stone-dark);
    margin-bottom: 16px;
}

.page-hero .lead {
    color: var(--stone-dark);
    opacity: 0.78;
}

/* "Who" / accent dark section */
.who {
    position: relative;
    background: var(--stone-dark);
    color: var(--stone-sand-light);
    overflow: hidden;
}

.who::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(61, 47, 31, 0.85) 0%, rgba(61, 47, 31, 0.78) 100%),
        url('https://images.unsplash.com/photo-1580687104139-9d51ce55e346?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    z-index: 0;
}

.who > * { position: relative; z-index: 1; }

.who h2 { color: var(--stone-bg); }
.who .lead { color: var(--stone-sand-light); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    margin: 6px 4px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: 0.4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    line-height: 1.3;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--stone-medium-hover);
    color: var(--stone-bg);
}

.btn-primary:hover {
    background: var(--stone-medium);
    box-shadow: 0 12px 26px rgba(138, 115, 85, 0.32);
}

.btn-secondary {
    background-color: var(--stone-medium-hover);
    color: var(--stone-bg);
}

.btn-secondary:hover {
    background: var(--stone-medium);
    box-shadow: 0 12px 26px rgba(138, 115, 85, 0.32);
}

/* Variante per fondo scuro */
.section-dark .btn-secondary,
.who .btn-secondary,
.hero .btn-secondary {
    border-color: var(--stone-sand-light);
    color: var(--stone-bg);
}

.section-dark .btn-secondary:hover,
.who .btn-secondary:hover {
    background: var(--stone-sand-light);
    color: var(--stone-dark);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

/* =========================================================
   GRID SERVIZI (HOME)
   ========================================================= */
.services { padding: 90px 22px; }

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.card {
    border-radius: var(--radius-strong);
    overflow: hidden;
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    text-align: left;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61, 47, 31, 0.05) 0%, rgba(61, 47, 31, 0.78) 100%);
    z-index: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before { opacity: 0.92; }

.card h3, .card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--stone-bg);
}

.card h3 {
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.card p {
    color: rgba(245, 241, 234, 0.9);
    font-size: 14px;
}

/* IMMAGINI CARD (immutate) */
.a { background-image: url('https://plus.unsplash.com/premium_photo-1670672896805-e0831ce60872?auto=format&fit=crop&w=900&q=80'); }
.b { background-image: url('https://plus.unsplash.com/premium_photo-1672738031059-6051741aa705?auto=format&fit=crop&w=900&q=80'); }
.c { background-image: url('https://plus.unsplash.com/premium_photo-1676031141731-f7217e62a7bb?auto=format&fit=crop&w=900&q=80'); }
.d { background-image: url('https://images.unsplash.com/photo-1631832724508-ea8df04ad455?auto=format&fit=crop&w=900&q=80'); }
.e { background-image: url('https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80'); }
.f { background-image: url('https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=900&q=80'); }
.g { background-image: url('https://images.unsplash.com/photo-1597262975002-c5c3b14bbd62?auto=format&fit=crop&w=900&q=80'); }
.h { background-image: url('https://images.unsplash.com/photo-1588854337115-1c67d9247e4d?auto=format&fit=crop&w=900&q=80'); }
.i { background-image: url('https://images.unsplash.com/photo-1560185127-6ed189bf02f4?auto=format&fit=crop&w=900&q=80'); }
.l { background-image: url('https://plus.unsplash.com/premium_photo-1670728879126-c46947df90cd?auto=format&fit=crop&w=900&q=80'); }
.m { background-image: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=900&q=80'); }
.n { background-image: url('https://images.unsplash.com/photo-1615874959474-d609969a20ed?auto=format&fit=crop&w=900&q=80'); }

/* =========================================================
   STATS (numeri chiave)
   ========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.stat {
    padding: 28px 18px;
    background: var(--stone-bg);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-soft);
    text-align: center;
}

.section-dark .stat {
    background: rgba(245, 241, 234, 0.06);
    border-color: rgba(212, 197, 169, 0.25);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--stone-dark);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.section-dark .stat-num { color: var(--stone-bg); }

.stat-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stone-medium);
}

.section-dark .stat-label { color: var(--stone-sand-light); }

/* =========================================================
   PROCESSO (come lavoriamo)
   ========================================================= */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: left;
}

.step {
    background: var(--stone-bg);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-soft);
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.section-sand .step { background: var(--stone-bg); }

.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--stone-border-strong);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--stone-dark);
    color: var(--stone-bg);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 16px;
}

.step h3 {
    color: var(--stone-dark);
    margin-bottom: 10px;
    font-size: 20px;
}

.step p { color: var(--stone-medium); }

/* =========================================================
   CHI SIAMO — VALORI
   ========================================================= */
.values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 40px auto 0;
    text-align: left;
}

.value {
    background: var(--stone-bg);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-soft);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.value h3 {
    color: var(--stone-dark);
    font-size: 19px;
    margin-bottom: 10px;
}

.value p { color: var(--stone-medium); }

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--stone-sand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--stone-dark);
    font-family: var(--font-display);
    font-size: 20px;
}

/* =========================================================
   SERVIZI DETTAGLIO
   ========================================================= */
.service-detail {
    border-radius: var(--radius-strong);
    overflow: hidden;
    background: var(--stone-bg);
    border: 1px solid var(--stone-border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-detail .img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-detail .img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(61, 47, 31, 0.25) 100%);
}

.service-detail .body {
    padding: 26px;
    text-align: left;
}

.service-detail h3 {
    color: var(--stone-dark);
    margin-bottom: 10px;
    font-size: 21px;
}

.service-detail p { color: var(--stone-medium); }

.service-detail .feat-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.service-detail .feat-list li {
    font-size: 13.5px;
    color: var(--stone-medium);
    padding: 4px 0 4px 22px;
    position: relative;
}

.service-detail .feat-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 1.5px;
    background: var(--stone-medium);
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 1100px;
    margin: 40px auto 0;
    text-align: left;
}

.contact-card {
    background: var(--stone-bg);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-soft);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-sand .contact-card { background: var(--stone-bg); }

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.contact-card h3 {
    color: var(--stone-dark);
    font-size: 19px;
    margin-bottom: 12px;
}

.contact-card p { color: var(--stone-medium); }

.contact-card a {
    color: var(--stone-dark);
    text-decoration: none;
    border-bottom: 1px dashed var(--stone-medium);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-card a:hover {
    color: var(--stone-medium);
    border-bottom-color: var(--stone-medium);
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--stone-sand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--stone-dark);
    margin-bottom: 14px;
}

.map-wrap {
    margin-top: 40px;
    border-radius: var(--radius-strong);
    overflow: hidden;
    border: 1px solid var(--stone-border);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-card);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.15) sepia(0.08);
}

/* =========================================================
   FORM
   ========================================================= */
form {
    max-width: 680px;
    margin: 30px auto 0;
    text-align: left;
    background: var(--stone-bg);
    padding: 36px;
    border-radius: var(--radius-strong);
    border: 1px solid var(--stone-border);
    box-shadow: var(--shadow-card);
}

label {
    display: block;
    font-size: 12px;
    color: var(--stone-medium);
    margin: 16px 0 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--stone-border-strong);
    background: #fbf8f2;
    color: var(--stone-dark);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(138, 115, 85, 0.55);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--stone-medium);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(138, 115, 85, 0.15);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.divsend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
}

.buttona, .buttonb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.4px;
    font-family: inherit;
    transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.buttona {
    background: #25D366;
    color: #fff;
}

.buttona:hover {
    background: #1eb858;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

.buttonb {
    background: var(--stone-dark);
    color: var(--stone-bg);
}

.buttonb:hover {
    background: var(--stone-medium);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(138, 115, 85, 0.3);
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta {
    background: var(--stone-sand);
    padding: 90px 22px;
}

.cta h2 {
    color: var(--stone-dark);
    font-size: 32px;
    margin-bottom: 16px;
}

.cta .lead { color: var(--stone-medium); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--stone-dark);
    color: var(--stone-sand-light);
    padding: 70px 22px 30px;
    font-size: 14px;
    border-top: 1px solid var(--stone-medium);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--stone-bg);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 4px;
    font-weight: 400;
}

.footer-tagline {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--stone-sand-light);
    opacity: 0.7;
    margin: 0 0 16px;
}

.footer-col h4 {
    color: var(--stone-bg);
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px;
    font-weight: 600;
}

.footer-col p {
    color: var(--stone-sand-light);
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.85;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: var(--stone-sand-light);
    text-decoration: none;
    transition: color 0.25s ease;
    opacity: 0.9;
    display: grid;
}

.footer-col a:hover { color: var(--stone-bg); opacity: 1; }

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 197, 169, 0.2);
    font-size: 12px;
    color: var(--stone-sand-light);
    text-align: center;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.floating-wa,
.floating-call {
    position: fixed;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(61, 47, 31, 0.25);
    z-index: 900;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-wa {
    right: 22px;
    background: #25D366;
    color: #fff;
}

.floating-call {
    left: 22px;
    background: var(--stone-dark);
    color: var(--stone-bg);
}

.floating-wa:hover,
.floating-call:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(61, 47, 31, 0.32);
}

@media (min-width: 768px) {
    .floating-call { display: none; }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--stone-bg);
    border-top: 1px solid var(--stone-border-strong);
    padding: 22px 22px;
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -12px 36px rgba(61, 47, 31, 0.12);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-text {
    font-size: 13.5px;
    color: var(--stone-medium);
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--stone-dark);
    text-decoration: underline;
    text-decoration-color: var(--stone-medium);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-actions button {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    letter-spacing: 0.4px;
    transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.cookie-actions button:hover { transform: translateY(-1px); }

.cookie-accept {
    background: var(--stone-dark);
    color: var(--stone-bg);
}

.cookie-accept:hover { background: var(--stone-medium); }

.cookie-decline {
    background: transparent;
    color: var(--stone-dark);
    border-color: var(--stone-dark) !important;
}

.cookie-decline:hover {
    background: var(--stone-dark);
    color: var(--stone-bg);
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
    padding: 20px 0;
}

.legal h2 {
    margin-top: 42px;
    font-size: 24px;
    color: var(--stone-dark);
}

.legal h2:first-child { margin-top: 0; }

.legal p, .legal li {
    color: var(--stone-medium);
    font-size: 15px;
    line-height: 1.75;
}

.legal strong { color: var(--stone-dark); }

.legal ul {
    padding-left: 22px;
}

.legal li { margin-bottom: 6px; }

.legal a {
    color: var(--stone-dark);
    text-decoration: underline;
    text-decoration-color: var(--stone-medium);
}

/* =========================================================
   CATALOGO PRODOTTI
   ========================================================= */
.products { padding: 70px 22px 90px; text-align: left; }

.filters {
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    background: rgba(245, 241, 234, 0.92);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-soft);
    padding: 18px 18px;
    margin: 0 auto 36px;
    box-shadow: var(--shadow-soft);
}

.filter-field { display: flex; flex-direction: column; gap: 6px; }

.filter-field label {
    margin: 0;
    font-size: 11px;
    color: var(--stone-medium);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 500;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--stone-border-strong);
    background: #fbf8f2;
    color: var(--stone-dark);
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.filter-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--stone-medium) 50%),
        linear-gradient(135deg, var(--stone-medium) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
    cursor: pointer;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--stone-medium);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(138, 115, 85, 0.15);
}

.filter-meta {
    align-self: center;
    font-size: 12.5px;
    color: var(--stone-medium);
    letter-spacing: 0.3px;
    padding: 4px 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.product-card {
    background: var(--stone-bg);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--stone-border-strong);
}

.product-card .product-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--stone-sand);
    overflow: hidden;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.product-card:hover .product-img img { transform: scale(1.04); }

.product-card .product-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(61, 47, 31, 0.18) 100%);
    pointer-events: none;
}

.product-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-cat {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stone-medium);
    line-height: 1.4;
}

.product-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--stone-dark);
    font-size: 19px;
    line-height: 1.3;
    margin: 0;
}

.product-details {
    font-size: 13.5px;
    color: var(--stone-medium);
    line-height: 1.55;
    margin: 0;
}

.product-price {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--stone-dark);
    line-height: 1.2;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.product-wa {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 50px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.product-wa:hover {
    background: #1eb858;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.32);
}

.product-wa svg { flex-shrink: 0; }

.product-skeleton {
    background: linear-gradient(90deg, var(--stone-sand) 0%, #f0e9d8 50%, var(--stone-sand) 100%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border-radius: var(--radius-strong);
    min-height: 360px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.no-results {
    text-align: center;
    padding: 60px 22px;
    color: var(--stone-medium);
    font-size: 16px;
    background: var(--stone-sand);
    border-radius: var(--radius-soft);
    margin: 20px 0 0;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

@media (min-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .filters {
        grid-template-columns: 2fr 1.4fr 1.2fr auto;
        gap: 18px;
        padding: 18px 22px;
    }
    .filter-meta { text-align: right; }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

/* =========================================================
   FADE IN ON SCROLL
   ========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 768px) {
    section { padding: 110px 26px; }

    h1 { font-size: 54px; }
    h2 { font-size: 38px; }
    h3 { font-size: 22px; }
    p  { font-size: 16px; }

    .hero { padding: 170px 26px 140px; }
    .hero h1 { font-size: 60px; }
    .hero .lead { font-size: 19px; }

    .page-hero { padding: 150px 26px 100px; }
    .page-hero h1 { font-size: 52px; }

    .cta h2 { font-size: 42px; }

    .nav-menu { display: flex; }
    .nav-toggle { display: none; }
    .nav-cta { display: inline-flex; align-items: center; }

    .brand { font-size: 24px; }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .steps,
    .values,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats { grid-template-columns: repeat(4, 1fr); }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .divsend { flex-direction: row; }

    .buttona, .buttonb { flex: 1; }

    .cookie-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-actions { flex: 0 0 auto; }
    .cookie-actions button { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
    .services .grid { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}


/* =========================================================
   INTEGRAZIONE SITO CIOFFI — compatibilità pagine esistenti
   ========================================================= */

/* Accessibilità */
.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 2000;
    background: var(--stone-dark);
    color: var(--stone-bg);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* Header integrato */
.desktop-nav { display: none; }
.nav-cta.cart-link .cart-count,
.cart-filter-btn span {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 241, 234, 0.18);
    font-size: 12px;
}
.nav-overlay .cart-count {
    font-family: var(--font-body);
    font-size: 13px;
    margin-left: 8px;
}
.overlay-categories {
    width: min(92vw, 680px);
    margin-top: 14px;
    text-align: center;
}
.overlay-categories strong {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stone-medium);
}
.overlay-categories [data-category-menu] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.overlay-categories [data-category-menu] a {
    font-family: var(--font-body);
    font-size: 12px;
    border: 1px solid var(--stone-border-strong);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--stone-sand);
}
.overlay-categories small { opacity: .75; }

/* Sezioni del sito base */
.section { padding: 90px 22px; }
.section-head { max-width: 850px; margin: 0 auto 34px; text-align: center; }
.narrow { max-width: 860px; margin: 0 auto; }
.compact { padding-top: 50px; padding-bottom: 50px; }

.hero-content { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-panel {
    max-width: 920px;
    margin: 46px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    background: rgba(245, 241, 234, 0.72);
    box-shadow: var(--shadow-soft);
}
.hero-panel strong {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--stone-dark);
}
.hero-panel span {
    color: var(--stone-medium);
    font-size: 14px;
}

.category-grid,
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1180px;
    margin: 34px auto 0;
}
.category-card {
    display: block;
    padding: 28px;
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    background: var(--stone-bg);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--stone-border-strong);
}
.category-card span {
    display: block;
    font-family: var(--font-display);
    font-size: 23px;
    color: var(--stone-dark);
    margin-bottom: 8px;
}
.category-card small {
    color: var(--stone-medium);
    font-size: 14px;
    line-height: 1.55;
}

.category-summary {
    max-width: 1180px;
    margin: 34px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.category-chip {
    text-decoration: none;
    border: 1px solid var(--stone-border);
    background: rgba(245,241,234,.78);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--stone-dark);
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.category-chip:hover {
    transform: translateY(-2px);
    border-color: var(--stone-border-strong);
    background: var(--stone-sand);
}
.category-chip strong { font-size: 13px; font-weight: 600; }
.category-chip small { margin-left: 8px; color: var(--stone-medium); font-size: 12px; }

.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 22px;
    text-align: left;
}
.quote-box {
    padding: 30px;
    border-radius: var(--radius-strong);
    background: var(--stone-sand);
    border: 1px solid var(--stone-border);
    box-shadow: var(--shadow-soft);
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--stone-medium);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--stone-dark);
    font-weight: 700;
}
.text-link {
    color: var(--stone-dark);
    text-decoration: underline;
    text-decoration-color: var(--stone-medium);
}

/* Catalogo adattato al CSS allegato */
.products .container { max-width: 1280px; }
.catalog-info,
.filter-meta {
    color: var(--stone-medium);
    font-size: 14px;
}
.product-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.product-cart {
    width: 100%;
    margin: 0;
}
.product-wa { width: 100%; }
.product-wa::before {line-height: 1; }
.product-cat a {
    color: inherit;
    text-decoration: none;
}
.product-cat a:hover { text-decoration: underline; }
.cart-filter-btn {
    align-self: end;
    margin: 0;
    white-space: nowrap;
}

/* Compatibilità per eventuali blocchi legacy */
.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 22px 90px;
    text-align: left;
}
.catalog-sidebar {
    background: var(--stone-sand);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}
.filter-list {
    display: grid;
    gap: 8px;
    max-height: 46vh;
    overflow: auto;
    margin-bottom: 20px;
}
.filter-btn {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px 10px calc(12px + (var(--level, 0) * 14px));
    border: 1px solid var(--stone-border);
    background: var(--stone-bg);
    border-radius: 12px;
    color: var(--stone-dark);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--stone-dark);
    color: var(--stone-bg);
}
.filter-btn small { opacity: .8; }
.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--stone-border-strong);
    background: #fbf8f2;
    color: var(--stone-dark);
    font-family: inherit;
    margin-bottom: 14px;
}
.btn-full { width: 100%; }

/* Carrello e ordine */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 22px;
    text-align: left;
}
.cart-items {
    display: grid;
    gap: 18px;
}
.cart-item {
    background: var(--stone-bg);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}
.cart-item-header {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 16px;
    align-items: start;
}
.cart-thumb {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--stone-sand);
}
.cart-item-header .btn { grid-column: 1 / -1; }
.qty-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}
.order-form { margin: 0; max-width: none; }
.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.checkbox {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 18px;
    color: var(--stone-medium);
}
.checkbox input {
    width: auto;
    margin-top: 5px;
}
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.form-status {
    margin-top: 14px;
    color: var(--stone-medium);
    font-weight: 500;
}
.btn-light {
    background: var(--stone-sand);
    color: var(--stone-dark);
    border-color: var(--stone-border-strong);
}
.btn-light:hover {
    background: var(--stone-dark);
    color: var(--stone-bg);
}

/* Mappa caricata su click */
.map-placeholder {
    min-height: 320px;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--stone-sand);
    color: var(--stone-medium);
    text-align: center;
}
.map-placeholder iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
}

/* Adeguamento footer vecchi h2 */
.footer-col h2 {
    color: var(--stone-bg);
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px;
    font-weight: 600;
}

/* Floating WA con testo leggibile */
.floating-wa {
    width: auto;
    min-width: 56px;
    padding: 0 18px;
    border-radius: 999px;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive integrazione */
@media (min-width: 768px) {
    .desktop-nav { display: block; }
    .hero-panel { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .category-grid,
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .split-section { grid-template-columns: 1.2fr .8fr; align-items: center; }
    .product-actions { grid-template-columns: 1fr 1fr; }
    .cart-item-header { grid-template-columns: 96px 1fr auto; }
    .cart-thumb { width: 96px; height: 96px; }
    .cart-item-header .btn { grid-column: auto; }
    .checkout-layout { grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
}
@media (min-width: 1024px) {
    .category-grid,
    .service-grid { grid-template-columns: repeat(3, 1fr); }
    .catalog-layout { grid-template-columns: 300px 1fr; }
    .catalog-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 20px);
        align-self: start;
    }
}


/* Compatibilità schede prodotto statiche/noscript */
.product-card-media .product-thumb,
.product-thumb {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--stone-sand);
    overflow: hidden;
}
.product-card-media .product-thumb img,
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.product-card-body .meta,
.meta {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stone-medium);
    line-height: 1.4;
}
.product-card-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--stone-dark);
    font-size: 19px;
    line-height: 1.3;
    margin: 0;
}
.product-card-body .price,
.price {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--stone-dark);
    line-height: 1.2;
    margin-top: 4px;
    letter-spacing: 0.3px;
}
.product-cart.is-added {
    background: var(--stone-medium);
}


/* =========================================================
   Ottimizzazioni mobile, popup prodotto e sezione video
   ========================================================= */
body.modal-open {
    overflow: hidden;
}

.product-card {
    cursor: pointer;
}
.product-card:focus-visible {
    outline: 3px solid rgba(138, 115, 85, 0.35);
    outline-offset: 4px;
}
.product-card .product-actions {
    cursor: default;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.product-modal.is-open {
    display: flex;
}
.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 18, 14, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.product-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    background: var(--stone-bg);
    border: 1px solid var(--stone-border-strong);
    border-radius: 28px;
    box-shadow: 0 26px 80px rgba(22, 18, 14, 0.34);
}
.product-modal-close {
    position: sticky;
    top: 14px;
    left: calc(100% - 58px);
    z-index: 2;
    width: 42px;
    height: 42px;
    margin: 14px 14px -56px auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--stone-border-strong);
    border-radius: 50%;
    background: rgba(245, 241, 234, 0.94);
    color: var(--stone-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.product-modal-close:hover {
    transform: scale(1.05);
    background: var(--stone-dark);
    color: var(--stone-bg);
}
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
}
.product-modal-media {
    background: var(--stone-sand);
    aspect-ratio: 4 / 3;
}
.product-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-modal-body {
    padding: 28px;
    text-align: left;
}
.product-modal-body h2 {
    margin-top: 4px;
    font-size: 30px;
}
.product-modal-body p {
    color: var(--stone-medium);
}
.product-modal-actions {
    margin-top: 22px;
}

/* Sezione video */
.video-section {
    padding: 90px 22px;
    text-align: center;
}
.video-grid {
    max-width: 1180px;
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.video-card {
    overflow: hidden;
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    background: var(--stone-bg);
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.video-card video {
    width: 100%;
    aspect-ratio: auto;
    display: block;
    background: var(--stone-dark);
    object-fit: cover;
}
.video-body {
    padding: 24px;
}
.video-body h3 {
    margin-bottom: 8px;
}
.video-body p {
    margin-bottom: 0;
}

/* Pulsante carica altri */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

/* Responsive più leggibile da telefono */
@media (max-width: 767px) {
    :root { --header-height: 64px; }

    body {
        line-height: 1.55;
    }

    .skip-link {
        display: none;
    }

    .site-header {
        background: rgba(245, 241, 234, 0.96);
    }

    .nav-container {
        min-height: var(--header-height);
        padding: 10px 14px;
        gap: 10px;
    }

    .brand {
        max-width: 190px;
        font-size: 17px;
        letter-spacing: 1.2px;
    }

    .brand span {
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .nav-cta.cart-link {
        display: inline-flex;
        padding: 9px 12px;
        font-size: 0;
        margin-left: auto;
        min-width: 44px;
        height: 42px;
        align-items: center;
        justify-content: center;
    }

    .nav-cta.cart-link::before {
        content: "Carrello";
        font-size: 12px;
    }

    .cart-count {
        margin-left: 5px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--stone-medium);
        color: var(--stone-bg);
        font-size: 11px;
        line-height: 1;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .nav-overlay {
        gap: 18px;
        padding: 94px 22px 32px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav-overlay a {
        font-size: 23px;
    }

    .nav-overlay-cta {
        font-size: 14px !important;
        padding: 12px 24px !important;
    }

    section,
    .section,
    .services,
    .cta,
    .video-section {
        padding: 56px 16px;
    }

    .hero {
        padding: 86px 16px 62px;
        text-align: left;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.12;
        margin-left: 0;
        margin-right: 0;
    }

    .hero .lead {
        font-size: 16px;
        margin-left: 0;
        margin-right: 0;
    }

    .btn-group {
        justify-content: flex-start;
    }

    .btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 13px 18px;
    }

    .hero-panel {
        margin-top: 28px;
        padding: 20px;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .page-hero {
        padding: 78px 16px 44px;
    }

    .page-hero h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .page-hero .lead,
    .lead {
        font-size: 15.5px;
    }

    .category-summary {
        margin: 22px -16px 0;
        padding: 0 16px 8px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .category-chip {
        flex: 0 0 auto;
        max-width: 260px;
        scroll-snap-align: start;
        padding: 9px 12px;
    }

    .category-chip small {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    .category-grid,
    .service-grid,
    .values,
    .steps,
    .contact-grid,
    .video-grid,
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .category-card,
    .service-detail,
    .value,
    .step,
    .contact-card,
    .quote-box,
    .cart-item,
    form {
        border-radius: 18px;
        padding: 22px;
    }

    .split-section,
    .checkout-layout {
        padding: 56px 16px;
        gap: 20px;
    }

    .filters {
        position: static;
        margin-bottom: 24px;
        padding: 14px;
        border-radius: 18px;
    }

    .filter-field input,
    .filter-field select,
    input,
    textarea {
        font-size: 16px;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-body {
        padding: 18px;
    }

    .product-name {
        font-size: 20px;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-wa,
    .product-cart {
        min-height: 46px;
    }

    .cart-item-header {
        grid-template-columns: 68px 1fr;
        gap: 12px;
    }

    .cart-thumb {
        width: 68px;
        height: 68px;
        border-radius: 12px;
    }

    .cart-item-header .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .map-placeholder {
        min-height: 240px;
    }

    .floating-wa {
        right: 14px;
        bottom: 14px;
        padding: 0 14px;
        height: 50px;
    }

    .floating-call {
        left: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }

    .cookie-banner {
        padding: 16px;
    }

    .product-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .product-modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 24px 24px 0 0;
    }

    .product-modal-close {
        top: 10px;
        width: 40px;
        height: 40px;
        margin: 10px 10px -50px auto;
    }

    .product-modal-body {
        padding: 22px;
    }

    .product-modal-body h2 {
        font-size: 25px;
    }

    .product-modal-actions .btn,
    .product-modal-actions .product-wa {
        width: 100%;
    }

    .video-body {
        padding: 18px;
    }
}

@media (min-width: 768px) {
    .product-modal-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
        align-items: stretch;
    }
    .product-modal-media {
        min-height: 520px;
        aspect-ratio: auto;
    }
    .product-modal-body {
        padding: 44px 40px;
        align-self: center;
    }
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   MOBILE ONLY — header e menu a schermo intero
   ========================================================= */
@media (max-width: 767px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-header {
        width: 100%;
        background: rgba(245, 241, 234, 0.98);
        box-shadow: 0 2px 18px rgba(61, 47, 31, 0.08);
    }

    .nav-container {
        min-height: var(--header-height);
        width: 100%;
        padding: 10px 12px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 8px;
    }

    .brand {
        min-width: 0;
        max-width: none;
        font-size: clamp(15px, 4.7vw, 18px);
        letter-spacing: 1px;
        line-height: 1.05;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .brand span {
        font-size: 8.5px;
        letter-spacing: 1.35px;
        margin-top: 3px;
        white-space: nowrap;
    }

    .nav-cta.cart-link {
        display: inline-flex;
        min-width: 0;
        height: 40px;
        margin-left: 0;
        padding: 0 10px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        white-space: nowrap;
        box-shadow: none;
    }

    .nav-cta.cart-link::before {
        content: "Carrello";
        font-size: 11px;
        line-height: 1;
    }

    .cart-count {
        min-width: 19px;
        height: 19px;
        margin-left: 5px;
        padding: 0 5px;
        font-size: 10.5px;
    }

    .nav-toggle {
        position: relative;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 1px solid var(--stone-border);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.34);
        box-shadow: 0 6px 18px rgba(61, 47, 31, 0.08);
    }

    .nav-toggle span {
        width: 22px;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        padding:
            calc(var(--header-height) + env(safe-area-inset-top) + 18px)
            16px
            calc(24px + env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        background:
            radial-gradient(circle at 20% 0%, rgba(212, 197, 169, 0.34), transparent 38%),
            linear-gradient(180deg, #f8f4ec 0%, var(--stone-bg) 48%, var(--stone-sand) 100%);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-overlay a {
        width: 100%;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 16px;
        border: 1px solid var(--stone-border-strong);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.42);
        box-shadow: 0 8px 22px rgba(61, 47, 31, 0.07);
        color: var(--stone-dark);
        font-family: var(--font-body);
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0.2px;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
    }

    .nav-overlay a:not(.nav-overlay-cta)::after {
        content: "›";
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--stone-sand);
        color: var(--stone-medium);
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
    }

    .nav-overlay a:hover,
    .nav-overlay a.active {
        color: var(--stone-dark);
        border-color: var(--stone-medium);
        background: rgba(235, 228, 212, 0.86);
    }

    .nav-overlay-cta {
        margin-top: 4px;
        min-height: 56px;
        justify-content: center !important;
        background: var(--stone-dark) !important;
        border-color: var(--stone-dark) !important;
        color: var(--stone-bg) !important;
        font-family: var(--font-body) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 15px 18px !important;
        border-radius: 999px !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 12px 28px rgba(61, 47, 31, 0.22);
    }

    .nav-overlay .cart-count {
        background: var(--stone-medium);
        color: var(--stone-bg);
        margin-left: 8px;
    }

    .desktop-nav,
    .nav-menu {
        display: none !important;
    }
}

@media (max-width: 390px) {
    .nav-container {
        padding-inline: 10px;
        gap: 6px;
    }

    .brand {
        font-size: 15px;
        letter-spacing: 0.8px;
    }

    .brand span {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .nav-cta.cart-link {
        height: 38px;
        padding-inline: 9px;
    }

    .nav-cta.cart-link::before {
        font-size: 10.5px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

@media (max-width: 767px) and (max-height: 620px) {
    .nav-overlay {
        gap: 7px;
        padding:
            calc(var(--header-height) + env(safe-area-inset-top) + 10px)
            14px
            calc(16px + env(safe-area-inset-bottom));
    }

    .nav-overlay a {
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 15px;
        font-size: 16px;
    }

    .nav-overlay a:not(.nav-overlay-cta)::after {
        width: 23px;
        height: 23px;
        font-size: 19px;
    }

    .nav-overlay-cta {
        min-height: 48px;
        padding: 11px 16px !important;
        font-size: 15px !important;
    }
}

/* =========================================================
   Pagine dettaglio prodotto + gallery immagini multiple
   ========================================================= */
.product-detail-hero {
    padding-bottom: 70px;
}
.product-detail-section {
    padding-top: 70px;
}
.product-detail-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
}
.detail-gallery {
    display: grid;
    gap: 14px;
}
.detail-main-img {
    background: var(--stone-sand);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.detail-main-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.detail-thumbs a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--stone-border);
    background: var(--stone-sand);
}
.detail-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .25s ease;
}
.detail-thumbs a:hover img {
    transform: scale(1.05);
}
.detail-info {
    background: rgba(255,255,255,.35);
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}
.detail-info h2 {
    margin-top: 6px;
}
.detail-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 8px;
}
.detail-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-border);
}
.product-detail-actions {
    margin-top: 22px;
}
.small-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--stone-medium);
}
.related-grid {
    max-width: 1180px;
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.related-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-soft);
    background: var(--stone-bg);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.related-card span {
    color: var(--stone-medium);
}
.product-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    aspect-ratio: auto;
}
.product-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.product-gallery {
    grid-template-columns: repeat(4, 1fr);
}
.product-gallery img:first-child {
    grid-column: 1 / -1;
}
.product-gallery img:not(:first-child) {
    display: block;
    aspect-ratio: 1 / 1;
}
.product-modal-variants {
    margin-top: 24px;
}
.variant-list {
    display: grid;
    gap: 8px;
}
.variant-list a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-border);
    text-decoration: none;
}
.bank-box {
    max-width: 820px;
    margin: 34px auto 0;
    padding: 24px;
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    background: rgba(255,255,255,.4);
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.bank-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
}
.bank-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-border);
}
.product-name a,
.product-img {
    text-decoration: none;
}
@media (min-width: 700px) {
    .detail-thumbs {
        grid-template-columns: repeat(5, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 980px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    }
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-modal-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   PATCH MOBILE — video section + menu mobile premium
   ========================================================= */

/* Video section: struttura più solida su desktop e mobile */
.video-section {
    position: relative;
    overflow: hidden;
}

.video-head {
    max-width: 860px;
}

.video-grid {
    align-items: stretch;
}

.video-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(212, 197, 169, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 241, 234, 0.96)),
        var(--stone-bg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 115, 85, 0.55);
    box-shadow: var(--shadow-hover);
}

.video-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-strong) var(--radius-strong) 0 0;
    background: var(--stone-dark);
}

.video-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(61, 47, 31, 0.28));
}

.video-card video {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--stone-dark);
}

.video-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.video-kicker {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid var(--stone-border-strong);
    border-radius: 999px;
    background: rgba(235, 228, 212, 0.72);
    color: var(--stone-medium);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.video-body h3 {
    margin: 0;
    line-height: 1.18;
}

.video-body p {
    margin: 0;
}

.video-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stone-medium-hover);
    font-weight: 700;
    text-decoration: none;
}

.video-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.video-link:hover::after {
    transform: translateX(3px);
}

.video-mobile-hint {
    display: none;
}

/* Menu mobile: overlay più ordinato e leggibile */
.nav-overlay-panel,
.nav-overlay-links,
.nav-overlay-actions {
    width: 100%;
}

.nav-overlay-head,
.nav-overlay-actions {
    display: none;
}

@media (max-width: 767px) {
    .nav-toggle {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 241, 234, 0.62));
        border-color: rgba(138, 115, 85, 0.28);
    }

    .nav-toggle::after {
        content: "Menu";
        position: absolute;
        left: 50%;
        top: calc(100% + 2px);
        transform: translateX(-50%);
        color: var(--stone-medium);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1;
        text-transform: uppercase;
        opacity: 0.92;
    }

    .nav-toggle.is-open::after {
        content: "Chiudi";
    }

    .nav-overlay {
        padding:
            calc(var(--header-height) + env(safe-area-inset-top) + 14px)
            14px
            calc(18px + env(safe-area-inset-bottom));
        align-items: center;
        gap: 0;
        background:
            radial-gradient(circle at 18% 4%, rgba(212, 197, 169, 0.45), transparent 34%),
            radial-gradient(circle at 88% 18%, rgba(138, 115, 85, 0.18), transparent 28%),
            linear-gradient(180deg, #fbf8f1 0%, var(--stone-bg) 45%, var(--stone-sand) 100%);
    }

    .nav-overlay-panel {
        width: min(100%, 440px);
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 14px;
        border: 1px solid rgba(212, 197, 169, 0.72);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.42);
        box-shadow: 0 24px 70px rgba(61, 47, 31, 0.16);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .nav-overlay-head {
        display: block;
        padding: 8px 4px 4px;
        text-align: left;
    }

    .nav-overlay-label {
        display: inline-flex;
        margin-bottom: 8px;
        padding: 5px 9px;
        border-radius: 999px;
        background: var(--stone-dark);
        color: var(--stone-bg);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1;
        text-transform: uppercase;
    }

    .nav-overlay-head strong {
        display: block;
        color: var(--stone-dark);
        font-family: var(--font-display);
        font-size: 25px;
        font-weight: 400;
        line-height: 1.05;
    }

    .nav-overlay-head small {
        display: block;
        margin-top: 5px;
        color: var(--stone-medium);
        font-size: 13px;
        line-height: 1.35;
    }

    .nav-overlay-links {
        display: grid;
        gap: 9px;
    }

    .nav-overlay-links a,
    .nav-overlay a:not(.nav-overlay-cta):not(.nav-overlay-wa) {
        min-height: 58px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 13px 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.62);
        box-shadow: 0 8px 20px rgba(61, 47, 31, 0.055);
        font-size: 17px;
    }

    .nav-overlay-links a span {
        display: block;
        font-weight: 750;
    }

    .nav-overlay-links a small {
        display: block;
        grid-column: 1 / 2;
        margin-top: 3px;
        color: var(--stone-medium);
        font-size: 12px;
        font-weight: 500;
        line-height: 1.25;
    }

    .nav-overlay-links a::after {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
    }

    .nav-overlay a:hover,
    .nav-overlay a.active {
        background: rgba(235, 228, 212, 0.92);
        border-color: rgba(138, 115, 85, 0.52);
        transform: translateY(-1px);
    }

    .nav-overlay-actions {
        display: grid;
        gap: 9px;
        padding-top: 2px;
    }

    .nav-overlay-cta,
    .nav-overlay-wa {
        width: 100%;
        min-height: 52px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center !important;
        border-radius: 999px !important;
        font-family: var(--font-body) !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        text-align: center !important;
        text-decoration: none;
    }

    .nav-overlay-wa {
        border: 1px solid rgba(37, 211, 102, 0.34) !important;
        background: rgba(37, 211, 102, 0.10) !important;
        color: #1d6f3d !important;
        box-shadow: none !important;
    }

    /* Video mobile: card compatte, niente overflow verticale, scorrimento laterale */
    .video-section {
        padding: 60px 0 54px;
        text-align: left;
    }

    .video-section .section-head {
        padding: 0 16px;
        text-align: left;
    }

    .video-grid {
        width: 100%;
        max-width: none;
        margin-top: 28px;
        display: flex !important;
        grid-template-columns: none !important;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 2px 16px 18px;
        scrollbar-width: none;
    }

    .video-grid::-webkit-scrollbar {
        display: none;
    }

    .video-card {
        flex: 0 0 min(84vw, 360px);
        scroll-snap-align: start;
        border-radius: 22px;
        box-shadow: 0 14px 34px rgba(61, 47, 31, 0.13);
    }

    .video-card:hover {
        transform: none;
    }

    .video-media {
        aspect-ratio: 4 / 3;
        border-radius: 22px 22px 0 0;
    }

    .video-card video {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .video-body {
        padding: 18px;
        gap: 8px;
    }

    .video-kicker {
        padding: 5px 9px;
        font-size: 10.5px;
    }

    .video-body h3 {
        font-size: 22px;
    }

    .video-body p {
        font-size: 14.5px;
        line-height: 1.55;
    }

    .video-link {
        font-size: 14px;
    }

    .video-mobile-hint {
        display: block;
        margin: 0;
        padding: 0 16px;
        color: var(--stone-medium);
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .video-card {
        flex-basis: 88vw;
    }

    .video-media {
        aspect-ratio: 1 / 1;
    }

    .video-card video {
        aspect-ratio: 1 / 1;
    }

    .nav-overlay-panel {
        border-radius: 24px;
        padding: 12px;
    }

    .nav-overlay-head strong {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .nav-overlay-wa::after {
        content: none !important;
        display: none !important;
    }
}


/* =========================================================
   PATCH VARIANTI PRODOTTO — selezione da JSON unico
   ========================================================= */
.product-variants-full {
    max-width: 1180px;
    margin: 32px auto 0;
    padding: 28px;
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-strong);
    background: rgba(255,255,255,.42);
    box-shadow: var(--shadow-soft);
}

.product-variant-block {
    display: grid;
    gap: 18px;
}

.variant-heading h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    color: var(--stone-dark);
    font-size: clamp(24px, 3vw, 34px);
}

.variant-heading p {
    margin: 0;
    color: var(--stone-medium);
    font-size: 14px;
    line-height: 1.6;
}

.variant-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.variant-choice {
    width: 100%;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--stone-border);
    border-radius: var(--radius-soft);
    background: var(--stone-bg);
    color: var(--stone-dark);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(61,47,31,.06);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.variant-choice:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.variant-choice.is-selected {
    border-color: var(--stone-medium-hover);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,241,234,.78));
    box-shadow: 0 0 0 3px rgba(138,115,85,.16), var(--shadow-soft);
}

.variant-choice img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--stone-border);
    background: var(--stone-sand);
}

.variant-choice-body {
    display: grid;
    gap: 5px;
}

.variant-choice-body strong {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--stone-dark);
}

.variant-choice-body small {
    color: var(--stone-medium);
    line-height: 1.45;
}

.variant-choice-body em {
    font-family: var(--font-display);
    font-style: normal;
    font-size: 18px;
    color: var(--stone-dark);
}

.selected-variant-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--stone-sand);
    color: var(--stone-dark);
    font-size: 14px;
}

.variant-actions-under {
    margin-top: 20px;
    justify-content: flex-start;
}

.detail-thumbs button.detail-thumb {
    appearance: none;
    border: 1px solid var(--stone-border);
    background: var(--stone-sand);
    padding: 0;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
}

.detail-thumbs button.detail-thumb.is-active {
    outline: 3px solid rgba(138,115,85,.22);
    border-color: var(--stone-medium-hover);
}

.product-modal-variants .variant-choice-grid,
.product-modal-body .variant-choice-grid {
    max-height: min(48vh, 520px);
    overflow: auto;
    padding-right: 4px;
}

.product-modal-body .variant-choice {
    grid-template-columns: 72px 1fr;
}

.product-modal-body .variant-choice img {
    width: 72px;
    height: 72px;
}

@media (min-width: 720px) {
    .variant-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .product-variants-full .variant-choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   Sconti a scaglioni + timer fine sconti
   ========================================================= */
.promo-timer-bar {
    position: sticky;
    top: var(--header-height, 78px);
    z-index: 950;
    background: var(--stone-dark);
    color: var(--stone-bg);
    text-align: center;
    padding: 10px 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(61, 47, 31, 0.15);
}

.promo-timer-bar span {
    color: #fff;
}

.product-price.has-discount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.old-price {
    color: var(--stone-medium);
    text-decoration: line-through;
    font-weight: 500;
}

.new-price {
    color: var(--stone-dark);
    font-size: 1.08em;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--stone-dark);
    color: var(--stone-bg);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.cart-discount-note {
    display: block;
    color: var(--stone-medium);
    margin-top: 2px;
}


/* =========================================================
   Tema chiaro/scuro scelto dall’utente
   ========================================================= */
.theme-toggle {
    appearance: none;
    border: 1px solid var(--stone-border-strong);
    background: rgba(255,255,255,0.66);
    color: var(--stone-dark);
    border-radius: 999px;
    padding: 10px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    background: var(--stone-dark);
    color: var(--stone-bg);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --stone-bg: #171411;
    --stone-sand: #241f1a;
    --stone-sand-light: #3b3026;
    --stone-dark: #f3eadc;
    --stone-medium: #c9a978;
    --stone-medium-hover: #e0be86;
    --stone-border: rgba(226, 202, 166, 0.16);
    --stone-border-strong: rgba(226, 202, 166, 0.34);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.34);
    --shadow-card: 0 16px 38px rgba(0, 0, 0, 0.42);
    --shadow-hover: 0 22px 54px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] main {
    background: var(--stone-bg);
    color: var(--stone-dark);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.scrolled,
html[data-theme="dark"] .nav-overlay,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .legal,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .bank-box,
html[data-theme="dark"] .order-form,
html[data-theme="dark"] .cookie-banner,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-editor,
html[data-theme="dark"] .admin-results,
html[data-theme="dark"] .admin-result {
    background: rgba(36, 31, 26, 0.94);
    color: var(--stone-dark);
    border-color: var(--stone-border);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] section {
    background-color: transparent;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .admin-card input,
html[data-theme="dark"] .admin-card select,
html[data-theme="dark"] .admin-card textarea {
    background: #211c18;
    color: var(--stone-dark);
    border-color: var(--stone-border-strong);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: rgba(243, 234, 220, 0.58);
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(36,31,26,0.9);
    color: var(--stone-dark);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .btn-light:hover {
    background: var(--stone-medium);
    color: #171411;
}

html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .sort-select {
    background: #211c18;
    color: var(--stone-dark);
    border-color: var(--stone-border-strong);
}

html[data-theme="dark"] .promo-timer-bar,
html[data-theme="dark"] .discount-badge {
    background: #000;
    color: var(--stone-dark);
}

@media (max-width: 760px) {
    .theme-toggle {
        padding: 9px 12px;
        font-size: 12px;
    }
}
