/* ===== Benessere Officina Ortopedica – foglio di stile ===== */
:root {
  --ink: #0b1f1a;          /* verde scurissimo del logo */
  --ink-2: #1d3a31;
  --olive: #74802a;        /* verde oliva del logo */
  --olive-dark: #5c6620;
  --olive-light: #eef1dc;
  --bg: #ffffff;
  --bg-tint: #f6f7f1;
  --text: #24302c;
  --muted: #5d6b65;
  --line: #dfe3d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 26, .08);
  --font-head: "Roboto Slab", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--ink); color: #d9e2dd; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #b9c66a; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); }
.section-dark .section-head p:last-child { color: #b8c5bf; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--olive); margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* ---- Bottoni ---- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .2s, transform .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: .95rem; }
.btn-block { display: block; text-align: center; margin-top: 20px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 62px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--olive); }
.main-nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---- Hero ---- */
.hero { background: linear-gradient(160deg, var(--bg-tint) 0%, #fff 60%); padding: 80px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { background: var(--olive-light); color: var(--ink-2); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.hero-photo::before { content: ""; position: absolute; right: -28px; bottom: -28px; width: 150px; height: 150px; background: var(--olive); border-radius: 50% 0 50% 50%; z-index: -1; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(11,31,26,.82); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: .88rem; }
.hero-inner { position: relative; z-index: 0; }

/* ---- Galleria laboratorio ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 12px 14px; font-size: .88rem; color: var(--muted); }
.section-head .hint { margin-top: 8px; font-size: .95rem; }

.hero-card { background: var(--ink); border-radius: 28px; padding: 36px; color: #fff; box-shadow: var(--shadow); position: relative; }
.hero-card::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 160px; height: 160px; background: var(--olive); border-radius: 50% 0 50% 50%; opacity: .9; z-index: -1; }
.hero-illustration { width: 100%; max-width: 280px; margin: 0 auto 18px; display: block; color: #c4d26b; }
.hero-card-title { font-family: var(--font-head); font-size: 1.4rem; margin: 0; text-align: center; }
.hero-card-sub { text-align: center; color: #b8c5bf; font-size: .92rem; margin: 6px 0 0; }

/* ---- Card servizi ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--olive); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; background: var(--olive-light); align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--olive-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-accent { background: var(--ink); border-color: var(--ink); }
.card-accent h3 { color: #fff; }
.card-accent p { color: #b8c5bf; }
.card-accent .card-icon { background: var(--olive); }
.card-accent .card-icon svg { stroke: #fff; }

/* ---- Layout split ---- */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.side-box-accent { border-top: 5px solid var(--olive); }
.notice { background: var(--ink); color: #e6ece8; border-radius: var(--radius); padding: 20px 22px; margin: 26px 0 32px; border-left: 6px solid var(--olive); }
.notice strong { color: #fff; }
.notice-light { background: var(--olive-light); color: var(--ink-2); border-left-color: var(--olive); margin: 0; }
.notice-light strong { color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 7px 0 7px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 14px; height: 8px; border-left: 2.5px solid var(--olive); border-bottom: 2.5px solid var(--olive); transform: rotate(-45deg); }

.tech-list { padding-left: 1.2em; }
.tech-list li { margin-bottom: 14px; }
.tech-list li::marker { color: var(--olive); }

.num-list { padding-left: 1.3em; margin: 0; }
.num-list li { margin-bottom: 12px; }
.num-list li::marker { color: var(--olive); font-weight: 700; }

/* ---- Step plantari ---- */
.steps-title { margin-top: 64px; text-align: center; font-size: 1.6rem; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.steps span { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--olive); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; font-family: var(--font-head); }
.steps p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---- Blocchi negozio ---- */
.service-block { border-top: 1px solid var(--line); padding: 48px 0; }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-head { max-width: 780px; margin-bottom: 26px; }
.service-head h3 { font-size: 1.7rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card { background: var(--bg-tint); border-radius: var(--radius); padding: 22px; }
.mini-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- Mobilità ---- */
.mob-card { background: var(--ink-2); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(255,255,255,.07); }
.mob-card p { font-size: .97rem; }
.mob-card ul { margin: 0; padding-left: 1.1em; font-size: .93rem; color: #c9d5cf; }
.mob-card li::marker { color: #b9c66a; }
.mob-card-hl { background: var(--olive); }
.mob-card-hl p, .mob-card-hl ul { color: #f4f6ea; }
.mob-card-hl li::marker { color: #fff; }

/* ---- Prodotti in vetrina ---- */
.prod-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { font: inherit; font-size: .93rem; font-weight: 500; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--olive); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.product:hover { box-shadow: var(--shadow); }
.product[hidden] { display: none; }
.product-img { background: #fff; aspect-ratio: 3 / 2; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.product-body { padding: 22px 24px 26px; }
.product-tag { display: inline-block; background: var(--olive-light); color: var(--olive-dark); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.product h3 { font-size: 1.2rem; }
.product-how { font-size: .95rem; color: var(--text); }
.product-feat { margin: 0; padding-left: 1.1em; font-size: .9rem; color: var(--muted); }
.product-feat li::marker { color: var(--olive); }
.prod-note { margin-top: 22px; font-size: .85rem; }

.product-img--photo { padding: 0; }
.product-img--photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Pagina prodotti ---- */
.page-hero { background: linear-gradient(160deg, var(--bg-tint) 0%, #fff 70%); padding: 64px 0 24px; }
.page-hero .lead { max-width: 780px; }
.section-tight { padding-top: 32px; }
.main-nav a[aria-current="page"] { color: var(--olive); font-weight: 600; }
.cta-box { margin-top: 56px; background: var(--ink); color: #d9e2dd; border-radius: 22px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-box h2 { color: #fff; font-size: 1.6rem; margin-bottom: .3em; }
.cta-box p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* ---- Anteprima categorie (home) ---- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.cat-card { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; aspect-ratio: 4 / 3; transition: box-shadow .2s, border-color .2s; }
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--olive); }
.cat-card img { width: 100%; height: 78%; object-fit: contain; padding: 12px; }
.cat-card img.cover { object-fit: cover; padding: 0; }
.cat-card span { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; display: flex; align-items: center; padding: 0 18px; background: var(--ink); color: #fff; font-weight: 600; }
.center { text-align: center; }
.cat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cat-grid-4 .cat-card span { font-size: .92rem; padding: 0 14px; }
.cat-card-all { background: var(--olive); border-color: var(--olive); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-head); font-size: 1.15rem; text-align: center; padding: 16px; }
.cat-card-all:hover { background: var(--olive-dark); }

/* ---- Street View ---- */
.streetview { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 520px; }
.streetview iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Galleria negozio ---- */
.shop-gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 620px; }
.shop-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.shop-gallery img { width: 100%; height: 100%; object-fit: cover; }
.shop-gallery .shop-big { grid-row: 1 / 3; }
.shop-gallery figure:nth-child(4) { grid-column: 2 / 4; }
.shop-gallery figure:nth-child(4) img { object-position: center 60%; }

/* ---- Form prenotazione ---- */
.booking { background: #fff; border-radius: 22px; padding: 38px; box-shadow: var(--shadow); max-width: 900px; }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-light); }
.field .invalid { border-color: #b3261e; }
.hint { color: var(--muted); margin-top: 6px; font-size: .85rem; }
.checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--olive); flex-shrink: 0; }
.checkbox label { font-weight: 400; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; align-items: center; }
.slots-empty { color: var(--muted); margin: 0; font-size: .92rem; }
.slot { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; font-size: .92rem; color: var(--ink); }
.slot:hover:not(:disabled) { border-color: var(--olive); }
.slot[aria-checked="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.slot:disabled { text-decoration: line-through; opacity: .45; cursor: not-allowed; }
.booking-footer { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.form-msg { margin: 0; font-weight: 500; }
.form-msg.ok { color: var(--olive-dark); }
.form-msg.err { color: #b3261e; }

/* ---- FAQ ---- */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.06rem; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.5rem; color: var(--olive); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* ---- Contatti ---- */
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--ink); width: 45%; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; height: 100%; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #b8c5bf; padding: 60px 0 24px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer a { display: block; color: #d9e2dd; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: #c4d26b; }
.footer-brand { font-family: var(--font-head); color: #fff; font-size: 1.2rem; }
.footer-title { color: #fff; font-weight: 600; }
.copyright { text-align: center; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ---- Animazione "come nasce il plantare" ---- */
.anim { margin: 0; position: relative; }
.anim svg { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: var(--shadow); }
.anim::before { content: ""; position: absolute; right: -24px; bottom: 30px; width: 140px; height: 140px; background: var(--olive); border-radius: 50% 0 50% 50%; z-index: -1; }
.a-scene { opacity: 0; animation: 12s linear infinite; }
.a-s1 { animation-name: a-show1; } .a-s2 { animation-name: a-show2; } .a-s3 { animation-name: a-show3; }
@keyframes a-show1 { 0%, 30% { opacity: 1; } 33.3%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes a-show2 { 0%, 30% { opacity: 0; } 33.3%, 63% { opacity: 1; } 66.6%, 100% { opacity: 0; } }
@keyframes a-show3 { 0%, 63% { opacity: 0; } 66.6%, 97% { opacity: 1; } 100% { opacity: 0; } }
.a-scan { animation: a-scan 12s linear infinite; }
@keyframes a-scan { 0% { transform: translateY(0); } 15% { transform: translateY(295px); } 30%, 100% { transform: translateY(0); } }
.a-blob { transform-box: fill-box; transform-origin: center; animation: a-pulse 1.4s ease-in-out infinite alternate; }
.a-d1 { animation-delay: -.5s; } .a-d2 { animation-delay: -.9s; }
@keyframes a-pulse { from { transform: scale(.8); opacity: .75; } to { transform: scale(1.12); opacity: 1; } }
.a-draw { stroke-dasharray: 520; animation: a-draw 12s linear infinite; }
@keyframes a-draw { 0%, 34% { stroke-dashoffset: 520; } 48%, 100% { stroke-dashoffset: 0; } }
.a-zone { animation: 12s linear infinite; }
.a-z1 { animation-name: a-z1; } .a-z2 { animation-name: a-z2; } .a-z3 { animation-name: a-z3; }
@keyframes a-z1 { 0%, 48% { opacity: 0; } 51%, 100% { opacity: 1; } }
@keyframes a-z2 { 0%, 52% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes a-z3 { 0%, 56% { opacity: 0; } 59%, 100% { opacity: 1; } }
.a-z1[fill] { animation-name: a-z1f; }
@keyframes a-z1f { 0%, 48% { opacity: 0; } 51%, 100% { opacity: .45; } }
.a-cursor { animation: a-cursor 12s ease-in-out infinite; }
@keyframes a-cursor { 0%, 34% { transform: translate(330px, 90px); } 49% { transform: translate(205px, 205px); } 53% { transform: translate(225px, 145px); } 58%, 100% { transform: translate(232px, 275px); } }
.a-reveal { transform-box: fill-box; transform-origin: top; animation: a-reveal 12s linear infinite; }
@keyframes a-reveal { 0%, 67% { transform: scaleY(0); } 95%, 100% { transform: scaleY(1); } }
.a-gantry { animation: a-gantry 12s linear infinite; }
@keyframes a-gantry { 0%, 67% { transform: translateY(-22px); } 95%, 100% { transform: translateY(240px); } }
.a-head { animation: a-head 1.1s ease-in-out infinite alternate; }
@keyframes a-head { from { transform: translateX(160px); } to { transform: translateX(320px); } }
.a-chip { animation: a-chip .5s linear infinite; }
@keyframes a-chip { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(-8px, 16px); opacity: 0; } }
.anim-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 14px 0 0; }
.anim-steps li { flex: 1; font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; line-height: 1.25; animation: 12s linear infinite; }
.anim-steps span { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.anim-steps .as1 { animation-name: a-step1; } .anim-steps .as2 { animation-name: a-step2; } .anim-steps .as3 { animation-name: a-step3; }
@keyframes a-step1 { 0%, 30% { background: var(--olive); color: #fff; border-color: var(--olive); } 33.3%, 97% { background: var(--bg-tint); color: var(--muted); border-color: var(--line); } 100% { background: var(--olive); color: #fff; border-color: var(--olive); } }
@keyframes a-step2 { 0%, 30% { background: var(--bg-tint); color: var(--muted); border-color: var(--line); } 33.3%, 63% { background: var(--olive); color: #fff; border-color: var(--olive); } 66.6%, 100% { background: var(--bg-tint); color: var(--muted); border-color: var(--line); } }
@keyframes a-step3 { 0%, 63% { background: var(--bg-tint); color: var(--muted); border-color: var(--line); } 66.6%, 97% { background: var(--olive); color: #fff; border-color: var(--olive); } 100% { background: var(--bg-tint); color: var(--muted); border-color: var(--line); } }
@media (prefers-reduced-motion: reduce) {
  .a-scene, .a-scan, .a-blob, .a-draw, .a-zone, .a-cursor, .a-reveal, .a-gantry, .a-head, .a-chip, .anim-steps li { animation: none; }
  .a-s3 { opacity: 1; }
  .a-gantry { transform: translateY(240px); } .a-head { transform: translateX(240px); }
}

.anim-wrap { max-width: 560px; margin: 28px auto 8px; }
.anim-wrap .anim::before { display: none; }

/* ---- Apertura home: logo animato + introduzione ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro-hero { background: #fff; padding: 56px 0 76px; text-align: center; }
.logo-anim { position: relative; width: min(440px, 82%); aspect-ratio: 982 / 581; margin: 0 auto 40px; }
.logo-anim img, .la-wipe { position: absolute; inset: 0; width: 100%; height: 100%; }
.la-wipe { animation: la-wipe .7s ease-out .1s both; }
.la-text { clip-path: polygon(0 0, 66% 0, 66% 45%, 98% 45%, 98% 0, 100% 0, 100% 87.5%, 0 87.5%); }
@keyframes la-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.la-leaf { clip-path: inset(0 2% 55% 66%); transform-origin: 70% 42%; mix-blend-mode: multiply; animation: la-pop .6s cubic-bezier(.34, 1.56, .64, 1) .6s both, la-sway 4.5s ease-in-out 1.4s infinite; }
@keyframes la-pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes la-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
.la-band { clip-path: inset(87.5% 0 0 0); animation: la-band .5s ease-out 1s both; }
@keyframes la-band { from { transform: translateY(14%); opacity: 0; } to { transform: none; opacity: 1; } }
.intro-text { max-width: 780px; margin: 0 auto; font-size: 1.12rem; color: var(--ink-2); animation: la-fade .6s ease-out 1.2s both; }
@keyframes la-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro-motto { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--olive); margin: 28px 0 8px; }
.intro-cta { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .la-wipe, .la-leaf, .la-band, .intro-text { animation: none; } }

/* ---- Valutazione tecnica ---- */
.eval-note { background: var(--olive-light); border-left: 6px solid var(--olive); border-radius: var(--radius); padding: 18px 22px; margin-top: 26px; color: var(--ink-2); max-width: 920px; }
.eval-note > strong:first-child { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.eval-note p { margin: 0; font-size: .97rem; }
.section-tight > .container > .eval-note { margin: 0 0 30px; }
.eval-badge { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .8rem; font-weight: 700; color: var(--ink); background: #fff4d6; border: 1px solid #ecd48a; padding: 5px 11px; border-radius: 8px; }
.eval-badge::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: #c7952a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; line-height: 1; }
.img-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* ---- Galleria tutori (Gibaud) ---- */
.gallery-title { margin: 44px 0 16px; font-family: var(--font-head); font-size: 1.25rem; }
.tutori-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tutori-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tutori-gallery figure:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tg-img { aspect-ratio: 4 / 3; background: #fff; padding: 10px; }
.tg-img img { width: 100%; height: 100%; object-fit: contain; }
.tutori-gallery figcaption { padding: 12px 14px 16px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.tutori-gallery figcaption strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.tutori-gallery figcaption span { display: block; }
.home-cards .card-accent { grid-column: 1 / -1; }

/* ---- Calze a compressione ---- */
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.brand-row span { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; padding: 8px 18px; border-radius: 999px; font-size: .95rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--olive); border-radius: var(--radius); padding: 28px; }
.compare-card-hl { border-top-color: var(--ink); background: var(--bg-tint); }
.compare-tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-dark); margin-bottom: 6px; }
.compare-card h3 { font-size: 1.35rem; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.cta-light { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-light h2 { color: var(--ink); }
.cta-light .btn-ghost-light, .cta-light .btn-ghost { border-color: var(--ink); color: var(--ink); }
.gallery-intro { max-width: 780px; color: var(--muted); margin: -6px 0 18px; }
.busti-gallery .tg-img { aspect-ratio: 1 / 1; padding: 4px; }
.calze-gallery .tg-img { aspect-ratio: 4 / 5; background: #fff; }
.calze-gallery .tg-img img { object-fit: contain; }
.cf[hidden], .cf-group[hidden], .tf[hidden] { display: none; }
.tut-gallery .tg-img, .busti-gallery .tg-img { aspect-ratio: 1 / 1; padding: 6px; }
.tut-filters { margin-bottom: 22px; }
.tg-tag { display: inline-block !important; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; background: var(--line); color: var(--ink); }
.tg-terapeutica { background: var(--ink); color: #fff; }
.tg-preventiva { background: var(--olive-light); color: var(--olive-dark); }
.cf-group + .cf-group { margin-top: 12px; }
.calze-filters { margin-top: 8px; }

/* ---- Menu a tendina "Negozio" ---- */
.nav-dd { position: relative; padding: 18px 0; margin: -18px 0; }
.nav-dd > .nav-dd-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 8px; transition: transform .2s; }
.nav-dd:hover > .nav-dd-toggle::after, .nav-dd:focus-within > .nav-dd-toggle::after { transform: rotate(-135deg) translate(-1px, -1px); }
.nav-dd-menu { position: absolute; top: calc(100% - 6px); left: -16px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 70; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .nav-dd-menu a { display: block; padding: 11px 14px; border-radius: 9px; white-space: nowrap; }
.main-nav .nav-dd-menu a:hover { background: var(--olive-light); color: var(--ink); }
.main-nav .nav-dd-menu a[aria-current="page"] { color: var(--olive-dark); font-weight: 600; }

/* ---- Pagine di reparto: layout con banner marchi laterale ---- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.brand-aside { position: sticky; top: 108px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.brand-aside h2 { font-size: 1.05rem; margin-bottom: 4px; }
.brand-aside > p { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
.brand-logos { display: grid; gap: 12px; }
.brand-logo { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.brand-logo img { max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.brand-logo:hover, .brand-logo:focus-visible { border-color: var(--olive); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: #00468b; letter-spacing: -.01em; }
.brand-strip { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.brand-strip > p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.brand-logos-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .brand-logos-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.brand-aside small { display: block; margin-top: 12px; color: var(--muted); font-size: .76rem; line-height: 1.4; }

/* ---- Intestazione reparto e indice del negozio ---- */
.dept-hero { padding: 56px 0 8px; }
.dept-hero .lead { max-width: 760px; }
.dept-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dept-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-decoration: none; color: var(--text); background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s; }
.dept-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--olive); }
.dept-card h2 { font-size: 1.5rem; }
.dept-card p { color: var(--muted); }
.dept-card .card-link { display: inline-block; margin-top: 8px; }

/* ---- Animazioni di vestibilità (scarpa, tutori, busti) ---- */
.anim-wide { max-width: 560px; margin: 8px auto 0; }
.anim-block { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin: 12px 0 8px; }
.anim-block h2 { font-size: 1.6rem; }
.anim-block .check-list { margin-top: 10px; }
.sh-all, .ta-all, .bu-all { animation: all-fade 12s linear infinite; }
@keyframes all-fade { 0% { opacity: 0; } 3%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
.fx { transform-box: view-box; transform-origin: 240px 170px; }
.fb { transform-box: fill-box; transform-origin: center; }
/* scarpa + plantare */
.sh-insole { animation: sh-insole 12s ease-in-out infinite; }
@keyframes sh-insole { 0%, 6% { transform: none; opacity: 1; } 24% { transform: translate(0, -135px) rotate(-5deg); opacity: 1; } 32% { transform: translate(110px, -170px) rotate(-14deg); opacity: 0; } 33%, 100% { transform: translate(110px, -170px); opacity: 0; } }
.sh-ortho { opacity: 0; animation: sh-ortho 12s ease-in-out infinite; }
@keyframes sh-ortho { 0%, 34% { opacity: 0; transform: translate(210px, -150px) rotate(14deg); } 38% { opacity: 1; } 55% { transform: translate(0, -40px) rotate(0); } 62%, 100% { opacity: 1; transform: none; } }
.sh-check, .ta-check, .bu-check { opacity: 0; animation: pop-check 12s ease-in-out infinite; }
@keyframes pop-check { 0%, 68% { opacity: 0; transform: scale(0); } 74% { opacity: 1; transform: scale(1.25); } 78%, 100% { opacity: 1; transform: scale(1); } }
/* tutore: indossare, adattare, regolare */
.ta-brace { animation: ta-brace 12s ease-in-out infinite; }
@keyframes ta-brace { 0%, 3% { transform: translate(-170px, 80px) rotate(-14deg); } 28%, 100% { transform: none; } }
.ta-hand { animation: ta-hand 12s ease-in-out infinite; }
@keyframes ta-hand { 0%, 3% { transform: translate(-170px, 80px); } 28% { transform: none; } 40% { transform: translate(-5px, -10px); } 52% { transform: translate(0, 4px); } 62% { transform: none; } 70% { transform: translate(0, 30px); } 76% { transform: translate(-10px, 30px); } 84% { transform: translate(10px, 30px); } 90% { transform: translate(0, 30px); } 96%, 100% { transform: translate(140px, 30px); } }
.ta-strap { transform-box: fill-box; transform-origin: left center; animation: ta-strap 12s ease-in-out infinite; }
@keyframes ta-strap { 0%, 66% { transform: scaleX(1.2); } 80%, 100% { transform: scaleX(1); } }
.ta-hinge { transform-box: fill-box; transform-origin: center; animation: ta-hinge 12s ease-in-out infinite; }
@keyframes ta-hinge { 0%, 36% { transform: scale(1); } 44% { transform: scale(1.5); } 52% { transform: scale(1); } 58% { transform: scale(1.5); } 64%, 100% { transform: scale(1); } }
.ta-measure { opacity: 0; animation: ta-measure 12s ease-in-out infinite; }
@keyframes ta-measure { 0%, 34% { opacity: 0; } 40%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
/* busto: indossare, regolare le spinte, stringere */
.bu-corset { animation: bu-corset 12s ease-in-out infinite; }
@keyframes bu-corset { 0%, 3% { transform: translateY(130px) scaleX(1.12); opacity: 0; } 8% { opacity: 1; } 30%, 64% { transform: translateY(0) scaleX(1.12); opacity: 1; } 80%, 100% { transform: translateY(0) scaleX(1); opacity: 1; } }
.bu-hand-l { animation: bu-hand-l 12s ease-in-out infinite; }
@keyframes bu-hand-l { 0%, 3% { transform: translateY(130px); } 30% { transform: translateY(0); } 64% { transform: translate(0, 0); } 70%, 100% { transform: translate(-90px, 0); } }
.bu-hand-r { animation: bu-hand-r 12s ease-in-out infinite; }
@keyframes bu-hand-r { 0%, 3% { transform: translateY(130px); } 30% { transform: translateY(0); } 64% { transform: translate(0, 0); } 70%, 100% { transform: translate(90px, 0); } }
/* punto 3: controllo finale (linea di riferimento + spunte sui punti chiave) */
.bu-level, .bu-note { opacity: 0; animation: bu-level 12s ease-in-out infinite; }
@keyframes bu-level { 0%, 70% { opacity: 0; } 74%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
.bu-ck { transform-box: fill-box; transform-origin: center; opacity: 0; }
.bu-ck1 { animation: bu-ck1 12s ease-out infinite; } .bu-ck2 { animation: bu-ck2 12s ease-out infinite; } .bu-ck3 { animation: bu-ck3 12s ease-out infinite; }
@keyframes bu-ck1 { 0%, 72% { opacity: 0; transform: scale(.2); } 77% { opacity: 1; transform: scale(1.25); } 80%, 95% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
@keyframes bu-ck2 { 0%, 79% { opacity: 0; transform: scale(.2); } 84% { opacity: 1; transform: scale(1.25); } 87%, 95% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
@keyframes bu-ck3 { 0%, 86% { opacity: 0; transform: scale(.2); } 91% { opacity: 1; transform: scale(1.25); } 93%, 95% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
.bu-pad { opacity: 0; animation: bu-pad 12s ease-in-out infinite; }
@keyframes bu-pad { 0%, 34% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1.3); } 46% { transform: scale(1); } 52% { transform: scale(1.3); } 58%, 66% { opacity: 1; transform: scale(1); } 72%, 100% { opacity: 0; transform: scale(.3); } }
@media (prefers-reduced-motion: reduce) {
  .sh-all, .ta-all, .bu-all, .sh-insole, .sh-ortho, .ta-brace, .ta-hand, .ta-strap, .ta-hinge, .ta-measure, .bu-corset, .bu-hand-l, .bu-hand-r, .bu-pad, .bu-level, .bu-note, .bu-ck, .sh-check, .ta-check, .bu-check { animation: none; }
  .bu-level, .bu-note, .bu-ck { opacity: 1; }
  .sh-insole { opacity: 0; } .sh-ortho, .sh-check, .ta-check, .bu-check, .bu-corset { opacity: 1; }
}

/* ---- Animazioni grandi sotto il testo (tutori, calze) ---- */
.intro-block { max-width: 840px; }
.intro-block h2 { font-size: 1.7rem; }
.intro-block .check-list { margin-top: 12px; columns: 2; column-gap: 36px; }
.intro-block .check-list li { break-inside: avoid; }
.anim-wrap-wide { max-width: 700px; margin: 30px auto 10px; }
.anim-wrap-wide .anim::before { display: none; }
.t2-all, .cz-all { animation: all-fade 12s linear infinite; }
.t2-t, .cz-t { opacity: 0; }
.t2-t1 { animation: ph1 12s ease-in-out infinite; } .t2-t2 { animation: ph2 12s ease-in-out infinite; } .t2-t3 { animation: ph3 12s ease-in-out infinite; }
.cz-t1 { animation: ph1 12s ease-in-out infinite; } .cz-t2 { animation: ph2 12s ease-in-out infinite; } .cz-t3 { animation: ph3 12s ease-in-out infinite; }
@keyframes ph1 { 0%, 2% { opacity: 0; } 5%, 29% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes ph2 { 0%, 34% { opacity: 0; } 38%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes ph3 { 0%, 67% { opacity: 0; } 71%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
/* tutore, versione chiara */
.t2-brace { animation: t2-brace 12s ease-in-out infinite; }
@keyframes t2-brace { 0%, 4% { transform: translate(200px, 0); } 30%, 100% { transform: none; } }
.t2-hand { animation: t2-hand 12s ease-in-out infinite; }
@keyframes t2-hand { 0%, 4% { transform: translate(200px, 0); } 30% { transform: none; } 40% { transform: translate(0, -14px); } 50% { transform: translate(0, 10px); } 60% { transform: none; } 68% { transform: translate(0, 34px); } 74% { transform: translate(18px, 34px); } 82% { transform: translate(0, 34px); } 88% { transform: translate(18px, 34px); } 92% { transform: translate(0, 34px); } 97%, 100% { transform: translate(260px, 34px); } }
.t2-strap { transform-box: fill-box; transform-origin: left center; animation: t2-strap 12s ease-in-out infinite; }
@keyframes t2-strap { 0%, 66% { transform: scaleX(1.25); } 90%, 100% { transform: scaleX(1); } }
.t2-hinge { transform-box: fill-box; transform-origin: center; animation: t2-hinge 12s ease-in-out infinite; }
@keyframes t2-hinge { 0%, 36% { transform: scale(1); } 42% { transform: scale(1.6); } 48% { transform: scale(1); } 54% { transform: scale(1.6); } 60%, 100% { transform: scale(1); } }
.t2-guide { opacity: 0; animation: ph2 12s ease-in-out infinite; }
.t2-note { opacity: 0; animation: t2-note 12s ease-in-out infinite; }
@keyframes t2-note { 0%, 86% { opacity: 0; } 90%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
/* calze: circolazione */
.cz-swell { animation: cz-swell 12s ease-in-out infinite; }
@keyframes cz-swell { 0%, 2% { opacity: 0; } 8%, 28% { opacity: 1; } 34%, 100% { opacity: 0; } }
.cz-stocking { opacity: 0; animation: cz-stocking 12s ease-in-out infinite; }
@keyframes cz-stocking { 0%, 33% { opacity: 0; } 38%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
.cz-arrows { opacity: 0; animation: cz-arrows 12s ease-in-out infinite; }
@keyframes cz-arrows { 0%, 36% { opacity: 0; } 42%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
.cz-vein { transform-box: fill-box; transform-origin: center; animation: cz-vein 12s ease-in-out infinite; }
@keyframes cz-vein { 0%, 36% { transform: scaleX(1); } 50%, 96% { transform: scaleX(.45); } 100% { transform: scaleX(1); } }
.cz-slow { animation: cz-slow-show 12s linear infinite; }
@keyframes cz-slow-show { 0%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
.cz-slow circle { animation: cz-bob 2.4s ease-in-out infinite alternate; }
.cz-slow circle:nth-child(even) { animation-delay: -1.2s; }
@keyframes cz-bob { from { transform: translateY(-4px); } to { transform: translateY(12px); } }
.cz-fast { opacity: 0; animation: cz-fast-show 12s linear infinite; }
@keyframes cz-fast-show { 0%, 65% { opacity: 0; } 68%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
.cz-fast circle { animation: cz-up 1.7s linear infinite; }
.cz-fast circle:nth-child(2) { animation-delay: -.2s; } .cz-fast circle:nth-child(3) { animation-delay: -.4s; } .cz-fast circle:nth-child(4) { animation-delay: -.6s; }
.cz-fast circle:nth-child(5) { animation-delay: -.85s; } .cz-fast circle:nth-child(6) { animation-delay: -1.05s; } .cz-fast circle:nth-child(7) { animation-delay: -1.3s; } .cz-fast circle:nth-child(8) { animation-delay: -1.5s; }
@keyframes cz-up { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-262px); opacity: 0; } }
.cz-heart { transform-box: fill-box; transform-origin: center; animation: cz-beat 12s ease-in-out infinite; }
@keyframes cz-beat { 0%, 66% { transform: scale(1); } 68%, 72%, 76%, 80%, 84%, 88%, 92% { transform: scale(1.28); } 70%, 74%, 78%, 82%, 86%, 90%, 94%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .t2-all, .cz-all, .t2-t1, .t2-t2, .t2-t3, .cz-t1, .cz-t2, .cz-t3, .t2-brace, .t2-hand, .t2-strap, .t2-hinge, .t2-guide, .t2-note, .cz-swell, .cz-stocking, .cz-arrows, .cz-vein, .cz-slow, .cz-slow circle, .cz-fast, .cz-fast circle, .cz-heart { animation: none; }
  .t2-t3, .t2-note, .cz-t3, .cz-stocking, .cz-arrows, .cz-fast { opacity: 1; } .cz-slow { opacity: 0; }
}

/* ---- Animazioni tra le pagine e allo scroll ---- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.wa-float { view-transition-name: wa-float; }
::view-transition-old(root) { animation: .12s ease both vt-out; }
::view-transition-new(root) { animation: .2s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@supports not (view-transition-name: none) { main { animation: page-in .25s ease both; } }
@keyframes page-in { from { opacity: 0; } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  main { animation: none; }
}

/* ---- Home introduttiva ---- */
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.stats { display: grid; gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--olive); border-radius: var(--radius); padding: 16px 20px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .93rem; }
.home-cards { grid-template-columns: repeat(2, 1fr); }
.home-cards .card { padding: 32px; }
.home-cards .card h3 { font-size: 1.45rem; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--olive-dark); }
.card-accent .card-link { color: #c4d26b; }
.info-strip { background: var(--ink); color: #d9e2dd; border-radius: 22px; padding: 34px 38px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 28px; align-items: center; }
.info-strip h3 { color: #fff; font-size: 1rem; margin-bottom: .3em; }
.info-strip p { margin: 0; font-size: .95rem; }
.info-strip a:not(.btn) { color: #c4d26b; }
.info-actions { display: flex; flex-direction: column; gap: 10px; }
.page-top { padding-top: 56px; }

/* ---- WhatsApp flottante ---- */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---- Uprise (montascale) ---- */
.uprise { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.uprise .section-head { margin-bottom: 32px; }
.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.up-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.up-card:hover { box-shadow: var(--shadow); }
.up-img { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.up-img img { width: 100%; height: 100%; object-fit: cover; }
.up-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.up-body h3 { font-size: 1.2rem; }
.up-body p { font-size: .95rem; color: var(--text); }
.up-link { margin-top: auto; font-weight: 600; font-size: .92rem; }
.up-cta { margin: 32px 0 0; text-align: center; }
.uprise[hidden] { display: none; }

/* ---- Ritmo verticale uniforme (spaziature coerenti tra blocchi e didascalie) ---- */
.section:not(.section-tint):not(.section-dark) + .section:not(.section-tint):not(.section-dark) { padding-top: 0; }
.intro-block + .anim, .intro-block + .anim-wrap-wide { margin-top: 32px; }
.anim-wide { margin-bottom: 0; }
.anim + .grid-2, .anim + .grid-3, .anim-wrap-wide + .grid-3, .anim-wrap-wide + .grid-2 { margin-top: 56px; }
.main-col > * + .grid-2, .main-col > * + .grid-3 { margin-top: 56px; }
.gallery-title { margin: 56px 0 14px; }
.gallery-intro { margin: 0 0 22px; }
.prod-note { margin-top: 24px; }
.tut-filters, .prod-filters { margin-bottom: 24px; }
.tutori-gallery figure { display: flex; flex-direction: column; }
.tutori-gallery figcaption { flex: 1; }
.product-body { flex: 1; }
.grid-3, .grid-2, .products, .tutori-gallery, .up-grid, .dept-cards, .compare { align-items: stretch; }
.mini-card h4 { margin-bottom: .4em; }
.main-col > .cta-box { margin-top: 56px; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards, .grid-3, .gallery, .products, .cat-grid, .tutori-gallery, .up-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .with-aside { grid-template-columns: 1fr; gap: 28px; }
  .brand-aside { position: static; order: -1; }
  .brand-logos { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .anim-block { grid-template-columns: 1fr; gap: 28px; }
  .intro-block .check-list { columns: 1; }
  .cat-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .shop-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .shop-gallery .shop-big { grid-row: auto; grid-column: 1 / 3; height: 420px; }
  .shop-gallery figure { height: 220px; }
  .shop-gallery figure:nth-child(4) { grid-column: 1 / 3; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-dd { padding: 0; margin: 0; }
  .nav-dd > .nav-dd-toggle::after { display: none; }
  .nav-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 18px; min-width: 0; background: transparent; }
  .main-nav .nav-dd-menu a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--muted); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-inner, .split, .grid-2, .footer-inner, .intro-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; padding: 26px 22px; }
  .anim { max-width: 520px; }
  .anim::before { display: none; }
  .hero-photo { max-width: 560px; }
  .hero-photo::before { right: -12px; bottom: -12px; width: 90px; height: 90px; }
  .side-box { position: static; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .cards, .grid-3, .steps, .booking-grid, .products, .info-strip, .dept-cards, .up-grid { grid-template-columns: 1fr; }
  .anim-steps li { font-size: .72rem; padding: 6px; gap: 5px; }
  .gallery { gap: 10px; }
  .cat-grid { gap: 10px; }
  .cat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-4 .cat-card span { font-size: .8rem; padding: 0 8px; }
  .cat-card span { font-size: .85rem; padding: 0 10px; }
  .streetview { height: 380px; }
  .cta-box { padding: 26px 20px; }
  .gallery figcaption { font-size: .8rem; padding: 8px 10px; }
  .booking { padding: 24px 18px; }
  .contact-list li { grid-template-columns: 1fr; }
  .header-inner { height: 72px; }
  .brand img { height: 50px; }
  .main-nav { top: 72px; }
  .hero { padding: 48px 0 60px; }
}

/* Banner marchi a righe centrate (molti loghi) */
.brand-logos-wrap { display: flex; flex-wrap: wrap; justify-content: center; }
.brand-logos-wrap .brand-logo { flex: 0 0 calc((100% - 48px) / 5); }
@media (max-width: 900px) { .brand-logos-wrap .brand-logo { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 520px) { .brand-logos-wrap .brand-logo { flex-basis: calc((100% - 12px) / 2); } }

/* Due sezioni tinte consecutive: niente doppio spazio */
.section-tint + .section-tint { padding-top: 0; }

/* Recensioni Google */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review-stars { color: #f5b301; letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 16px; flex: 1; }
.review blockquote p { margin: 0; font-size: .98rem; line-height: 1.65; color: var(--ink); }
.review figcaption { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.review figcaption span { font-family: var(--font-body, inherit); font-weight: 400; font-size: .85rem; color: var(--muted); }
.reviews .up-cta { margin-top: 28px; text-align: center; }
@media (max-width: 1020px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Mappa e Street View: si caricano solo dopo il consenso (clic) */
.embed-consent { height: 100%; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 28px; background: var(--olive-light); }
.embed-consent p { max-width: 460px; margin: 0; color: var(--muted); font-size: .95rem; }
.embed-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---- Foglie che cadono (sfondo decorativo) ---- */
.leaves { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.leaf { position: absolute; top: -50px; will-change: transform; animation: leaf-fall linear infinite; }
.leaf svg { display: block; width: 100%; height: 100%; animation: leaf-sway ease-in-out infinite alternate; }
@keyframes leaf-fall { to { transform: translateY(calc(100vh + 100px)); } }
@keyframes leaf-sway { from { transform: translateX(-26px) rotate(-35deg); } to { transform: translateX(26px) rotate(55deg); } }
@media (prefers-reduced-motion: reduce) { .leaves { display: none; } }