/* ===== Colori e font: modifica qui per cambiare lo stile di tutto il sito ===== */
:root {
  --primary: #1f7a6d;
  --primary-dark: #155a50;
  --accent: #f2a65a;
  --bg: #fbfaf7;
  --tint: #eef5f2;
  --text: #1d2b28;
  --muted: #5d6b68;
  --card: #ffffff;
  --border: #dfe7e4;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(20, 60, 50, .25);
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
em { font-style: italic; color: var(--primary); }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section__head p:last-child { color: var(--muted); margin-top: 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 20px 0 32px; max-width: 520px; }

/* ===== Bottoni ===== */
.btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 600; border: 2px solid var(--primary); cursor: pointer; font-size: 1rem; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: 8px 20px; font-size: .92rem; }
.btn--full { width: 100%; }

/* ===== Navbar ===== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(251, 250, 247, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 600; }
.logo img { width: 48px; height: 48px; }
.logo span { color: var(--text); line-height: 1.1; }
.logo small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--primary); transition: width .25s; }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px auto; transition: transform .3s, opacity .3s; }

/* ===== Hero ===== */
.hero { padding: 140px 0 90px; background: radial-gradient(ellipse at 85% 20%, #dcefe8 0%, transparent 55%), radial-gradient(ellipse at 10% 90%, #fbe9d6 0%, transparent 45%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { list-style: none; display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--font-title); font-size: 2.2rem; color: var(--primary); }
.stats span { font-size: .88rem; color: var(--muted); }
.hero__visual { position: relative; }
.hero__photo, .about__photo { aspect-ratio: 4/5; border-radius: 200px 200px var(--radius) var(--radius); background: linear-gradient(160deg, #bfded4, #7fb8a9); display: grid; place-items: center; text-align: center; color: #fff; font-weight: 600; box-shadow: var(--shadow); background-size: cover; background-position: center; }
.hero__photo small, .about__photo small { font-weight: 400; opacity: .8; }
img.hero__photo { width: 100%; height: auto; object-fit: cover; object-position: center 20%; }
.hero__badge { position: absolute; left: -24px; bottom: 40px; background: #fff; padding: 16px 22px; border-radius: 14px; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.hero__badge strong { display: block; color: var(--primary); }
.hero__badge span { font-size: .85rem; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== Tabs + card servizi ===== */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.tab { background: #fff; border: 1px solid var(--border); padding: 10px 20px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 500; color: var(--text); transition: all .2s; }
.tab:hover { border-color: var(--primary); }
.tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s, opacity .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card.is-hidden { display: none; }
.card__icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--tint); border-radius: 14px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.card { display: flex; flex-direction: column; }
.card__link { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }
#serviceCards { grid-template-columns: repeat(3, 1fr); }
#serviceCards .card--highlight { grid-column: span 2; }
@media (max-width: 900px) { #serviceCards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #serviceCards { grid-template-columns: 1fr; } #serviceCards .card--highlight { grid-column: auto; } }
.card--highlight { background: var(--primary); border-color: var(--primary); color: #fff; }
.card--highlight p { color: #d9ece7; }
.card--highlight .card__icon { background: rgba(255, 255, 255, .15); }
.card--highlight .card__link { color: #fff; }

/* ===== Mappa del dolore ===== */
.bodymap { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.bodymap__svg { width: 100%; max-height: 480px; }
.silhouette > * { fill: #d6e6e0; }
.zone { fill: var(--accent); fill-opacity: .35; stroke: var(--accent); stroke-width: 2; cursor: pointer; transition: fill-opacity .2s, r .2s; outline: none; }
.zone:hover, .zone:focus { fill-opacity: .7; }
.zone.is-active { fill: #e4572e; fill-opacity: .85; stroke: #e4572e; }
.bodymap__info { min-height: 280px; }
.bodymap__placeholder { height: 100%; min-height: 280px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); position: relative; }
.zone-card { animation: fadeUp .4s ease; }
.zone-card h3 { font-size: 1.8rem; margin-bottom: 14px; }
.zone-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { background: var(--tint); color: var(--primary-dark); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
.zone-card .tip { margin-top: 20px; padding: 14px 18px; background: #fff6ec; border-left: 4px solid var(--accent); border-radius: 8px; font-size: .95rem; }
.zone-card .btn { margin-top: 22px; }
.zone-card__text { color: var(--muted); font-size: 1.05rem; }
.other-reasons { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 24px; }
.other-reasons > p { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.other-reasons__list { display: flex; flex-wrap: wrap; gap: 10px; }
.reason { font: inherit; font-weight: 500; background: var(--tint); color: var(--primary-dark); border: 1px solid transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.reason:hover { border-color: var(--primary); }
.reason.is-active { background: var(--primary); color: #fff; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ===== Chi sono ===== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
img.about__photo { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; }
.about__text p { color: var(--muted); margin-top: 14px; }
.credentials { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.where div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.where strong { display: block; margin-bottom: 4px; }
.where span { color: var(--muted); font-size: .92rem; }
.timeline { list-style: none; border-left: 2px solid var(--border); padding-left: 22px; }
.timeline li { position: relative; margin-bottom: 20px; font-size: .95rem; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.timeline span { display: block; font-weight: 600; color: var(--primary); }
.timeline small { display: block; color: var(--muted); }

/* ===== Step ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; padding: 28px; border-radius: var(--radius); position: relative; }
.steps li span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; margin-bottom: 16px; }
.steps p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ===== Slider recensioni ===== */
.slider { max-width: 760px; margin: 0 auto; overflow: hidden; }
.slider__track { display: flex; transition: transform .5s ease; }
.slide { flex: 0 0 100%; text-align: center; padding: 10px 24px; }
.slide p { font-family: var(--font-title); font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.4; }
.slide footer { margin-top: 20px; color: var(--accent); letter-spacing: .1em; }
.slide cite { display: block; color: var(--muted); font-style: normal; letter-spacing: 0; margin-top: 4px; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.slider__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 1.4rem; cursor: pointer; color: var(--primary); transition: background .2s; }
.slider__btn:hover { background: var(--tint); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; transition: width .3s, background .3s; }
.slider__dots button.is-active { width: 28px; border-radius: 999px; background: var(--primary); }

/* ===== FAQ ===== */
.faq details { background: #fff; border-radius: 14px; margin-bottom: 12px; border: 1px solid var(--border); overflow: hidden; }
.faq summary { padding: 20px 24px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--muted); }

/* ===== Prenotazione ===== */
.booking { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.booking__info > p { color: var(--muted); margin-top: 14px; }
.contact-list { list-style: none; margin: 28px 0; }
.contact-list li { margin-bottom: 10px; }
.hours h3 { margin-bottom: 8px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hours td:last-child { text-align: right; color: var(--muted); }
.open-status { font-weight: 600; margin-bottom: 8px; }
.open-status::before { content: "●"; margin-right: 6px; }
.open-status.open { color: #2e9e5b; }
.open-status.closed { color: #c4473a; }
.form { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); transition: border .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 122, 109, .15); }
.form input.invalid { border-color: #c4473a; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form__error { color: #c4473a; font-size: .9rem; min-height: 1em; }

/* ===== Mappa + footer ===== */
.map iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.3); }
.footer { background: #13302b; color: #b7cbc6; padding: 28px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__logo { width: 56px; height: 56px; background: #fff; border-radius: 50%; }
.footer a { color: #fff; }

/* ===== Elementi flottanti ===== */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 40; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 30px; bottom: 92px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ===== Animazioni allo scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.pulse { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); top: 20px; right: 20px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 166, 90, .6); } 100% { box-shadow: 0 0 0 16px rgba(242, 166, 90, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive (tablet e smartphone) ===== */
@media (max-width: 900px) {
  .hero__grid, .about, .booking, .bodymap { grid-template-columns: 1fr; }
  .hero__visual { max-width: 380px; margin: 0 auto; }
  .hero__badge { left: 0; }
  img.about__photo { max-width: 340px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bodymap { padding: 24px; }
  .bodymap__svg { max-height: 380px; }

  .nav__toggle { display: block; }
  .nav__menu { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 24px; gap: 18px; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s; }
  .nav__menu.is-open { transform: none; }
  .nav.menu-open { background: var(--bg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .steps, .form__row, .where { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .stats { gap: 22px; }
}
