/* ==========================================================================
   Centro Olistico Alina — foglio di stile unico, senza framework.
   Identità dal sito originale: viola #5c2483, verde #009640, lime #d3d800,
   lilla #e8e2f1, crema #f4f6e8. Font self-hosted (SIL OFL).
   ========================================================================== */

@font-face { font-family: "Blinker"; font-weight: 300; font-display: swap; src: url("../fonts/blinker-latin-300-normal.cbc609762e45.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-weight: 400; font-display: swap; src: url("../fonts/blinker-latin-400-normal.9ee4cf818228.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-weight: 600; font-display: swap; src: url("../fonts/blinker-latin-600-normal.f48764002af4.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-weight: 700; font-display: swap; src: url("../fonts/blinker-latin-700-normal.2beb8f5032dd.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/encode-sans-condensed-latin-500-normal.8e7e0fa06d5a.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/encode-sans-condensed-latin-600-normal.75513cbf730c.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/encode-sans-condensed-latin-700-normal.9fe678965b3e.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-weight: 400; font-display: swap; src: url("../fonts/kalam-latin-400-normal.0a6a7f663878.woff2") format("woff2"); }

:root {
  --violet: #5c2483;
  --violet-dark: #431862;
  --violet-soft: #7a4a9e;
  --green: #00843d;          /* verde del logo, scurito per contrasto AA su bianco */
  --green-logo: #009640;
  --lime: #d3d800;
  --lilac: #e8e2f1;
  --lilac-deep: #d6cbe6;
  --cream: #f4f6e8;
  --sage: #dfeadf;
  --paper: #ffffff;
  --ink: #2a2230;
  --muted: #5f5668;
  --line: #e5e0ea;
  --danger: #a3132b;
  --success: #1d6b36;

  --font-body: "Blinker", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Encode Sans Condensed", "Blinker", system-ui, sans-serif;
  --font-hand: "Kalam", "Segoe Print", cursive;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(67, 24, 98, .22);
  --shadow-lg: 0 24px 50px -20px rgba(67, 24, 98, .35);
  --container: 1200px;
  --text: 46rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 76px;
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.1875rem; line-height: 1.6; color: var(--ink);
  background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 5px var(--violet); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); color: var(--violet); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--violet); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.icon { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--text { width: min(100% - 2 * var(--gutter), var(--text)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section--tight { padding-block: calc(var(--space) * .6); }
.section--cream { background: var(--cream); }
.section--lilac { background: var(--lilac); }
.section--violet { background: var(--violet); color: #fff; }
.section--violet h2, .section--violet h3 { color: #fff; }

.kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-title); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .75rem; }
.kicker::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; border-radius: 2px; }
.hand { font-family: var(--font-hand); font-weight: 400; }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--muted); line-height: 1.55; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker::after { content: ""; width: 1.8rem; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p { color: var(--muted); }
.muted { color: var(--muted); }

/* --- Bottoni ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid var(--violet); background: var(--violet); color: #fff;
  font-family: var(--font-title); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--violet-dark); border-color: var(--violet-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--violet); }
.btn--ghost:hover { background: var(--violet); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--violet); }
.btn--light:hover { background: var(--lilac); border-color: var(--lilac); color: var(--violet-dark); }
.btn--green { background: var(--green); border-color: var(--green); }
.btn--green:hover { background: #006b31; border-color: #006b31; }
.btn--small { min-height: 40px; padding: .45rem 1.1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-title); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(67, 24, 98, .5); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .7rem; border-radius: 999px; border: 0; background: none;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--violet); text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] { background: var(--lilac); color: var(--violet-dark); }
.nav__toggle .icon { width: 1em; height: 1em; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__item { position: relative; }
.nav__submenu {
  position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0; min-width: 260px; list-style: none; margin: 0; padding: .6rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.nav__submenu[hidden] { display: none; }
.nav__submenu a { display: block; padding: .6rem .9rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
.nav__submenu a:hover { background: var(--cream); color: var(--violet); }
.header-cta { display: flex; gap: .5rem; align-items: center; }
.menu-button { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lilac); color: var(--violet); cursor: pointer; align-items: center; justify-content: center; }
.menu-button .icon { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .header-cta .btn span { display: none; }
  .nav__link, .nav__toggle { padding: .5rem .5rem; font-size: .88rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 120px; }
  .menu-button { display: inline-flex; }
  .header-cta { display: none; }
  /* Niente backdrop-filter: renderebbe l'header il riferimento del menu fixed. */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h));
    background: #fff; padding: 1.5rem var(--gutter) 3rem; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: .9rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav__submenu { position: static; translate: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; min-width: 0; }
  .nav__mobile-cta { display: grid; gap: .7rem; margin-top: 1.5rem; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 961px) { .nav__mobile-cta { display: none; } }

/* --- Onde decorative ---------------------------------------------------------- */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave--cream { color: var(--cream); }
.wave--lilac { color: var(--lilac); }
.wave--white { color: #fff; }
.wave--flip { transform: scaleY(-1); }
.has-wave-top { position: relative; }

/* Onde del vecchio sito sotto le testate (includes/waves_hero.html). */
:root { --waves-h: clamp(90px, 19vw, 290px); }
.waves-hero { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--waves-h); display: block; color: #fff; pointer-events: none; z-index: 0; }
.waves-hero--cream { color: var(--cream); }
.waves-hero--lilac { color: var(--lilac); }
.waves-veil { position: absolute; left: 0; top: 0; width: 100%; height: 40%; display: block; opacity: .35; pointer-events: none; z-index: 0; }
.hero + .section { padding-top: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 700px) { .waves-veil { display: none; } }

/* Scacchiera delle categorie in home (vecchia sezione «Massaggi»). */
.cat-board { background: var(--cream); padding-block: clamp(.5rem, 2vw, 1.5rem) clamp(2rem, 5vw, 3.5rem); }
.cat-board__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.cat-board__cat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 1rem .25rem; }
.cat-board__title { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.85rem); color: var(--violet); margin: .4rem 0 0; }
.cat-board__cat p { margin: 0 0 .6rem; font-size: 1rem; line-height: 1.5; max-width: 30rem; }
.cat-board__photo { min-height: 280px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cat-board__photo .pic, .cat-board__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) { .cat-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cat-board__grid { grid-template-columns: 1fr; } .cat-board__photo { min-height: 0; aspect-ratio: 4 / 3; } }
.cat-icon { flex: none; display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: var(--lilac); overflow: hidden; }
.cat-icon img { width: 100%; height: 100%; object-fit: contain; }
.cat-icon--small { width: 96px; height: 96px; }
.cat-head { display: flex; align-items: center; gap: 1.25rem; }
.cat-head h2 { margin-bottom: .25em; }
@media (max-width: 560px) { .cat-head { align-items: flex-start; } .cat-head .cat-icon--small { width: 60px; height: 60px; } }

/* --- Hero -------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .pic, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(43, 13, 64, .78) 0%, rgba(67, 24, 98, .5) 45%, rgba(67, 24, 98, .08) 80%); }
.hero__content { position: relative; z-index: 1; padding-block: calc(6rem + 9vh) calc(var(--waves-h) * .55 + 1rem); max-width: 40rem; }
.hero__quote { font-family: var(--font-hand); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.25; color: #fff; margin: 0 0 1rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.hero h1::before { content: ""; width: 2.2rem; height: 2px; background: var(--lime); }
.hero__text { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 34rem; opacity: .95; margin-bottom: 2rem; }
.hero .wave { position: absolute; bottom: -1px; left: 0; }

/* Testata delle pagine interne */
.page-hero { position: relative; isolation: isolate; background: var(--lilac); overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem) calc(var(--waves-h) * .55); display: grid; gap: 2rem; align-items: center; }
.page-hero--image .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.page-hero__media { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { margin-bottom: .4em; }
.page-hero .lead { color: var(--ink); opacity: .85; max-width: 40rem; }
.page-hero .wave { position: absolute; bottom: -1px; left: 0; }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(211, 216, 0, .25), transparent 65%); }
@media (max-width: 800px) { .page-hero--image .page-hero__inner { grid-template-columns: 1fr; } .page-hero__media { max-width: 420px; } }

.breadcrumbs { font-size: .95rem; margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .35rem; color: var(--violet-soft); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--violet); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--violet); font-weight: 600; }

.preview-banner { background: #fff6d6; color: #5a4300; border-bottom: 1px solid #edd98a; padding: .6rem 0; font-size: .95rem; }

/* --- Griglie e card ----------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; background: var(--lilac); overflow: hidden; }
.card__media .pic, .area-card__media .pic, .page-hero__media .pic, .dialog__media .pic { height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--placeholder { display: grid; place-items: center; color: var(--violet-soft); }
.card__media--placeholder .icon { width: 56px; height: 56px; opacity: .5; }
.card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .95rem; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card__title { font-size: 1.35rem; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__text { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__footer { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card__price { font-family: var(--font-title); font-weight: 700; color: var(--violet); font-size: 1.15rem; }
.card__price del { color: var(--muted); font-weight: 500; font-size: .95rem; margin-right: .3rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: 999px; background: var(--lilac); color: var(--violet-dark); font-family: var(--font-title); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.badge--green { background: #dff0e4; color: #0d5a2b; }
.badge--lime { background: #f3f5c2; color: #4e5000; }
.badge--danger { background: #fde4e8; color: var(--danger); }
.card .badge-pos { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

/* Card evento con data */
.date-chip { display: grid; place-items: center; width: 4.4rem; padding: .5rem 0; border-radius: var(--radius-sm); background: var(--violet); color: #fff; font-family: var(--font-title); line-height: 1; flex: none; }
.date-chip__day { font-size: 1.8rem; font-weight: 700; }
.date-chip__month { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }
.event-row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.3rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.event-row h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.event-row h3 a { color: inherit; text-decoration: none; }
.event-row h3 a::after { content: ""; position: absolute; inset: 0; }
.event-row p { margin: 0; color: var(--muted); }
.month-group + .month-group { margin-top: 2.5rem; }
.month-group > h2 { font-size: 1.4rem; text-transform: capitalize; border-bottom: 2px solid var(--lilac); padding-bottom: .5rem; }

/* --- Home ---------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.split__media { position: relative; }
.split__media .pic { border-radius: 46% 54% 48% 52% / 52% 44% 56% 48%; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1; }
.split__media .pic img { width: 100%; height: 100%; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: -6% -4% auto auto; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); opacity: .35; z-index: -1; }
.split--reverse .split__media { order: 2; }
@media (max-width: 800px) { .split--reverse .split__media { order: 0; } }
.prose-intro { font-size: 1.15rem; }

.area-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sage); }
.area-card__media img { width: 100%; height: 100%; object-fit: cover; }
.area-card__media--logo { background: #fff; padding: clamp(1.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line, #eee); }
.area-card__media--logo img { object-fit: contain; }
.area-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.area-card h3 { margin-bottom: .35rem; }
.area-card :is(h2, h3) a { color: inherit; text-decoration: none; }
.area-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.area-card ul { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.area-card li { font-size: .9rem; background: var(--cream); padding: .15rem .6rem; border-radius: 999px; color: var(--muted); }

.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.6); padding: clamp(2rem, 5vw, 3.5rem); background: var(--violet); color: #fff; display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; bottom: -150px; border-radius: 50%; background: rgba(211, 216, 0, .2); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* --- Contenuto (prose) --------------------------------------------------------- */
.prose { max-width: var(--text); }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose h4, .prose h5, .prose h6 { margin-top: 1.3em; color: var(--violet-dark); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { color: var(--green); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--lime); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.15em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--lilac); }
.prose figure { margin: 1.5em 0; }
.prose figure.table { overflow-x: auto; }
.prose img { border-radius: var(--radius-sm); }
.prose figure.image-style-side { float: right; max-width: 45%; margin: 0 0 1em 1.5em; }
.prose a { word-break: break-word; }
.prose hr { border: 0; border-top: 2px solid var(--lilac); margin: 2em 0; }
.prose::after { content: ""; display: block; clear: both; }

.layout-aside { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--cream); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; }
.aside-card h2 { font-size: 1.3rem; margin: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.facts li { display: flex; gap: .6rem; align-items: flex-start; }
.facts .icon { color: var(--green); margin-top: .2rem; }
.facts strong { display: block; font-family: var(--font-title); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-big { font-family: var(--font-title); font-weight: 700; color: var(--violet); font-size: 2rem; line-height: 1; }
.price-big del { font-size: 1.1rem; color: var(--muted); font-weight: 500; margin-right: .4rem; }
.aside-card .btn { width: 100%; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--lilac); }
.notice--warning { background: #fff3d4; color: #5a4300; }
.notice--danger { background: #fde4e8; color: var(--danger); }
.notice--success { background: #dff0e4; color: var(--success); }

/* Sezioni di approfondimento (accordion) */
.sections { display: grid; gap: .8rem; margin-top: 2.5rem; max-width: var(--text); }
.sections details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sections summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--font-title); font-weight: 700; color: var(--violet); font-size: 1.15rem; }
.sections summary::-webkit-details-marker { display: none; }
.sections summary .icon { transition: transform .25s; color: var(--green); }
.sections details[open] summary { background: var(--cream); }
.sections details[open] summary .icon { transform: rotate(180deg); }
.sections__body { padding: 1.1rem 1.3rem 1.3rem; }
.sections__body .pic { margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; }

/* Galleria + lightbox */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin: 2rem 0; }
@media (max-width: 700px) { .gallery { --cols: 2 !important; } }
.gallery__item { margin: 0; }
.gallery__item button { display: block; width: 100%; padding: 0; border: 0; background: var(--lilac); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item button:hover img { transform: scale(1.05); }
.gallery__item figcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(25, 10, 35, .9); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox p { color: #fff; text-align: center; margin: .8rem 0 0; }
.lightbox__close, .lightbox__nav { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--violet); cursor: pointer; display: grid; place-items: center; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Picture con rapporto fisso */
.pic { display: block; }
.pic img { width: 100%; }
.pic--cover img { height: 100%; object-fit: cover; }

/* --- Blocchi ------------------------------------------------------------------ */
.blocks > * + * { margin-top: 1.6rem; }
.block-image { margin: 2rem auto; max-width: var(--text); }
.block-image--wide { max-width: 980px; }
.block-image--full { max-width: none; }
.block-image img { border-radius: var(--radius); }
.block-image figcaption { color: var(--muted); font-size: .95rem; margin-top: .6rem; text-align: center; }
.block-text-image { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; align-items: center; margin-block: 3rem; }
.block-text-image--left .block-text-image__media { order: -1; }
.block-text-image__media .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 760px) { .block-text-image { grid-template-columns: 1fr; } .block-text-image--left .block-text-image__media { order: 0; } }
.block-columns { display: grid; gap: 2rem; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin-block: 2rem; }
.block-columns > div { align-self: var(--align, start); }
@media (max-width: 760px) { .block-columns { grid-template-columns: 1fr; } }
.block-quote { margin: 2.5rem auto; max-width: 40rem; text-align: center; }
.block-quote blockquote { margin: 0; font-family: var(--font-hand); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; color: var(--violet); }
.block-quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--lime); }
.block-quote figcaption { margin-top: 1rem; color: var(--muted); font-family: var(--font-title); letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.block-list ul, .block-list ol { padding-left: 1.3em; }
.block-list--check ul { list-style: none; padding: 0; }
.block-list--check li { position: relative; padding-left: 1.9rem; margin-bottom: .5rem; }
.block-list--check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / 70% no-repeat; }
.block-cta { border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); margin-block: 2.5rem; }
.block-cta--lilac { background: var(--lilac); }
.block-cta--cream { background: var(--cream); }
.block-cta--violet { background: var(--violet); color: #fff; }
.block-cta--violet h2 { color: #fff; }
.block-cta--plain { padding: 0; }
.block-cta--center { text-align: center; }
.block-cta--center .btn-row { justify-content: center; }
.block-separator { border: 0; margin: 3rem auto; max-width: var(--text); }
.block-separator--line { border-top: 2px solid var(--lilac); }
.block-separator--space { height: 2rem; }
.block-separator--wave { height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 Q15 0 30 12 T60 12 T90 12 T120 12' fill='none' stroke='%23d6cbe6' stroke-width='3'/%3E%3C/svg%3E") center / 120px 24px repeat-x; }
.block-video video { width: 100%; border-radius: var(--radius); background: #000; }
.block-document { display: grid; gap: 1rem; padding: 1.3rem; border-radius: var(--radius); background: var(--cream); }
.block-document__head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.block-document__head .icon { width: 2.4rem; height: 2.4rem; color: var(--danger); }
.block-document__head h3 { margin: 0; font-size: 1.2rem; }
.block-document object { width: 100%; height: min(80vh, 900px); border-radius: var(--radius-sm); background: #fff; }

/* Video esterni e mappa: caricati solo dopo il consenso */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--violet), var(--violet-soft)); color: #fff; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.embed__placeholder p { max-width: 30rem; margin: 0 auto 1rem; font-size: 1rem; }
.embed__placeholder .icon { width: 3.2rem; height: 3.2rem; margin: 0 auto .8rem; }
.embed--map { aspect-ratio: auto; height: 420px; background: var(--sage); color: var(--ink); }
.embed figcaption { color: var(--muted); }

/* --- Filtri, paginazione ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.filters a[aria-current] { background: var(--violet); color: #fff; border-color: var(--violet); }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 .9rem; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); }
.pagination [aria-current] { background: var(--violet); color: #fff; border-color: var(--violet); }

/* --- Calendario ------------------------------------------------------------------ */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.calendar-nav h2 { margin: 0; text-transform: capitalize; }
.calendar { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.calendar th { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); padding: .4rem; }
.calendar td { vertical-align: top; height: 104px; background: #fff; border-radius: var(--radius-sm); padding: .4rem; border: 1px solid var(--line); }
.calendar td.is-out { background: transparent; border-color: transparent; color: #b8b0bf; }
.calendar td.is-today { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.calendar__day { font-weight: 700; font-size: .95rem; }
.calendar a { display: block; margin-top: .3rem; font-size: .82rem; line-height: 1.25; background: var(--lilac); padding: .25rem .35rem; border-radius: 6px; text-decoration: none; }
@media (max-width: 760px) { .calendar-wrap { display: none; } }
@media (min-width: 761px) { .calendar-list { display: none; } }

/* --- Moduli -------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field input:not([type]) {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid #cfc6d8; background: #fff; font: inherit; color: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--violet); outline: 3px solid rgba(92, 36, 131, .18); outline-offset: 0; box-shadow: none; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__help { font-size: .92rem; color: var(--muted); margin-top: .3rem; }
.field__error { color: var(--danger); font-size: .95rem; font-weight: 600; margin-top: .3rem; }
.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--violet); flex: none; }
.field--check label { font-weight: 400; margin: 0; }
.captcha-box { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.captcha-box img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.captcha-box input { max-width: 160px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-errors { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: #fde4e8; color: var(--danger); }
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1.2rem; align-content: start; align-self: start; }
.contact-card h2 { font-size: 1.4rem; margin: 0; }
.contact-card .btn { width: 100%; }

/* --- Footer --------------------------------------------------------------------- */
.site-footer { background: var(--cream); margin-top: var(--space); }
.site-footer--flush { margin-top: 0; }
.site-footer__wave { display: block; color: var(--cream); background: #fff; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-block: 2rem 3rem; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.site-footer p, .site-footer li { font-size: 1.02rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--violet); text-decoration: underline; }
.footer-logo img { width: 160px; margin-bottom: 1rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: var(--shadow); }
.socials a:hover { background: var(--violet); color: #fff; text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(92, 36, 131, .12); padding-block: 1.2rem; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer__bottom button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; }

.fab-whatsapp { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s; }
.fab-whatsapp:hover { color: #fff; transform: scale(1.06); }
.fab-whatsapp .icon { width: 30px; height: 30px; }

/* --- Banner consenso e popup ------------------------------------------------------ */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 640px; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px -15px rgba(30, 10, 45, .45); padding: 1.5rem; border: 1px solid var(--line); }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.consent p { font-size: 1rem; color: var(--muted); }
.consent fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.consent .switch { display: flex; gap: .7rem; align-items: flex-start; }
.consent .switch input { width: 1.2rem; height: 1.2rem; accent-color: var(--violet); margin-top: .25rem; flex: none; }
.consent .switch span small { display: block; color: var(--muted); }
.consent .btn-row { justify-content: flex-end; }
.dialog { border: 0; border-radius: calc(var(--radius) * 1.3); padding: 0; max-width: min(92vw, 760px); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(25, 10, 35, .55); }
.dialog__inner { display: grid; }
.dialog--side .dialog__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 640px) { .dialog--side .dialog__inner { grid-template-columns: 1fr; } }
.dialog__media img { width: 100%; height: 100%; object-fit: cover; max-height: 60vh; }
.dialog__body { padding: 2rem; }
.dialog__close { position: absolute; top: .8rem; right: .8rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--violet); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }

/* --- Animazioni leggere -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* --- Errori -------------------------------------------------------------------------- */
.error-page { text-align: center; padding-block: var(--space); }
.error-page .hand { font-size: clamp(4rem, 12vw, 8rem); color: var(--lilac-deep); line-height: 1; }

@media print {
  .site-header, .site-footer, .fab-whatsapp, .consent, .nav { display: none !important; }
}
