/* =========================================================
   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('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80') 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('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80') 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-dark);
    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: transparent;
    border-color: var(--stone-dark);
    color: var(--stone-dark);
}

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

/* 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;
}

.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; }
}
