/* =========================================================
   Lolli Pilates — Foglio di stile principale
   Brand: terracotta / crema / marrone scuro
   Mobile-first, responsive
   ========================================================= */

:root {
  --terracotta: #c0512f;
  --terracotta-dark: #a8401f;
  --cream: #eae5dc;
  --cream-soft: #f3efe8;
  --brown: #2a140f;
  --brown-soft: #3a201a;
  --text-dark: #2a140f;
  --text-light: #f3efe8;
  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(42, 20, 15, 0.12);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--terracotta);
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}
.container--narrow { max-width: 720px; }
.container--narrow h2 { margin-top: 1.6em; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

/* ---------- Header / Navigation ---------- */
/* Header "a pillola" flottante (coerente su tutte le pagine interne) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  padding: 14px 16px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  background: var(--cream);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(42, 20, 15, 0.12);
  transition: box-shadow 0.2s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--terracotta);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px;
  font-size: 0;
  color: transparent;
  background: url("../img/logo_lolli.png") no-repeat center / contain;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 600;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--terracotta);
  transition: 0.25s;
}

.nav__links {
  list-style: none;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--cream);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(42, 20, 15, 0.18);
}
.nav__links.is-open { display: flex; }
.nav__links li { width: 100%; }
.nav__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.82rem;
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--terracotta);
  color: var(--cream);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 2px solid var(--terracotta);
  cursor: pointer;
  transition: 0.2s;
}
.btn--primary { background: var(--terracotta); color: var(--cream); }
.btn--primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--terracotta); }
.btn--ghost:hover { background: var(--terracotta); color: var(--cream); text-decoration: none; }
.btn--light { background: #fff; color: var(--terracotta); border-color: #fff; }
.btn--light:hover { background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.18); text-decoration: none; }
.btn--whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; border-color: #25d366;
}
.btn--whatsapp:hover { background: #1ebe57; border-color: #1ebe57; color: #fff; text-decoration: none; }
.btn--whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 78vh;
}
.hero__intro {
  background: var(--terracotta);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
}
.hero__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 5rem);
  letter-spacing: 6px;
  line-height: 0.95;
  color: var(--cream);
  margin: 0;
}
.hero__logo span {
  display: block;
  font-size: 0.3em;
  letter-spacing: 14px;
  margin-top: 6px;
}
.hero__tagline {
  margin-top: 18px;
  font-size: 1.15rem;
  max-width: 30ch;
}
.hero__cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__media {
  position: relative;
  overflow: hidden;
  background-color: var(--brown);
  background-image:
    radial-gradient(120% 90% at 80% 10%, rgba(192,81,47,0.35), transparent 60%),
    linear-gradient(160deg, #3a201a 0%, #2a140f 60%, #1f0d09 100%);
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
/* Pulsante "guarda il video" (facade) */
.hero__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(243,239,232,0.92);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: transform 0.18s ease, background 0.2s ease;
}
.hero__play:hover { transform: translate(-50%, -50%) scale(1.04); background: #fff; }
.hero__play-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--terracotta);
  position: relative;
}
.hero__play-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--cream);
}
.hero__video, .hero__preview {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.hero__preview { z-index: 0; }
.hero__media .media-band__caption { z-index: 1; }

.hero__logo, .hero__tagline, .hero__cta { opacity: 0; transform: translateY(16px); animation: heroIn 0.7s ease forwards; }
.hero__tagline { animation-delay: 0.12s; }
.hero__cta { animation-delay: 0.24s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Generic content blocks ---------- */
.lead { font-size: 1.2rem; }
.block-dark {
  background: var(--brown);
  color: var(--text-light);
}
.block-dark h1, .block-dark h2, .block-dark h3 { color: var(--terracotta); }
.block-terracotta {
  background: var(--terracotta);
  color: var(--cream);
}
.block-terracotta h1, .block-terracotta h2, .block-terracotta h3 { color: var(--cream); }

.card {
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h1, .card h2, .card h3 { color: var(--terracotta); }
.card h2 { font-size: 1.5rem; }

.grid-2 { display: grid; gap: 28px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }

.list-clean { padding-left: 1.1em; margin: 0 0 1em; }
.list-clean li { margin-bottom: 0.5em; }

.figure-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
  font-size: 3rem;
  color: var(--terracotta);
}

/* ---------- Orari / Schedule ---------- */
.schedule { display: grid; gap: 18px; grid-template-columns: 1fr; }
.day {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.day h3 {
  font-family: var(--font-display);
  color: var(--brown);
  border-bottom: 1px solid rgba(42,20,15,0.1);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.day__cols { display: grid; gap: 18px; grid-template-columns: 1fr; }
.day__type { color: var(--terracotta); font-weight: 800; margin-bottom: 6px; letter-spacing: 0.5px; }
.day__slots { list-style: none; padding: 0; margin: 0; }
.day__slots li { padding: 3px 0; font-variant-numeric: tabular-nums; }
.day--closed { opacity: 0.75; }
.badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Tabella orari per giorno + chip tipo lezione ---------- */
.sched { width: 100%; border-collapse: collapse; }
.sched td {
  padding: 11px 0;
  border-bottom: 1px solid rgba(42, 20, 15, 0.10);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.sched tr:last-child td { border-bottom: 0; }
.sched td:last-child { text-align: right; }
.chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.chip--reformer { background: var(--terracotta); color: var(--cream); }
.chip--matwork { background: var(--brown); color: var(--cream); }
.chip--yoga { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(42,20,15,0.12);
  font-size: 1.15rem;
}
.contact-list .label { display:block; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }
.map-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 340px;
}
.qualicert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--brown);
  box-shadow: var(--shadow);
}

/* ---------- Tabella ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.specs {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 420px;
}
table.specs th, table.specs td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(42,20,15,0.1);
}
table.specs thead th {
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}
table.specs td { color: var(--text-dark); }
table.specs tbody th { color: var(--terracotta); font-weight: 800; white-space: nowrap; }
table.specs tbody tr:last-child td,
table.specs tbody tr:last-child th { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: var(--text-light);
  padding: 44px 0 28px;
  text-align: center;
}
.site-footer a { color: var(--cream); }
.footer__nap { font-size: 0.95rem; opacity: 0.9; margin-bottom: 10px; }
.footer__copy { font-size: 0.85rem; opacity: 0.6; margin-top: 18px; }

/* ---------- Responsive (tablet / desktop) ---------- */
@media (min-width: 760px) {
  .nav__toggle { display: none; }
  .nav__links {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }
  .nav__links a { padding: 0 20px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__media { min-height: 78vh; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .day__cols { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .schedule { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Restyle: rifiniture, hover e animazioni
   ========================================================= */

/* Header: ombra quando si scorre */
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(42,20,15,0.10); }

/* Titoli di sezione con piccolo filetto */
.section > .container > h1,
.section > .container > h2 { position: relative; }
.section > .container > h2::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.5;
}

/* Pulsanti: leggera elevazione */
.btn { transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.btn--primary:hover, .btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(42,20,15,0.18); }

/* Card e giorni: hover */
.card, .day { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover, .day:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(42,20,15,0.16); }

/* Brand mark: micro-interazione */
.brand__mark { transition: transform 0.2s ease; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }

/* Lead più arioso */
.lead { max-width: 62ch; }

/* Animazione di comparsa allo scroll (applicata via JS) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Rispetto delle preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__logo, .hero__tagline, .hero__cta { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Hero con video in alto + caption
   ========================================================= */
.media-band {
  position: relative;
  min-height: 70vh;
}
@media (min-width: 760px) {
  .media-band { min-height: 78vh; }
  .media-band .hero__cta { justify-content: flex-start; }
  .media-band .hero__cta .btn { flex: 0 0 auto; padding: 14px 28px; }
}
.media-band__caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(31,13,9,0.72) 0%, rgba(31,13,9,0) 28%,
    rgba(31,13,9,0) 58%, rgba(31,13,9,0.88) 100%);
}
.media-band__caption .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 22px;
}
.media-band__caption h1 {
  color: var(--cream);
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.media-band .hero__cta {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  pointer-events: auto;
}
.media-band .hero__cta .btn { flex: 1 1 0; padding: 14px 12px; text-align: center; }

/* =========================================================
   Divisore con le tre figure (motivo ricorrente)
   ========================================================= */
.cert-band {
  text-align: center;
  padding: 26px 0;
}
.cert-band__logo {
  width: clamp(150px, 40vw, 220px);
  height: auto;
  display: inline-block;
}

.divider {
  background: var(--brown);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(24px, 9vw, 90px);
  padding: 30px 20px;
}
.divider img { width: clamp(64px, 16vw, 100px); height: auto; display: block; }

/* =========================================================
   Più respiro e leggibilità per card e liste
   ========================================================= */
.card { padding: 36px; }
@media (min-width: 760px) { .card { padding: 42px; } }
.card .list-clean li,
.card ol.list-clean li { margin-bottom: 0.7em; }
.list-clean { line-height: 1.7; }
.list-clean li { margin-bottom: 0.7em; font-size: 1.02rem; }
.block-terracotta .list-clean li,
.block-dark .list-clean li { font-size: 1.05rem; }
.section { padding: 72px 0; }
.lead { font-size: 1.25rem; line-height: 1.6; }

/* Wordmark sopra il video in hero */
.caption-logo {
  font-family: var(--font-display);
  color: var(--cream);
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 6.4vw, 3.6rem);
  letter-spacing: 5px;
  line-height: 0.95;
}
.caption-logo span {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.3em;
  letter-spacing: 11px;
  margin-top: 6px;
}
.caption-h1 {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.3vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 24ch;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

/* Pulsante chiaro "fantasma" (su sfondo scuro/video) */
.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--terracotta); text-decoration: none; }

/* Badge QualiCert con logo */
.qualicert img { height: 56px; width: auto; display: block; border-radius: 6px; }

/* ---------- Banner consenso cookie ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 560px;
  margin: 0 auto;
  background: var(--cream-soft);
  color: var(--text-dark);
  border: 1px solid rgba(42, 20, 15, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner.is-hidden { transform: translateY(140%); opacity: 0; }
.cookie-banner__text {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
.cookie-banner__text a { color: var(--terracotta); }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-banner__btn { padding: 9px 20px; font-size: 0.92rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.2s ease; transform: none; }
  .cookie-banner.is-hidden { transform: none; }
}

/* ---------- Banner promo (offerta) ---------- */
.promo-band {
  background: var(--terracotta);
  background-image: linear-gradient(160deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  padding: 30px 0;
}
.promo-band .container { padding-left: 22px; padding-right: 22px; }
.promo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  background: var(--cream-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
}
.promo-card__text { flex: 1 1 260px; }
.promo-card__badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.promo-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--terracotta);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 6px;
}
.promo-card__title strong { color: var(--terracotta-dark); }
.promo-card__note { margin: 0; color: var(--text-dark); font-size: 0.98rem; }
.promo-card__cta { flex: 0 0 auto; }
.promo-card__cta .btn { white-space: nowrap; }

@media (max-width: 560px) {
  .promo-card { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  /* in colonna il flex-basis di 260px diventa altezza minima e lascia un vuoto sotto la nota */
  .promo-card__text { flex: 0 1 auto; }
  .promo-card__cta { width: 100%; }
  .promo-card__cta .btn { width: 100%; justify-content: center; }
}
