/* ==========================================================
   QiMan Bernareggio — foglio di stile unico
   ========================================================== */

/* ---------- Font (ospitati sul sito, nessuna chiamata a Google) ---------- */
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Palette ---------- */
:root {
  --malva: #75597B;
  --malva-scuro: #624867;
  --malva-notte: #4a3650;
  --lilla: #E8DDF0;
  --lilla-chiaro: #F3EDF7;
  --salvia: #93A8A3;
  --salvia-scuro: #5f7570;
  --salvia-bg: #73897f;        /* salvia un filo più scura: testo bianco leggibile */
  --bianco: #FFFFFF;
  --off: #F9F7FA;
  --testo: #3b2f3f;
  --testo-soft: #5e5163;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(74, 54, 80, .28);
  --container: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--testo);
  background: var(--off);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--malva); }
a:hover { color: var(--malva-scuro); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--malva-scuro); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--malva-scuro); }
:focus-visible { outline: 3px solid var(--salvia); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--malva); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }

section { padding: clamp(56px, 8vw, 104px) 0; }
.bg-lilla { background: var(--lilla); }
.bg-lilla-chiaro { background: var(--lilla-chiaro); }
.bg-off { background: var(--off); }
.bg-malva { background: var(--malva); color: #fff; }
.bg-salvia { background: var(--salvia-bg); color: #fff; }
.bg-malva h2, .bg-malva h3, .bg-salvia h2, .bg-salvia h3 { color: #fff; }
.bg-malva strong, .bg-salvia strong { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--salvia-scuro);
  margin-bottom: 1rem;
}
.bg-malva .eyebrow, .bg-salvia .eyebrow { color: rgba(255,255,255,.85); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; color: var(--testo-soft); }
.bg-malva .lead, .bg-salvia .lead { color: rgba(255,255,255,.92); }
.section-head { max-width: 820px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.9em;
  border-radius: 999px;
  border: 2px solid var(--malva);
  background: var(--malva);
  color: #fff;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--malva-scuro); border-color: var(--malva-scuro); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--malva); }
.btn-outline:hover { background: var(--malva); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--malva-scuro); }
.btn-light:hover { background: var(--lilla); border-color: var(--lilla); color: var(--malva-notte); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--malva-scuro); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { background: var(--off); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(117, 89, 123, .12); }
.header-inner {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 0 6px;
}
.brand img { width: 92px; height: auto; transition: width .3s; }
.header-social { justify-self: start; display: inline-flex; align-items: center; gap: .5em; color: var(--malva); text-decoration: none; font-size: .85rem; font-weight: 500; }
.header-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.header-social svg .fill { fill: currentColor; stroke: none; }
.nav-toggle { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 4px 16px 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; }
.site-nav a {
  display: inline-block;
  padding: .35em 0;
  color: var(--malva-scuro);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: linear-gradient(var(--salvia), var(--salvia)) left bottom / 0 2px no-repeat;
  transition: background-size .25s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 2px; }

.site-header.scrolled .brand img { width: 64px; }

/* ---------- Hero (home e pagine interne) ---------- */
.hero { padding: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); background: var(--lilla); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 80px); }
.hero-text h1 { color: var(--malva-scuro); margin-bottom: .5em; }
.hero-text h1 small { display: block; font-size: .52em; font-style: italic; line-height: 1.35; margin-top: .45em; color: var(--malva); }
.hero-text .lead { font-style: italic; color: var(--salvia-scuro); font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.page-hero { position: relative; color: #fff; padding: clamp(110px, 16vw, 200px) 0 clamp(70px, 10vw, 120px); overflow: hidden; background: var(--malva-notte); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(74,54,80,.25), rgba(74,54,80,.75)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,.92); max-width: 700px; }

.page-hero.plain { background: var(--lilla); color: var(--testo); padding: clamp(56px, 8vw, 100px) 0; }
.page-hero.plain::after { display: none; }
.page-hero.plain h1 { color: var(--malva-scuro); }
.page-hero.plain .lead { color: var(--testo-soft); }
.page-hero.plain .hero-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.page-hero.plain .hero-logo { width: min(320px, 70%); justify-self: center; }

/* ---------- Banda viola con frase ---------- */
.band { text-align: center; }
.band p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.5; max-width: 900px; margin: 0 auto; }

/* ---------- Archi (home) ---------- */
.arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.arch-card { display: flex; flex-direction: column; text-align: center; }
.arch {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 50% 50% 14px 14px / 37.5% 37.5% 14px 14px;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.arch-card:hover .arch img { transform: scale(1.04); }
.arch-card h3 { margin-bottom: .5em; }
.arch-card p { color: var(--testo-soft); font-size: .98rem; flex: 1; }
.arch-card .btn { align-self: center; margin-top: .6rem; }

/* ---------- Split (testo + immagine) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.duo { position: relative; min-height: 520px; }
.duo .blob { position: absolute; overflow: hidden; border-radius: 50%; box-shadow: var(--shadow); background: var(--lilla-chiaro); }
.duo .blob img { width: 100%; height: 100%; object-fit: cover; }
.duo .blob-1 { width: 58%; aspect-ratio: 3 / 4; left: 0; top: 0; }
.duo .blob-2 { width: 58%; aspect-ratio: 3 / 4; right: 0; bottom: 0; }

/* ---------- Segnaposto foto ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(117,89,123,.05) 0 12px, transparent 12px 24px),
    var(--lilla-chiaro);
  color: var(--malva);
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1rem;
}
.duo .blob-1 .ph { padding: 0 32% 28% 8%; }
.ph img { width: 64px !important; height: auto !important; opacity: .55; }

/* ---------- Video ---------- */
.video-box {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--malva-scuro);
}
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box .ph { background: linear-gradient(160deg, var(--malva), var(--malva-notte)); color: #fff; }
.video-box .ph img { opacity: .9; width: 90px !important; }
.video-box .ph a { color: #fff; }

/* ---------- Eventi ---------- */
.events { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.event-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); backdrop-filter: blur(2px); }
.event-card h3 { color: #fff; }

/* ---------- Schede professionisti / corsi ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(22px, 3vw, 34px); }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px -10px rgba(74, 54, 80, .25);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--lilla-chiaro); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.landscape { aspect-ratio: 4 / 3; }
.card-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .2em; color: var(--malva-scuro); }
.card-role { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--salvia-scuro); margin-bottom: 1rem; }
.card-body p { font-size: .97rem; color: var(--testo-soft); margin: 0; }
.card-body .card-role { font-size: .74rem; color: var(--salvia-scuro); margin-bottom: 1rem; line-height: 1.5; }
.cards.four { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin-inline: auto; }
@media (max-width: 700px) { .cards.four { grid-template-columns: 1fr; } }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 760px; margin-inline: auto; }

/* Scheda solo testo (area infanzia) */
.card.text-only .card-body { padding: 34px 32px; border-top: 5px solid var(--salvia); }
.card .num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--lilla); line-height: 1; margin-bottom: .6rem; display: block; }

/* ---------- Discipline (pagina corsi) ---------- */
.discipline { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.discipline + .discipline { margin-top: clamp(56px, 8vw, 100px); }
.discipline.reverse .discipline-media { order: 2; }
.discipline-media { aspect-ratio: 4 / 5; border-radius: 50% 50% var(--radius) var(--radius) / 32% 32% var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.discipline-media img { width: 100%; height: 100%; object-fit: cover; }
.discipline .subtitle { font-style: italic; color: var(--salvia-scuro); font-size: 1.08rem; }
.course-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.course-list li { background: #fff; border-radius: 14px; padding: 18px 22px; border-left: 4px solid var(--salvia); box-shadow: 0 3px 14px -10px rgba(74,54,80,.3); }
.course-list h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .04em; color: var(--malva-scuro); margin: 0 0 .25em; }
.course-list p { margin: 0; font-size: .96rem; color: var(--testo-soft); }
.course-list .tag { font-weight: 400; color: var(--salvia-scuro); font-style: italic; }

/* ---------- Metodo (pavimento pelvico) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 30px 28px; position: relative; counter-increment: step; box-shadow: 0 4px 18px -10px rgba(74,54,80,.25); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--salvia); display: block; line-height: 1; margin-bottom: .7rem; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; font-size: .96rem; color: var(--testo-soft); }

/* ---------- Logo (pagina chi siamo) ---------- */
.logo-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.logo-tile { background: var(--malva); border-radius: var(--radius); padding: clamp(30px, 5vw, 60px); box-shadow: var(--shadow); }
.logo-tile img { width: 100%; }
.hanzi { font-family: "Noto Serif SC", "SimSun", "Songti SC", serif; font-style: normal; }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- CTA finale ---------- */
.cta { text-align: center; }
.cta h2 { font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--malva-scuro); color: rgba(255,255,255,.9); padding-top: clamp(56px, 7vw, 90px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr .9fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 50px; }
.site-footer h2 { color: #fff; font-size: 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .btn-light { color: var(--malva-scuro); }
.site-footer .btn:hover { text-decoration: none; }
.site-footer .btn-light:hover { color: var(--malva-notte); }
.footer-brand img { width: 150px; margin-bottom: 1.2rem; }
.footer-brand .motto { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.contact-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 4px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list svg .fill { fill: #fff; stroke: none; }
.contact-list .contact-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .contact-row:hover { text-decoration: none; }
.contact-list .contact-row:hover span { text-decoration: underline; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.footer-actions .btn { padding: .8em 1.4em; font-size: .75rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0; font-size: .82rem; color: rgba(255,255,255,.75); }
.footer-legal p { margin: 0; }
.footer-legal p + p { margin-top: 4px; }

/* ---------- Bottone WhatsApp fisso ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Pagina privacy ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.notice { background: var(--lilla-chiaro); border-left: 4px solid var(--malva); border-radius: 10px; padding: 16px 20px; }

/* ---------- Animazione d'ingresso ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
  .footer-brand img { width: 110px; margin: 0; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; padding: 10px 0; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { width: 62px; }
  .site-header.scrolled .brand img { width: 52px; }
  .header-social { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 14px; }
  .header-social span { display: none; }
  .nav-toggle {
    grid-column: 3; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--malva-scuro); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav { display: none; border-top: 1px solid rgba(117,89,123,.12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; }
  .site-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(117,89,123,.1); background: none; }
  .site-nav a[aria-current="page"] { color: var(--malva); font-weight: 600; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .hero-text { padding: 40px 20px 52px; text-align: center; }
  .hero-text .btn-row { justify-content: center; }

  .arches { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 56px; }
  .split, .events, .logo-story, .discipline, .page-hero.plain .hero-split { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .discipline.reverse .discipline-media { order: 0; }
  .discipline-media { max-width: 420px; width: 100%; margin-inline: auto; }
  .duo { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 460px; margin-inline: auto; width: 100%; }
  .logo-tile { max-width: 340px; margin-inline: auto; }
  .page-hero.plain .hero-logo { width: 200px; order: -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { width: 100%; }
  .gallery { grid-auto-rows: 150px; gap: 10px; }
  .gallery .wide { grid-column: span 2; }
  .card-body { padding: 22px 22px 26px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
.cta-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.5; color: var(--malva-scuro); }
