/* ==========================================================================
   ACQUALUNA — Studio di Sonia Caliaro — Design System (v2, novembre 2026)
   Palette: verde acqua profondo + oro caldo (la luna del logo) + sabbia
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Verde acqua, spina dorsale del brand */
  --deep:        #06282B;
  --deep-2:      #0A3538;
  --deep-3:      #0E4448;
  --teal:        #157A80;
  --teal-dark:   #0F5C61;
  --teal-light:  #2FA0A6;
  --aqua:        #67C2C6;
  --aqua-soft:   #A9DEE0;
  --aqua-wash:   #E9F5F5;
  --aqua-tint:   #F4FAFA;

  /* Oro caldo, la luna del marchio */
  --gold:        #C79A56;
  --gold-soft:   #E3C48C;
  --gold-wash:   #F8EFDD;

  /* Neutri caldi */
  --sand:        #F5F0E6;
  --sand-deep:   #E7DCC6;

  --white:       #FFFFFF;
  --paper:       #FBFAF6;
  --ink:         #0B2C2E;
  --ink-soft:    #33565A;
  --muted:       #5F7F82;
  --muted-light: #9BB4B5;

  --line:        rgba(11, 44, 46, .10);
  --line-2:      rgba(11, 44, 46, .18);
  --line-light:  rgba(255, 255, 255, .18);

  /* Tipografia */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Sacramento", cursive;

  --fs-hero:    clamp(2.6rem, 6vw, 4.9rem);
  --fs-h2:      clamp(2rem, 4vw, 3.2rem);
  --fs-h3:      clamp(1.3rem, 2vw, 1.65rem);
  --fs-lead:    clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body:    1.03rem;
  --fs-eyebrow: 0.78rem;

  --section:   clamp(4.5rem, 9vw, 8.5rem);
  --gutter:    clamp(20px, 5vw, 48px);
  --maxw:      1180px;
  --maxw-text: 62ch;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(11,44,46,.05), 0 2px 8px rgba(11,44,46,.04);
  --sh-md: 0 2px 4px rgba(11,44,46,.04), 0 12px 28px rgba(11,44,46,.08);
  --sh-lg: 0 4px 10px rgba(11,44,46,.05), 0 26px 60px rgba(11,44,46,.12);
  --sh-xl: 0 10px 24px rgba(11,44,46,.08), 0 44px 100px rgba(11,44,46,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, picture { display: block; max-width: 100%; }
svg { display: block; max-width: 100%; }
/* Le icone (senza viewBox sull'svg esterno) prendono la misura del testo */
svg:not([viewBox]) { width: 1.2em; height: 1.2em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--deep);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 3. LAYOUT ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .55); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: var(--fs-eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.center .eyebrow, .section-head.center .eyebrow { justify-content: center; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: var(--maxw-text); }
.section-head { max-width: 700px; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.section-head .lead { margin-top: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.center { text-align: center; }

/* ---------- 4. BOTTONI ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.7em;
  border-radius: var(--r-pill);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  color: var(--white);
  box-shadow: var(--sh-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--deep);
  box-shadow: var(--sh-md);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--deep); background: var(--white); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost-light { border: 1.5px solid var(--line-light); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.btn-sm { padding: .72em 1.25em; font-size: .86rem; }

/* ---------- 5. HEADER (pillola di vetro) ---------- */
.site-header {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  z-index: 90;
  padding-inline: clamp(10px, 2.4vw, 28px);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .55rem .5rem 1.3rem;
  border-radius: var(--r-pill);
  background: rgba(6, 40, 43, .38);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled .nav-inner {
  background: rgba(251, 250, 246, .84);
  border-color: var(--line);
  box-shadow: var(--sh-md);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  transition: color .4s var(--ease);
}
.logo-mark { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 1px 8px rgba(6,40,43,.28); }
.mobile-menu .logo-mark { width: 48px; height: 48px; }
.site-footer .logo-mark { width: 68px; height: 68px; }
.site-header.is-scrolled .logo { color: var(--deep); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.84);
  position: relative;
  padding-block: 4px;
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 1.5px; background: var(--gold);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.site-header.is-scrolled .nav-links a { color: var(--ink-soft); }
.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a.is-active { color: var(--deep); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-header.is-scrolled .nav-toggle { background: var(--aqua-wash); color: var(--deep); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 40px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease-out); }
.mobile-menu .close-row { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .logo { color: var(--white); }
.mobile-menu .nav-toggle { display: flex; background: rgba(255,255,255,.1); color: var(--white); }
.mobile-menu ul { margin-block: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu ul a { font-family: var(--font-display); font-size: 2.3rem; color: var(--white); font-weight: 600; }
.mobile-menu .mm-foot { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu .mm-foot a { font-size: 1rem; font-weight: 500; color: var(--aqua-soft); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 90% 70% at 85% 0%, var(--deep-3) 0%, var(--deep) 58%, var(--deep) 100%);
  overflow: hidden;
  color: var(--white);
  padding: 8rem 0 7rem;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-glow.g1 { width: 560px; height: 560px; background: var(--teal); opacity: .5; top: -200px; right: -160px; }
.hero-glow.g2 { width: 420px; height: 420px; background: var(--gold); opacity: .16; bottom: -180px; left: -120px; }
.hero-grain {
  position: absolute; inset: 0;
  opacity: .18;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}
.hero .reveal {
  opacity: 1;
  transform: none;
  animation: rise 1s var(--ease-out) both;
  animation-delay: var(--d, 0s);
  transition: none;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua-soft);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-soft); }
.hero h1 { color: var(--white); font-size: var(--fs-hero); font-weight: 600; max-width: 13ch; }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--aqua-soft), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { color: rgba(255,255,255,.82); margin-top: 1.6rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.3rem; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin-top: 2.6rem;
  padding: .65em 1.1em .65em .9em;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .88rem;
  color: rgba(255,255,255,.9);
  transition: background .3s, transform .3s var(--ease-out);
}
.hero-chip:hover { background: rgba(255,255,255,.14); transform: translateX(3px); }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 0 rgba(227,196,140,.6); animation: ping 2.4s infinite; }
.hero-chip svg { width: 1em; height: 1em; opacity: .7; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(227,196,140,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(227,196,140,0); } }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-logo { position: relative; width: min(100%, 470px); aspect-ratio: 1; animation: float 10s ease-in-out infinite; }
.hero-logo img { position: absolute; inset: 10%; width: 80%; height: 80%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.4)); }
.hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-rings .ring { transform-box: fill-box; transform-origin: center; }
.hero-rings .r1 { animation: spin 120s linear infinite; }
.hero-rings .r2 { animation: spin 80s linear infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card {
  position: absolute;
  left: 2%; bottom: 6%;
  padding: 1rem 1.3rem;
  border-radius: var(--r-md);
  background: rgba(251,250,246,.1);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 210px;
}
.hero-card b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--white); line-height: 1.1; }
.hero-card span { font-size: .8rem; color: var(--aqua-soft); line-height: 1.4; display: block; margin-top: .3rem; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--paper); z-index: 1; }

@media (max-width: 880px) {
  .hero { padding: 7rem 0 6rem; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: -1rem; }
  .hero-logo { width: min(64vw, 270px); }
  .hero-card { display: none; }
  .hero h1 { max-width: 15ch; }
}

/* ---------- 7. STRISCIA DELLE DISCIPLINE ---------- */
.marquee { overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 1.15rem; }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--teal-dark); white-space: nowrap; }
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. CHI SONO ---------- */
.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  background: linear-gradient(160deg, var(--aqua-wash), var(--sand));
}
.ph-fill { position: absolute; inset: 0; display: grid; place-items: center; }

.about-portrait .ph-fill .ph-logo, .drum-media .ph-fill .ph-logo { position: static; width: 34%; height: auto; opacity: .6; object-fit: contain; }
.about-portrait img, .drum-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-card {
  position: absolute;
  bottom: 2rem; left: -1.4rem;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 1.1rem 1.4rem;
  max-width: 220px;
}
.about-card b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--deep); line-height: 1.1; }
.about-card span { font-size: .8rem; color: var(--muted); }
.about-role { margin-top: .5rem; color: var(--teal); }
.about p { margin-top: 1.1rem; }
.about p.lead { margin-top: .5rem; }
.about-values { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.pill {
  font-size: .8rem;
  font-weight: 500;
  padding: .5em 1.05em;
  border-radius: var(--r-pill);
  background: var(--aqua-wash);
  color: var(--teal-dark);
}
.about-cta { margin-top: 2rem; }

/* ---------- 9. APPROCCIO (banda scura con i cerchi) ---------- */
.philosophy { background: var(--deep-2); color: var(--white); position: relative; overflow: hidden; }
.philosophy::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 85% 50%, rgba(103,194,198,.2), transparent 62%);
}
.philosophy-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.philosophy .eyebrow { color: var(--gold-soft); }
.philosophy .eyebrow::before { background: var(--aqua-soft); }
.philosophy h2 { color: var(--white); }
.philosophy blockquote {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  color: var(--white);
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  max-width: 34em;
}
.levels { margin-top: 2.2rem; display: grid; gap: .3rem; }
.levels li {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .3s, border-color .3s;
  cursor: default;
}
.levels li:hover, .levels li.is-active { background: rgba(255,255,255,.06); border-color: var(--line-light); }
.levels b { font-family: var(--font-display); color: var(--aqua-soft); font-size: 1.2rem; font-weight: 600; }
.levels span { font-size: .9rem; color: rgba(255,255,255,.7); }
.rings { width: min(100%, 440px); margin-inline: auto; overflow: visible; }
.rg {
  fill: rgba(255,255,255,.025);
  stroke: rgba(169,222,224,.5);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .4s, stroke .4s, stroke-width .4s;
  animation: breathe 7s ease-in-out infinite;
}
.rg.r4 { animation-delay: .5s; } .rg.r3 { animation-delay: 1s; } .rg.r2 { animation-delay: 1.5s; } .rg.r1 { animation-delay: 2s; fill: rgba(227,196,140,.18); stroke: var(--gold-soft); }
.rg.is-active { fill: rgba(103,194,198,.2); stroke: var(--gold-soft); stroke-width: 2.4; }
.rg-labels text { font-family: var(--font-display); font-style: italic; font-size: 20px; fill: var(--gold-soft); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* ---------- 10. CATALOGO ---------- */
.cat-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 2.4rem; }
.cat-chip {
  padding: .65em 1.3em;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: all .3s var(--ease);
}
.cat-chip small { opacity: .6; margin-left: .35em; font-size: .78em; }
.cat-chip:hover { border-color: var(--teal); color: var(--teal); }
.cat-chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.cat-card.is-hidden { display: none; }
.cat-media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.cat-media::before { content: ""; position: absolute; inset: 0; transition: transform .8s var(--ease-out); }
.cat-card:hover .cat-media::before { transform: scale(1.06); }
.cat-card[data-cat="trattamenti"] .cat-media::before { background: linear-gradient(150deg, var(--aqua-wash), var(--sand)); }
.cat-card[data-cat="esperienze"] .cat-media::before { background: linear-gradient(150deg, var(--teal), var(--deep-2)); }
.cat-card[data-cat="artigianato"] .cat-media::before { background: linear-gradient(150deg, var(--gold-soft), var(--sand-deep)); }
.cat-media .ico { position: absolute; inset: 0; display: grid; place-items: center; }
.cat-media .ico svg { width: 64px; height: 64px; stroke-width: 1.2; }
.cat-card[data-cat="trattamenti"] .ico { color: var(--teal); }
.cat-card[data-cat="esperienze"] .ico { color: var(--aqua-soft); }
.cat-card[data-cat="artigianato"] .ico { color: var(--deep); }
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.cat-card:hover .cat-media img { transform: scale(1.05); }
/* Le locandine con scritte si vedono intere, senza ritaglio */
.cat-media.is-intera img, .dlg-media.is-intera img { object-fit: contain; }
.cat-media.is-intera img { padding: 6px; }
.cat-tag {
  position: absolute; top: 14px; left: 14px;
  padding: .35em .85em;
  border-radius: var(--r-pill);
  background: rgba(251,250,246,.9);
  backdrop-filter: blur(6px);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.cat-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.cat-body h3 { font-size: 1.45rem; }
.cat-body p { font-size: .94rem; color: var(--ink-soft); }
.cat-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--muted); }
.cat-meta b { color: var(--deep); font-weight: 600; }
.cat-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cat-open { font-weight: 600; font-size: .9rem; color: var(--teal); display: inline-flex; align-items: center; gap: .45em; }
.cat-open::after { content: ""; position: absolute; inset: 0; }   /* tutta la scheda è cliccabile */
.cat-open svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.cat-card:hover .cat-open svg { transform: translateX(4px); }
.cat-wa {
  position: relative; z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--aqua-wash);
  color: var(--teal-dark);
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.cat-wa:hover { background: #1fa871; color: var(--white); transform: scale(1.08); }
.cat-wa svg { width: 20px; height: 20px; }
.cat-note { margin-top: 2.4rem; color: var(--muted); font-size: .92rem; }
@media (min-width: 700px) {
  .cat-card.is-solo { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.25fr; }
  .cat-card.is-solo .cat-media { aspect-ratio: auto; min-height: 320px; }
  .cat-card.is-solo .cat-body { justify-content: center; padding: 2rem 2.4rem; }
  .cat-card.is-solo .cat-body h3 { font-size: 1.8rem; }
  .cat-card.is-solo .cat-foot { margin-top: 1rem; }
}

/* ---------- 11. SCHEDA DI DETTAGLIO (dialog) ---------- */
.dlg {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(940px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  color: var(--ink-soft);
}
.dlg[open] { animation: dlgIn .5s var(--ease-out); }
.dlg::backdrop { background: rgba(6, 40, 43, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg[open]::backdrop { animation: fade .4s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dlg-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251,250,246,.92);
  box-shadow: var(--sh-sm);
  color: var(--deep);
  transition: transform .3s var(--ease-out);
}
.dlg-close:hover { transform: rotate(90deg); }
.dlg-close svg { width: 20px; height: 20px; }
.dlg-grid { display: grid; grid-template-columns: .78fr 1.22fr; max-height: calc(100dvh - 24px); }
.dlg-media { position: relative; min-height: 260px; }
.dlg-media .ico { position: absolute; inset: 0; display: grid; place-items: center; }
.dlg-media .ico svg { width: 96px; height: 96px; stroke-width: 1; }
.dlg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dlg-media[data-cat="trattamenti"] { background: linear-gradient(160deg, var(--aqua-wash), var(--sand)); color: var(--teal); }
.dlg-media[data-cat="esperienze"] { background: linear-gradient(160deg, var(--teal), var(--deep-2)); color: var(--aqua-soft); }
.dlg-media[data-cat="artigianato"] { background: linear-gradient(160deg, var(--gold-soft), var(--sand-deep)); color: var(--deep); }
.dlg-body { padding: clamp(1.8rem, 4vw, 3rem); overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.dlg-body h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.dlg-body .eyebrow { margin-bottom: 0; }
.dlg-text { display: flex; flex-direction: column; gap: .9rem; font-size: .98rem; }
.dlg-list { display: grid; gap: .5rem; counter-reset: step; }
.dlg-list li {
  counter-increment: step;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem;
  background: var(--aqua-wash);
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--deep);
}
.dlg-list li::before {
  content: counter(step);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white);
  font-size: .78rem; font-weight: 600;
  flex-shrink: 0;
}
.dlg-voci { display: grid; gap: .6rem; }
.dlg-voci li { padding: .8rem 1rem; background: var(--aqua-wash); border-radius: var(--r-sm); color: var(--ink); font-size: .95rem; }
.dlg-voci b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--deep); }
.dlg-list:empty, .dlg-note:empty, .dlg-meta:empty { display: none; }
.dlg-note { font-size: .92rem; color: var(--teal-dark); background: var(--gold-wash); padding: .9rem 1.1rem; border-radius: var(--r-sm); }
.dlg-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.dlg-meta span { font-size: .84rem; padding: .4em .9em; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--deep); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
@media (max-width: 760px) {
  .dlg-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .dlg-media { min-height: 140px; }
  .dlg-media .ico svg { width: 64px; height: 64px; }
  .dlg-body { overflow: visible; }
}

/* ---------- 12. TAMBURI IN EVIDENZA ---------- */
.drum { background: var(--deep); color: var(--white); position: relative; overflow: hidden; }
.drum::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(199,154,86,.2), transparent 60%),
    radial-gradient(ellipse 45% 50% at 100% 0%, rgba(47,160,166,.25), transparent 60%);
}
.drum-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.drum .eyebrow { color: var(--gold-soft); }
.drum .eyebrow::before { background: var(--aqua-soft); }
.drum h2 { color: var(--white); }
.drum .lead { color: rgba(255,255,255,.78); margin-top: 1.1rem; }
.drum-media { position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg); overflow: hidden; margin-top: 2rem; background: linear-gradient(150deg, var(--deep-3), var(--deep-2)); border: 1px solid var(--line-light); }
.drum-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.drum-fact {
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.drum-fact .n { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-soft); letter-spacing: .1em; }
.drum-fact h3 { color: var(--white); font-size: 1.4rem; margin: .5rem 0 .5rem; }
.drum-fact p { font-size: .9rem; color: rgba(255,255,255,.72); }

/* ---------- 13. EVENTI ---------- */
.events-layout { display: grid; grid-template-columns: 1fr; max-width: 860px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.event-list { display: grid; gap: 1rem; }
.event-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1.3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.4rem 1.2rem 1.2rem;
  box-shadow: var(--sh-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.ev-date {
  width: 86px; height: 96px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--teal), var(--deep-2));
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ev-date b { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; }
.ev-date span { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--aqua-soft); margin-top: .2rem; }
.ev-body h3 { font-size: 1.35rem; }
.ev-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .45rem; font-size: .86rem; color: var(--muted); }
.ev-meta span { display: inline-flex; align-items: center; gap: .4em; }
.ev-meta svg { width: 1em; height: 1em; color: var(--teal); }
.ev-text { font-size: .93rem; margin-top: .55rem; }
.ev-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.event-empty {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--aqua-tint);
  display: grid; gap: .8rem; justify-items: start;
}
.empty-logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 2px 10px rgba(6,40,43,.2); }
.event-empty h3 { font-size: 1.5rem; }
.event-empty .btn { margin-top: .6rem; }
.day-card {
  position: sticky; top: 100px;
  background: var(--deep);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  overflow: hidden;
}
.day-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(199,154,86,.22), transparent 60%); }
.day-card > * { position: relative; }
.day-card .eyebrow { color: var(--gold-soft); }
.day-card .eyebrow::before { background: var(--aqua-soft); }
.day-card h3 { color: var(--white); font-size: 1.7rem; }
.day-card p { color: rgba(255,255,255,.75); font-size: .92rem; margin-top: .6rem; }
.day-steps { margin-top: 1.5rem; display: grid; gap: 0; counter-reset: d; border-left: 1px solid var(--line-light); margin-left: 12px; }
.day-steps li { counter-increment: d; position: relative; padding: .6rem 0 .6rem 1.7rem; font-size: .95rem; color: var(--white); }
.day-steps li::before {
  content: counter(d);
  position: absolute; left: -13px; top: 50%; transform: translateY(-50%);
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--deep);
  font-size: .75rem; font-weight: 700;
}

.day-flyer { display: block; margin-top: 1.6rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-light); transition: transform .4s var(--ease-out), border-color .3s; }
.day-flyer:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.day-flyer img { width: 100%; height: auto; }

/* ---------- 14. RECENSIONI ---------- */
.reviews { background: var(--sand); }
.rev-summary { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.rev-summary:empty { display: none; }
.rev-score { font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; color: var(--deep); line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.stars .off { color: var(--sand-deep); }
.rev-count { font-size: .85rem; color: var(--muted); }
.rev-track {
  display: flex; gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 1.5rem;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.rev-card {
  flex: 0 0 min(390px, 84%);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
}
.rev-card::before { content: "\201C"; position: absolute; top: .4rem; right: 1.4rem; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--gold-soft); opacity: .5; }
.rev-card p { font-size: .98rem; color: var(--ink); }
.rev-who { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.rev-who b { font-family: var(--font-display); font-size: 1.15rem; color: var(--deep); }
.rev-who span { font-size: .8rem; color: var(--muted); }
.rev-empty {
  max-width: 640px; margin-inline: auto;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--sh-md);
  display: grid; gap: .9rem; justify-items: center;
}
.rev-empty .stars svg { width: 24px; height: 24px; }
.rev-empty h3 { font-size: 1.7rem; }
.rev-empty .hero-actions { justify-content: center; margin-top: .8rem; }

/* ---------- 15. SEDI ---------- */
.sedi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sede {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.sede svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: .4rem; }
.sede h3 { font-size: 1.6rem; }
.sede p { font-size: .94rem; }
.sede a { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .9rem; color: var(--teal); }
.sede a:hover { text-decoration: underline; }
.sede.is-main { background: var(--deep); border-color: var(--deep); }
.sede.is-main h3 { color: var(--white); }
.sede.is-main p { color: rgba(255,255,255,.75); }
.sede.is-main a { color: var(--gold-soft); }
@media (max-width: 760px) { .sedi-grid { grid-template-columns: 1fr; } }

/* ---------- 16. COME FUNZIONA ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.step-item { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line-2); }
.step-item::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.step-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; color: transparent; -webkit-text-stroke: 1.5px var(--teal-light); line-height: 1; margin-bottom: .8rem; display: block; }
.step-item h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step-item p { font-size: .92rem; }

/* ---------- 17. FAQ ---------- */
.faq-section { background: var(--aqua-tint); }
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left; width: 100%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--deep);
  font-weight: 600;
}
.faq-q svg { width: 22px; height: 22px; color: var(--teal); transition: transform .4s var(--ease-out); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.faq-a-inner { padding-bottom: 1.6rem; font-size: .96rem; max-width: 66ch; }

/* ---------- 18. CONTATTI ---------- */
#contatti { background: var(--sand); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-side { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-panel {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.contact-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(199,154,86,.2), transparent 60%); }
.contact-panel > * { position: relative; }
.contact-panel .eyebrow { color: var(--gold-soft); }
.contact-panel .eyebrow::before { background: var(--aqua-soft); }
.contact-panel h2 { color: var(--white); }
.contact-rows { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-row-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; color: var(--aqua-soft); }
.contact-row-icon svg { width: 20px; height: 20px; }
.contact-row b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--aqua-soft); margin-bottom: .2rem; }
.contact-row a, .contact-row span.val { font-size: 1.02rem; color: var(--white); overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--gold-soft); }
.contact-socials { display: flex; gap: .8rem; margin-top: 2.2rem; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--white); transition: background .3s, transform .3s; }
.social-btn:hover { background: var(--gold); color: var(--deep); transform: translateY(-2px); }
.social-btn svg { width: 19px; height: 19px; }
.contact-form-card { background: var(--white); border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); box-shadow: var(--sh-md); }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: .85em 1em;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--aqua-tint);
  color: var(--ink);
  transition: border-color .3s, background .3s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; filter: grayscale(.15) saturate(1.15); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 19. FOOTER ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.72); padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer-grid .logo { color: var(--white); }
.footer-grid p { font-size: .9rem; margin-top: 1rem; max-width: 40ch; }
.footer-col b { display: block; color: var(--white); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .92rem; overflow-wrap: anywhere; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .82rem; }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.5); max-width: 78ch; margin-top: 1rem; line-height: 1.6; }

/* ---------- 20. WHATSAPP FLOTTANTE ---------- */
.wa-float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #29d08a, #1fa871);
  display: grid; place-items: center;
  color: var(--white);
  box-shadow: var(--sh-lg);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- 21. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 22. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .events-layout { grid-template-columns: 1fr; }
  .events-layout > * { min-width: 0; }
  .day-card { position: static; }
  .drum-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .rings { max-width: 320px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; margin-inline: auto; }
  .about-card { left: auto; right: 0; bottom: 1.2rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .section { padding-block: 3.6rem; }
  .btn { white-space: normal; text-align: center; }
  .event-empty .btn { width: 100%; }
  .drum-facts { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .ev-date { width: 100%; height: auto; flex-direction: row; gap: .6rem; padding: .7rem; justify-content: flex-start; padding-left: 1.2rem; }
  .ev-date b { font-size: 1.8rem; }
  .levels li { grid-template-columns: 1fr; gap: .1rem; }
  .nav-cta .btn span { display: none; }
  .nav-cta .btn { padding: .7em; }
  .hero-actions .btn { flex: 1 1 100%; }
}
