/* ============================================
   Davide Villa — Fisioterapista Brescia
   Design: Cobalt structure, maschile, concreto
   Strategy: Committed — cobalt su sfondo chiaro, spazi ariosi
   Scene: Uomo 45+, mal di schiena ricorrente. Cerca serietà e orari comodi.
   ============================================ */

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

:root {
  --accent: #2557a3;
  --accent-hover: #1d4582;
  --accent-light: #dce7f4;
  --accent-muted: rgba(37,87,163,0.07);
  --coral: #e86845;
  --coral-hover: #d45533;
  --bg: #f9fafb;
  --bg-surface: #ffffff;
  --bg-alt: #f0f2f5;
  --text: #1c2433;
  --text-muted: #526070;
  --text-light: #8e99a6;
  --border: #dde1e7;
  --border-strong: #c2c9d2;
  --slate: #2a3444;
  --slate-dark: #1a2230;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 4px rgba(28,36,51,0.05);
  --shadow-md: 0 4px 16px rgba(28,36,51,0.08);
  --shadow-lg: 0 8px 32px rgba(28,36,51,0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

h1 { font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; line-height: 1.08; }
h2 { font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; line-height: 1.15; }
h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
p { max-width: 65ch; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(249,250,251,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; background: var(--accent); color: #fff; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.logo-mark--sm { width: 32px; height: 32px; font-size: 0.75rem; }
.logo-name { display: block; font-weight: 700; font-size: 0.92rem; color: var(--text); line-height: 1.2; }
.logo-sub { display: block; font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__link { font-size: 0.84rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s ease; }
.nav__link:hover { color: var(--accent); }
.nav__link--cta { padding: 8px 20px; background: var(--accent); color: #fff !important; border-radius: 50px; font-weight: 600; }
.nav__link--cta:hover { background: var(--accent-hover); color: #fff; }
.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 24px; height: 16px; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — split dark left */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.hero__left { background: var(--slate); padding: 120px 64px 64px; display: flex; align-items: center; }
.hero__left-content { max-width: 520px; }
.hero__eyebrow { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.hero__title { color: #fff; margin-bottom: 8px; }
.hero__tagline { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.hero__desc { color: rgba(255,255,255,0.88); margin-bottom: 32px; max-width: 100%; line-height: 1.75; }
.hero__phone-row { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.hero__phone-row > span:first-child { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 1.05rem; }
.hero__schedule { font-size: 0.78rem; color: rgba(255,255,255,0.85); }
.hero__right { background: var(--bg); padding: 120px 48px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.hero__photo-pl { width: 280px; height: 320px; background: var(--accent-light); border: 2px dashed var(--border-strong); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--accent); font-size: 0.82rem; }
.hero__right-badges { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--text); padding: 12px 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.hero-badge svg { color: var(--accent); flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 13px 26px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.25s var(--ease); border: none; text-decoration: none; }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Section */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--slate { background: var(--slate); color: rgba(255,255,255,0.85); }
@media (max-width: 768px) { .section { padding: 64px 0; } .container { padding: 0 24px; } }
@media (max-width: 600px) { .section { padding: 48px 0; } .container { padding: 0 20px; } }
.section-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-muted); padding: 4px 12px; border-radius: 50px; margin-bottom: 10px; }
.section-tag--light { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.1); }
.section-header { text-align: center; max-width: 580px; margin: 0 auto 52px; }
.section-title { margin-bottom: 10px; }
.section-title--light { color: #fff; }
.section-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; max-width: 100%; }

/* Treatments */
.treat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.treat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 24px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.treat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.treat-card--wide { grid-column: span 2; display: flex; gap: 20px; align-items: flex-start; padding: 32px 28px; }
.treat-card__icon { color: var(--accent); flex-shrink: 0; }
.treat-card h3 { margin-bottom: 8px; }
.treat-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; max-width: 100%; }

/* Studio */
.studio-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.studio-photo { }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: var(--r-md); color: var(--text-light); font-size: 0.82rem; }
.photo-placeholder--studio { width: 100%; height: 320px; background: var(--accent-light); border: 2px dashed var(--border-strong); color: var(--accent); }
.studio-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; max-width: 100%; }
.studio-features { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.studio-feat { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text); }
.studio-feat svg { color: var(--accent); flex-shrink: 0; }

/* Chi sono */
.chi-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.chi-text p { color: rgba(255,255,255,0.85); margin-bottom: 14px; line-height: 1.8; max-width: 100%; }
.chi-photo { }
.photo-placeholder--chi { width: 100%; height: 280px; background: rgba(255,255,255,0.08); border: 2px dashed rgba(255,255,255,0.15); color: rgba(255,255,255,0.3); }

/* Contact */
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 24px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-card strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-card a, .contact-card span { font-size: 0.86rem; color: var(--text-muted); display: block; }
.contact-card--phone { background: var(--accent); border-color: var(--accent); }
.contact-card--phone svg { color: #fff; }
.contact-card--phone strong { color: #fff; }
.contact-card--phone a { color: #fff; font-size: 1.2rem; font-weight: 700; }
.contact-card--phone span { color: rgba(255,255,255,0.85); }

/* Footer */
.footer { background: var(--text); color: rgba(255,255,255,0.5); padding: 48px 0 28px; }
.footer__inner { }
.footer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__name { display: block; font-weight: 700; font-size: 0.92rem; color: #fff; }
.footer__sub { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.85); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 0.78rem; color: rgba(255,255,255,0.3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom a { color: rgba(255,255,255,0.45); }
.footer__bottom a:hover { color: #fff; }
.footer__bottom p { max-width: 100%; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__left { padding: 110px 32px 48px; }
  .hero__right { padding: 40px 32px; }
  .studio-split, .chi-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-row { grid-template-columns: 1fr; }
  .treat-card--wide { grid-column: span 1; flex-direction: column; }
}
@media (max-width: 600px) {
  .hero { min-height: auto; }
  .hero__left { padding: 100px 20px 40px; }
  .hero__right { padding: 32px 20px; }
  .hero__photo-pl { width: 100%; height: 220px; }
  .hero__phone-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav__link { padding: 14px 24px; width: 100%; color: var(--text); }
  .nav__link--cta { margin: 8px 24px; text-align: center; }
  .hamburger { display: flex; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 12px; }
  .footer__bottom { flex-direction: column; }
}
