/* ==========================================================================
   ÈSOR — Centro Estetico e Beauty Center
   Palette: black · bamboo (warm brown/gold) · dark rose #623741
   Cards: "flat" = tinted, rounded, subtle lower shadow · "lift" = white, deeper shadow
   ========================================================================== */

:root {
  /* Brand */
  --black: #161113;
  --ink: #241b1e;
  --ink-soft: #6b5a5f;
  --rose: #623741;
  --rose-deep: #4b2831;
  --rose-300: #c99aa4;
  --rose-200: #f0d6db;
  --rose-100: #f8e8eb;
  --rose-50: #fcf4f5;
  --bamboo: #b48a5a;
  --bamboo-deep: #7d5f3c;
  --bamboo-200: #eadcc8;
  --bamboo-100: #f4ebdf;
  --bamboo-50: #faf6f0;
  --cream: #fcf9f7;
  --white: #fff;
  --line: rgba(98, 55, 65, 0.12);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-flat: 0 1px 1px rgba(75, 40, 49, 0.03), 0 10px 18px -12px rgba(75, 40, 49, 0.28);
  --shadow-lift: 0 4px 10px -6px rgba(75, 40, 49, 0.12), 0 26px 50px -22px rgba(75, 40, 49, 0.32);
  --shadow-hover: 0 6px 14px -8px rgba(75, 40, 49, 0.16), 0 34px 60px -24px rgba(75, 40, 49, 0.38);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 16px;
  --topbar-h: 40px;
  --nav-h: 76px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }

/* ---------- Fonts: hosted on the site (no request to Google, GDPR) ----------
   Variable woff2, latin subset only (Italian text, «», ·, –, € all fall in it). Downloaded from
   Google Fonts on 2026-11-11: Outfit wght 300–500, Playfair Display wght 400–600 + italic 400.
   Outfit and Playfair normal are preloaded in header.php. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
strong { font-weight: 500; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.6rem 1rem; border-radius: 999px;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons, pills, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font: 500 0.94rem/1.2 var(--font-body); letter-spacing: 0.01em;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--rose { background: var(--rose); color: var(--white); box-shadow: 0 10px 22px -12px rgba(98, 55, 65, 0.7); }
.btn--rose:hover { background: var(--rose-deep); box-shadow: 0 14px 26px -12px rgba(98, 55, 65, 0.8); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-flat); }
.btn--ghost:hover { border-color: var(--rose-300); color: var(--rose); }
.btn--ghost .icon { color: #1fa855; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--rose-deep); }
.btn--light { background: var(--white); color: var(--rose-deep); }
.btn--light:hover { background: var(--bamboo-100); }
.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.38rem 0.95rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 400; line-height: 1.3;
}
.pill--rose { background: var(--rose-200); color: var(--rose); }
.pill--bamboo { background: var(--bamboo-200); color: var(--bamboo-deep); }
.pill--glass {
  background: rgba(255, 255, 255, 0.78); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.icon-badge {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: 0 6px 14px -8px rgba(75, 40, 49, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--rose { background: var(--rose-200); color: var(--rose); }
.icon-badge--bamboo { background: var(--bamboo-200); color: var(--bamboo-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bamboo-deep); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--light { color: var(--bamboo-200); }

/* ---------- Cards ---------- */
.card { border-radius: var(--radius); position: relative; }

.card--flat { box-shadow: var(--shadow-flat); }
/* Backup, original card tints:
.card--rose { background: linear-gradient(180deg, var(--rose-100) 0%, var(--rose-50) 100%); }
.card--bamboo { background: linear-gradient(180deg, var(--bamboo-100) 0%, var(--bamboo-50) 100%); }
*/
/* Trial: rose-100 → lavender #eae8f8, bamboo-50 → bluish #f0faf9 (cards only, global tokens unchanged) */
.card--rose { background: linear-gradient(180deg, #eae8f8 0%, var(--rose-50) 100%); }
.card--bamboo { background: linear-gradient(180deg, var(--bamboo-100) 0%, #f0faf9 100%); }

.card--lift {
  background: var(--white); box-shadow: var(--shadow-lift);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.7s var(--ease);
}

/* Photo texture inside tinted cards: grayscale image × the card tint.
   Tune globally with the three variables (or try live with ?texlab on localhost). */
:root {
  --tex-opacity: 0.14;
  --tex-blend: multiply;
  --tex-fade: linear-gradient(115deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 55%, #000 100%);
}
.card:has(> .card__tex) { isolation: isolate; overflow: hidden; }
.card__tex {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-size: cover; background-repeat: no-repeat;
  mix-blend-mode: var(--tex-blend); opacity: var(--tex-opacity);
  -webkit-mask-image: var(--tex-fade); mask-image: var(--tex-fade);
  transition: transform 1.2s var(--ease);
}
.card:hover > .card__tex { transform: scale(1.04); }

/* Reveal (class added by JS only to cards below the fold) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.45s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Contact bar ---------- */
/* Backup, original dark-rose bar that scrolled away:
.topbar { background: var(--rose); color: var(--rose-100); font-size: 0.84rem; font-weight: 300; }
a.topbar__item:hover { color: var(--white); }
.topbar__actions .topbar__item { font-weight: 400; color: var(--white); }
.topbar__item--wa { padding: 0.2rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.topbar__item--wa:hover { background: rgba(255, 255, 255, 0.2); }
(and .nav had top: 0; html scroll-padding-top without the topbar; main.js is-stuck checked nav top <= 0)
*/
/* Trial: light rose bar, black text, sticky together with the nav (nav sticks right under it) */
.topbar {
  position: sticky; top: 0; z-index: 51;
  background: var(--rose-100); color: var(--black); font-size: 0.84rem; font-weight: 300;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--topbar-h); }
.topbar__info, .topbar__actions { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.topbar__item .icon { width: 15px; height: 15px; opacity: 0.85; }
a.topbar__item { transition: color 0.2s, background-color 0.2s; }
a.topbar__item:hover { color: var(--rose); }
.topbar__actions .topbar__item { font-weight: 400; color: var(--black); }
.topbar__actions .topbar__item:hover { color: var(--rose); }
.topbar__item--wa { padding: 0.2rem 0.75rem; border-radius: 999px; background: rgba(98, 55, 65, 0.08); }
.topbar__item--wa:hover { background: rgba(98, 55, 65, 0.14); }
.topbar__item--hours, .topbar__item--addr { display: none; }

@media (min-width: 720px) { .topbar__item--addr { display: inline-flex; } }
@media (min-width: 1040px) { .topbar__item--hours { display: inline-flex; } }
@media (max-width: 719px) { .topbar__actions { width: 100%; justify-content: space-between; } }
/* desktop: bar items sit a little inside the nav's edges, so the two rows read as separate */
@media (min-width: 960px) { .topbar__inner { padding-inline: calc(var(--gutter) + 2rem); } }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky; top: var(--topbar-h); z-index: 50;
  background: rgba(252, 249, 247, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 10px 24px -18px rgba(75, 40, 49, 0.35); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--nav-h); }

.logo {
  font-family: var(--font-display); font-weight: 500; font-size: 1.9rem;
  letter-spacing: 0.14em; line-height: 1; color: var(--black);
}
.logo--light { color: var(--white); }

.nav__menu { display: flex; align-items: center; gap: 1.25rem; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__links a {
  display: block; padding: 0.55rem 1rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 400; color: var(--ink);
  transition: background-color 0.25s, color 0.25s;
}
.nav__links a:hover { background: var(--rose-50); color: var(--rose); }
.nav__links a.is-active { background: var(--rose-100); color: var(--rose); }
.nav__cta { min-height: 44px; padding-block: 0.65rem; }

.nav__toggle {
  display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-flat);
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon--close { display: none; }

@media (max-width: 959px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.75rem;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0.25s;
  }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__links a { padding: 0.85rem 1.1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open .icon--open { display: none; }
  .nav.is-open .icon--close { display: block; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem); }

/* ---------- Background shapes (includes/decor.php) ----------
   Still, layered blobs that sit across the boundary between two sections, alternating sides:
   one continuous background while scrolling, and a soft marker of each new section.
   All of them live in <main>'s stacking context at z-index -1: under every section and card. */
main { position: relative; isolation: isolate; overflow-x: clip; }
main > section { position: relative; }
.decor-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* The pink band (flow() in decor.php): one piece per section, stretched to the section, under the blobs.
   +1px at the bottom so neighbouring pieces overlap instead of leaving a hairline seam. */
.flow {
  position: absolute; left: 0; top: 0; z-index: -2; width: 100%; height: calc(100% + 1px);
  overflow: visible; pointer-events: none; fill: var(--flow, #f5dde2);
}
.decor {
  --s: clamp(240px, 40vw, 560px);
  position: absolute; z-index: -1; width: var(--s); height: var(--s);
  pointer-events: none; overflow: visible;
}
.decor__line { stroke: var(--bamboo); stroke-opacity: 0.32; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
/* centred on the section's top edge, half off the screen edge */
.decor--top-left  { top: calc(var(--s) * -0.5); left:  calc(var(--s) * -0.45); }
.decor--top-right { top: calc(var(--s) * -0.5); right: calc(var(--s) * -0.45); }
.decor--flip { transform: scaleX(-1); }
.decor--hero { --s: clamp(260px, 46vw, 680px); top: 4%; right: calc(var(--s) * -0.42); }
@media (max-width: 759px) {
  .decor { --s: 240px; }
  .decor--top-left  { left:  -150px; }
  .decor--top-right { right: -150px; }
  .decor--hero { --s: 300px; top: auto; bottom: -60px; right: -170px; }
}

.section__head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 0.9rem; }
.section__head--split .section__title { margin-bottom: 0; }
.section__intro { color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero__inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }

.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--rose); }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.rating-chip {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.75rem;
  font-size: 0.9rem; color: var(--ink-soft);
}
.rating-chip strong { color: var(--ink); }
.rating-chip__stars, .score__stars, .review__stars { display: inline-flex; gap: 2px; color: var(--bamboo); }
.rating-chip__stars .icon { width: 16px; height: 16px; }

.hero__media { position: relative; }
.hero__media::before {
  /* soft rose glow behind the photo */
  content: ""; position: absolute; inset: -8% -6% -10% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 154, 164, 0.38), transparent 75%);
  filter: blur(10px);
}
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 38% 50%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
.hero__badge {
  position: absolute; left: clamp(12px, 3vw, 24px); bottom: clamp(12px, 3vw, 24px);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.1rem 0.6rem 0.9rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.9rem; font-weight: 400; box-shadow: var(--shadow-flat);
}
.hero__badge .icon { color: var(--bamboo-deep); }
.hero__badge.is-open .icon { color: #2e8b57; }
.hero__badge[hidden] { display: none; }

/* Phones: photo first, a little shorter, so the place is the first thing you see */
@media (max-width: 959px) {
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 3; }
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1fr 1.15fr; }
}

/* ---------- Features ---------- */
.features { display: grid; gap: 1.25rem; }
.feature { padding: 1.9rem 1.75rem 2rem; }
.feature h3 { font-size: 1.55rem; margin: 1.25rem 0 0.55rem; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Services ---------- */
.services { display: grid; gap: 1.25rem; grid-auto-flow: dense; }
.service { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.7rem; }
.service__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.15rem; }
.service__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--bamboo); letter-spacing: 0.08em; }
.service h3 { font-size: 1.5rem; margin-bottom: 0.45rem; }
.service__intro { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.service__list { display: grid; gap: 0.35rem; margin-bottom: 1.4rem; font-size: 0.93rem; }
.service__list li { position: relative; padding-left: 1.05rem; line-height: 1.45; }
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; border-radius: 50%;
  background: var(--rose-300);
}
.card--bamboo .service__list li::before { background: var(--bamboo); }
.service .pill { margin-top: auto; align-self: flex-start; }

.service--cta {
  justify-content: center; gap: 0.9rem;
  background: linear-gradient(145deg, var(--rose) 0%, var(--rose-deep) 100%); color: var(--rose-100);
}
.service--cta h3 { color: var(--white); font-size: 1.65rem; margin: 0; }
.service--cta .btn { align-self: flex-start; margin-top: 0.4rem; }

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--wide { grid-column: span 2; }
  .service--wide .service__list { display: block; columns: 2; column-gap: 1.5rem; }
  .service--wide .service__list li { break-inside: avoid; margin-bottom: 0.35rem; }
}
@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Showcase (Il centro) ---------- */
.showcase {
  display: grid; overflow: hidden;
  background: linear-gradient(120deg, var(--white) 0%, var(--bamboo-50) 100%);
}
.showcase__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.showcase__body { padding: clamp(1.75rem, 4vw, 3.5rem); align-self: center; }
.showcase__body > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.04rem; max-width: 52ch; }
.checklist { display: grid; gap: 0.7rem; margin: 1.6rem 0 2rem; }
.checklist li { display: flex; align-items: center; gap: 0.75rem; }
.checklist .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--bamboo-200); color: var(--bamboo-deep); stroke-width: 2.2;
}

@media (min-width: 900px) {
  .showcase { grid-template-columns: 0.9fr 1.1fr; }
  .showcase__media img { aspect-ratio: auto; min-height: 520px; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 2vw, 1.25rem); margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-flat); }
.gallery__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Reviews ---------- */
.score { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.4rem; border-radius: var(--radius); background: var(--rose-100); box-shadow: var(--shadow-flat); }
.score__value { font-family: var(--font-display); font-size: 2.8rem; font-weight: 500; line-height: 1; color: var(--rose); }
.score__stars .icon { width: 17px; height: 17px; }
.score__meta { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.2rem; }

.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 360px); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 0.5rem var(--gutter) 2.5rem;
  scroll-padding-inline: var(--gutter);
}
.reviews::-webkit-scrollbar { display: none; }
.review { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem 1.6rem 1.6rem; scroll-snap-align: start; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review__stars .icon { width: 15px; height: 15px; }
.review blockquote { font-size: 0.99rem; color: var(--ink); flex: 1; }
.review blockquote p::before { content: "«"; }
.review blockquote p::after { content: "»"; }
.review figcaption { display: flex; align-items: center; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; font-size: 0.95rem; }
.review figcaption small { display: block; font-size: 0.8rem; color: var(--bamboo-deep); }
.review__avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose-100); color: var(--rose); font-family: var(--font-display); font-size: 1.15rem;
}

@media (min-width: 960px) {
  .reviews {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    overflow: visible; margin-inline: 0; padding: 0;
  }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 1.25rem; }
.contact__card { padding: clamp(1.6rem, 3.5vw, 2.5rem); }
.contact__rows { display: grid; gap: 1.5rem; }
.contact__rows dt {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bamboo-deep);
}
.contact__rows dt .icon { width: 16px; height: 16px; }
.contact__rows dd { color: var(--ink); }
.contact__rows small { color: var(--ink-soft); font-size: 0.88rem; }
.contact__phone { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.1rem); color: var(--rose); letter-spacing: 0.02em; }
.contact__phone:hover { color: var(--rose-deep); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hours { display: grid; gap: 2px; max-width: 400px; font-size: 0.95rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0.75rem; margin-inline: -0.75rem; border-radius: 10px; }
.hours li.is-closed { color: var(--ink-soft); }
.hours li.is-today { background: var(--rose-100); color: var(--rose); font-weight: 400; }
.hours li.is-today span:first-child::after { content: " · oggi"; font-size: 0.8em; opacity: 0.8; }

.contact__map { position: relative; overflow: hidden; min-height: 380px; }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.02); }

@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; display: grid;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  background: linear-gradient(135deg, var(--rose-deep) 0%, #2b171c 100%); color: var(--rose-100);
}
.cta__body { position: relative; z-index: 1; padding: clamp(2rem, 6vw, 4.5rem); }
.cta__title { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 0.75rem; }
.cta__body > p:not(.eyebrow) { margin-bottom: 2rem; max-width: 40ch; }
.cta__img {
  position: absolute; inset: 0 0 0 auto; width: 70%; height: 100%; object-fit: cover; object-position: 60% 50%;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
  mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
@media (min-width: 900px) { .cta__img { width: 55%; opacity: 0.9; } }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #c9bcc0; font-size: 0.93rem; }
/* the space above the footer belongs to the last section, so the pink band runs into the footer */
main > section:last-child { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.footer__inner { display: grid; gap: 2.25rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__brand p { margin-top: 0.9rem; color: #9d8f93; }
.footer__title { font-family: var(--font-body); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bamboo); margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.5rem; }
.footer__col a { transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 300px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.84rem; color: #8d7f83;
}
.footer__bottom a { color: #c9bcc0; }
.footer__bottom a:hover { color: var(--white); }

@media (min-width: 720px) { .footer__inner { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer__linkbtn { padding: 0; border: 0; background: none; font: inherit; color: #c9bcc0; cursor: pointer; }
.footer__linkbtn:hover { color: var(--white); }

/* ---------- Map behind consent (includes/map.php) ---------- */
.map-gate {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center;
  background: linear-gradient(180deg, var(--rose-50) 0%, var(--white) 100%);
}
.map-gate__txt { max-width: 38ch; font-size: 0.95rem; color: var(--ink-soft); }
.map-gate__txt a, .consent__txt a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }
.map-gate__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.map-gate__link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--rose); }
.map-gate__link .icon { width: 16px; height: 16px; }

/* ---------- Cookie banner (includes/consent.php): two buttons of equal weight ---------- */
.consent {
  position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  max-width: 980px; margin-inline: auto; padding: 1.1rem 1.25rem 1.1rem 1.5rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-hover);
}
.consent[hidden] { display: none; }
.consent__txt { flex: 1 1 380px; font-size: 0.92rem; color: var(--ink); }
.consent__btns { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.consent__btn { min-width: 9.5rem; }
.consent__btn--yes { background: var(--rose); color: var(--white); }
.consent__btn--yes:hover { background: var(--rose-deep); }
.consent__btn--no { background: var(--black); color: var(--white); }
.consent__btn--no:hover { background: var(--ink); }
@media (max-width: 479px) { .consent__btns { width: 100%; } .consent__btn { flex: 1; min-width: 0; } }

/* ---------- Text pages (privacy.php, 404.php) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.5rem 0 0.75rem; }
.prose p, .prose ul { margin-bottom: 1rem; color: var(--ink); }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose li { margin-bottom: 0.4rem; }
.prose a:not(.btn) { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }
.prose .muted { color: var(--ink-soft); font-size: 0.92rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.92rem; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-flat); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; background: var(--rose-50); }
.prose .btn { text-decoration: none; }

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