/* ============================================================
   EP – Fisioterapia e Osteopatia | Roma
   Stylesheet alternativo — v2.0  "Teal & Coral"
   Palette: #1A5F6E (primary) · #E8826A (accent/coral) · #F3FAF9 (bg)
   Font: Georgia (system) + DM Sans (self-hosted)
   ============================================================ */

/* ── DM Sans – self-hosted (no Google Fonts roundtrip) ──────── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #2D4A3E;
  --primary-dark:  #1e3329;
  --primary-light: #4a7a66;
  --accent:        #C8A96E;
  --accent-dark:   #a8893e;
  --bg:            #F2EEE8;
  --bg-alt:        #EAE4DB;
  --text:          #2C2C2C;
  --text-muted:    #7A7168;
  --white:         #FFFDF9;
  --border:        #DDD5C8;
  --shadow-sm:     0 2px 12px rgba(45,74,62,.07);
  --shadow-md:     0 6px 24px rgba(45,74,62,.12);
  --shadow-lg:     0 12px 48px rgba(45,74,62,.18);
  --radius:        14px;
  --radius-lg:     24px;
  --transition:    .28s ease;
  --font-head:     Georgia, 'Times New Roman', serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --max-w:         1160px;
  --nav-h:         76px;
}



html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul { list-style: none; }
a[href], button, input[type="submit"], input[type="button"],
[role="button"], label[for], select, summary,
.btn, .problem-card, .therapy-card, .review-card,
.faq-item__q, .rc-arrow, .rc-toggle, .style-switcher select,
.nav__toggle, .lightbox, .wa-sticky { cursor: pointer !important; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--primary); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-accent  { color: var(--accent-dark); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.lead { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); }

/* ── Layout helpers ───────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--primary); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 600px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }

.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 10px;
}

.nav__logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .3px;
}
.nav__logo-badge {
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: -.5px;
}
.nav__logo span { display: flex; flex-direction: column; line-height: 1.2; }
.nav__logo small { font-size: 1rem; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); letter-spacing: .3px; }

.nav__links {
  display: flex; align-items: center; gap: 2px;
}
.nav__links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  letter-spacing: .1px;
}
.nav__links a:hover, .nav__links a.active {
  background: var(--bg); color: var(--primary);
}

.nav__cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  border-radius: 100px !important;
}
.nav__cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  border: none; background: none;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 20px 24px 28px;
  z-index: 999;
  flex-direction: column; gap: 4px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1rem; font-weight: 500;
  color: var(--text);
}
.nav__mobile a:hover { background: var(--bg); color: var(--primary); }
.nav__mobile .nav__cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  text-align: center; margin-top: 8px;
  border-radius: 100px !important;
}
.nav__mobile .btn--whatsapp {
  background: #25D366 !important;
  color: var(--white) !important;
  text-align: center;
  border-radius: 100px !important;
  padding: 10px 30px !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  justify-content: center;
}

/* Page offset for fixed nav */
main { padding-top: var(--nav-h); }
/* Offset ancore per navbar fixed */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .2px;
}
.btn--primary {
  background: var(--primary); color: var(--white);
}
.btn--primary:hover {
  background: var(--primary-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn--accent {
  background: var(--accent); color: var(--white);
}
.btn--accent:hover {
  background: var(--accent-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200,169,110,.35);
}
.btn--outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary); color: var(--white);
  transform: translateY(-2px);
}
.btn--outline-white {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--outline-white:hover {
  background: var(--white); color: var(--primary);
}
.btn--outline-white:hover .btn-icon { filter: brightness(0); }
.btn--lg { padding: 17px 40px; font-size: 1rem; }
.btn--sm { padding: 9px 20px; font-size: .85rem; }
.btn--whatsapp { background: #25D366; color: var(--white); }
.btn--whatsapp:hover { background: #1ebe57; color: var(--white); transform: translateY(-2px); }
.btn-icon {
  width: 1.15em; height: 1.15em;
  vertical-align: -.2em;
  margin-right: .4em;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: var(--primary-dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 80px 0;
}
/* Background photo */
.hero__bg-img {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__bg-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
}
/* Gradient overlay for text readability */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(20,46,35,.90) 0%,
      rgba(25,55,42,.82) 40%,
      rgba(20,46,35,.55) 70%,
      rgba(20,46,35,.30) 100%),
    radial-gradient(ellipse at 80% 50%, rgba(200,169,110,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,169,110,.2);
  border: 1px solid rgba(200,169,110,.4);
  color: var(--accent);
  padding: 7px 18px; border-radius: 100px;
  font-size: .82rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: .8px;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 22px; font-weight: 700; }
.hero__sub {
  font-size: 1.12rem; color: rgba(255,255,255,.78);
  line-height: 1.8; margin-bottom: 36px;
  max-width: 560px; font-weight: 300;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero__trust {
  display: none;
}
@media (max-width: 768px) {
  .hero__trust {
    display: flex; flex-wrap: wrap; gap: 18px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
}
.hero__trust-item {
  display: flex; align-items: center; gap: 10px;
}
.hero__trust-item strong {
  display: block; color: var(--white);
  font-size: 1.25rem; font-weight: 700;
  font-family: var(--font-head);
}
.hero__trust-item span {
  font-size: .82rem; color: rgba(255,255,255,.6);
}
.hero__stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }

/* Hero visual side */
.hero__visual {
  position: relative; z-index: 2;
  display: flex;
  align-items: center; justify-content: center;
}
.hero__card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 340px;
  margin-left: auto;
}
.hero__card-stat {
  text-align: center; padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero__card-stat:last-child { border-bottom: none; }
.hero__card-stat .num {
  font-family: var(--font-head);
  font-size: 2.8rem; font-weight: 700;
  color: var(--accent); display: block;
}
.hero__card-stat .lbl {
  font-size: .83rem; color: rgba(255,255,255,.65);
  font-weight: 300;
}
/* Stat cliccabili: ancore verso le sezioni della pagina */
a.hero__card-stat, a.stat-item { display: block; color: inherit; }
a.hero__card-stat:hover .lbl, a.stat-item:hover .lbl,
a.hero__trust-item:hover span { color: rgba(255,255,255,.85); }

/* ── Problems grid ────────────────────────────────────────── */
.problem-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none; display: block;
}
.problem-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  color: var(--text);
}
.problem-card__icon {
  width: 100%; height: 160px;
  border-radius: 23px 23px 0px 0px;
  overflow: hidden;
  margin: -32px -24px 18px;
  width: calc(100% + 48px);
}
.problem-card__icon img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .4s ease;
}
.problem-card:hover .problem-card__icon img {
  transform: scale(1.05);
}
.problem-card h3 { font-size: 1rem; margin-bottom: 8px; }
.problem-card p  { font-size: .87rem; color: var(--text-muted); margin: 0; }

/* ── Feature boxes ────────────────────────────────────────── */
.feature-box {
  background: #fefcf8; /* stesso fondo crema delle illustrazioni */
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.feature-box__ill {
  display: block; margin: 0 auto 22px;
  height: 200px; width: 100%;
  object-fit: contain;
}
/* Titoli allineati tra le card: illustrazione ad altezza fissa + titolo su due righe */
.feature-box h3 {
  margin-bottom: 12px;
  min-height: 2.4em;
  display: flex; align-items: flex-start; justify-content: center;
}
.feature-box p  { font-size: .93rem; color: var(--text-muted); margin: 0; font-weight: 300; }

/* ── Testimonial / Review cards ───────────────────────────── */
.reviews-section { background: var(--bg); }
.reviews-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.review-card__google-icon {
  position: absolute; top: 32px; right: 20px;
  width: 22px; height: 22px;
  object-fit: contain;
  opacity: .85;
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.review-card::before {
  content: '\201C';
  position: absolute; top: 16px; left: 24px;
  font-family: var(--font-head);
  font-size: 5rem; color: rgba(200,169,110,.2);
  line-height: 1;
}
.review-card__text {
  font-size: .97rem; line-height: 1.8;
  color: var(--text); margin-bottom: 20px;
  padding-top: 4px; font-weight: 300;
}
.rc-toggle {
  display: inline-block; margin-top: 6px;
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit;
  color: var(--primary); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.rc-toggle:hover { color: var(--accent-dark); }
.review-card__author {
  display: flex; align-items: center; gap: 14px;
}
.review-card__avatar {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 600; font-size: .85rem;
  flex-shrink: 0;
}
.review-card__avatar--photo {
  width: 46px; height: 46px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
}
.review-card__info strong { display: block; font-size: .9rem; color: var(--primary); }
.review-card__info span  { font-size: .8rem; color: var(--text-muted); }
.review-card__tag {
  display: inline-block;
  background: rgba(200,169,110,.15); color: var(--accent-dark);
  font-size: .72rem; font-weight: 600;
  padding: 3px 12px; border-radius: 100px;
  margin-top: 4px;
}

.review-card__google-link {
  display: block;
  margin-top: 3px;
  font-size: .8rem; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}
.review-card__google-link:hover { color: var(--primary); text-decoration: underline; }

.reviews-aggregate {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 52px;
  flex-wrap: wrap;
}
.reviews-aggregate .big-num {
  font-family: var(--font-head);
  font-size: 3.5rem; font-weight: 700; color: var(--primary);
}
.reviews-aggregate .stars { font-size: 1.4rem; color: var(--accent); }
.reviews-aggregate .lbl { font-size: .9rem; color: var(--text-muted); }

/* ── Therapy cards ────────────────────────────────────────── */
.therapy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.therapy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(200,169,110,.4);
}

/* Card con immagine */
.therapy-card--img {
  padding: 0;
  border-left: none;
}
.therapy-card--img:hover .therapy-card__img-wrap img {
  transform: scale(1.05);
}
.therapy-card__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.therapy-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.therapy-card__body {
  padding: 24px 26px;
  display: flex; flex-direction: column; flex: 1;
}

/* Card CTA (senza immagine) */
.therapy-card--cta {
  padding: 32px 28px;
  border-left: none;
}

.therapy-card__icon { font-size: 2rem; margin-bottom: 18px; }
.therapy-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.therapy-card p  { font-size: .88rem; color: var(--text-muted); flex: 1; font-weight: 300; margin: 0; }
.therapy-card__link {
  margin-top: 18px;
  font-size: .88rem; font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.therapy-card__link:hover { color: var(--accent-dark); }

/* ── Doctor section ───────────────────────────────────────── */
.doctor-section { background: var(--white); }
.doctor-photo {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: var(--text-muted); font-size: .9rem;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.doctor-photo > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block; border-radius: inherit;
}
.doctor-photo__placeholder {
  font-size: 5rem; line-height: 1;
}
.doctor-credentials {
  display: flex; flex-direction: column; gap: 14px;
  margin: 24px 0;
}
.credential-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .93rem;
}
.credential-item::before {
  content: '✓';
  color: var(--accent-dark);
  font-weight: 700; flex-shrink: 0;
  margin-top: 1px;
}
.credential-item strong { color: var(--primary); }

/* ── Blog cards ───────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(200,169,110,.4);
}
.blog-card__img {
  aspect-ratio: 16/9;
  width: 100%; display: block; object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); /* fallback in caricamento */
}
.blog-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag {
  display: inline-block;
  background: rgba(200,169,110,.15); color: var(--accent-dark);
  font-size: .73rem; font-weight: 600;
  padding: 4px 14px; border-radius: 100px; margin-bottom: 14px;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card p  { font-size: .88rem; color: var(--text-muted); flex: 1; font-weight: 300; }
.blog-card__link {
  margin-top: 18px; font-size: .88rem; font-weight: 600;
  color: var(--primary); display: inline-flex; align-items: center; gap: 4px;
}

/* ── Map / Contacts ───────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-info-item__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border);
}
.contact-info-item h4 { margin-bottom: 4px; font-size: .95rem; }
.contact-info-item p, .contact-info-item a {
  font-size: .93rem; color: var(--text-muted); margin: 0;
}
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background:
    linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, #3d6655 100%);
  padding: 96px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,169,110,.15) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 18px; }
.cta-banner p  { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 40px; font-size: 1.05rem; font-weight: 300; }
.cta-banner__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-banner small {
  display: block; margin-top: 24px;
  font-size: .82rem; color: rgba(255,255,255,.45);
  position: relative; z-index: 1;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  background: var(--bg);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb__inner {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text-muted);
}
.breadcrumb__inner a { color: var(--text-muted); }
.breadcrumb__inner a:hover { color: var(--primary); }
.breadcrumb__inner span { color: var(--primary); font-weight: 500; }
.breadcrumb__sep { opacity: .4; }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,.72); max-width: 600px; margin: 0 auto; font-size: 1.05rem; font-weight: 300; }
.page-hero__tag {
  display: inline-block;
  background: rgba(200,169,110,.2); border: 1px solid rgba(200,169,110,.4);
  color: var(--accent); padding: 5px 18px; border-radius: 100px;
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 18px;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
  width: 100%; padding: 22px 28px;
  background: var(--white);
  border: none; cursor: pointer;
  text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  color: var(--text); gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question .faq-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: var(--white); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 28px; background: var(--bg);
  font-size: .95rem; color: var(--text-muted); line-height: 1.8;
  font-weight: 300;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 18px 28px 26px; }

/* ── Form ─────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 640px; margin: 0 auto;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: .2px;
}
.form-group label .req { color: var(--accent-dark); }
.form-control {
  width: 100%; padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body); font-size: .97rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,.12);
}
.form-control::placeholder { color: #b8b0a5; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A7168' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* ── Chips / tags ─────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-alt); color: var(--primary);
  padding: 5px 16px; border-radius: 100px;
  font-size: .82rem; font-weight: 500;
}
.chip--accent { background: rgba(200,169,110,.18); color: var(--accent-dark); }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--primary); padding: 56px 0;
  position: relative; overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(200,169,110,.1) 0%, transparent 65%);
  pointer-events: none;
}
.stats-bar__grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; text-align: center;
  position: relative; z-index: 1;
}
.stat-item .num {
  font-family: var(--font-head);
  font-size: 3rem; font-weight: 700;
  color: var(--accent); display: block;
}
.stat-item .lbl { font-size: .88rem; color: rgba(255,255,255,.65); font-weight: 300; }

/* ── Article layout ───────────────────────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 56px;
  align-items: start;
}
/* min-width:0 prevents the grid item from expanding beyond its column
   when child flex carousels have large min-content sizes */
.article-content { min-width: 0; }
.article-sidebar { min-width: 0; }
.article-content h2 { margin: 2rem 0 1rem; }
.article-content h3 { margin: 1.5rem 0 .75rem; }
.article-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.article-content ul li { margin-bottom: .4rem; font-size: .96rem; }
.article-content .summary-box {
  background: rgba(200,169,110,.1); border-left: 4px solid var(--accent);
  padding: 22px 28px; border-radius: 0 12px 12px 0;
  margin: 32px 0;
}
.article-content .summary-box strong { color: var(--primary); }
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.sidebar-card h4 { margin-bottom: 16px; font-size: 1rem; }

/* ── Team ─────────────────────────────────────────────────── */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(200,169,110,.4);
}
.team-card__photo {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: rgba(255,255,255,.55);
}
.team-card h4 { margin-bottom: 4px; font-size: .95rem; }
.team-card p  { font-size: .83rem; color: var(--text-muted); margin: 0; font-weight: 300; }

/* ── WhatsApp sticky ──────────────────────────────────────── */
.wa-sticky {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 900;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white);
  padding: 14px 22px; border-radius: 100px;
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 4px 24px rgba(37,211,102,.35);
  text-decoration: none;
  transition: all var(--transition);
  animation: pulse-wa 3s infinite;
}
.wa-sticky:hover {
  background: #1ebe57; color: var(--white);
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(37,211,102,.5);
}
.wa-sticky svg { width: 22px; height: 22px; flex-shrink: 0; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 24px rgba(37,211,102,.35); }
  50%      { box-shadow: 0 4px 36px rgba(37,211,102,.6); }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #111e18;
  color: rgba(255,255,255,.68);
  padding: 72px 0 36px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 52px;
}
.footer__brand p { font-size: .9rem; line-height: 1.75; margin: 18px 0 22px; font-weight: 300; }
.footer__brand .nav__logo { color: var(--white); margin-bottom: 0; }
.footer__brand .nav__logo small { color: rgba(255,255,255,.45); }
.footer h5 {
  font-family: var(--font-body); font-size: .78rem;
  font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer ul li a:hover { color: var(--accent); }
.footer__contact li {
  display: flex; gap: 10px; font-size: .88rem;
  margin-bottom: 10px; color: rgba(255,255,255,.6);
}
.footer__contact li strong { color: rgba(255,255,255,.85); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .82rem;
}
.footer__bottom a { color: rgba(255,255,255,.45); }
.footer__bottom a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--accent); color: var(--white); }

/* ── Animations ───────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }

/* ── Notice / Alert ───────────────────────────────────────── */
.alert {
  padding: 14px 22px; border-radius: 12px;
  font-size: .92rem; margin-bottom: 20px;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert--success { background: rgba(200,169,110,.12); color: #5a4010; border-left: 4px solid var(--accent); }
.alert--error   { background: #fde8e8; color: #7b2020; border-left: 4px solid #e74c3c; }
.alert--info    { background: rgba(45,74,62,.08); color: var(--primary-dark); border-left: 4px solid var(--primary); }
.alert--hidden  { display: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4, .stats-bar__grid { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero__visual { display: none; }
  .cta-banner__btns { flex-direction: column; align-items: center; }
  .wa-sticky span { display: none; }
  .wa-sticky { padding: 14px; border-radius: 50%; }
  .stats-bar__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 28px 22px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .nav, .wa-sticky, .footer { display: none; }
  main { padding-top: 0; }
}

/* ── Reviews Carousel ────────────────────────────────────── */
.article-reviews { margin: 48px 0 40px; }
.article-reviews h2 { margin-bottom: 24px; }

.rc-wrapper {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.rc-viewport {
  overflow: hidden; flex: 1; min-width: 0;
}
.rc-track {
  display: flex; gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
/* Carosello full-width (index.php): 3 colonne desktop */
.rc-track .review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}
/* Carosello inline nell'articolo: sempre 2 colonne */
.reviews-carousel--inline .rc-track .review-card {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
}
.rc-arrow {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  font-size: 1.1rem; cursor: pointer; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.rc-arrow:hover {
  background: var(--primary); color: var(--white);
  border-color: var(--primary); box-shadow: var(--shadow-md);
}
.rc-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }
.rc-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.rc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.rc-dot.active { background: var(--primary); transform: scale(1.3); }

@media (max-width: 900px) {
  .rc-track .review-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .rc-track .review-card,
  .reviews-carousel--inline .rc-track .review-card { flex: 0 0 100%; }
  .rc-arrow { display: none; }
}

/* ============================================================
   Esercizi (pagina riservata) – tracker esercizi di fisioterapia
   ============================================================ */
.es-page { padding: 40px 0 140px; }
.es-page .es-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.es-page .es-today {
  font-size: .85rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums; text-transform: capitalize;
}

.es-tabs {
  display: flex; gap: 4px;
  background: var(--bg-alt);
  padding: 4px; border-radius: 100px;
  margin-bottom: 28px;
  max-width: 360px;
}
.es-tabs button {
  appearance: none; border: none; background: transparent;
  color: var(--text-muted);
  padding: 10px 18px; border-radius: 100px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  flex: 1; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.es-tabs button.active {
  background: var(--white); color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.es-empty {
  text-align: center; color: var(--text-muted);
  padding: 56px 24px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  font-size: .95rem;
}

.es-list { display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; }
.es-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: start;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.es-card:hover { box-shadow: var(--shadow-md); border-color: rgba(200,169,110,.4); }
.es-card .es-meta { min-width: 0; }
.es-card .es-name {
  font-family: var(--font-head);
  font-size: 1.2rem; color: var(--primary);
  margin: 0 0 8px; word-break: break-word;
}
.es-pills { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }
.es-pill {
  display: inline-flex; align-items: center;
  background: var(--bg-alt); color: var(--primary);
  padding: 4px 12px; border-radius: 100px;
  font-size: .78rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.es-pill--accent { background: rgba(200,169,110,.18); color: var(--accent-dark); }
.es-pill--success { background: rgba(45,74,62,.1); color: var(--primary); }
.es-note {
  margin-top: 8px;
  font-size: .92rem; color: var(--text-muted);
  line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.es-actions {
  display: flex; flex-direction: column;
  gap: 8px; align-items: flex-end;
}
.es-actions-row { display: flex; gap: 6px; }
.es-icon-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
  transition: all var(--transition);
}
.es-icon-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--bg); }
.es-icon-btn.danger:hover { color: #c0392b; border-color: #c0392b; background: rgba(192,57,43,.06); }
.es-done-btn {
  appearance: none; border: none;
  background: var(--primary); color: var(--white);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.es-done-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* History view */
.es-day-group { margin-bottom: 32px; }
.es-day-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 4px 12px;
}
.es-day-head .es-date {
  font-family: var(--font-head);
  font-size: 1.1rem; color: var(--primary);
  font-weight: 600; text-transform: capitalize;
}
.es-day-head .es-count {
  font-size: .8rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.es-session-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px 16px; margin-bottom: 10px;
}
.es-session-card .es-name { font-size: 1rem; margin-bottom: 4px; }
.es-session-card .es-time {
  font-size: .78rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  align-self: start; white-space: nowrap;
}

/* Toolbar fissa in basso */
.es-toolbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--white) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: center;
  z-index: 50;
}
.es-toolbar .es-toolbar-inner {
  width: 100%; max-width: 720px;
  display: flex; gap: 10px;
}
.es-toolbar .btn { padding: 13px 22px; font-size: .9rem; flex: 1; }
.es-toolbar .btn--ghost {
  flex: 0 0 auto; padding: 13px 16px;
  background: var(--white); color: var(--primary);
  border: 1.5px solid var(--border);
}
.es-toolbar .btn--ghost:hover { background: var(--bg); border-color: var(--primary); }

/* Dialog */
.es-dlg {
  border: none; border-radius: var(--radius-lg);
  padding: 0; background: var(--white); color: var(--text);
  max-width: 480px; width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  /* Il reset globale azzera "margin", che rompe il centraggio
     automatico di <dialog>. Reimposto margin:auto. */
  margin: auto;
}
.es-dlg::backdrop { background: rgba(20,46,35,.55); backdrop-filter: blur(4px); }
.es-dlg .es-dlg-body { padding: 28px 28px 8px; }
.es-dlg .es-dlg-body h2 {
  margin: 0 0 6px; font-size: 1.3rem; color: var(--primary);
}
.es-dlg .es-dlg-sub {
  margin: 0 0 20px; font-size: .88rem; color: var(--text-muted);
}
.es-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.es-field label {
  font-size: .85rem; font-weight: 600;
  color: var(--text); letter-spacing: .2px;
}
.es-field input[type="text"],
.es-field input[type="date"],
.es-field input[type="number"],
.es-field textarea {
  font-family: var(--font-body); font-size: .95rem;
  color: var(--text); background: var(--white);
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 11px 14px; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.es-field input:focus, .es-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,.12);
}
.es-field textarea { min-height: 80px; resize: vertical; }
.es-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Stepper +/- */
.es-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.es-stepper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,.12);
}
.es-stepper button {
  appearance: none; border: none;
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-body); font-size: 1.2rem; font-weight: 600;
  cursor: pointer; line-height: 1; padding: 0;
  transition: background var(--transition), color var(--transition);
}
.es-stepper button:hover {
  background: var(--primary); color: var(--white);
}
.es-stepper button:active { transform: scale(.96); }
.es-stepper button:disabled {
  background: var(--bg); color: var(--border);
  cursor: not-allowed; transform: none;
}
.es-stepper input {
  border: none !important;
  border-radius: 0 !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  background: var(--white);
  padding: 11px 4px !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
}
.es-stepper input::-webkit-outer-spin-button,
.es-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.es-stepper input:focus { outline: none; }

.es-dlg-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px; margin-top: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.es-dlg-actions .btn { padding: 11px 22px; font-size: .9rem; flex: 0 0 auto; }

/* Toast */
.es-toast {
  position: fixed; left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--primary); color: var(--white);
  padding: 12px 20px; border-radius: 100px;
  font-size: .85rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.es-toast.show { opacity: 1; }

@media (max-width: 600px) {
  .es-page { padding: 24px 0 130px; }
  .es-card { padding: 18px 18px; grid-template-columns: 1fr; }
  .es-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .es-row2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .es-dlg .es-dlg-body { padding: 22px 20px 6px; }
  .es-dlg-actions { padding: 14px 18px; }
}
