/* ============================================
   Matteo Valenti — Fisioterapista Bergamo
   Design: Burgundy warmth, accogliente, umano
   Strategy: Committed — burgundy carries 40% delle superfici
   Scene: Donna 55+, cronico, cerca continuità e ascolto.
   ============================================ */

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

:root {
  --accent: #8b3a4a;
  --accent-hover: #6e2e3b;
  --accent-light: #f3e2e7;
  --accent-muted: rgba(139,58,74,0.07);
  --purple: #5b4a8a;
  --purple-dark: #3d3160;
  --bg: #fdfbfc;
  --bg-surface: #ffffff;
  --bg-alt: #f7f4f6;
  --text: #2c1f24;
  --text-muted: #6a5560;
  --text-light: #a08e97;
  --border: #e5dce0;
  --border-strong: #cfc0c7;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 4px rgba(44,31,36,0.05);
  --shadow-md: 0 4px 16px rgba(44,31,36,0.08);
  --shadow-lg: 0 8px 32px rgba(44,31,36,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; }
h4 { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
p { max-width: 65ch; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--purple { background: var(--purple); 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.12); }
.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%; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(253,251,252,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); }
.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 */
.hero { padding: 130px 0 80px; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero__text { }
.hero__badge-wrap { margin-bottom: 20px; }
.hero__badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-muted); padding: 5px 14px; border-radius: 50px; }
.hero__accent { color: var(--accent); }
.hero__sub { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; max-width: 100%; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__num { font-family: Georgia, serif; font-size: 1.3rem; color: var(--text-muted); letter-spacing: 0.03em; }
.hero__visual { display: flex; flex-direction: column; gap: 20px; }
.hero__photo-frame { width: 100%; max-width: 340px; }
.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; }
.hero__photo-frame .photo-placeholder { width: 100%; height: 300px; background: var(--accent-light); border: 2px dashed var(--border-strong); color: var(--accent); }
.hero__stats-bar { display: flex; gap: 12px; }
.stat-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; }
.stat-icon { color: var(--accent); flex-shrink: 0; }
.photo-placeholder--purple { width: 100%; height: 280px; background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.15); color: rgba(255,255,255,0.35); }

/* 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--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--accent); border: 2px solid var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent); background: var(--accent-muted); }
.btn--white { background: #fff; color: var(--purple); }
.btn--white:hover { background: var(--accent-light); color: var(--accent); }

/* Services */
.services-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sblock { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 24px; position: relative; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.sblock:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sblock--large { grid-column: span 2; display: flex; gap: 20px; align-items: flex-start; padding: 32px 28px; }
.sblock__num { position: absolute; top: 14px; right: 18px; font-family: Georgia, serif; font-size: 1.8rem; color: var(--border-strong); line-height: 1; }
.sblock__icon { color: var(--accent); margin-bottom: 14px; }
.sblock h3 { margin-bottom: 8px; }
.sblock p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; max-width: 100%; }

/* Method */
.method-row { display: flex; gap: 0; justify-content: center; }
.mstep { text-align: center; flex: 1; padding: 0 20px; position: relative; }
.mstep__circle { width: 48px; height: 48px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 1.1rem; margin: 0 auto 16px; }
.mstep__line { width: 100%; height: 2px; background: var(--border); position: absolute; top: 24px; left: 50%; }
.mstep h4 { margin-bottom: 8px; color: var(--text); }
.mstep p { font-size: 0.82rem; color: var(--text-muted); margin: 0 auto; max-width: 180px; }

/* Chi sono */
.chisono-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.chisono-content p { color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.8; max-width: 100%; }
.chisono-photo { }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-main-card { background: var(--accent); border-radius: var(--r-lg); padding: 48px 40px; text-align: center; color: #fff; }
.c-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.c-phone { display: block; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; margin-bottom: 14px; }
.c-phone:hover { color: var(--accent-light); }
.contact-main-card > p { color: rgba(255,255,255,0.92); margin-bottom: 28px; max-width: 100%; }
.contact-side { display: flex; flex-direction: column; gap: 0; }
.c-item { display: flex; gap: 14px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border); }
.c-item:first-child { padding-top: 0; }
.c-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.c-item strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.c-item p { font-size: 0.86rem; color: var(--text-muted); max-width: 100%; }

/* 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.4); }
.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 { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .services-blocks { grid-template-columns: 1fr; }
  .sblock--large { grid-column: span 1; flex-direction: column; }
  .method-row { flex-direction: column; gap: 32px; }
  .mstep__line { display: none !important; }
  .chisono-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { justify-content: center; }
  .hero__stats-bar { flex-direction: column; }
  .contact-main-card { padding: 36px 24px; }
  .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; }
}
