/* ==========================================================================
   Dott.ssa Luna Grassi — Psicologa a Terni
   Registro minimal/delicato · palette dal profilo Instagram (cipria, prugna, salvia)
   ========================================================================== */

:root {
  --lg-plum: #3B2540;
  --lg-plum-dark: #2A1A2F;
  --lg-mauve: #7A5468;
  --lg-rose: #CF97A1;
  --lg-rose-dark: #8E4A5B;
  --lg-blush: #F8E9EB;
  --lg-blush-deep: #F1D9DD;
  --lg-cream: #FDF7F6;
  --lg-sage: #8C9C7C;
  --lg-sage-dark: #5B6B4E;
  --lg-sage-pale: #E8EDE1;
  --lg-sand: #EFE3DA;
  --lg-gray: #6B5A64;
  --lg-border: #EAD8DB;
  --white: #FFFFFF;

  --font-title: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 2px 14px rgba(59, 37, 64, .06);
  --shadow-md: 0 22px 48px -22px rgba(59, 37, 64, .32);
  --radius: 22px;
  --radius-sm: 12px;
}

/* ---------- Reset e base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-weight: 400; font-size: 1.04rem;
  color: var(--lg-plum); background: var(--lg-cream); line-height: 1.72;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }                                                 /* punto 50 */
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }   /* punto 43 */
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--lg-rose-dark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.18; color: var(--lg-plum); letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.35rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.32rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--lg-rose-dark); }
p + p { margin-top: 1rem; }
strong { font-weight: 600; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.section-blush { background: var(--lg-blush); }
.section-sand { background: linear-gradient(180deg, var(--lg-cream) 0%, var(--lg-sand) 100%); }
.hero, .page-hero, .section-scura, footer, .cta-band { overflow: hidden; overflow: clip; }   /* punto 31 */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lg-sage-dark); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: 3.2rem; }
.section-head.centrato { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centrato .eyebrow { justify-content: center; }
.section-head p { color: var(--lg-gray); margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Bottoni (pill, registro delicato) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.dove-riga a[data-wa] { word-break: normal; }
.btn-primary { background: var(--lg-plum); color: var(--white); box-shadow: 0 12px 28px -14px rgba(59,37,64,.6); }
.btn-primary:hover { background: var(--lg-plum-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--lg-plum); border-color: var(--lg-rose); }
.btn-ghost:hover { background: var(--lg-blush-deep); border-color: var(--lg-rose-dark); }
.btn-light { background: var(--white); color: var(--lg-plum); }
.btn-light:hover { background: var(--lg-blush); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.link-freccia { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--lg-rose-dark); border-bottom: 1px solid var(--lg-rose); padding-bottom: 2px; transition: gap .3s var(--ease), color .3s ease; }
.link-freccia:hover { gap: 12px; color: var(--lg-plum); }
.link-freccia:active { opacity: .7; }

.link-freccia svg { width: 16px; height: 16px; flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 2000; background: var(--lg-plum); color: var(--white); padding: 10px 18px; border-radius: 999px; }
.skip-link:focus { left: 12px; }
.dove-card h3 { font-size: 1.3rem; }
.dove-card h2 { font-size: clamp(1.55rem, 3.2vw, 2.4rem); }

/* ---------- Header (§ 6.3) ---------- */
.top-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(253, 247, 246, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.top-header.scrolled { box-shadow: 0 10px 30px -16px rgba(59,37,64,.28); border-bottom-color: var(--lg-border); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: padding .3s var(--ease); }
.top-header.scrolled .nav-inner { padding-top: 11px; padding-bottom: 11px; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--lg-rose), var(--lg-sage)); transform-origin: 0 50%; transform: scaleX(0); }

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-name { font-family: var(--font-title); font-size: 1.28rem; color: var(--lg-plum); white-space: nowrap; }
.logo-sub { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lg-gray); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; font-size: .95rem; font-weight: 500; color: var(--lg-plum); border-radius: 999px; transition: background .25s ease, color .25s ease; white-space: nowrap; }
.nav-links a:hover { background: var(--lg-blush-deep); }
.nav-links a:active { opacity: .7; }
.nav-links a.attivo { color: var(--lg-rose-dark); }
.nav-links a.nav-active { color: var(--lg-rose-dark); font-weight: 600; border-bottom: 2px solid var(--lg-rose-dark); border-radius: 0; padding-bottom: 6px; margin-left: 6px; }   /* punto 23 */
.nav-links a.nav-active:hover { background: none; color: var(--lg-plum); }

.hamburger {
  display: none; margin-left: auto;                                     /* punto 7 */
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--lg-border); background: var(--white);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex-shrink: 0;
}
.hamburger span { width: 18px; height: 1.6px; background: var(--lg-plum); border-radius: 2px; }
.hamburger:active { transform: scale(.94); }
@media (max-width: 1100px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* ---------- Menu mobile (CANONICO § 6.1) ---------- */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: 300px; max-width: 86vw;   /* punto 35 */
  background: var(--lg-plum); z-index: 1100;                            /* punto 33 */
  transform: translate3d(100%, 0, 0);                                   /* punto 34 */
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.mobile-menu.open { transform: translate3d(0, 0, 0); box-shadow: -4px 0 24px rgba(0,0,0,.18); }   /* ombra solo da aperto: da chiuso sporcava il bordo destro */
.mobile-menu-inner {                                                    /* punto 36 */
  position: absolute; top: 4.6rem; left: 0; right: 0; bottom: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 0 1.6rem 2rem;
}
.mobile-menu-close {                                                    /* punto 21 */
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 5;
  width: 44px; height: 44px; background: none; border: none;
  color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.mobile-menu-close:active { opacity: .6; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { color: var(--white); padding: .7rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu nav a:active { opacity: .7; }
.mobile-menu nav a.nav-active { color: var(--lg-rose); font-weight: 600; }
.mobile-menu-azioni { display: flex; flex-direction: column; gap: 10px; margin-top: 1.6rem; }
.mobile-menu-azioni a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: var(--white); font-weight: 600; font-size: .95rem; }
.mobile-menu-azioni a.primario { background: var(--lg-rose); border-color: var(--lg-rose); color: var(--lg-plum-dark); }
.mobile-menu-azioni a:active { opacity: .75; }
.mobile-menu-info { margin-top: 1.6rem; font-size: .86rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.overlay {
  position: fixed; inset: 0; background: rgba(42,26,47,.45); z-index: 1050;
  opacity: 0; pointer-events: none; transition: opacity .2s ease; will-change: opacity;
}
.overlay.open { opacity: 1; pointer-events: all; }
@media (min-width: 1101px) { .mobile-menu, .overlay { display: none; } }   /* punto 41 */

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: 70px 0 96px;
  /* sfumatura leggera: cipria da dietro la foto verso il crema, velo di salvia in basso a sinistra */
  background:
    radial-gradient(60% 75% at 82% 22%, rgba(241, 217, 221, .9) 0%, rgba(248, 233, 235, .55) 45%, rgba(253, 247, 246, 0) 75%),
    radial-gradient(40% 50% at 4% 100%, rgba(232, 237, 225, .6) 0%, rgba(232, 237, 225, 0) 70%),
    var(--lg-cream); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-text { position: relative; z-index: 2; min-width: 0; }
.hero-text h1 { margin-bottom: 1.4rem; }
.hero-lead { font-family: var(--font-title); font-size: clamp(1.22rem, 1.9vw, 1.42rem); line-height: 1.5; color: var(--lg-plum); max-width: 540px; }
.hero-text .hero-sub { margin-top: .7rem; font-size: 1rem; color: var(--lg-gray); max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.2rem; }
.chip { display: inline-flex; align-items: center; padding: 7px 15px; border-radius: 999px; background: var(--white); border: 1px solid var(--lg-border); font-size: .86rem; font-weight: 500; color: var(--lg-mauve); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative; z-index: 1; width: min(100%, 400px);
  border-radius: 190px 26px 190px 26px;                                 /* forma a foglia, come il motivo dei suoi post */
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 8px solid var(--white);
  -webkit-transform: translateZ(0); transform: translateZ(0);         /* punto 26 */
}
.hero-photo { width: 100%; aspect-ratio: 374 / 470; object-fit: cover; object-position: 50% 20%; -webkit-transform: translateZ(0); transform: translateZ(0); }
.hero-badge {
  position: absolute; z-index: 2; left: -6%; bottom: 9%;
  display: flex; align-items: center; gap: 12px; max-width: 250px;
  padding: 14px 18px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow-md);
  font-size: .86rem; line-height: 1.4; color: var(--lg-plum);
  animation: fluttua 7s ease-in-out infinite;
}
.hero-badge strong { display: block; font-size: .92rem; }
.hero-badge .hb-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--lg-sage-pale); color: var(--lg-sage-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-badge .hb-icon svg { width: 20px; height: 20px; }
@keyframes fluttua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }   /* punto 44 */
.hero-grid > *:nth-child(1) { animation: heroIn .8s var(--ease) both; }
.hero-grid > *:nth-child(2) { animation: heroIn .8s var(--ease) .15s both; }
.page-hero-inner > * { animation: heroIn .8s var(--ease) both; }
.page-hero-inner > *:nth-child(2) { animation-delay: .08s; }
.page-hero-inner > *:nth-child(3) { animation-delay: .16s; }

/* ---------- Info strip ---------- */
.info-strip { position: relative; z-index: 2; margin-top: -44px; }
.info-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--lg-border); }
.info-item { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 24px 22px; align-items: start; min-width: 0; }   /* punto 30 */
.info-item + .info-item { border-left: 1px solid var(--lg-border); }
.info-item .ii-icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--lg-blush); color: var(--lg-rose-dark); display: flex; align-items: center; justify-content: center; }
.info-item .ii-icon svg { width: 20px; height: 20px; }
.info-item strong { font-size: .96rem; line-height: 1.35; }
.info-item span { font-size: .86rem; color: var(--lg-gray); line-height: 1.45; }

/* ---------- Chi sono (anteprima home) ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-photo { width: 78%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 232 / 334; object-fit: cover; }
.about-photo-2 { position: absolute; right: 0; bottom: -40px; width: 52%; border-radius: var(--radius); border: 6px solid var(--lg-cream); box-shadow: var(--shadow-md); aspect-ratio: 306 / 336; object-fit: cover; }
.about-text p { color: var(--lg-gray); }
.about-text h2 { margin-bottom: 1.4rem; }
.cred-list { list-style: none; display: grid; gap: 10px; margin: 1.8rem 0 2rem; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.cred-list li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: .62em; border-radius: 50% 0 50% 0; background: var(--lg-sage); }
.cred-list .in-corso { font-size: .78rem; font-weight: 600; color: var(--lg-sage-dark); background: var(--lg-sage-pale); padding: 2px 9px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }

/* ---------- Aree / servizi (card uniformi, punto 19) ---------- */
.aree-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius);
  padding: 32px 28px 28px; transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--lg-rose); }
.area-card:active { transform: scale(.985); }
.area-icon { width: 54px; height: 54px; border-radius: 50% 50% 50% 14px; background: var(--lg-blush); color: var(--lg-rose-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem; }
.area-icon svg { width: 26px; height: 26px; }
.area-card h3 { margin-bottom: .7rem; }
.area-card p { font-size: .96rem; color: var(--lg-gray); }
.area-card .link-freccia { margin-top: auto; padding-top: 1.2rem; align-self: flex-start; border-bottom: none; }
.aree-nota { margin-top: 2.4rem; text-align: center; color: var(--lg-gray); }
.aree-nota a { color: var(--lg-rose-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Citazione (sezione scura) ---------- */
.section-scura { background: var(--lg-plum); color: var(--white); padding: 100px 0; position: relative; }
.section-scura .deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.section-scura .deco svg { position: absolute; right: -60px; bottom: -40px; width: 340px; opacity: .14; }
.quote-big { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.quote-big blockquote { font-family: var(--font-title); font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.38; color: var(--white); }
.quote-big blockquote em { color: var(--lg-rose); font-style: italic; }
.quote-big cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.quote-mark { width: 44px; margin: 0 auto 1.4rem; color: var(--lg-rose); }

/* ---------- Come lavoro (timeline orizzontale, niente numeri decorativi) ---------- */
.percorso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; }
.percorso::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 0; border-top: 1px dashed var(--lg-rose); }
.passo { position: relative; text-align: center; padding: 0 8px; }
.passo-dot { width: 31px; height: 31px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--lg-cream); border: 1.5px solid var(--lg-rose); display: flex; align-items: center; justify-content: center; position: relative; }
.passo-dot::after { content: ''; width: 11px; height: 11px; border-radius: 50% 0 50% 0; background: var(--lg-sage); }
.passo h3 { margin-bottom: .6rem; }
.passo p { color: var(--lg-gray); font-size: .97rem; max-width: 320px; margin: 0 auto; }

/* ---------- Recensioni (§ 6.5) ---------- */
.rec-layout { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.rec-layout > * { min-width: 0; }                                      /* punto 48 */
.rec-summary { background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius); padding: 32px 28px; }
.rec-summary .rs-stelle { color: #C9963E; font-size: 1.25rem; letter-spacing: 3px; }
.rec-summary h3 { margin: .6rem 0 .6rem; }
.rec-summary p { font-size: .94rem; color: var(--lg-gray); margin-bottom: 1.4rem; }
.rec-summary .rs-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.slider-wrap { min-width: 0; }
.slider-outer { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; }
.slider-track {
  display: flex; overflow-x: scroll; scroll-snap-type: x mandatory; gap: 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none;
  flex: 1 1 auto; min-width: 0; order: 2; padding: 4px 2px 8px;
}
.slider-track::-webkit-scrollbar { display: none; }
.rec-card {
  flex: 0 0 calc((100% - 20px) / 2); min-width: 0; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius); padding: 30px 28px 26px;
}
.rc-stelle { color: #C9963E; letter-spacing: 3px; font-size: 1rem; margin-bottom: .9rem; }
.rec-card blockquote { font-size: .99rem; color: var(--lg-plum); line-height: 1.7; }
.slider-track .rec-card blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rec-more { align-self: flex-start; margin-top: .8rem; background: none; border: none; padding: 0; font-weight: 600; font-size: .9rem; color: var(--lg-rose-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rec-more:active { opacity: .6; }
.rec-card:not(.has-more) .rec-more { display: none; }
.rc-autore { margin-top: auto; padding-top: 1.3rem; display: flex; align-items: center; gap: 12px; }
.rc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lg-blush-deep); color: var(--lg-plum); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .86rem; flex-shrink: 0; }
.rc-nome { display: block; font-weight: 600; font-size: .94rem; line-height: 1.3; }
.rc-meta { display: block; font-size: .8rem; color: var(--lg-gray); }
.slider-btn { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; border: 1px solid var(--lg-border); background: var(--white); color: var(--lg-plum); transition: background .25s ease, border-color .25s ease; }
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover { background: var(--lg-blush-deep); border-color: var(--lg-rose); }
.slider-btn:active { transform: scale(.93); }
.slider-btn-prev { order: 1; }
.slider-btn-next { order: 3; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.slider-dot { width: 8px; height: 8px; border-radius: 99px; border: none; padding: 0; cursor: pointer; background: var(--lg-border); transition: width .35s var(--ease), background .3s ease; }
.slider-dot.active { width: 26px; background: var(--lg-rose-dark); }
.slider-dot:active { opacity: .6; }

.rec-modal-overlay { position: fixed; inset: 0; z-index: 1400; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(42,26,47,.6); }
.rec-modal-overlay.open { display: flex; }
.rec-modal { max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; background: var(--white); border-radius: var(--radius); padding: 44px 32px 30px; }
.rec-modal p { line-height: 1.75; }
.rec-modal .rm-autore { margin-top: 1.2rem; font-weight: 600; color: var(--lg-rose-dark); }
.rec-modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: none; background: var(--lg-blush); border-radius: 50%; font-size: 1.4rem; cursor: pointer; color: var(--lg-plum); }
.rec-modal-close:active { transform: scale(.93); }

.rec-griglia { columns: 2; column-gap: 20px; }
.rec-griglia .rec-card { break-inside: avoid; margin-bottom: 20px; width: 100%; display: flex; }
.rec-fonte { margin-top: 2rem; text-align: center; font-size: .92rem; color: var(--lg-gray); }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero { position: relative; padding: 76px 0 56px;
  background:
    radial-gradient(55% 90% at 90% 0%, rgba(241, 217, 221, .85) 0%, rgba(248, 233, 235, .5) 45%, rgba(253, 247, 246, 0) 78%),
    radial-gradient(35% 60% at 0% 100%, rgba(232, 237, 225, .45) 0%, rgba(232, 237, 225, 0) 70%),
    var(--lg-cream); }
.page-hero-inner { position: relative; max-width: 760px; }
.page-hero + .section { padding-top: 76px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1.1rem; }
.page-hero p { font-size: 1.12rem; color: var(--lg-gray); max-width: 620px; }
.breadcrumb { font-size: .84rem; color: var(--lg-gray); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--lg-rose-dark); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Chi sono (pagina) ---------- */
.bio-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.bio-grid > *, .about-grid > *, .split > * { min-width: 0; }
.cred-list li { overflow-wrap: anywhere; }
.bio-text p { color: var(--lg-gray); font-size: 1.06rem; }
.bio-text p:first-of-type { font-family: var(--font-title); font-size: 1.36rem; line-height: 1.55; color: var(--lg-plum); }
.bio-aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.bio-photo { border-radius: 160px 22px 160px 22px; box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 374 / 470; object-fit: cover; object-position: 50% 20%; border: 6px solid var(--white); }
.aside-card { background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius); padding: 26px 24px; }
.aside-card h2, .aside-card h3 { font-size: 1.12rem; margin-bottom: .9rem; }
.aside-card .cred-list { margin: 0; }
.aside-card .cred-list li { font-size: .93rem; }

.valori-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.valore { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius); padding: 28px 26px; min-width: 0; }
.valore .v-icon { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--lg-sage-pale); color: var(--lg-sage-dark); display: flex; align-items: center; justify-content: center; }
.valore .v-icon svg { width: 22px; height: 22px; }
.valore h3 { font-size: 1.16rem; }
.valore p { color: var(--lg-gray); font-size: .96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-photo { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 306 / 336; object-fit: cover; }
.split-text p { color: var(--lg-gray); }
.split-text h2 { margin-bottom: 1.3rem; }

/* ---------- Servizi (pagina) ---------- */
.servizio-blocco { display: grid; grid-template-columns: 340px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--lg-border); scroll-margin-top: 100px; }
.servizio-blocco:first-child { border-top: none; padding-top: 0; }
.servizio-blocco > * { min-width: 0; }
.sb-head .area-icon { margin-bottom: 1.1rem; }
.sb-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.sb-body p { color: var(--lg-gray); }
.sb-lista { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.sb-lista li { padding: 7px 14px; border-radius: 999px; background: var(--lg-blush); color: var(--lg-plum); font-size: .88rem; font-weight: 500; }
.sb-body .link-freccia { margin-top: 1.4rem; }

/* ---------- Autismo e ABA ---------- */
.aba-punti { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.testimonianze { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonianze .rec-card { flex: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--lg-blush-deep) 0%, var(--lg-blush) 55%, var(--lg-sage-pale) 100%); border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 36px; align-items: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .7rem; }
.cta-band p { color: var(--lg-mauve); }
.cta-band .hero-cta { margin-top: 0; justify-content: flex-end; }

/* ---------- Dove ricevo / contatti ---------- */
.dove-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.dove-grid > * { min-width: 0; }
.dove-card { background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius); padding: 34px 32px; display: flex; flex-direction: column; gap: 18px; }
.dove-riga { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; min-width: 0; }
.dove-riga .ii-icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--lg-blush); color: var(--lg-rose-dark); display: flex; align-items: center; justify-content: center; }
.dove-riga .ii-icon svg { width: 19px; height: 19px; }
.dove-riga strong { font-size: .98rem; }
.dove-riga span, .dove-riga a { font-size: .95rem; color: var(--lg-gray); min-width: 0; }
.dove-riga a { overflow-wrap: anywhere; word-break: break-all; }   /* punto 20 */
.dove-riga a:hover { color: var(--lg-rose-dark); }
.orari { list-style: none; font-size: .93rem; color: var(--lg-gray); }
.orari li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 1px dashed var(--lg-border); }
.orari li:last-child { border-bottom: none; }
.dove-media { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 320px; }
.dove-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dove-media img.foto-alto { object-position: 50% 6%; }   /* soggetto in alto: il volto non va tagliato dal riquadro largo */
.dove-media figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255,255,255,.92); border-radius: 14px; padding: 12px 16px; font-size: .88rem; }
.mappa { position: relative; height: 280px; border-radius: var(--radius); overflow: hidden; background: var(--lg-sage-pale); display: flex; align-items: center; justify-content: center; border: 1px solid var(--lg-border); }
.mappa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mappa-btn { padding: 13px 24px; border-radius: 999px; border: 1px solid var(--lg-sage-dark); background: var(--white); color: var(--lg-sage-dark); font-weight: 600; cursor: pointer; }
.mappa-btn:hover { background: var(--lg-sage-pale); }
.mappa-btn:active { transform: scale(.97); }
.mappa-nota { font-size: .8rem; color: var(--lg-gray); margin-top: .7rem; }

.contatti-layout { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
.contatti-layout > * { min-width: 0; }
.contatti-form { background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius); padding: 40px 36px; }
.contatti-form h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.contatti-form > p { color: var(--lg-gray); margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row > * { min-width: 0; }
.campo { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.campo label { font-size: .88rem; font-weight: 600; }
.contatti-form input:not([type="checkbox"]):not([type="radio"]):not(.honeypot),
.contatti-form select, .contatti-form textarea {                     /* punti 18 e 40 */
  width: 100%; font: inherit; font-size: 1rem; color: var(--lg-plum);
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--lg-border); background: var(--lg-cream);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contatti-form textarea { min-height: 140px; resize: vertical; }
.contatti-form input:focus, .contatti-form select:focus, .contatti-form textarea:focus { outline: none; border-color: var(--lg-rose-dark); box-shadow: 0 0 0 3px rgba(207,151,161,.25); }
.contatti-form select.campo-evidenza { border-color: var(--lg-rose-dark); box-shadow: 0 0 0 3px rgba(207,151,161,.3); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gdpr-check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--lg-gray); margin: 6px 0 22px; }
.gdpr-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--lg-plum); }
.gdpr-check a { color: var(--lg-rose-dark); text-decoration: underline; }
.form-feedback { margin-top: 14px; font-size: .94rem; font-weight: 500; }
.form-feedback.success { color: #2E7D32; }
.form-feedback.error { color: #B3261E; }
.contatti-side { display: grid; gap: 22px; }

/* ---------- FAQ (§ 6.10) ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--lg-border); border-radius: 18px; transition: border-color .3s ease, box-shadow .3s ease; }
.faq-item.open { border-color: var(--lg-rose); box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-title); font-size: 1.14rem; color: var(--lg-plum); line-height: 1.4; }
.faq-question:active { opacity: .75; }
.faq-question .segno { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--lg-blush); color: var(--lg-rose-dark); transition: transform .4s var(--ease); }
.faq-question .segno::before, .faq-question .segno::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq-question .segno::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .segno { transform: rotate(180deg); }
.faq-item.open .segno::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 24px 24px; color: var(--lg-gray); }
.faq-answer p + p { margin-top: -10px; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-cat-label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-sage-dark); margin: 2.6rem 0 1rem; }
.faq-cat-label:first-child { margin-top: 0; }

/* ---------- Privacy ---------- */
.privacy-testo { max-width: 820px; }
.privacy-testo h2 { font-size: 1.75rem; margin: 2.4rem 0 .8rem; }
.privacy-testo p, .privacy-testo li { color: var(--lg-gray); }
.privacy-testo ul { padding-left: 1.2rem; margin-top: .6rem; }
.privacy-testo a { color: var(--lg-rose-dark); text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
footer { background: var(--lg-plum-dark); color: rgba(255,255,255,.78); padding: 80px 0 34px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand .logo-name { color: var(--white); font-size: 1.4rem; }
.footer-brand p { margin-top: 1rem; font-size: .93rem; max-width: 340px; }
footer h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-rose); margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a, .footer-contatti a { font-size: .94rem; color: rgba(255,255,255,.82); transition: color .2s ease; overflow-wrap: anywhere; }
.footer-nav a:hover, .footer-contatti a:hover { color: var(--lg-rose); }
.footer-nav a:active, .footer-contatti a:active { opacity: .7; }
.footer-contatti { display: flex; flex-direction: column; gap: 6px; font-size: .94rem; }
.footer-links { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .84rem; color: rgba(255,255,255,.62); }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: underline; }
.footer-credit { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; color: rgba(255,255,255,.55); }
.footer-credit a { color: rgba(255,255,255,.75); text-decoration: underline; }

/* ---------- WhatsApp flottante (§ 6.3) ---------- */
.fab-wa { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .3s ease, transform .3s var(--ease); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa.visibile { opacity: 1; pointer-events: auto; transform: none; }
.fab-wa:hover { transform: translateY(-2px); }
.fab-wa:active { transform: scale(.94); }
body.cookie-aperto .fab-wa { opacity: 0; pointer-events: none; }

/* ---------- Cookie banner (§ 6.4) ---------- */
#cookieBanner {
  display: none; position: fixed; left: 20px; bottom: 20px; z-index: 1200; max-width: 430px;
  flex-direction: column; gap: 14px; padding: 22px 22px 20px;
  background: var(--white); border: 1px solid var(--lg-border); border-radius: 20px; box-shadow: var(--shadow-md);
  font-size: .9rem; color: var(--lg-plum);
}
#cookieBanner a { color: var(--lg-rose-dark); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button { flex: 1; padding: 11px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; border: 1px solid var(--lg-plum); }
#cookieAccept { background: var(--lg-plum); color: var(--white); }
#cookieReject { background: var(--white); color: var(--lg-plum); }
.cookie-btns button:hover { opacity: .9; }
.cookie-btns button:active { transform: scale(.97); }

/* ---------- Scroll reveal (§ 6.2) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-group > .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: .3s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: .36s; }


/* ---------- Formazione (timeline verticale) e incontri ---------- */
.formazione-layout { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.formazione-layout > * { min-width: 0; }
.formazione-layout .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.formazione { list-style: none; position: relative; padding-left: 28px; }
.formazione::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; border-left: 1px dashed var(--lg-rose); }
.fz-voce { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 6px 24px; padding: 0 0 30px; }
.fz-voce:last-child { padding-bottom: 0; }
.fz-voce > * { min-width: 0; }
.fz-voce::before { content: ''; position: absolute; left: -28px; top: 7px; width: 11px; height: 11px; border-radius: 50% 0 50% 0; background: var(--lg-sage); box-shadow: 0 0 0 4px var(--lg-cream); }
.fz-anno { font-size: .86rem; font-weight: 600; color: var(--lg-rose-dark); letter-spacing: .02em; padding-top: 2px; }
.fz-voce h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: .3rem; }
.fz-voce h3 .in-corso { font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--lg-sage-dark); background: var(--lg-sage-pale); padding: 2px 9px; border-radius: 999px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.fz-voce p { font-size: .92rem; color: var(--lg-gray); }
.split-photo-wide { aspect-ratio: 1200 / 638; }
.incontri { list-style: none; display: grid; gap: 12px; margin-top: 1.2rem; }
.incontri li { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius-sm); min-width: 0; }
.inc-data { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-sage-dark); }
.incontri strong { font-size: .96rem; line-height: 1.45; color: var(--lg-plum); }
.inc-luogo { font-size: .86rem; color: var(--lg-gray); }
@media (max-width: 960px) {
  .formazione-layout { grid-template-columns: 1fr; gap: 28px; }
  .formazione-layout .section-head { position: static; }
}
@media (max-width: 640px) {
  .fz-voce { grid-template-columns: 1fr; gap: 2px; }
}


/* ---------- WhatsApp: bottone principale e pagina Contatti ---------- */
.btn-wa { background: #1E7B4E; color: var(--white); box-shadow: 0 12px 28px -14px rgba(30,123,78,.7); }   /* verde scuro: testo bianco ≥ 4.5:1 */
.btn-wa:hover { background: #17633E; transform: translateY(-2px); }
.btn-wa svg { width: 20px; height: 20px; }
.wa-card { background: var(--white); border: 1px solid var(--lg-border); border-radius: var(--radius); padding: 44px 40px; min-width: 0; }
.wa-badge { width: 60px; height: 60px; border-radius: 50%; background: #E3F4EA; color: #1E7B4E; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.wa-badge svg { width: 30px; height: 30px; }
.wa-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: .8rem; }
.wa-intro { color: var(--lg-gray); margin-bottom: 1.8rem; }
.wa-label { font-weight: 600; font-size: .95rem; margin-bottom: .8rem; }
.wa-label span { font-weight: 400; color: var(--lg-gray); }
.wa-temi { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.8rem; }
.wa-tema { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--lg-border); background: var(--lg-cream); color: var(--lg-plum); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.wa-tema:hover { border-color: var(--lg-rose); background: var(--lg-blush); }
.wa-tema:active { transform: scale(.97); }
.wa-tema[aria-pressed="true"] { background: var(--lg-plum); border-color: var(--lg-plum); color: var(--white); }
.btn-wa-big { width: 100%; padding: 18px 28px; font-size: 1.05rem; }
.wa-numero { margin-top: 1.1rem; font-size: .92rem; color: var(--lg-gray); text-align: center; }
.wa-numero strong { color: var(--lg-plum); white-space: nowrap; }
.wa-nota { margin-top: .6rem; font-size: .84rem; color: var(--lg-gray); text-align: center; }

/* ---------- Chi sono: approccio + équipe ---------- */
.approccio-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.approccio-grid > * { min-width: 0; }
.approccio-grid h2 { margin-bottom: 1.3rem; }
.approccio-grid p { color: var(--lg-gray); }
.equipe img { width: 100%; aspect-ratio: 1400 / 958; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.equipe figcaption { margin-top: .8rem; font-size: .88rem; color: var(--lg-gray); text-align: center; }
@media (max-width: 960px) { .approccio-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .wa-card { padding: 32px 22px; } .wa-tema { font-size: .86rem; padding: 9px 14px; } }


/* ---------- Servizi: card "Come posso aiutarti" ---------- */
.aiuto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2.2rem; max-width: 980px; }
.aiuto-card { display: block; min-width: 0; background: rgba(255, 255, 255, .85); border: 1px solid var(--lg-border); border-radius: 18px; padding: 22px 22px 20px; transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.aiuto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--lg-rose); }
.aiuto-card:active { transform: scale(.985); }
.aiuto-card h2 { font-size: 1.22rem; line-height: 1.3; padding-bottom: .6rem; margin-bottom: .7rem; border-bottom: 1px solid var(--lg-border); }
.page-hero .aiuto-card p { font-size: .92rem; line-height: 1.55; color: var(--lg-gray); max-width: none; }
.page-hero .aiuto-nota { margin-top: 1.2rem; font-size: .95rem; }
.aiuto-nota a { color: var(--lg-rose-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .aiuto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aiuto-grid { grid-template-columns: 1fr; gap: 10px; } .aiuto-card { padding: 18px 18px 16px; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .info-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .info-item:nth-child(3) { border-left: none; }
  .info-item:nth-child(n+3) { border-top: 1px solid var(--lg-border); }
  .testimonianze { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .section { padding: 84px 0; }
  .page-hero + .section { padding-top: 60px; }
  .hero { padding: 40px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }                                          /* punto 4 */
  .hero-photo-frame { width: min(78%, 330px); }
  .hero-badge { left: 0; bottom: 4%; }
  .about-grid, .bio-grid, .split, .dove-grid, .contatti-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 460px; }
  .bio-aside { position: static; max-width: 480px; }
  .rec-layout { grid-template-columns: 1fr; gap: 28px; }
  .aree-grid { grid-template-columns: repeat(2, 1fr); }
  .servizio-blocco { grid-template-columns: 1fr; gap: 20px; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
  .cta-band .hero-cta { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .aree-grid, .valori-grid, .aba-punti, .testimonianze { grid-template-columns: 1fr; }
  .percorso { grid-template-columns: 1fr; gap: 30px; }
  .percorso::before { top: 0; bottom: 0; left: 15px; right: auto; width: 0; height: auto; border-top: none; border-left: 1px dashed var(--lg-rose); }
  .passo { text-align: left; display: grid; grid-template-columns: 31px 1fr; gap: 4px 20px; padding: 0; }
  .passo-dot { grid-row: 1 / span 2; margin: 0; }
  .passo p { margin: 0; max-width: none; }
  .rec-griglia { columns: 1; }
  .rec-card { flex: 0 0 100%; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-inner { padding: 12px 18px; }
  .section { padding: 60px 0; }
  .page-hero + .section { padding-top: 36px; }
  .section-scura { padding: 72px 0; }
  .section-head { margin-bottom: 2.4rem; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
  .info-strip { margin-top: -36px; }
  .info-strip-grid { grid-template-columns: 1fr; }
  .info-item + .info-item { border-left: none; border-top: 1px solid var(--lg-border); }
  .info-item { padding: 18px 20px; }
  .about-photo-2 { bottom: -24px; }
  .form-row { grid-template-columns: 1fr; }
  .contatti-form { padding: 30px 22px; }
  .dove-card { padding: 28px 22px; }
  .cta-band { padding: 40px 24px; border-radius: 24px; }
  .page-hero { padding: 44px 0 32px; background: radial-gradient(90% 70% at 100% 0%, rgba(241, 217, 221, .85) 0%, rgba(248, 233, 235, .45) 50%, rgba(253, 247, 246, 0) 80%), var(--lg-cream); }   /* su mobile niente velo salvia: in basso a sinistra si vedeva come un rettangolo */
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .slider-outer { gap: 6px; }                                         /* punto 37 */
  .slider-track { gap: 14px; }
  .slider-btn { width: 36px; height: 36px; position: static; transform: none; }
  .rec-card { flex: 0 0 100%; padding: 26px 20px 22px; }
  .faq-question { padding: 20px 18px; font-size: 1.05rem; }
  .faq-answer p { padding: 0 18px 20px; }
  #cookieBanner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .fab-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media (max-width: 380px) {
  .logo-mark { width: 34px; height: 34px; }
  .logo-name { font-size: 1.1rem; }
  .logo-sub { font-size: .72rem; letter-spacing: .1em; }
  .hero-badge { display: none; }
  .chip { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
