/* Dott. Edoardo Cardinali: site styles.
   Order: tokens (light, then dark), base, shared chrome, home sections, inner pages, flipbook, cookie banner, responsive. */

:root {
  --cream: #fbf5ec;
  --cream-2: #f4ead9;
  --ink: #2d211c;
  --muted: #6b5a50;
  --tomato: #c4492f;
  --tomato-dark: #a63a24;
  --olive: #6b7d3a;
  --olive-soft: #e7ead8;
  --line: #eadfce;
  --surface: #fff;
  --placeholder: #e9dccb;
  --border-strong: #d9cbb6;
  --header-bg: rgba(251, 245, 236, .9);
  --deep: #2d211c;
  --on-deep: #fbf5ec;
  --deep-border: transparent;
  --btn-bg: #c4492f;
  --btn-bg-hover: #a63a24;
  --olive-deep: #6b7d3a;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --header-h: 72px;
  --bar-h: 0px;
  color-scheme: light;
}

/* Dark theme: <html data-theme="dark">, set before paint by the inline script in every
   page's <head> (stored choice, else the OS preference) and toggled by js/site.js. */
:root[data-theme="dark"] {
  --cream: #1b1613;
  --cream-2: #231c18;
  --ink: #f2e9dd;
  --muted: #c2b2a3;
  --tomato: #ec7b61;
  --olive: #b3c47a;
  --olive-soft: #2c3121;
  --line: #3a2f29;
  --surface: #261f1b;
  --placeholder: #332a24;
  --border-strong: #574a41;
  --header-bg: rgba(27, 22, 19, .88);
  --deep: #120e0c;
  --deep-border: #3a2f29;
  --olive-deep: #5c6c30;
  color-scheme: dark;
}
[data-theme="dark"] .brand img { filter: invert(1); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.alias { display: block; height: 0; }

.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; margin: 14px 0 20px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 10px 0 16px; }
h1 em, h2 em { color: var(--tomato); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
section { padding: 96px 0; }
.pt0 { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 700 15px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--btn-bg); color: #fff; }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fbf5ec; color: #2d211c; }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav-links { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--tomato); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color .2s; }
[data-theme] .theme-toggle { display: grid; place-items: center; }
.theme-toggle:hover { border-color: var(--ink); }
[data-theme="dark"] .theme-toggle .fa-moon-o, [data-theme="light"] .theme-toggle .fa-sun-o { display: none; }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; padding: 64px 0 88px; }
.hero .lead { max-width: 520px; }
.hero-photo, .page-hero .photo { position: relative; margin-right: 22px; }
.hero-photo::before, .page-hero .photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 28px; background: var(--olive-deep); }
.hero-photo img, .page-hero .photo img { position: relative; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }
.badge { position: absolute; left: -28px; bottom: 36px; display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border-radius: 16px; box-shadow: 0 10px 30px rgba(90, 50, 30, .15); font-size: 14px; line-height: 1.3; }
.badge i { color: var(--olive); font-size: 22px; }

/* ---------- home: credentials ---------- */
.creds { background: var(--cream-2); border-block: 1px solid var(--line); }
.creds .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.cred b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.cred span { color: var(--muted); font-size: 14px; }

/* ---------- home: about ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.about p { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 6px 0; font: 700 16px var(--sans); color: var(--tomato); cursor: pointer; text-decoration: none; }
.quote { margin: 24px 0 0; padding: 20px 24px; border-left: 3px solid var(--olive); background: var(--olive-soft); border-radius: 0 16px 16px 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.quote footer { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- home: service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(90, 50, 30, .10); }
.icon { flex: none; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; font-size: 20px; }
.card h3 { font-size: 24px; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.card .link { margin-top: auto; color: var(--tomato); font-weight: 700; font-size: 15px; }

/* ---------- home: feature tiles ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { position: relative; display: flex; align-items: flex-end; min-height: 380px; overflow: hidden; border-radius: 28px; color: #fff; text-decoration: none; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature:hover img { transform: scale(1.04); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(30, 20, 15, .8)); }
.feature div { position: relative; z-index: 1; padding: 32px; }
.feature h3 { font-size: 32px; margin: 0 0 6px; }
.feature p { margin: 0; opacity: .9; }

/* ---------- home: news ---------- */
.news { background: var(--cream-2); }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
#instagram_media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ig { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--placeholder); }
.ig img, .ig video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig:hover img { transform: scale(1.04); }
.ig .tag { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #2d211c; font-size: 12px; font-weight: 700; }
.news-fallback { margin: 0; font-size: 18px; }
.news-fallback a { color: var(--tomato); font-weight: 700; }
.swipe-hint { display: none; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- home: studio gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.gallery img:first-child { grid-row: span 2; }

/* ---------- home: contacts + map ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { padding: 44px; background: var(--deep); color: var(--on-deep); border: 1px solid var(--deep-border); border-radius: 28px; }
.contact-card .eyebrow { color: #e9a08f; }
.contact-list { list-style: none; display: grid; gap: 14px; margin: 24px 0 30px; padding: 0; }
.contact-list a { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; overflow-wrap: anywhere; }
.contact-list i { flex: none; width: 20px; margin-top: 5px; color: #e9a08f; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 6px 0; border-bottom: 1px solid rgba(251, 245, 236, .12); font-weight: 400; text-align: left; }
.hours td { text-align: right; color: #d9cbb6; }
.contact-card .actions { margin-top: 28px; }
/* Before consent: a self-hosted OpenStreetMap image (img/mappa-studio.jpg, studio at 50% / 40%,
   matched by object-position and .map-pin). With consent cookie.js adds the Google iframe on top. */
.map { position: relative; min-height: 420px; overflow: hidden; border-radius: 28px; background: var(--placeholder); }
.map-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
[data-theme="dark"] .map-static { filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }
.map-pin { position: absolute; left: 50%; top: 40%; width: 34px; height: 46px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.map-pin path { fill: var(--btn-bg); }
.map-pin circle { fill: #fff; }
.map-credit { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #2d211c; font-size: 11px; text-decoration: none; }
.map-consent { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(45, 33, 28, .18); font-size: 14.5px; line-height: 1.45; }
.map-consent p { margin: 0; }
.map-consent a:not(.btn) { color: var(--tomato); font-weight: 700; }
.map-consent .actions { gap: 8px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-live .map-pin, .map.is-live .map-credit, .map.is-live .map-consent { display: none; }

/* ---------- inner pages ---------- */
.page-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding: 48px 0 80px; }
.page-hero--text { grid-template-columns: 1fr; padding-bottom: 28px; }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--tomato); }

.service-list { display: grid; gap: 20px; }
.service { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 34px 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.service .num { width: 64px; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--olive); }
.service h2 { font-size: 26px; margin: 0 0 8px; }
.service p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { padding: 5px 12px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); font-size: 13px; font-weight: 700; }
.closing { margin: 40px auto 0; max-width: 640px; text-align: center; }

.prose p { color: var(--muted); }
.prose p:first-child::first-letter { float: left; padding: 6px 10px 0 0; font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--tomato); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.spec { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.spec .icon { margin-bottom: 16px; }
.spec h3 { font-size: 25px; margin: 0 0 12px; }
.checks { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
.checks i { flex: none; margin-top: 5px; color: var(--tomato); }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 56px; background: var(--deep); color: var(--on-deep); border: 1px solid var(--deep-border); border-radius: 28px; }
.cta h2 { margin-top: 0; color: var(--on-deep); }
.cta p { margin: 0; color: #d9cbb6; }

/* ---------- flipbook (ricette) ---------- */
.flipbook { display: flex; justify-content: center; padding: 8px 0 28px; outline: none; }
.flipbook:focus-visible .fb-stage { outline: 3px solid var(--olive); outline-offset: 6px; }
.fb-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 980px); aspect-ratio: 1756 / 1400; perspective: 2400px; cursor: pointer; filter: drop-shadow(0 22px 40px rgba(90, 50, 30, .22)); }
.fb-page { position: relative; overflow: hidden; background: #efe4d2; }
.fb-page img, .fb-face img { width: 100%; height: 100%; object-fit: cover; }
.fb-left { border-radius: 14px 0 0 14px; }
.fb-right { border-radius: 0 14px 14px 0; }
.fb-left::after, .fb-right::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fb-left::after { background: linear-gradient(90deg, transparent 82%, rgba(0, 0, 0, .18)); }
.fb-right::after { background: linear-gradient(270deg, transparent 82%, rgba(0, 0, 0, .18)); }
.fb-page.empty { background: transparent; }
.fb-page.empty img { visibility: hidden; }
.fb-page.empty::after { display: none; }
.fb-leaf { position: absolute; top: 0; z-index: 3; width: 50%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.45, .05, .3, 1); }
.fb-leaf.fwd { left: 50%; transform-origin: left center; }
.fb-leaf.back { left: 0; transform-origin: right center; }
.fb-face { position: absolute; inset: 0; overflow: hidden; background: #efe4d2; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fb-face.b { transform: rotateY(180deg); }
.fb-leaf.fwd .fb-face.f, .fb-leaf.back .fb-face.b { border-radius: 0 14px 14px 0; }
.fb-leaf.fwd .fb-face.b, .fb-leaf.back .fb-face.f { border-radius: 14px 0 0 14px; }
.fb-leaf.fwd.turn { transform: rotateY(-180deg); }
.fb-leaf.back.turn { transform: rotateY(180deg); }

.flipbook.single .fb-stage { grid-template-columns: 1fr; width: min(100%, 460px); aspect-ratio: 878 / 1400; }
.flipbook.single .fb-left { display: none; }
.flipbook.single .fb-right { border-radius: 14px; }
.flipbook.single .fb-right::after { display: none; }
.flipbook.single .fb-leaf { left: 0; width: 100%; transform-origin: left center; transition: transform .7s cubic-bezier(.45, .05, .3, 1), opacity .7s ease; }
.flipbook.single .fb-leaf.fwd.turn { opacity: 0; }
.flipbook.single .fb-leaf.back { transform: rotateY(-180deg); opacity: 0; }
.flipbook.single .fb-leaf.back.turn { transform: rotateY(0); opacity: 1; }
.flipbook.single .fb-face { border-radius: 14px !important; }

.book-nav { display: flex; align-items: center; justify-content: center; gap: 20px; }
.round { width: 52px; height: 52px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.round:disabled { opacity: .35; cursor: default; }
.counter { min-width: 150px; text-align: center; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.download { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 36px; padding: 28px 34px; background: var(--olive-deep); color: #fff; border-radius: 24px; }
.download .icon { width: 58px; height: 58px; margin: 0; border-radius: 16px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; }
.download h2 { font-size: 26px; margin: 0; }
.download p { margin: 2px 0 0; opacity: .85; font-size: 15px; }

/* ---------- legal pages (cookie-policy.html) ---------- */
.legal { color: var(--muted); }
.legal h2 { margin: 48px 0 12px; font-size: clamp(26px, 3vw, 32px); color: var(--ink); }
.legal h3 { margin: 28px 0 8px; font-size: 22px; color: var(--ink); }
.legal b, .legal strong { color: var(--ink); }
.legal a { color: var(--tomato); overflow-wrap: anywhere; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .updated { margin: 0 0 8px; font-size: 14px; }
.legal-box { margin: 24px 0; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.legal-box p { margin: 0 0 6px; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-box .actions { margin-top: 16px; }
.cookie-items { display: grid; gap: 16px; margin: 20px 0; }
.cookie-item { padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.cookie-item h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.cookie-item .pill { padding: 4px 10px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); font: 700 12px/1.3 var(--sans); }
.cookie-item .pill.consent { background: var(--cream-2); color: var(--tomato); }
.cookie-item dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 0; font-size: 15.5px; }
.cookie-item dt { font-weight: 700; color: var(--ink); }
.cookie-item dd { margin: 0; }

/* ---------- footer, floating WhatsApp, bottom bar ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer p { margin: 0; }
.footer-info { display: grid; gap: 4px; }
.footer-info .owner { color: var(--ink); font-weight: 700; }
.footer-meta > span + span::before { content: "·"; margin: 0 8px; }
.footer-meta .nowrap { font-weight: 400; white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer .social a { display: inline-grid; place-items: center; width: 40px; height: 40px; font-size: 18px; color: var(--muted); }
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 15; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; font-size: 30px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.bottom-bar { display: none; }

/* ---------- cookie banner (driven by js/cookie.js, which animates `bottom`) ----------
   Collapsed, cookie.js leaves the card's top var(--bar-h) on screen; on mobile the opaque
   .bottom-bar (z 31) sits above it so the booking buttons stay tappable. */
.cookie { position: fixed; left: 50%; z-index: 30; display: flex; flex-direction: column; align-items: flex-start; width: min(560px, 100% - 2 * var(--gutter)); margin-bottom: var(--bar-h); transform: translateX(-50%); transition: bottom .5s ease-in-out; }
.cookie-tab { position: relative; z-index: 1; transition: transform .3s ease-in-out; }
.triangle { display: grid; place-items: center; width: 48px; height: 30px; margin-left: 18px; border-radius: 14px 14px 0 0; background: var(--ink); color: var(--cream); cursor: pointer; transition: transform .3s ease-in-out, background .2s; }
.triangle::before { content: "\f077"; font-family: FontAwesome; font-size: 13px; }
.triangle:hover { background: var(--tomato); }
.cookie-card { width: 100%; padding: 38px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px rgba(45, 33, 28, .18); font-size: 15px; }
.cookie-card p { margin: 0; line-height: 1.5; }
.cookie-card a { color: var(--tomato); font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-actions .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- tablet and below ---------- */
@media (max-width: 960px) {
  :root { --header-h: 64px; --bar-h: calc(70px + env(safe-area-inset-bottom)); }
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; place-items: center; }
  .brand { font-size: 19px; }

  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 32; overflow-y: auto; padding: 12px var(--gutter) 32px; background: var(--cream); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu .item { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; text-decoration: none; }
  .mobile-menu .item[aria-current="page"] { color: var(--tomato); }
  .mobile-menu .item i { font-size: 16px; color: var(--muted); }
  .mobile-menu .actions { flex-direction: column; margin-top: 24px; }
  .mobile-menu .social { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .mobile-menu .social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; }
  body.menu-open { overflow: hidden; }

  .hero, .about, .features, .contact, .page-hero { grid-template-columns: 1fr; }
  .hero { gap: 44px; padding: 32px 0 64px; }
  .page-hero { gap: 40px; padding: 28px 0 56px; }
  .hero-photo, .page-hero .photo { width: calc(100% - 16px); max-width: 460px; margin: 0 auto; }
  .hero-photo::before, .page-hero .photo::before { inset: 16px -16px -16px 16px; }
  .about { gap: 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .creds .container { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .cta { grid-template-columns: 1fr; padding: 36px 28px; }

  .wa { display: none; }
  .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); }
  .bottom-bar .btn { min-height: 46px; padding: 10px; }
  .btn-wa { background: #25d366; color: #fff; }
  body { padding-bottom: var(--bar-h); }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand img { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .badge { left: 8px; bottom: 16px; padding: 10px 14px; font-size: 13px; }
  .creds .container { gap: 16px 14px; padding: 20px 0; }
  .cred b { font-size: 18px; }
  .cred span { font-size: 13px; }
  .quote { font-size: 19px; }

  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 22px; }
  .card .icon { grid-row: span 3; width: 44px; height: 44px; margin: 0; font-size: 18px; }
  .card h3 { font-size: 21px; margin: 0 0 4px; }
  .card p { margin-bottom: 10px; }

  .feature { min-height: 240px; border-radius: 22px; }
  .feature div { padding: 22px; }
  .feature h3 { font-size: 26px; }

  .news-head { flex-direction: column; align-items: stretch; margin-bottom: 24px; }
  .news-head .btn { align-self: flex-start; }
  #instagram_media, .gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  #instagram_media::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .ig { flex: 0 0 78%; scroll-snap-align: start; }
  .gallery img { flex: 0 0 82%; height: 240px; scroll-snap-align: start; }
  .swipe-hint { display: block; }

  .contact-card { padding: 28px 22px; border-radius: 22px; }
  .map { min-height: 400px; border-radius: 22px; }
  .map-consent { left: 12px; right: 12px; bottom: 12px; padding: 14px; }

  .service { grid-template-columns: 1fr; gap: 6px; padding: 24px 22px; border-radius: 20px; }
  .service .num { font-size: 32px; }
  .service h2 { font-size: 22px; }
  .spec-grid { grid-template-columns: 1fr; gap: 14px; }
  .spec { padding: 24px 22px; border-radius: 20px; }
  .spec h3 { font-size: 22px; }
  .download { grid-template-columns: auto 1fr; gap: 16px; padding: 22px; }
  .download .btn { grid-column: 1 / -1; }
  .download h2 { font-size: 22px; }
  .cta { border-radius: 22px; }

  .cookie-item, .legal-box { padding: 20px; }
  .cookie-item dl { grid-template-columns: 1fr; gap: 0; }
  .cookie-item dd { margin-bottom: 8px; }

  .site-footer { text-align: center; }
  .site-footer .container { flex-direction: column; }
  .footer-info { gap: 8px; }
  .footer-meta > span { display: block; }
  .footer-meta > span + span::before { content: none; }
  .footer-links { justify-content: center; }
}
