/* =========================================================
   Fisio Pilates Beauty — redesign completo 2026
   CSS autonomo (nessuna dipendenza da Bootstrap/template).
   Stile: spa editoriale, neutri caldi + accento rosa cipria,
   titoli serif, ampio respiro, griglie allineate.
   ========================================================= */

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, iframe { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ------------------------------ Tokens ----------------------------- */
:root {
  --bg:        #f7f2ec;
  --bg-alt:    #ffffff;
  --ink:       #2b2325;
  --muted:     #857a7d;
  --rose:      #b76e79;
  --rose-deep: #9a5361;
  --rose-soft: #f2e0e2;
  --sand:      #ece2d7;
  --line:      #e8ddd3;
  --shadow:    0 24px 60px -30px rgba(80, 40, 50, 0.35);
  --shadow-sm: 0 12px 30px -18px rgba(80, 40, 50, 0.28);
  --radius:    16px;
  --radius-lg: 26px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap:  1180px;
}

/* ------------------------------ Base ------------------------------- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--rose);
  display: inline-block;
  margin-bottom: 16px;
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ------------------------------ Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: transparent; color: var(--rose-deep); border: 1.5px solid var(--rose); }
.btn-outline:hover { background: var(--rose); color: #fff; transform: translateY(-2px); }

/* ------------------------------ Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 236, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.3); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--rose-soft);
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-name .dot { color: var(--rose); }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a.nav-link {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--rose); transition: width .25s ease;
}
.nav a.nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s ease; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ------------------------------ Hero ------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: url(../images/hero_bg_1.jpg) center/cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(43,26,31,.78) 0%, rgba(43,26,31,.45) 45%, rgba(154,83,97,.25) 100%);
}
.hero-inner { max-width: 660px; padding: 120px 0; }
.hero .eyebrow { color: var(--rose-soft); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero h1 .rotator { color: var(--rose-soft); font-style: italic; display: inline-block; }
.hero p.lead { font-size: 1.15rem; margin: 22px 0 34px; max-width: 520px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------- Info strip ---------------------------- */
.info-strip { margin-top: -60px; position: relative; z-index: 5; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
}
.info-card:last-child { border-right: 0; }
.info-ico {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--rose-soft); color: var(--rose-deep);
  display: flex; align-items: center; justify-content: center;
}
.info-ico svg { width: 24px; height: 24px; }
.info-card .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.info-card .value { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.info-card .value a:hover { color: var(--rose); }

/* --------------------------- Services ------------------------------ */
.services { background: var(--bg); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-media { aspect-ratio: 16 / 11; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 30px 28px 34px; }
.service-body h3 { font-size: 1.5rem; margin-bottom: 18px; }
.service-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: #5f565a;
  font-size: .96rem;
  border-bottom: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%239a5361' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------------------------- Gallery ------------------------------ */
.studio { background: var(--sand); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(154,83,97,.4));
  opacity: 0; transition: opacity .4s ease;
}
.gallery-cell:hover img { transform: scale(1.08); }
.gallery-cell:hover::after { opacity: 1; }

/* ---------------------------- Contact ------------------------------ */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: stretch; }
.contact-info h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.contact-info .eyebrow { margin-bottom: 10px; }
.contact-info p.intro { color: var(--muted); margin-bottom: 30px; max-width: 440px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .info-ico { width: 46px; height: 46px; }
.contact-row .info-ico svg { width: 21px; height: 21px; }
.contact-row .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-row .value { font-weight: 600; }
.contact-row .value a:hover { color: var(--rose); }
.contact-hours { margin-top: 4px; }
.contact-hours .row2 { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; border-bottom: 1px dashed var(--line); max-width: 320px; }
.contact-hours .row2:last-child { border-bottom: 0; }
.contact-hours .row2 span:first-child { color: var(--muted); }
.contact-hours .row2 span:last-child { font-weight: 600; }
.contact-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 460px;
  border: 6px solid #fff;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 448px; border: 0; }

/* ---------------------------- Footer ------------------------------- */
.site-footer {
  background: #2b2325;
  color: rgba(255,255,255,.72);
  padding: 60px 0 30px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand .brand-sub { color: rgba(255,255,255,.55); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .92rem; }
.footer-contact a:hover { color: var(--rose-soft); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: var(--rose-soft); }

/* --------------------------- Reveal anim --------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------- Responsive --------------------------- */
@media (max-width: 992px) {
  .cards-3 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card:nth-child(2) { border-right: 0; }
  .info-card:nth-child(1), .info-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-frame { min-height: 360px; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    transform: translateY(-140%);
    transition: transform .35s ease;
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  .nav-open .nav { transform: translateY(0); }
  .nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-link::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: flex; }
  .hero-inner { padding: 90px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .info-card:last-child { border-bottom: 0; }
  .brand-sub { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
