/* Stile base del sito pubblico.
   Le variabili (--c-*, --radius, --f-*) arrivano da /theme.css, generato dal pannello. */

:root {
  --c-primary: #1f5f4a; --c-on-primary: #fff; --c-accent: #c8743a; --c-on-accent: #111;
  --c-bg: #fbfaf7; --c-surface: #f1eee7; --c-text: #1d2320; --c-muted: #56605b;
  --radius: 14px; --wrap: 1160px;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-head: var(--f-body);
  --line: color-mix(in srgb, var(--c-text) 14%, transparent);
  --space: clamp(3.5rem, 7vw, 6.5rem);
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 10px 30px -12px rgb(0 0 0 / .18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 1.0625rem/1.65 var(--f-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
p, ul, ol { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--c-text); color: var(--c-bg); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.center .actions { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--c-bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--c-text); }
.brand__logo { max-height: 2.75rem; width: auto; }
.brand__name { font: 700 1.2rem/1 var(--f-head); letter-spacing: -.01em; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--c-text); text-decoration: none; font-weight: 500; }
.site-nav a:hover { background: var(--c-surface); }
.site-nav a[aria-current="page"] { color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.nav-toggle { display: none; }
@media (max-width: 800px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--c-text); cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 1.2rem; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; transition: transform .2s; }
  .nav-toggle__bar::before { position: absolute; top: -6px; } .nav-toggle__bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { position: absolute; inset: 100% 0 auto; background: var(--c-bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .8rem 1rem; border-radius: 10px; }
}

/* Pulsanti */
.btn { text-transform: var(--btn-transform, none); letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); box-shadow: 0 6px 18px -8px var(--c-primary); }
.btn--primary:hover { background: color-mix(in srgb, var(--c-primary) 88%, #000); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--line); }
.btn--ghost:hover { border-color: currentColor; }
.btn--light { background: #fff; color: #111; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.actions--center { justify-content: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Sezioni */
.blk { padding-block: var(--space); }
.blk + .blk:not([class*="bg-"]):not(.hero) { padding-top: calc(var(--space) * .5); }
.bg-alt { background: var(--c-surface); }
.bg-primary { background: var(--c-primary); color: var(--c-on-primary); }
.bg-dark { background: var(--c-dark); color: var(--c-on-dark); }
:is(.bg-primary, .bg-dark) a:not(.btn) { color: inherit; }
:is(.bg-primary, .bg-dark) :is(.eyebrow, .btn--ghost) { color: inherit; }
:is(.bg-primary, .bg-dark) .btn--ghost { border-color: color-mix(in srgb, currentColor 75%, transparent); }
:is(.bg-primary, .bg-dark) .btn--ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.bg-dark .btn--primary { background: var(--c-on-dark); color: var(--c-dark); box-shadow: none; }
.bg-dark .btn--primary:hover { background: color-mix(in srgb, var(--c-on-dark) 85%, var(--c-dark)); }
.bg-dark .quote, .bg-dark .form { color: var(--c-text); }
.bg-dark .eyebrow { opacity: .8; }
.head-center .sec-head, .head-center .intro { text-align: center; margin-inline: auto; }
.head-center .sec-top { justify-content: center; text-align: center; }
.sec-top--btn { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.sec-top--btn .sec-head, .sec-top--btn .intro { margin-bottom: 0; }
.sec-top--btn .sec-head { margin-bottom: .5rem; }
.sec-head { margin-bottom: 2rem; max-width: 46rem; }
.center .sec-head, .center > .sec-head { margin-inline: auto; }
.eyebrow { margin: 0 0 .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.75rem); }
h1.title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.75rem); }
.page-head { padding-top: calc(var(--space) * .7); }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.5rem); }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--c-accent); font-style: italic; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--c-muted); }
.intro { max-width: 46rem; margin-bottom: 2.25rem; color: var(--c-muted); }
:is(.bg-primary, .bg-dark) :is(.lead, .intro) { color: inherit; opacity: .88; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__in { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero--split .hero__in { grid-template-columns: 1.05fr 1fr; }
.hero__media { margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: calc(var(--radius) * 1.6); box-shadow: var(--shadow); }
.hero--center .hero__in { text-align: center; max-width: 52rem; }
.hero--center .actions { justify-content: center; }
.hero--center .lead { margin-inline: auto; max-width: 40rem; }
.hero--cover { color: #fff; min-height: min(86vh, 760px); display: grid; align-items: end; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .1) 0%, rgb(0 0 0 / .65) 100%); }
.hero--cover .hero__in { position: relative; z-index: 1; }
.hero--cover .hero__text { max-width: 44rem; }
.hero--cover .eyebrow, .hero--cover .lead { color: #fff; }
.hero--cover .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .6); }
.hero--cover { isolation: isolate; }
@media (max-width: 860px) { .hero--split .hero__in { grid-template-columns: 1fr; } .hero__media { order: -1; } }

/* Testo + immagine */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split--noimg { grid-template-columns: 1fr; max-width: 760px; }
.split__media { margin: 0; }
.split__media img { width: 100%; border-radius: calc(var(--radius) * 1.4); object-fit: cover; aspect-ratio: 4/3.2; }
.split--contact, .split--map { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* Card */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.card { background: var(--c-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.bg-alt .card { background: var(--c-bg); }
:is(.bg-primary, .bg-dark) .card { color: var(--c-text); background: var(--c-surface); border-color: transparent; }
.card:hover { box-shadow: var(--shadow); }
.card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card__body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.2rem; margin-bottom: .5em; }
.card__link { margin: auto 0 0; padding-top: 1rem; font-weight: 600; }
.card__link a { text-decoration: none; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.1rem; margin: 0; display: inline; }
.faq__item summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; translate: 0 -50%; font-size: 1.6rem; font-weight: 400; color: var(--c-primary); transition: rotate .2s; }
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item .prose { padding: 0 0 1.4rem; color: var(--c-muted); }

/* Galleria */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: calc(var(--radius) * .8); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .9rem; color: var(--c-muted); padding-top: .4rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin: .6rem 0 0; }
.lightbox button { position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; }

/* Testimonianze */
.quotes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.quote { margin: 0; height: 100%; padding: 1.75rem; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; color: var(--c-text); }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote blockquote::before { content: "“"; display: block; font: 700 3rem/1 Georgia, serif; color: var(--c-accent); height: 1.6rem; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .95rem; }
.quote figcaption span { color: var(--c-muted); }
.note { margin-top: 1.25rem; font-size: .9rem; color: var(--c-muted); }

/* Mappa e orari */
.addr { margin-top: 1.5rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 28rem; margin-top: 1rem; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--c-surface); min-height: 380px; display: grid; }
.bg-alt .map { background: var(--c-bg); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.map__placeholder { display: grid; place-content: center; gap: 1rem; text-align: center; padding: 2rem; color: var(--c-muted); font-size: .95rem; max-width: 30rem; margin: auto; }

/* Contatti e modulo */
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.contact-list a { font-size: 1.1rem; }
.form { background: var(--c-bg); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow); color: var(--c-text); }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--c-muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--c-text); background: #fff; border: 1.5px solid color-mix(in srgb, var(--c-text) 25%, transparent); border-radius: calc(var(--radius) * .6); padding: .75rem .9rem; min-height: 3rem; }
.field input:focus, .field textarea:focus { border-color: var(--c-primary); outline: 3px solid color-mix(in srgb, var(--c-primary) 25%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .9rem; margin: 0; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 1.3rem; height: 1.3rem; min-height: 0; margin-top: .15rem; accent-color: var(--c-primary); }
.field--check label { font-weight: 400; }
.form__note { font-size: .85rem; color: var(--c-muted); margin: 0; }
.form__status:empty { display: none; }
.form__status p { margin: 0; padding: .9rem 1rem; border-radius: calc(var(--radius) * .6); }
.form__status .ok { background: #e7f4ec; color: #14532d; }
.form__status .err { background: #fdecea; color: #8a1c14; }
.form .btn { justify-self: start; }
.form button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* CTA */
.cta__box .title { margin-bottom: .4em; }

/* Footer */
.site-footer { background: color-mix(in srgb, var(--c-text) 96%, var(--c-primary)); color: color-mix(in srgb, #fff 82%, transparent); padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a, .site-footer .linklike { color: #fff; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer__name { font: 700 1.2rem/1.3 var(--f-head); color: #fff; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.social { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Consenso */
.consent { position: fixed; inset: auto 1rem 1rem; z-index: 90; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__in { max-width: 44rem; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); box-shadow: 0 20px 60px -15px rgb(0 0 0 / .35); padding: 1.4rem 1.5rem; font-size: .95rem; }
.consent__title { font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.consent__opts { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.check { display: flex; gap: .6rem; align-items: center; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--c-primary); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.consent__actions .btn { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .95rem; }

/* Varie */
.preview-bar { position: sticky; top: 0; z-index: 60; background: #fff4c2; color: #4a3b00; text-align: center; padding: .6rem 1rem; font-size: .9rem; border-bottom: 1px solid #e6d27a; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; }
.custom { padding-block: calc(var(--space) * .6); }

/* ---------- Menu trasparente sopra la foto ---------- */
.header-social { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.header-social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: inherit; }
.header-social a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.ico { width: 1.6rem; height: 1.6rem; flex: none; }
.brand__logo--light { display: none; }
.has-overlay .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; backdrop-filter: none; color: #fff; transition: background-color .25s, color .25s, border-color .25s; }
.has-overlay .site-header__in { min-height: 6rem; }
.has-overlay .site-header .brand, .has-overlay .site-header .site-nav a { color: #fff; }
.has-overlay .site-header .site-nav a:hover, .has-overlay .site-header .site-nav a[aria-current="page"] { background: rgb(255 255 255 / .14); color: #fff; }
.has-overlay .site-header .nav-toggle { color: #fff; border-color: rgb(255 255 255 / .5); }
.has-overlay .site-header .brand__logo--dark { display: none; }
.has-overlay .site-header .brand__logo--light { display: block; }
.has-overlay .site-header .brand__logo { max-height: 4.5rem; }
.has-overlay .site-header.is-solid { background: color-mix(in srgb, var(--c-bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-color: var(--line); color: var(--c-text); }
.has-overlay .site-header.is-solid .site-header__in { min-height: 4.5rem; }
.has-overlay .site-header.is-solid :is(.brand, .site-nav a) { color: var(--c-text); }
.has-overlay .site-header.is-solid .site-nav a:hover { background: var(--c-surface); }
.has-overlay .site-header.is-solid .site-nav a[aria-current="page"] { color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.has-overlay .site-header.is-solid .nav-toggle { color: var(--c-text); border-color: var(--line); }
.has-overlay .site-header.is-solid .brand__logo { max-height: 2.75rem; }
.has-overlay .site-header.is-solid .brand__logo--dark { display: block; }
.has-overlay .site-header.is-solid .brand__logo--light:not(:only-of-type) { display: none; }
@media (max-width: 800px) { .header-social { margin-left: auto; } .nav-toggle { order: 3; } .header-social a { width: 2.4rem; height: 2.4rem; } }
@media (min-width: 801px) { .site-nav { margin-left: auto; } .site-nav ul { gap: clamp(.25rem, 2.5vw, 3rem); } }

/* ---------- Hero a tutto schermo ---------- */
.hero--cover { display: grid; align-items: center; min-height: min(86vh, 820px); padding-block: 7rem 6rem; }
.hero--first.hero--cover { min-height: 100vh; min-height: 100svh; }
.hero__bg::after { background: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .45) 100%); }
.hero--ov-light .hero__bg::after { background: linear-gradient(180deg, rgb(0 0 0 / .25) 0%, rgb(0 0 0 / .25) 100%); }
.hero--ov-strong .hero__bg::after { background: linear-gradient(180deg, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / .65) 100%); }
.hero--centered .hero__in { text-align: center; justify-items: center; }
.hero--centered .hero__text { max-width: 50rem; margin-inline: auto; }
.hero--centered .actions { justify-content: center; }
.hero--centered .lead { margin-inline: auto; }
.hero--cover h1.title, .hero--cover .title { text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.hero__scroll { position: absolute; inset: auto 0 0; z-index: 1; display: flex; justify-content: center; align-items: center; gap: .6rem; padding: 1rem 1.25rem; background: color-mix(in srgb, var(--c-dark) 92%, transparent); color: var(--c-on-dark); text-decoration: none; font-size: clamp(1rem, .9rem + .4vw, 1.3rem); }
.hero__scroll .ico { width: 1.3rem; height: 1.3rem; transition: transform .2s; }
.hero__scroll:hover .ico { transform: translateY(3px); }
.hero:has(.hero__scroll) { padding-bottom: 8rem; }

/* ---------- Card: passaggi e riquadri ---------- */
.cards--steps .card__body { padding: 1.75rem 1.75rem 2rem; }
.card__step { position: relative; display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; }
.card__step--icon { background: none; width: 3.5rem; height: 3.5rem; border-radius: 0; color: #fff; }
.card__step--icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card__step span { position: relative; font-size: 1rem; line-height: 1; }
.card__step--icon span { font-size: .85rem; transform: translateY(-2px); }
.card__icon img { width: 3.5rem; height: 3.5rem; object-fit: contain; margin-bottom: 1rem; }
.cards--outline .card { background: transparent; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); color: inherit; }
:is(.bg-primary, .bg-dark) .cards--outline .card { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; border-color: color-mix(in srgb, currentColor 70%, transparent); }
.cards--outline .card:hover { box-shadow: none; }
.cards--outline .card__body { padding: 1.4rem 2rem 1.5rem; }
.cards--outline .card__title { font-family: var(--f-body); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.cards--outline .prose { font-size: .92rem; opacity: .9; }

/* ---------- Galleria mosaico / colonne ---------- */
.gallery--bento { grid-template-columns: repeat(var(--gcols, 3), 1fr); grid-auto-rows: clamp(140px, 17vw, 240px); grid-auto-flow: dense; gap: 1rem; }
.gallery--bento.cols-2 { --gcols: 2; } .gallery--bento.cols-4 { --gcols: 4; }
.gallery--bento li:nth-child(6n+1) { grid-column: span 2; }
.gallery--bento li:nth-child(6n+2) { grid-row: span 2; }
.gallery--bento li:nth-child(6n) { grid-column: span 2; }
.gallery--bento figure, .gallery--bento a { height: 100%; }
.gallery--bento img { height: 100%; aspect-ratio: auto; }
.gallery--bento figcaption { display: none; }
.gallery--masonry { display: block; columns: var(--gcols, 3) 240px; column-gap: 1rem; }
.gallery--masonry.cols-2 { --gcols: 2; } .gallery--masonry.cols-4 { --gcols: 4; }
.gallery--masonry li { break-inside: avoid; margin-bottom: 1rem; }
.gallery--masonry img { aspect-ratio: auto; }
@media (max-width: 640px) {
  .gallery--bento { --gcols: 2 !important; grid-auto-rows: 42vw; }
  .gallery--bento li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery--bento li:nth-child(3n+1) { grid-column: span 2; }
}

/* ---------- Testimonianze a fumetto ---------- */
.quotes--bubble .quote { background: none; border: 0; padding: 0; gap: 1.1rem; }
.quotes--bubble blockquote { background: var(--c-surface); padding: 2.1rem 2.5rem; border-radius: 3rem 3rem 3rem 0; flex: 1; }
.quotes--bubble blockquote::before { display: none; }
.quotes--bubble figcaption { flex-direction: row; align-items: center; gap: .9rem; margin-top: 0; color: var(--c-muted); }
.quotes--bubble figcaption strong { font-weight: 400; }
.quotes--bubble .quote__role { color: inherit; }
.quote__avatar { display: grid; place-items: center; flex: none; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: color-mix(in srgb, var(--c-dark) 30%, var(--c-surface)); color: #fff; font: 700 1.4rem/1 var(--f-body); }
.bg-alt .quotes--bubble blockquote { background: var(--c-bg); }

/* ---------- Testo + 2 immagini, indirizzo ---------- */
.split__media--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split__media figure { margin: 0; }
.split__media--two img { aspect-ratio: 3/4.2; }
.split--two { grid-template-columns: 1fr 1.25fr; }
.split--two.split--rev { grid-template-columns: 1fr 1.25fr; }
.split--two.split--rev .split__text { order: -1; }
.addr-line { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; }
.addr-line .ico { width: 1.35rem; height: 1.35rem; color: var(--c-accent); margin-top: .15rem; }
.addr-line a { color: inherit; text-decoration: none; }
.addr-line a:hover { text-decoration: underline; }
.note-line { color: var(--c-muted); margin-top: 1.5rem; margin-bottom: 0; }
.note-line + .actions { margin-top: 1rem; }
@media (max-width: 860px) { .split--two, .split--two.split--rev { grid-template-columns: 1fr; } .split--two.split--rev .split__text { order: 0; } }

/* ---------- WhatsApp fisso ---------- */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem); z-index: 80; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: #3f9b62; color: #fff; box-shadow: 0 8px 24px -6px rgb(0 0 0 / .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ico { width: 2.1rem; height: 2.1rem; }
body:has(.consent:not([hidden])) .wa-float { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .consent, .site-footer .legal-links, .form { display: none !important; }
}
