:root {
  --brand: #01a3b2;
  --brand-dark: #017a86;
  --navy: #1f4e79;
  --text: #22313f;
  --muted: #5b6b78;
  --bg: #ffffff;
  --bg-alt: #f1f8fa;
  --line: #dbe7ec;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 600; }
h3 { font-size: 1.35rem; margin: 0 0 .5rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.85); color: var(--brand-dark); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-small { padding: .45rem 1rem; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--navy);
  font-family: var(--serif); font-size: 1.15rem; white-space: nowrap;
}
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: .97rem; }
.nav a:hover { color: var(--brand-dark); }

/* Hero */
.hero {
  background: url("img/hero.webp") right center / cover no-repeat, #5cc2f5;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
}
.hero-inner { padding-block: 3rem; }
.hero-inner > * { max-width: 460px; }
.hero-logo {
  width: 360px;
  background: rgba(255,255,255,.9);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(31,78,121,.15);
}
.hero-sub { font-size: 1.15rem; color: var(--navy); font-weight: 500; margin: 1.5rem 0; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.hero-inner > .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 560px; }

/* Sections */
.section { padding-block: 5rem; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 1.5rem; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--brand); margin-top: .6rem; border-radius: 2px;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin: 0 0 2.5rem; }

/* Therapy cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; align-items: start; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.4rem; }
.card-body > p { margin: 0 0 1rem; color: var(--muted); font-size: .97rem; }
details summary {
  cursor: pointer; color: var(--brand-dark); font-weight: 600;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " +"; }
details[open] summary::after { content: " −"; }
details[open] summary { margin-bottom: .75rem; }
details p, details li { font-size: .95rem; }
details ul { padding-left: 1.2rem; }

/* Team */
.person {
  display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; max-width: 860px;
}
.person img { border-radius: 50%; width: 200px; }
.person h3 { margin-bottom: .1rem; }
.role { color: var(--brand-dark); font-weight: 600; margin: 0 0 1rem; }

.facts { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.facts li { margin-bottom: .35rem; }
.facts li::marker { color: var(--brand); }

/* Studio */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
.split-img { border-radius: var(--radius); width: 100%; box-shadow: 0 10px 30px rgba(31,78,121,.12); }
.split p:first-child { margin-top: 0; }

/* Location */
.big-address {
  font-style: normal; font-family: var(--serif);
  font-size: 1.35rem; color: var(--navy); margin-bottom: 1.25rem;
}

/* Google rating badge */
.rating {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0 0 1.5rem;
  padding: .7rem 1.2rem .7rem .9rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31,78,121,.18);
  color: var(--text); text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.rating:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(31,78,121,.24); }
.rating-score {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700;
  line-height: 1; color: var(--navy);
}
.rating-detail { display: flex; flex-direction: column; gap: .25rem; }
.stars { display: block; }
.rating-label { font-size: .88rem; color: var(--muted); }
.rating-label strong { color: var(--text); }

/* Footer / contatti */
.site-footer {
  background: linear-gradient(135deg, var(--navy), var(--brand-dark));
  color: #fff;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem;
  padding-block: 4rem 3rem; align-items: center;
}
.footer-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .75rem; }
.footer-cta p { margin: 0; opacity: .9; font-size: 1.1rem; }

.footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.footer-contacts a {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1.1rem; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
  transition: background .15s;
}
.footer-contacts a:hover { background: rgba(255,255,255,.2); color: #fff; }
.footer-contacts .label {
  display: block; font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; opacity: .75;
}
.icon {
  flex: none; width: 40px; height: 40px; padding: 9px;
  border-radius: 50%; background: #fff; color: var(--brand-dark);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-block: 1.5rem 2rem;
  font-size: .85rem; color: rgba(255,255,255,.75);
}
.footer-legal p { margin: .2rem 0; }
.footer-legal strong { color: #fff; }

/* Responsive */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .6rem; }
  .brand { font-size: 1.05rem; }
  .btn-small { margin-left: auto; }
  .nav {
    order: 3; width: 100%; margin: 0;
    overflow-x: auto; gap: 1.1rem; padding-bottom: .2rem;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 110px; }

  .hero { background-position: 70% center; min-height: auto; }
  .hero-inner { padding-block: 2.5rem; }
  .hero-logo { width: min(300px, 100%); }
  .hero-sub { background: rgba(255,255,255,.85); border-radius: 10px; padding: .6rem .9rem; display: inline-block; }

  .rating-score { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 3rem 2rem; }

  .section { padding-block: 3.5rem; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split-img { max-width: 300px; }
  .person { grid-template-columns: 1fr; padding: 1.5rem; }
  .person img { width: 140px; }
}

@media (max-width: 400px) {
  .brand { font-size: .95rem; gap: .4rem; }
  .brand img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
