/*
Theme Name: Emanuela Furesi
Theme URI: https://www.emanuelafuresi.it/
Author: SHIFT STUDIO
Description: Tema su misura per il sito della Dott.ssa Emanuela Furesi, psicologa a Bergamo. Pagine modificabili dall'editor a blocchi, blog nativo, modulo contatti, banner cookie con Consent Mode v2 e dati strutturati SEO integrati.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: emanuela-furesi
*/
/* Manrope (SIL OFL 1.1), ospitato nel sito: nessuna richiesta a Google Fonts */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope.woff2") format("woff2"); }
/* Layout: sito multipagina in anteprima (viste via #ancora), testo grande e leggibile, fasce piene per le sezioni chiave */
:root {
  --bg: #F5F7F4;
  --surface: #FFFFFF;
  --ink: #23312A;
  --muted: #56645C;
  --line: #DCE3DC;
  --green: #2F4137;
  --green-ink: #EEF2EE;
  --gold: #977535;
  --gold-soft: #F1E9D8;
  --sage: #E3EBE3;
  --tbd-bg: #FFF2CC;
  --tbd-ink: #765610;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161D19; --surface: #1D2621; --ink: #E7EDE8; --muted: #A7B3AB; --line: #303D35;
    --green: #0F2219; --green-ink: #E7EDE8; --gold: #D4B274; --gold-soft: #2E291C; --sage: #22302A;
    --tbd-bg: #3A3016; --tbd-ink: #F1D28A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161D19; --surface: #1D2621; --ink: #E7EDE8; --muted: #A7B3AB; --line: #303D35;
  --green: #0F2219; --green-ink: #E7EDE8; --gold: #D4B274; --gold-soft: #2E291C; --sage: #22302A;
  --tbd-bg: #3A3016; --tbd-ink: #F1D28A; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; max-width: 62ch; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.draft { background: var(--tbd-bg); color: var(--tbd-ink); font-size: 0.82rem; }
.draft .wrap { padding-block: 7px; }
.tbd { background: var(--tbd-bg); color: var(--tbd-ink); padding: 0 5px; border-radius: 4px; font-style: normal; }

header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
header.site.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
header.site .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.brand span { font-size: 0.78rem; color: var(--gold); font-weight: 600; }
nav.main { display: flex; gap: 6px; align-items: center; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); background: var(--sage); }
nav.main a.cta { background: var(--green); color: var(--green-ink); margin-left: 6px; }
nav.main a.cta:hover { opacity: .9; }
.menu-btn { display: none; font: inherit; font-weight: 700; background: var(--sage); color: var(--ink); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--green); cursor: pointer; font-family: var(--font); transition: transform .25s var(--ease), box-shadow .25s; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary { background: var(--green); color: var(--green-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

section.view { display: none; }
section.view.active { display: block; }
.block { padding-block: clamp(56px, 8vw, 96px); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
section.view.active .anim { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@supports (animation-timeline: view()) {
  section.view.active .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}

.hero-band { position: relative; overflow: hidden; }
.hero-band > .block { position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .6; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.blob.a { width: 420px; height: 420px; background: var(--sage); top: -120px; right: -80px; }
.blob.b { width: 300px; height: 300px; background: var(--gold-soft); bottom: -120px; left: -60px; animation-duration: 22s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero > * { min-width: 0; }
.photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); background: var(--gold-soft); display: flex; align-items: flex-end; padding: 18px; color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%); transform: translateX(-100%); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.photo.wide { aspect-ratio: 16 / 10; }
.photo span { position: relative; z-index: 1; background: var(--surface); padding: 4px 10px; border-radius: 999px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(0,0,0,.4); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card p { color: var(--muted); font-size: 0.98rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; color: var(--gold); }
.icon svg { width: 22px; height: 22px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-weight: 800; }
.steps p { color: var(--muted); font-size: 0.98rem; }

.band { background: var(--green); color: var(--green-ink); }
.band .eyebrow { color: #D4B274; }
.band p { color: color-mix(in srgb, var(--green-ink) 82%, transparent); }
.band .btn { border-color: var(--green-ink); color: var(--green-ink); background: transparent; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.logo-card { background: #FFFFFF; border-radius: var(--radius); padding: 36px; display: flex; align-items: center; justify-content: center; }
.logo-card img { width: 100%; max-width: 340px; height: auto; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.facts dt { font-size: 0.82rem; color: var(--muted); font-weight: 700; padding-top: 2px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.band .facts dt { color: color-mix(in srgb, var(--green-ink) 65%, transparent); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery button { all: unset; box-sizing: border-box; cursor: zoom-in; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gold-soft); display: flex; align-items: flex-end; padding: 14px; }
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(4) { grid-column: span 2; }
.gallery button:nth-child(even) { background: var(--surface); }
.gallery button::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%); transition: transform .6s var(--ease); }
.gallery button:hover::before { transform: scale(1.3); }
.gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery span { position: relative; background: var(--surface); color: var(--ink); font-size: 0.85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); transition: transform .3s var(--ease); }
.gallery button:hover span { transform: translateY(-4px); }
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(10, 16, 13, .82); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); animation: fade .25s ease both; }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lightbox .frame { width: min(900px, 100%); aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--gold-soft); display: grid; place-items: center; color: var(--ink); font-weight: 700; animation: rise .35s var(--ease) both; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; width: min(900px, 100%); color: #fff; margin-top: 12px; gap: 12px; }
.lightbox .bar button { font: inherit; font-weight: 700; background: #fff; color: #23312A; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-grid > * { min-width: 0; }
.copyline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy { font: inherit; font-size: 0.78rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
form { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.9rem; font-weight: 700; }
input, select, textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.check input { width: auto; margin-top: 5px; }
.note { font-size: 0.88rem; color: var(--muted); }
form .form-msg { font-size: 0.95rem; padding: 12px 14px; border-radius: 10px; background: var(--gold-soft); color: var(--ink); animation: rise .35s var(--ease) both; }
.emerg { font-size: 0.9rem; border-left: 3px solid var(--gold); padding-left: 12px; color: var(--muted); }

footer { background: var(--green); color: var(--green-ink); border-top: 1px solid color-mix(in srgb, var(--green-ink) 16%, transparent); }
footer a { text-decoration: none; }
footer .top { padding-block: 56px 36px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
footer .top > * { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
footer h4 { margin: 0 0 4px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #D4B274; }
footer .name { font-size: 1.2rem; font-weight: 800; }
footer p, footer li, footer li a { color: color-mix(in srgb, var(--green-ink) 80%, transparent); font-size: 0.95rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer ul a:hover { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.social a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--green-ink) 30%, transparent); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 0.88rem; color: var(--green-ink); transition: background .2s, transform .25s var(--ease); }
.social a:hover { background: color-mix(in srgb, var(--green-ink) 12%, transparent); transform: translateY(-2px); }
.social svg { width: 12px; height: 12px; }
footer .bottom { border-top: 1px solid color-mix(in srgb, var(--green-ink) 18%, transparent); }
footer .bottom .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: color-mix(in srgb, var(--green-ink) 70%, transparent); }
footer .tbd { background: #3A3016; color: #F1D28A; }

@media (max-width: 900px) {
  .hero, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero .photo { max-width: 380px; }
  .steps { grid-template-columns: 1fr; }
  footer .top { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery button:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery button:nth-child(4) { grid-column: span 1; }
  .menu-btn { display: inline-block; }
  nav.main { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); box-shadow: 0 16px 30px -20px rgba(0,0,0,.4); }
  nav.main:not(.open) { display: none; }
  nav.main.open { animation: rise .3s var(--ease) both; }
  nav.main a { padding: 12px 14px; font-size: 1.05rem; }
  nav.main a.cta { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 12px; }
  footer .top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.gallery { grid-template-columns: repeat(3, 1fr) !important; }
.gallery button:nth-child(4) { grid-column: auto !important; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr) !important; } .gallery button:nth-child(6) { grid-column: span 2; } }
.linklike { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actionbar { display: none; }
.cookie { position: fixed; z-index: 35; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-left: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; animation: rise .4s var(--ease) both; }
.cookie .btn { padding: 10px 18px; font-size: 0.92rem; }
@media (max-width: 900px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .actionbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(0,0,0,.4); }
  .actionbar a { text-align: center; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 11px 8px; border-radius: 999px; background: var(--sage); color: var(--ink); }
  .actionbar a.main { background: var(--green); color: var(--green-ink); }
  .cookie { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
/* Card con foto */
.pgrid { display: grid; gap: 20px; }
.pgrid.three { grid-template-columns: repeat(3, 1fr); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .35s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(0,0,0,.45); }
.pcard .ph { aspect-ratio: 16 / 10; border-radius: 0; transition: transform .6s var(--ease); }
.pcard:hover .ph { transform: scale(1.04); }
.pcard .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; position: relative; background: var(--surface); }
.pcard p { color: var(--muted); font-size: 0.98rem; }

/* Segnaposto foto */
.ph { position: relative; overflow: hidden; border-radius: var(--radius); max-width: 100%; aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.ph.wide { aspect-ratio: 16 / 10; }
.ph svg { width: 28px; height: 28px; opacity: .55; }
.ph span { max-width: 26ch; }
.ph.t1 { background: linear-gradient(135deg, var(--gold-soft), var(--sage)); }
.ph.t2 { background: linear-gradient(160deg, var(--sage), color-mix(in srgb, var(--sage) 60%, var(--surface))); }
.ph.t3 { background: linear-gradient(120deg, color-mix(in srgb, var(--gold-soft) 70%, var(--surface)), var(--gold-soft)); }
.ph.t4 { background: linear-gradient(140deg, color-mix(in srgb, var(--green) 25%, var(--sage)), var(--sage)); }
.band .ph { color: var(--ink); }

/* Card con icona */
.igrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icard { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; transition: transform .3s var(--ease), border-color .3s; }
.icard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.icard .icon { flex-shrink: 0; }
.icard h3 { font-size: 1.05rem; margin-bottom: 4px; }
.icard p { color: var(--muted); font-size: 0.95rem; }

/* Mosaico */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic .ph { aspect-ratio: auto; height: 100%; }
.mosaic .m1 { grid-row: span 2; }

/* Footer semplice */
.fmain { padding-block: 48px 36px; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 32px; align-items: start; }
.fcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flabel { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #D4B274; margin-bottom: 4px; }
footer .fcol p { color: color-mix(in srgb, var(--green-ink) 85%, transparent); font-size: 1rem; }
.fbtn { align-self: flex-start; margin-top: 10px; background: var(--green-ink); color: var(--green) !important; border-color: var(--green-ink); }
footer .bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .pgrid.three, .igrid { grid-template-columns: 1fr 1fr; }
  .fmain { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px; }
  .mosaic .m1 { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 600px) {
  .pgrid.three, .igrid { grid-template-columns: 1fr; }
}
/* Ritmo generale */
.lead { max-width: 54ch; }
.btn { min-height: 50px; justify-content: center; }
.btn.full { width: 100%; }
.text-link { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-wrap > * { min-width: 0; }
.faq-intro { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center; padding: 20px 4px; font-weight: 700; font-size: 1.06rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover span { color: var(--gold); }
.faq summary i { width: 32px; height: 32px; border-radius: 50%; background: var(--sage); position: relative; transition: background .25s, transform .3s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--green); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--green-ink); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 52px 22px 4px; }
.faq .ans p { color: var(--muted); animation: rise .35s var(--ease) both; }

/* Striscia contatto */
.cstrip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; background: var(--green); color: var(--green-ink); border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 48px); position: relative; overflow: hidden; }
.cstrip::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -160px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 30%, transparent); filter: blur(50px); pointer-events: none; }
.cs-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; z-index: 1; }
.cs-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cs-text p { color: color-mix(in srgb, var(--green-ink) 82%, transparent); max-width: 52ch; }
.cs-actions { display: flex; flex-direction: column; gap: 10px; min-width: 250px; position: relative; z-index: 1; }
.btn.light { background: var(--green-ink); color: var(--green); border-color: var(--green-ink); }
.btn.outline-light { background: transparent; color: var(--green-ink); border-color: color-mix(in srgb, var(--green-ink) 45%, transparent); }

/* Contatti */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: transform .3s var(--ease), box-shadow .3s; }
.way:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(0,0,0,.4); }
.way h2 { font-size: 1.2rem; margin-top: 8px; }
.way .big { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.way .muted { font-size: 0.95rem; flex: 1; margin-bottom: 8px; }
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-layout > * { min-width: 0; }
.form-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -48px rgba(0,0,0,.5); }
.form-card form { background: none; border: 0; padding: 0; display: grid; gap: 18px; }
.form-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { font-size: 0.9rem; font-weight: 700; padding: 0; margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.err { color: #A23B2A; font-size: 0.86rem; font-weight: 600; }
:root[data-theme="dark"] .err { color: #F0A090; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #F0A090; } }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #C0533F; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: 0.95rem; transition: all .2s; }
.pills input:checked + span { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { align-items: flex-start; }
.check input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; accent-color: var(--green); }
.success { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; animation: rise .4s var(--ease) both; }
.success[hidden] { display: none; }
.ok-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; }
.ok-icon svg { width: 28px; height: 28px; }
.success h3 { font-size: 1.5rem; }
.success p { color: var(--muted); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-card .ph { border-radius: 0; }
.info-card.pad { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.info-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.info-row { display: flex; gap: 14px; align-items: center; }
.info-row strong { display: block; }
.info-row span { color: var(--muted); }
.icon.sm { width: 40px; height: 40px; flex-shrink: 0; }
.mini-steps { margin: 0; padding: 0; list-style: none; counter-reset: m; display: flex; flex-direction: column; gap: 12px; }
.mini-steps li { counter-increment: m; display: flex; gap: 12px; align-items: center; }
.mini-steps li::before { content: counter(m); width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--sage); color: var(--ink); font-weight: 800; font-size: 0.85rem; display: grid; place-items: center; }
.band .form-card .err { color: #A23B2A; }
.band .form-card p { color: var(--muted); }
.band .form-card .btn.ghost { color: var(--ink); border-color: var(--line); }

@media (max-width: 900px) {
  .faq-wrap, .contact-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .ways { grid-template-columns: 1fr; }
}
.band form .btn.primary { background: var(--green); color: var(--green-ink); border-color: var(--green); }
@media (min-width: 601px) and (max-width: 900px) {
  .pgrid.three { grid-template-columns: 1fr; }
  .pcard { flex-direction: row; }
  .pcard .ph { aspect-ratio: auto; width: 40%; flex-shrink: 0; min-height: 190px; }
  .pcard .body { justify-content: center; }
}
/* Mobile */
@media (max-width: 900px) {
  .cstrip { grid-template-columns: 1fr; }
  .cs-actions { min-width: 0; }
  .split > .ph { order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .block { padding-block: 52px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .lead { font-size: 1.06rem; }
  .brand strong { font-size: 1.02rem; }
  .brand span { font-size: 0.74rem; }
  header.site .wrap { padding-block: 12px; }
  .hero .row .btn, .split .btn, .stack > div > .btn { width: 100%; }
  .hero .photo { max-width: 100%; aspect-ratio: 4 / 3; }
  .pcard .body { padding: 18px 20px 22px; }
  .way { padding: 22px; }
  .faq summary { font-size: 1rem; padding: 16px 2px; }
  .faq .ans { padding: 0 8px 18px 2px; }
  .form-card { padding: 22px 18px; border-radius: var(--radius); }
  .pills span { padding: 9px 14px; font-size: 0.92rem; }
  .icard { padding: 18px; }
  .draft { font-size: 0.76rem; }
  .gallery { grid-auto-rows: 130px; }
  .mosaic { grid-template-rows: 180px 130px; }
  .fmain { padding-block: 40px 28px; gap: 26px; }
  footer .bottom .wrap { flex-direction: column; }
}
/* Pagine legali */
.legal-block { padding-top: clamp(40px, 6vw, 72px); }
.lhead { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); gap: 12px; }
.lhead h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.lmeta { font-size: 0.88rem; color: var(--muted); max-width: none; }
.tbd-inline { background: var(--tbd-bg); color: var(--tbd-ink); padding: 1px 6px; border-radius: 4px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ltoc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.ltoc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.ltoc summary { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); cursor: pointer; list-style: none; }
.ltoc summary::-webkit-details-marker { display: none; }
.ltoc ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.ltoc li::marker { color: var(--muted); font-weight: 700; }
.ltoc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ltoc a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.lbody { display: flex; flex-direction: column; gap: 0; max-width: 760px; min-width: 0; }
.lsummary { background: var(--sage); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; }
.lsummary h2 { font-size: 1.1rem; margin-bottom: 10px; }
.lsummary ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lsummary li { position: relative; padding-left: 26px; }
.lsummary li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.lsec { display: flex; flex-direction: column; gap: 12px; padding-block: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(90px + env(safe-area-inset-top, 0px)); }
.lsec:last-child { border-bottom: 0; }
.lsec h2 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 12px; }
.lnum { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-size: 0.85rem; font-weight: 800; display: inline-grid; place-items: center; transform: translateY(-3px); }
.lsec p, .lsec li { color: var(--muted); max-width: 68ch; }
.lsec strong { color: var(--ink); }
.ldots { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.lnote { background: var(--gold-soft); border-radius: 10px; padding: 14px 18px; color: var(--ink); font-size: 0.95rem; }
.ltable { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ltable table { min-width: 560px; font-size: 0.92rem; }
.ltable td { vertical-align: top; color: var(--muted); }
.ltable td:first-child { color: var(--ink); font-weight: 600; }
.hint { font-size: 0.85rem; color: var(--muted); }
footer .legal { font-size: 0.85rem; max-width: 80ch; }
footer .legal-links { font-size: 0.85rem; }
footer .bottom .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
.linklike.text-link { color: var(--gold); font-weight: 700; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .ltoc { position: static; }
}
@media (max-width: 600px) {
  .lsummary { padding: 18px 20px; }
  .lsec h2 { font-size: 1.15rem; }
  .lcard { padding: 16px; }
}

/* Banner cookie */
.cookie { gap: 10px; padding: 22px 22px 18px; max-width: 520px; }
.cookie h2 { font-size: 1.1rem; }
.cookie p { font-size: 0.9rem; color: var(--muted); }
.ck-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.ck-x:hover { background: var(--sage); color: var(--ink); }
.ck-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.ck-btn { min-height: 44px; padding: 10px 8px; font-size: 0.9rem; background: var(--surface); color: var(--ink); border: 2px solid var(--green); }
.ck-btn:hover { background: var(--sage); }
.ck-prefs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }
.ck-prefs[hidden] { display: none; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ck-row:last-child { border-bottom: 0; }
.ck-row span { display: flex; flex-direction: column; font-size: 0.9rem; }
.ck-row small { color: var(--muted); font-size: 0.8rem; }
.ck-row input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
@media (max-width: 420px) { .ck-actions { grid-template-columns: 1fr; } }
/* Foto caricate */
[data-slot] { position: relative; overflow: hidden; }
img.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
[data-slot].filled > svg, .ph.filled > span, .photo.filled > span { display: none; }
.photo.filled::after { display: none; }
.gallery button.filled span { z-index: 1; }
.gallery button.filled::before { display: none; }
.lightbox .frame img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.slot-tools { display: none; }
body.can-edit:not(.tools-off) .slot-tools { display: flex; position: absolute; top: 10px; right: 10px; gap: 6px; z-index: 3; }
.slot-tools button { font: inherit; font-size: 0.8rem; font-weight: 700; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255,255,255,.95); color: #23312A; cursor: pointer; box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }
.slot-tools .st-rm { background: #23312A; color: #fff; }
body.can-edit:not(.tools-off) [data-slot]:not(.filled) { outline: 2px dashed color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: -8px; cursor: copy; }
[data-slot].drag-over { outline: 3px solid var(--gold) !important; outline-offset: -6px; }
[data-slot].drag-over::before { content: "Rilascia per caricare"; position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--gold-soft) 85%, transparent); color: var(--ink); font-weight: 800; z-index: 4; transform: none !important; }
[data-slot].busy::before { content: "Caricamento…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.75); color: #23312A; font-weight: 800; z-index: 4; transform: none !important; }
.photo-bar { position: fixed; z-index: 26; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: min(420px, calc(100% - 32px)); background: var(--green); color: var(--green-ink); border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.photo-bar[hidden] { display: none; }
.photo-bar .linklike { font-weight: 700; }
.toast { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); top: calc(84px + env(safe-area-inset-top, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 12px 30px -16px rgba(0,0,0,.5); }
.toast[hidden] { display: none; }
@media (max-width: 900px) { .photo-bar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
/* Blog */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bgrid.two { grid-template-columns: repeat(2, 1fr); }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; transition: transform .35s var(--ease), box-shadow .35s; }
.bcard[hidden] { display: none; }
.bcard:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(0,0,0,.45); }
.bcard .ph { aspect-ratio: 16 / 10; border-radius: 0; transition: transform .6s var(--ease); }
.bcard:hover .ph { transform: scale(1.04); }
.bcard .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; background: var(--surface); position: relative; }
.bcard h3 { font-size: 1.15rem; line-height: 1.3; }
.bcard p { color: var(--muted); font-size: 0.96rem; }
.bcard .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 0.92rem; color: var(--gold); }
.bmeta { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.bcat { color: var(--gold); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.92rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.post-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.post h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.back:hover { color: var(--ink); }
.author { display: flex; align-items: center; gap: 12px; }
.author strong { display: block; }
.author span { color: var(--muted); font-size: 0.9rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 1.06rem; line-height: 1.8; }
.prose h2 { font-size: 1.45rem; margin-top: 14px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose p, .prose li { max-width: 66ch; }
.disclaimer { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.related { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.related h2 { font-size: 1.35rem; }
@media (max-width: 900px) {
  .bgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bgrid, .bgrid.two { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-inline: -4px; padding-inline: 4px; }
  .chip { flex-shrink: 0; }
  .prose { font-size: 1rem; }
  .row-head .btn { width: 100%; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  nav.main a { padding: 8px 9px; font-size: 0.9rem; }
}
/* ===== Mobile: versione semplificata ===== */
@media (max-width: 600px) {
  .hide-m, [data-slot="home-1"], [data-slot="aree-7"], [data-slot="contatti-1"] { display: none !important; }
  .hero-band > .block { padding-block: 32px 44px; }
  h1 { font-size: 1.95rem; }
  .lead { font-size: 1.02rem; }
  .hero .photo { aspect-ratio: 4 / 3; }
  .split { gap: 22px; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: 210px; }
  .mosaic .m1 { grid-column: auto; grid-row: auto; }
  .logo-card { padding: 22px; }
  .logo-card img { max-width: 220px; }

  /* card con foto: compatte, miniatura a sinistra */
  .pgrid.three { gap: 12px; }
  .pcard { flex-direction: row; align-items: stretch; }
  .pcard .ph { width: 96px; flex-shrink: 0; aspect-ratio: auto; min-height: 100%; padding: 8px; }
  .pcard .ph > span, .pcard .ph svg { display: none; }
  .pcard .body { padding: 14px 16px; gap: 4px; }
  .pcard h3 { font-size: 1.02rem; }
  .pcard p { font-size: 0.92rem; line-height: 1.5; }
  .pcard:hover { transform: none; }

  /* passi: numero a sinistra */
  .steps { gap: 10px; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px 18px; align-items: start; }
  .steps li::before { grid-row: span 2; width: 34px; height: 34px; }
  .steps h3 { font-size: 1.02rem; }
  .steps p { font-size: 0.92rem; line-height: 1.5; }

  /* articoli: scorrono di lato */
  .bgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .bgrid::-webkit-scrollbar { display: none; }
  .bgrid > .bcard { flex: 0 0 80%; scroll-snap-align: start; }
  .bcard .body { padding: 16px 18px 18px; }
  .bcard h3 { font-size: 1.05rem; }
  .bcard:hover { transform: none; }
  /* pagina blog: elenco compatto */
  #bgrid { display: flex; flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 12px; }
  #bgrid > .bcard { flex: none; flex-direction: row; }
  #bgrid .ph { width: 104px; flex-shrink: 0; aspect-ratio: auto; }
  #bgrid .ph > span, #bgrid .ph svg { display: none; }
  #bgrid .bcard p, #bgrid .bcard .more { display: none; }
  #bgrid .body { padding: 14px 16px; gap: 6px; }

  /* contatti: tre righe semplici, tutta la riga è cliccabile */
  .ways { gap: 10px; }
  .way { display: grid; grid-template-columns: 44px 1fr 20px; gap: 0 14px; align-items: center; padding: 14px 16px; position: relative; }
  .way .icon { grid-row: 1 / span 2; }
  .way h2 { grid-column: 2; margin: 0; font-size: 1rem; }
  .way .big { grid-column: 2; font-size: 0.95rem; color: var(--muted); }
  .way .muted { display: none; }
  .way .btn { position: absolute; inset: 0; opacity: 0; min-height: 0; padding: 0; border: 0; width: 100%; }
  .way::after { content: "›"; grid-column: 3; grid-row: 1 / span 2; font-size: 1.7rem; line-height: 1; color: var(--gold); }
  .way:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
  .way:hover { transform: none; }

  /* il riquadro contatto si ripete già nella barra fissa in basso */
  .block:has(> .wrap > .cstrip) { display: none; }

  /* footer: il pulsante c'è già nella barra in basso */
  .fbtn { display: none; }
  .fmain { gap: 22px; }
}
.photo img.slot-img { object-position: 50% 22%; }
.ph.filled, .photo.filled { background: var(--sage); }

/* ---- Aggiunte per WordPress ---- */
[hidden] { display: none !important; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 18px; display: block; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose img { max-width: 100%; height: auto; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--ink); }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
.form-msg { margin-top: 12px; font-size: .9rem; color: #9B2C2C; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
a.bcat { text-decoration: none; }
.tbd-box { background: var(--tbd-bg); color: var(--tbd-ink); padding: 12px 16px; border-radius: 12px; font-size: .9rem; }

/* ===== Testo giustificato (richiesta della cliente) ===== */
main p, main li, main dd, footer p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
main .btn, main .bmeta, main .more, main .eyebrow, .cstrip p, .way p, .ways p, .steps p, .facts dd, .mini-steps li, .note, .hint, .err, .pills, .chips, .legal-links, .cs-actions { text-align: left; hyphens: manual; }

/* ===== Mobile: più impatto ===== */
@media (max-width: 600px) {
  h1 { font-size: 2.4rem; line-height: 1.06; letter-spacing: -0.03em; }
  h2 { font-size: 1.8rem; line-height: 1.1; }
  .block { padding-block: 56px; }

  /* Apertura delle pagine su fondo verde, testo chiaro */
  .hero-band { background: var(--green); color: var(--green-ink); }
  .hero-band .blob.a { background: #4A6152; opacity: .55; }
  .hero-band .blob.b { background: #7A6232; opacity: .35; }
  .hero-band > .block { padding-block: 40px 52px; }
  .hero-band .eyebrow { color: #D9BC80; }
  .hero-band h1 { color: #FFFFFF; }
  .hero-band p, .hero-band .lead, .hero-band .muted, .hero-band .lmeta { color: color-mix(in srgb, var(--green-ink) 84%, transparent); }
  .hero-band .btn.primary { background: var(--green-ink); color: var(--green); border-color: var(--green-ink); }
  .hero-band .btn.ghost { color: var(--green-ink); border-color: color-mix(in srgb, var(--green-ink) 45%, transparent); }
  .hero-band .text-link { color: #D9BC80; }
  .hero-band .pcard { color: var(--ink); }
  .hero-band .pcard p { color: var(--muted); }
  .bcard p, .icard p { text-align: left; }
  .hero-band .hero .photo { margin-top: 6px; aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }

  /* Foto grandi da bordo a bordo */
  [data-slot="home-2"], [data-slot="home-6"], [data-slot="articolo-1"] {
    margin-inline: -20px; width: calc(100% + 40px); max-width: none; border-radius: 0; aspect-ratio: 4 / 3;
  }

  /* Card con foto: scorrimento orizzontale, foto grande */
  .pgrid.three { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .pgrid.three::-webkit-scrollbar { display: none; }
  .pgrid.three > .pcard { flex: 0 0 82%; flex-direction: column; scroll-snap-align: center; }
  .pgrid.three .pcard .ph { width: auto; aspect-ratio: 4 / 3; min-height: 0; padding: 0; }
  .pgrid.three .pcard .body { padding: 18px 20px 22px; gap: 6px; }
  .pgrid.three .pcard h3 { font-size: 1.15rem; }
  .pgrid.three .pcard p { font-size: 0.96rem; line-height: 1.55; }

  /* Studio Maj 14 nella pagina Chi sono: tre foto da scorrere */
  .mosaic { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic .ph { flex: 0 0 84%; aspect-ratio: 4 / 3; height: auto; scroll-snap-align: center; }
  .mosaic [data-slot="chi-sono-3"], .mosaic [data-slot="chi-sono-4"] { display: flex !important; }

  /* Galleria dello studio più grande */
  .gallery { grid-auto-rows: 160px; gap: 10px; }
  .gallery button:nth-child(1) { grid-row: span 2; }

  /* Striscia verde finale più piena */
  .cstrip { margin-inline: -20px; border-radius: 0; padding: 36px 20px; }
}

/* ===== Mobile: usabilità (prova su schermo iPhone) ===== */
@media (max-width: 600px) {
  /* Più spazio utile: niente fascia anteprima, header e barra più bassi */
  .draft { display: none; }
  header.site .wrap { padding-block: 8px; }
  .brand { min-height: 44px; justify-content: center; }
  .brand span { font-size: 0.8rem; }
  .menu-btn { min-height: 44px; padding: 10px 18px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .actionbar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .actionbar a { padding: 12px 6px; min-height: 46px; display: flex; align-items: center; justify-content: center; }

  /* Nella pagina Contatti la barra copriva il modulo: lì i contatti sono già in pagina */
  body:has(section[data-view="contatti"].active) .actionbar { display: none; }
  body:has(section[data-view="contatti"].active) { padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* Banner cookie compatto, pulsanti su una riga, barra nascosta finché è aperto */
  .cookie { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 16px 16px 14px; gap: 8px; }
  .cookie h2 { font-size: 1rem; }
  .cookie p { font-size: 0.86rem; line-height: 1.45; text-align: left; }
  .ck-actions { grid-template-columns: repeat(3, 1fr) !important; gap: 6px; }
  .ck-btn { min-height: 44px; padding: 8px 4px; font-size: 0.86rem; }
  body:has(#cookie:not([hidden])) .actionbar { display: none; }

  /* Home: il pulsante per prenotare entra nella prima schermata */
  section[data-view="home"] .hero-band .eyebrow { display: none; }
  section[data-view="home"] .hero-band > .block { padding-block: 26px 36px; }
  section[data-view="home"] .hero-band h1 { font-size: 2.05rem; }
  section[data-view="home"] .hero-band .lead { font-size: 0.98rem; line-height: 1.55; }
  section[data-view="home"] .hero .row { margin-top: 2px !important; }

  /* Home più corta: i 3 passaggi sono già in Contatti ("Cosa succede dopo") */
  section[data-view="home"] .block:has(> .wrap .steps), section[data-view="home"] .band:has(.steps) { display: none; }

  /* Contenuti visibili subito mentre si scorre, senza attese */
  section.view.active .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }

  /* Testi piccoli un po' più leggibili */
  .eyebrow, .flabel { font-size: 0.82rem; }
  .bmeta, .facts dt { font-size: 0.86rem; }

  /* Aree da toccare di almeno 44 px */
  label.check { min-height: 44px; align-items: center; padding-block: 6px; }
  .check input { width: 24px; height: 24px; margin-top: 0; }
  .back { display: inline-flex; align-items: center; min-height: 44px; }
  .info-body .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .social a { min-height: 44px; padding: 8px 16px; }
  .legal-links a, .legal-links .linklike { display: inline-block; padding: 10px 2px; }
  .ltoc summary { padding: 12px 0; }
  .faq summary { min-height: 52px; }
}

.privacy-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.92rem; margin-left: 40px; }
