/* =====================================================
   Ludovico Passarelli Pula — Osteopata D.O.
   Palette monocromatica dal brand (vetrata):
   #DEDEDE / #CFCFCF (grigi chiari), #4A4A4A (antracite),
   #010203 (quasi nero)
   ===================================================== */

:root {
  --gray-050: #f7f7f7;
  --gray-100: #ededed;
  --gray-200: #dedede;   /* brand: 13% K */
  --gray-300: #cfcfcf;   /* brand: 19% K */
  --gray-500: #8a8a8a;
  --gray-700: #4a4a4a;   /* brand: 71% K */
  --gray-900: #1c1c1e;
  --ink:      #010203;   /* brand: quasi nero */
  --white:    #ffffff;

  --font: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 2, 3, 0.08);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  overflow-x: clip;
  font-family: var(--font);
  font-weight: 400;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Tipografia ---------- */

h1, h2, h3 { color: var(--gray-900); line-height: 1.15; }

.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-lead { max-width: 640px; margin-inline: auto; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-dark { background: var(--gray-900); color: var(--white); }
.btn-dark:hover { background: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-ghost:hover { border-color: var(--gray-700); }

.btn-light { background: var(--white); color: var(--gray-900); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { border-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 54px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover { color: var(--ink); }

.btn-nav { padding: 10px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--gray-050) 0%, var(--white) 100%);
}

/* Foto studio full width: min-height segue le proporzioni
   dell'immagine (1891x832), così l'altezza non viene mai tagliata;
   se il testo è più alto della foto (smartphone) il box cresce */
.hero-photo {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vw * 832 / 1891);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/foto-studio-hero.jpg") center / cover no-repeat;
}

/* Smartphone: foto verticale dedicata (941x1672) */
@media (max-width: 600px) {
  .hero-photo {
    min-height: calc(100vw * 1672 / 941);
  }

  .hero-photo::before {
    background-image: url("../img/foto-studio-hero-mobile.jpg");
  }
}

/* Velo chiaro per la leggibilità del testo */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.82) 55%,
    rgba(255, 255, 255, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: 96px;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.85rem, 5.2vw + 0.6rem, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Striscia info */

.hero-strip {
  background: var(--gray-900);
  color: var(--gray-200);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 22px;
}

.strip-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.strip-value { font-size: 0.92rem; font-weight: 500; color: var(--white); }

/* ---------- Sezioni ---------- */

.section { padding-block: 96px; }

.section-alt { background: var(--gray-050); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.grid-2 p + p { margin-top: 16px; }

/* ---------- Chi sono: credenziali ---------- */

.cred-list { list-style: none; }

.cred-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cred-list li:first-child { padding-top: 0; }

.cred-title {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.cred-text { font-size: 0.95rem; }

/* ---------- Trattamenti ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p { font-size: 0.94rem; }

/* ---------- Approccio ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.step {
  border-top: 2px solid var(--gray-200);
  padding-top: 22px;
}

.step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }

.step p { font-size: 0.95rem; }

/* ---------- CTA ---------- */

.cta-band {
  background: var(--gray-900);
  color: var(--gray-200);
  padding-block: 84px;
}

.cta-inner { text-align: center; }

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.cta-band p { margin-bottom: 30px; }

.cta-band .hero-actions { justify-content: center; }

/* ---------- Contatti ---------- */

.contact-list { list-style: none; }

.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-list li:first-child { padding-top: 0; }

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-list a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-900);
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; }

.hours-card {
  background: var(--gray-050);
  border-radius: var(--radius);
  padding: 34px;
}

.hours-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 18px; }

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.98rem;
  vertical-align: top;
}

.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:first-child { font-weight: 600; color: var(--gray-900); }

.hours-table td:last-child { text-align: right; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--gray-300);
  padding-block: 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: auto;
  height: 64px;
}

.footer-meta {
  font-size: 0.85rem;
  line-height: 1.9;
  text-align: right;
}

/* ---------- Pagine legali ---------- */

.legal-container { max-width: 780px; }

.legal-page h1 { margin-bottom: 8px; }

.legal-updated {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal-page h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal-page p + p { margin-top: 12px; }

.legal-page ul {
  margin: 12px 0 12px 22px;
}

.legal-page li { margin-bottom: 8px; }

.legal-page a { color: var(--gray-900); }

.legal-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.legal-nav { gap: 0; }

.footer-meta a { color: var(--gray-300); }

/* ---------- Toast cookie ---------- */

.cookie-toast {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 680px;
  margin-inline: auto;
  padding: 18px 22px;
  background: var(--gray-900);
  color: var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(1, 2, 3, 0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-toast.is-shown {
  opacity: 1;
  transform: none;
}

.cookie-toast-text {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-toast-text strong { color: var(--white); }

.cookie-toast-text a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-toast-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-900);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cookie-toast-btn:hover { transform: translateY(-1px); }

@media (max-width: 600px) {
  .cookie-toast {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-toast { transition: none; transform: none; }
}

/* ---------- Animazioni reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { padding-block: 72px; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  .brand-logo { height: 46px; }
  .header-inner { gap: 12px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 12px 24px 20px;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav.legal-nav {
    display: flex;
    position: static;
    flex-direction: row;
    border: none;
    padding: 0;
    background: transparent;
  }

  .site-nav a:not(.btn) { padding: 10px 0; font-size: 1rem; }

  .btn-nav { margin-top: 10px; }

  .section { padding-block: 72px; }
}
