/* ITOP Ortopedia Chirsan — stile condiviso */
/* Open Sans (licenza SIL OFL 1.1, assets/fonts/OFL.txt) servito dal sito stesso:
   niente richieste a Google Fonts, quindi nessun indirizzo IP dei visitatori inviato a terzi.
   Un solo file variabile per tutti i pesi (400-800); latin-ext solo per caratteri rari. */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap;
  src: url(/assets/fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap;
  src: url(/assets/fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --green: #12876f;
  --green-dark: #0b5e4d;
  --green-deep: #08463a;
  --green-soft: #e4f3ee;
  --green-line: #bfe2d6;
  --ink: #1f2a27;
  --text: #4a5552;
  --muted: #74807c;
  --line: #e3e8e6;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --footer: #3b4240;
  --wa: #1fae55;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(15, 40, 33, .06), 0 8px 24px rgba(15, 40, 33, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head p { margin: 0; max-width: 56ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178f45; }
.btn--ghost { border-color: var(--green-line); color: var(--green-dark); background: #fff; }
.btn--ghost:hover { border-color: var(--green); }
.btn--white { background: #fff; color: var(--green-dark); }
.btn--outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--green); }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--green-dark); }

/* Topbar */
.topbar { background: var(--green); color: #fff; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__info { display: flex; gap: 22px; align-items: center; }
.topbar__info span { opacity: .85; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social svg { width: 18px; height: 18px; fill: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
/* il logo non si restringe mai: senza flex:none la barra del menu lo schiacciava in larghezza */
.logo { flex: none; display: block; }
.logo img { height: 52px; width: auto; max-width: none; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font: inherit; font-size: .93rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav > ul > li > a:hover, .nav > ul > li > button:hover,
.nav > ul > li > a[aria-current="page"] { color: var(--green); background: var(--green-soft); }
.nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: none; gap: 28px; min-width: 640px;
}
.mega--narrow { min-width: 460px; }
.has-sub:hover .mega, .has-sub:focus-within .mega { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.mega h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .92rem; }
.mega a:hover { color: var(--green); }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.header__cta { display: flex; gap: 8px; flex: none; }
.header__cta .btn { white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Hero home */
.hero { background: var(--green); color: #fff; position: relative; overflow: hidden; padding: 64px 0 96px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 50% 100%, 0 calc(100% - 48px)); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7ff0c4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.needs__title { grid-column: 1 / -1; color: #fff; font-size: 1.1rem; margin: 0 0 4px; }
.need {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.need:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.need img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--green-soft); flex: none; }
.need strong { display: block; font-size: 1rem; line-height: 1.25; }
.need small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }

/* Mobile: le scelte subito sotto il titolo */
@media (max-width: 1080px) {
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__text { display: contents; }
  .hero__badge { order: 1; align-self: flex-start; }
  .hero h1 { order: 2; }
  .hero .needs { order: 3; margin: 8px 0 24px; }
  .hero .lead { order: 4; }
  .hero__actions { order: 5; margin-top: 4px; }
}

/* Trust strip */
.trust { margin-top: -10px; padding: 36px 0 8px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust .ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.trust .ico svg { width: 22px; height: 22px; }
.trust strong { display: block; color: var(--ink); font-size: .98rem; }
.trust span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }

/* Griglia prodotti */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.product__img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.product__img { position: relative; overflow: hidden; }
.product__img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.product h3 { margin: 0; font-size: 1.05rem; }
.product__price { margin-top: auto; padding-top: 8px; color: var(--ink); font-size: .9rem; }
.product__price b { font-size: 1.35rem; color: var(--green-dark); }
.product__price em { font-style: normal; color: var(--muted); font-size: .82rem; display: block; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--4 .card__img { height: 150px; }
/* accanto ai testi lunghi l'immagine resta visibile mentre si scorre */
.split > .prose ~ .split__media { align-self: start; position: sticky; top: 110px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; font-size: .95rem; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }

/* Banda valutazione */
.band { background: var(--green); color: #fff; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.band__body { padding: 48px; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.88); }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; background: #7ff0c4; color: var(--green-deep); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
/* Varianti del riquadro verde: immagine a sinistra, immagine su fondo chiaro, punti in griglia (fascia della home) */
.band--reverse .band__media { order: -1; }
.band__media--light { background: var(--green-soft); display: grid; place-items: center; }
.band__media--light img { object-fit: contain; padding: 24px; max-height: 420px; }
.band--points { display: block; padding: 32px 40px 36px; }
.trust .band--points ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.trust .band--points li { display: flex; gap: 12px; align-items: flex-start; }
.trust .band--points .ico { background: rgba(255,255,255,.12); color: #7ff0c4; }
.trust .band--points strong { color: #fff; }
.trust .band--points li span { color: rgba(255,255,255,.8); }
.trust .band--points .tag { display: inline-block; color: var(--green-deep); font-size: .78rem; line-height: inherit; }
.band--points h2 { margin: 0 0 22px; }
.band--points .btn { margin-top: 28px; }
.band .services li { border-top-color: #7ff0c4; }
.band .services strong { color: #fff; }
.band .services span { color: rgba(255,255,255,.8); }

/* Servizi in sede */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.services li { border-top: 3px solid var(--green); padding-top: 14px; }
.services strong { display: block; color: var(--ink); }
.services span { font-size: .92rem; color: var(--muted); }

/* Contatti */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.contact__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 12px; align-items: center; }
.contact__list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact__list a:hover { color: var(--green); }
.contact__box { background: var(--green-soft); border-radius: var(--radius); padding: 28px; }
.hours { border-collapse: collapse; margin: 0 0 10px; font-size: .95rem; }
.hours th { text-align: left; font-weight: 600; color: var(--ink); padding: 6px 24px 6px 0; }
.hours td { padding: 6px 0; }
.hours td span { color: var(--muted); }
.hours__now { font-weight: 700; font-size: .92rem; margin-bottom: 22px; min-height: 1.4em; }
.hours__now::before, .topbar__hours.is-open::before, .topbar__hours.is-closed::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.hours__now.is-open { color: var(--green-dark); }
.hours__now.is-open::before { background: var(--wa); }
.hours__now.is-closed { color: #9a4b1c; }
.hours__now.is-closed::before { background: #d9822b; }
.topbar__hours.is-open::before { background: #7ff0c4; }
.topbar__hours.is-closed::before { background: #ffc58f; }

/* Hero interno (schede) */
.page-hero { background: var(--green); color: #fff; padding: 48px 0 104px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 50% 100%, 0 calc(100% - 56px)); }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { color: rgba(255,255,255,.9); }
.page-hero__img { background: #fff; border-radius: 22px; padding: 18px; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: rgba(255,255,255,.8); }
.crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; }

/* Indice categorie */
.page-hero--plain { padding-bottom: 96px; }
.page-hero--plain .wrap { display: block; }
.page-hero--plain .lead { margin-bottom: 0; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--green-dark); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; transition: transform .15s; }
.cat-nav a:hover { transform: translateY(-1px); }
.cat-nav span { background: var(--green-soft); border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.cat-section { scroll-margin-top: 80px; }
.products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.products--single { grid-template-columns: minmax(0, 820px); }
.products--single .product { flex-direction: row; }
.products--single .product__img { flex: 0 0 40%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.products--single .product__body { padding: 28px; justify-content: center; }
.products--single .product__price { margin-top: 8px; }
@media (max-width: 1080px) { .products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cat-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cat-nav a { justify-content: space-between; padding: 10px 14px; font-size: .9rem; } }
@media (max-width: 600px) { .products--single .product { flex-direction: column; } .products--single .product__img { border-right: 0; border-bottom: 1px solid var(--line); } }
.product__desc { font-size: .88rem; color: var(--muted); line-height: 1.45; margin: 0; }

/* Schede "I più richiesti" della home, nello stile del riquadro verde; su telefono una fila che si scorre */
.product--band { background: var(--green); color: #fff; border: 0; border-radius: 22px; padding: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.product--band:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(18, 135, 111, .3); }
.product--band .product__img { background: var(--green-soft); border-bottom: 0; border-radius: 14px; aspect-ratio: 4 / 3; }
.product--band .product__img img { mix-blend-mode: multiply; transition: transform .3s ease; }
.product--band:hover .product__img img { transform: scale(1.04); }
.product__badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: #fff; color: var(--green-dark); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.product--band .product__body { padding: 16px 10px 8px; gap: 4px; }
.product--band .product__tag { align-self: flex-start; margin-bottom: 6px; font-size: .7rem; padding: 3px 10px; }
.product--band h3 { color: #fff; }
.product--band .product__desc { color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* card verdi dei servizi (ortopedia, esami, plantari): senza prezzo, il pulsante va comunque in fondo */
.product--band.product--servizio .product__desc { margin-bottom: 14px; }
.product--band.product--servizio .product__go { margin-top: auto; }
.product--band.product--servizio h3:has(+ .product__go) { margin-bottom: 14px; } /* card senza descrizione */
/* foto vere (scene intere): riempiono tutto il riquadro invece di stare scontornate al centro */
.product--band .product__img--foto img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.product--band .product__img.product__img--foto { aspect-ratio: 4 / 3; } /* anche su telefono: le foto sono orizzontali */
.product--band .product__price { color: rgba(255,255,255,.85); }
.product--band .product__price b { font-size: 1.6rem; color: #fff; }
.product--band .product__price em { margin-top: 2px; color: rgba(255,255,255,.75); }
.product--band .product__go { justify-content: center; margin-top: 14px; padding: 10px 16px; font-size: .9rem; }
.product__go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.product--band:hover .product__go svg { transform: translateX(3px); }
.products__nav { display: none; }
@media (max-width: 600px) {
  .products--band { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 6px 16px 18px; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .products--band::-webkit-scrollbar { display: none; }
  .products--band .product { flex: 0 0 72%; scroll-snap-align: start; }
  .products--band .product:only-child { flex-basis: 100%; }
  .product--band .product__img { aspect-ratio: 1 / 1; }
  .product--band .product__body { padding: 14px 8px 6px; }
  .product--band h3 { font-size: 1.12rem; }
  .product--band .product__price { margin-top: 6px; }
  .product--band .product__price b { font-size: 1.7rem; }
  .products__nav { display: flex; align-items: center; gap: 12px; margin: 2px 0 6px; }
  .products__bar { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
  .products__bar span { display: block; height: 100%; width: 12.5%; border-radius: 999px; background: var(--green); transition: width .2s ease; }
  .products__count { font-size: .82rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
}

/* Prezzi */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -60px; position: relative; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price--featured { border: 2px solid var(--green); }
.price__flag { align-self: flex-start; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.price h3 { margin: 0; font-size: 1.2rem; }
.price__sub { color: var(--muted); font-size: .9rem; margin: 2px 0 14px; }
.price__amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 18px; }
.price__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: .95rem; }
.price li { padding-left: 28px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312876f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.price .btn { margin-top: auto; justify-content: center; }
.note { font-size: .88rem; color: var(--muted); margin-top: 18px; }

/* Caratteristiche */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.feature h3 { display: flex; gap: 10px; align-items: center; }
.feature h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--green); flex: none; }
.feature p { margin: 0; font-size: .96rem; }
.quote { border-left: 4px solid var(--green); padding: 2px 0 2px 18px; font-style: italic; color: var(--ink); margin: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.why h3 { color: var(--green-dark); }
.why p { font-size: .96rem; margin: 0; }

.help { background: var(--green); color: #fff; border-radius: 22px; padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.help h2 { color: #fff; margin: 0 0 4px; }
.help p { margin: 0; color: rgba(255,255,255,.9); }
.help__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Schede: prezzi a gruppi, video, racconto */
.section--pricing { padding-top: 0; }
.section--pricing .pricing { margin-top: 0; }
.section--pricing .wrap > .pricing:first-child { margin-top: -60px; }
.pricing--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing__group { font-size: 1.3rem; margin: 40px 0 16px; }
.pricing__group--first { margin-top: 8px; }
.price__amount--custom { font-size: 1.6rem; }
.steps { margin-top: 48px; }
.steps__title { font-size: 1.4rem; margin-bottom: 18px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: passo; }
.steps li { counter-increment: passo; background: var(--green-soft); border-radius: var(--radius); padding: 22px 22px 22px 74px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(passo); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps strong { color: var(--ink); font-size: 1.02rem; }
.steps span { font-size: .93rem; line-height: 1.5; }
.steps .link-arrow { font-size: .92rem; margin-top: 6px; }
.steps--5 { margin-top: 0; }
.steps--5 ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.steps--5 li { background: #fff; border: 1px solid var(--line); padding: 66px 18px 20px; }
.steps--5 li::before { left: 18px; top: 18px; }
@media (max-width: 1080px) { .steps ol, .steps--5 ol { grid-template-columns: 1fr; } .steps--5 li { padding: 22px 22px 22px 74px; } .steps--5 li::before { left: 22px; top: 20px; } }
.video-wrap { max-width: 720px; margin: 36px auto 0; }
.video { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .15s; }
.video:hover img { opacity: 1; }
.video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--green); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.video__play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; color: #fff; font-weight: 700; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.stack { display: grid; gap: 64px; }
.split--reverse > :first-child { order: 2; }
.split__media img { max-height: 440px; object-fit: contain; background: #fff; }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features:has(.feature--img) { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.features--3:has(.feature--img) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature--img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature--img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature--img > div { padding: 18px 22px 22px; }
.feature p + p { margin-top: .6em; }
.why--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why p { margin-bottom: .6em; }
.why strong, .feature strong { font-weight: inherit; color: inherit; }

/* Testi lunghi */
.prose h2 { margin-bottom: .4em; }
.prose h3 { margin: 1.4em 0 .4em; color: var(--green-dark); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose ul:has(> li:nth-child(7)) { columns: 2; column-gap: 32px; }
.prose ul:has(> li:nth-child(7)) li { break-inside: avoid; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.article { max-width: 780px; }
.article__cover { border-radius: var(--radius); margin-bottom: 32px; width: 100%; }
.prose--long { font-size: 1.05rem; }
.prose--long h2 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose--long > ol:first-child { background: var(--green-soft); border-radius: var(--radius); padding: 20px 20px 20px 42px; }

/* Card cliccabili */
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--big .card__img { width: 100%; height: 200px; object-fit: contain; border-radius: 10px; background: var(--bg-alt); }
.card--big .card__img--foto { object-fit: cover; background: none; }

/* Chi siamo */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.timeline__step { border-top: 3px solid var(--green); padding-top: 18px; }
.timeline__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 12px; }
.timeline h2 { font-size: 1.4rem; }

/* Blog */
.posts { display: grid; gap: 24px; }
.post-card { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: center; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card > div { padding: 24px 28px 24px 0; }
.post-card h2 { font-size: 1.5rem; margin-top: 6px; }
.post-card:hover { box-shadow: var(--shadow); }
.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.blog-cats a { border: 1px solid var(--green-line); color: var(--green-dark); background: var(--green-soft); font-weight: 600; font-size: .92rem; padding: 7px 16px; border-radius: 999px; text-decoration: none; }
.blog-cats a:hover { border-color: var(--green); }
.byline { color: rgba(255,255,255,.9); font-size: .95rem; margin: 0; }
.toc { background: var(--green-soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc__title { font-weight: 700; color: var(--green-deep); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: .3em; }
.toc a { color: var(--green-dark); }
.callout { border-left: 4px solid var(--green); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 1.2em; }
.callout > :last-child { margin-bottom: 0; }
.prose blockquote { border-left: 4px solid var(--green-line); margin: 0 0 1.2em; padding: 4px 0 4px 18px; color: var(--ink); font-style: italic; }
.prose--long table { display: block; overflow-x: auto; }

@media (max-width: 1080px) {
  .features--3, .why--2, .timeline { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split > .prose ~ .split__media { position: static; }
  .split--reverse > :first-child { order: 0; }
  .post-card { grid-template-columns: 1fr; }
  .post-card > div { padding: 0 22px 24px; }
  .section--pricing .wrap > .pricing:first-child { margin-top: -40px; }
}

/* Schede: blocchi del piano SEO */
figure.page-hero__img { margin: 0; }
.page-hero__img figcaption { font-size: .82rem; color: var(--muted); line-height: 1.4; padding: 10px 4px 0; }
.page-hero__img figcaption a { color: var(--green-dark); font-weight: 600; }
.facts a { color: inherit; text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.price__day { margin: -12px 0 16px; font-size: .9rem; color: var(--green-dark); font-weight: 600; }
.who { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.who__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.who__list li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.who__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.who__list strong { color: var(--ink); }
.who__list span { font-size: .96rem; }
.specs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.specs h3 { margin-bottom: 14px; }
.specs dl { margin: 0; display: grid; }
.specs dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dl div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }
.specs__note { font-size: .84rem; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: .97rem; }
.near { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.zones { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zones li { background: #fff; border: 1px solid var(--green-line); color: var(--green-dark); border-radius: 999px; padding: 5px 14px; font-size: .9rem; font-weight: 600; }
.reviews { display: grid; gap: 14px; }
.reviews__score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; text-decoration: none; color: var(--ink); }
.reviews__score b { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.reviews__score span { color: #e8a317; font-size: 1.5rem; }
.reviews__score small { color: var(--muted); font-size: .92rem; }
.reviews blockquote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.reviews blockquote p { margin: 0 0 4px; font-size: .95rem; color: var(--ink); }
.reviews cite { font-style: normal; font-size: .84rem; color: var(--muted); }
@media (max-width: 1080px) { .who, .near { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .specs dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Footer */
.footer { background: var(--footer); color: #d9dedc; font-size: .93rem; padding: 56px 0 28px; margin-top: 72px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #d9dedc; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer__logo img { height: 40px; width: auto; }
.footer__bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; margin-top: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #aab3b0; }
.footer__bottom nav { display: flex; gap: 18px; }

/* WhatsApp flottante */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 20px 14px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.fab svg { width: 24px; height: 24px; fill: #fff; }
.fab:hover { background: #178f45; }
.callbar { display: none; }
.menu-toggle__label, .callbar__menu { display: none; }

/* Menu per telefono e tablet (contenuto generato da _tools/menu-mobile.js, funzionamento in main.js) */
.msheet { position: fixed; inset: 0; z-index: 200; }
.msheet[hidden] { display: none; }
.msheet__backdrop { position: absolute; inset: 0; background: rgba(8, 30, 25, .45); opacity: 0; transition: opacity .25s ease; }
.msheet__panel { position: absolute; left: 0; right: 0; bottom: 0; top: 8px; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.msheet.is-open .msheet__backdrop { opacity: 1; }
.msheet.is-open .msheet__panel { transform: none; }
.msheet__handle { width: 40px; height: 5px; border-radius: 999px; background: var(--line); margin: 8px auto 2px; }
.msheet__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 12px 8px; }
.msheet__title { grid-column: 2; font-size: 1.05rem; color: var(--ink); }
.ms-back, .ms-close { border: 0; background: none; display: inline-flex; align-items: center; gap: 2px; color: var(--green-dark); font: inherit; font-weight: 700; font-size: .92rem; padding: 8px; cursor: pointer; }
.ms-back { grid-column: 1; justify-self: start; }
.ms-back[hidden] { display: none; }
.ms-close { grid-column: 3; justify-self: end; width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--green-soft); }
.ms-back svg, .ms-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ms-search { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 0 14px; height: 48px; border-radius: 14px; background: #f3f6f5; border: 1px solid var(--line); }
.ms-search:focus-within { border-color: var(--green); background: #fff; }
.ms-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.ms-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); outline: none; min-width: 0; }
.msheet__views { position: relative; flex: 1; overflow: hidden; }
.ms-view { position: absolute; inset: 0; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 32px; transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; }
.ms-view.is-active { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.ms-view.is-left { transform: translateX(-30%); }
.ms-label { margin: 6px 2px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.ms-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 12px; border-radius: 16px; background: var(--green-soft); border: 0; text-align: left; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.ms-tile:active { transform: scale(.98); }
.ms-tile__img { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 8px; }
.ms-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.ms-tile b { font-size: .95rem; line-height: 1.25; }
.ms-tile small { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.ms-links { margin-top: 14px; border-top: 1px solid var(--line); }
.ms-links a { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.ms-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ms-shop { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--green); color: #fff; }
.ms-shop p { margin: 0 0 4px; font-size: .88rem; color: rgba(255,255,255,.85); }
.ms-shop .ms-shop__state { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.ms-shop .link-arrow { color: #7ff0c4; font-size: .9rem; }
.ms-dot { width: 9px; height: 9px; border-radius: 50%; background: #7ff0c4; flex: none; }
.ms-chips { position: sticky; top: -4px; z-index: 1; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 8px 16px 10px; background: #fff; scrollbar-width: none; }
.ms-chips::-webkit-scrollbar { display: none; }
.ms-chips a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .85rem; text-decoration: none; }
.ms-group { scroll-margin-top: 56px; }
.ms-group h3 { margin: 14px 2px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.ms-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 60px; }
.ms-thumb { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; overflow: hidden; }
.ms-thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.ms-thumb--foto img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.ms-row__txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ms-row__txt b { font-size: .95rem; font-weight: 700; }
.ms-row__txt small { font-size: .82rem; color: var(--green-dark); font-weight: 700; }
.ms-all { width: 100%; justify-content: center; margin-top: 18px; }
.ms-empty { text-align: center; padding: 24px 8px; }
.ms-empty .btn { margin-top: 8px; }
body.ms-lock { overflow: hidden; }
/* Tablet: il pannello entra da destra invece che dal basso */
@media (min-width: 601px) {
  .msheet__panel { left: auto; top: 0; width: 440px; border-radius: 22px 0 0 22px; transform: translateX(100%); }
  .msheet__handle { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .msheet__panel, .ms-view, .msheet__backdrop { transition: none; } }

/* Responsive */
@media (max-width: 1360px) {
  .header__cta .btn--ghost { display: none; }
  .nav > ul > li > a, .nav > ul > li > button { padding: 10px 8px; font-size: .88rem; }
}
@media (max-width: 1080px) {
  .menu-toggle { display: inline-grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 8px 12px; }
  .menu-toggle span { grid-column: 1; margin: 2px 0; }
  .menu-toggle .menu-toggle__label { display: block; grid-column: 2; grid-row: 1 / span 3; width: auto; height: auto; margin: 0; background: none; font-size: .85rem; font-weight: 700; color: var(--ink); }
  .header__cta { display: none; }
  .nav { display: none; }
  .hero .wrap, .page-hero .wrap, .split, .contact, .band { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust ul, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .why, .pricing { grid-template-columns: 1fr; }
  .pricing { margin-top: -40px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .band__media { order: -1; max-height: 260px; overflow: hidden; }
  .page-hero__img { max-width: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .topbar__info span, .topbar__mail { display: none; }
  .topbar__info .topbar__hours { display: inline; font-size: .8rem; }
  .hero { padding: 40px 0 84px; }
  .needs { grid-template-columns: 1fr; }
  .products { gap: 12px; }
  .product__body { padding: 12px; }
  .product__price b { font-size: 1.15rem; }
  .features, .gallery { grid-template-columns: 1fr; }
  .band__body, .help, .band--points { padding: 28px 22px; }
  .trust .band--points ul, .band .services { grid-template-columns: 1fr; gap: 16px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .mega, .has-sub:hover .mega, .has-sub:focus-within .mega { grid-template-columns: 1fr; }
  .fab { display: none; }
  .page-hero__img { padding: 12px; }
  .page-hero__img img { max-height: 180px; width: auto; margin: 0 auto; }
  .facts li { font-size: .8rem; padding: 4px 10px; }
  .callbar { display: grid; grid-template-columns: 20% 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
  .callbar a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px; color: #fff; font-weight: 700; text-decoration: none; }
  .callbar svg { width: 20px; height: 20px; fill: currentColor; }
  .callbar__tel { background: var(--green); }
  .callbar__wa { background: var(--wa); }
  .callbar .callbar__menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 8px; background: #fff; color: var(--green-deep); border: 0; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
  .callbar .callbar__menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Sito installabile come app (solo telefono): invito al centro con la pagina sfocata dietro, istruzioni, voce nel menu */
.appmodal[hidden], .ms-app[hidden], .apphelp__arrow[hidden] { display: none; }
.appmodal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; }
.appmodal__backdrop { position: absolute; inset: 0; background: rgba(8, 30, 25, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: appmodal-fade .25s ease both; }
.appmodal__box { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 28px 22px 18px; text-align: center; box-shadow: 0 20px 60px rgba(8, 30, 25, .3); animation: appmodal-in .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes appmodal-fade { from { opacity: 0; } }
@keyframes appmodal-in { from { opacity: 0; transform: scale(.94); } }
.appmodal__ico { display: block; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(8, 30, 25, .12); }
.appmodal__box h2 { font-size: 1.25rem; margin: 14px 0 8px; }
.appmodal__box p { font-size: .92rem; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.appmodal__box .btn { width: 100%; justify-content: center; }
.appmodal__later { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.apphelp .appmodal__box { padding-top: 22px; }
.apphelp .appmodal__box h2 { margin-bottom: 12px; }
.apphelp ol { list-style: none; margin: 0 0 12px; padding: 0; text-align: left; }
.apphelp li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.apphelp__k { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; }
.apphelp__k svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.apphelp__k svg circle { fill: currentColor; stroke: none; }
.apphelp .appmodal__box p { font-size: .86rem; margin-bottom: 14px; }
/* freccia ferma che indica la barra di Safari in fondo allo schermo */
.apphelp__arrow { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; font-weight: 700; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.4); pointer-events: none; }
.apphelp__arrow svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.apphelp--ios .appmodal__box { margin-bottom: 60px; }
.ms-app { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.ms-app > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ms-app small { font-size: .8rem; color: var(--muted); }
.ms-app__ico img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); display: block; }
@media (prefers-reduced-motion: reduce) { .appmodal__backdrop, .appmodal__box { animation: none; } }

/* Quiz terapia domiciliare (pagina /terapia-domiciliare/, generata da _tools/terapia-quiz.js) */
.quiz-sec { padding-top: 0; margin-top: -56px; position: relative; z-index: 2; }
.quiz { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 32px; max-width: 900px; margin: 0 auto; }
.quiz__head h2 { margin: 4px 0 6px; }
.quiz__head p { margin: 0; color: var(--text); }
.quiz__bar { height: 6px; border-radius: 999px; background: var(--line); margin: 22px 0 6px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .25s ease; }
.quiz__step { font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.quiz__q { font-size: 1.3rem; margin: 0 0 6px; color: var(--ink); }
.quiz__hint { margin: 0 0 6px; color: var(--text); font-size: .95rem; }
.quiz__list { margin: 6px 0 0; padding-left: 20px; color: var(--text); font-size: .95rem; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.quiz__opt { text-align: left; font: inherit; cursor: pointer; background: var(--green-soft); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; color: var(--ink); transition: border-color .15s, background .15s; }
.quiz__opt:hover, .quiz__opt:focus-visible { border-color: var(--green); background: #fff; outline: none; }
.quiz__opt b { display: block; font-size: 1rem; }
.quiz__opt small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.quiz__back { margin-top: 16px; background: none; border: 0; font: inherit; color: var(--green-dark); font-weight: 700; cursor: pointer; padding: 6px 0; }
.quiz__note { margin: 20px 0 0; font-size: .82rem; color: var(--muted); }
.qplan__intro { margin: 0 0 14px; }
.qplan__items { display: grid; gap: 12px; }
.qitem { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.qitem--opz { border-style: dashed; }
.qitem__img { background: var(--green-soft); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.qitem__img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.qitem__ruolo { display: inline-block; background: #7ff0c4; color: var(--green-deep); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; }
.qitem--opz .qitem__ruolo { background: var(--bg-alt); color: var(--text); }
.qitem h4 { margin: 8px 0 4px; font-size: 1.15rem; }
.qitem p { margin: 0 0 8px; font-size: .95rem; }
.qitem__prezzo { font-size: .92rem; color: var(--text); }
.qitem__prezzo b { color: var(--green-dark); font-size: 1.1rem; }
.qitem .link-arrow { font-size: .95rem; }
.qplan__tot { background: var(--bg-alt); border-radius: 14px; padding: 14px 16px; margin: 14px 0 0; }
.qplan__tot b { font-size: 1.5rem; color: var(--green-dark); }
.qplan__tot small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.qplan__warn { background: #fff7e6; border-left: 4px solid #e8a317; border-radius: 10px; padding: 10px 14px; font-size: .92rem; margin: 14px 0 0; }
.qplan__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.why3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.why3 li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.why3 strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.why3 span { color: var(--text); font-size: .95rem; }
.testo-seo { margin: 0 auto; }
.fonti { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.fonti summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.fonti ul { margin: 8px 0 0; padding-left: 20px; font-size: .9rem; }
@media (max-width: 700px) {
  .quiz-sec { margin-top: -40px; }
  .quiz { padding: 22px 18px; border-radius: 18px; }
  .quiz__opts { grid-template-columns: 1fr; }
  .quiz__opt { padding: 11px 14px; }
  .quiz__opt small { font-size: .8rem; }
  .quiz__q { font-size: 1.15rem; }
  .qitem { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
  .qplan__actions .btn { flex: 1 1 100%; justify-content: center; }
  .why3 { grid-template-columns: 1fr; }
}
.qplan__info { background: var(--green-soft); border-radius: 10px; padding: 10px 14px; font-size: .92rem; margin: 14px 0 0; }

/* Banner del consenso ai cookie (assets/consenso.js, configurazione in _tools/consenso.js)
   "Accetta" e "Rifiuta" hanno lo stesso peso, come chiedono le Linee guida del Garante. */
.consenso { position: fixed; left: 20px; bottom: 20px; z-index: 220; width: min(460px, calc(100% - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 20px 60px rgba(8, 30, 25, .25); font-size: .9rem; line-height: 1.5; }
.consenso[hidden] { display: none; }
.consenso p { margin: 0 0 12px; }
.consenso a { color: var(--green-dark); font-weight: 600; }
.consenso__titolo { font-weight: 800; color: var(--ink); font-size: 1.05rem; padding-right: 48px; min-height: 30px; }
.consenso__x { font-family: inherit; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--green); background: #fff; color: var(--green-dark); cursor: pointer; border-radius: 50%; padding: 0; }
.consenso__x svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.consenso__x:hover { background: var(--green-soft); }
.consenso__scelte { display: grid; gap: 10px; margin: 0 0 14px; }
.consenso__scelte[hidden] { display: none; }
.consenso__voce { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.consenso__voce input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.consenso__voce b { color: var(--ink); }
.consenso__tasti { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.consenso__tasti .btn { font-family: inherit; padding: 10px 8px; font-size: .88rem; justify-content: center; }
.consenso__tasti .btn[hidden] { display: none; }
@media (max-width: 600px) {
  .consenso { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px 16px 14px; }
  .consenso__tasti { grid-template-columns: 1fr 1fr; }
  .consenso__tasti [data-c="personalizza"], .consenso__tasti [data-c="salva"] { grid-column: 1 / -1; order: 3; }
}

/* Privacy policy: testo dell'avvocato identico al PDF (_src/privacy-policy.html) */
.informativa { font-size: .95rem; }
.informativa__rev { text-align: right; color: var(--muted); font-size: .85rem; }
.informativa__titolo { font-size: 1.25rem; text-align: center; margin: .2em 0 1em; }
.informativa h3 { color: var(--ink); font-size: 1.02rem; margin-top: 1.6em; }
.informativa .informativa__lista { list-style: none; padding-left: 0; }
.informativa .informativa__lista li { position: relative; padding-left: 2em; }
.informativa .informativa__lista li > span:first-child { position: absolute; left: 0; font-weight: 700; }
.informativa__titolare { text-align: center; }
.informativa a { overflow-wrap: anywhere; }
