/* ==========================================================================
   Sito Dott.ssa Carola Scalzone — Biologa Nutrizionista
   Design tokens dal design handoff (alta fedeltà)
   ========================================================================== */

:root {
  /* Colori */
  --bg: #f6f9fc;
  --band-white: #ffffff;
  --band-blue: #eaf2f8;
  --deco: #dce9f4;
  --ink: #16324b;
  --footer-bg: #102538;
  --primary: #2a4a68;
  --primary-hover: #16324b;
  --text-body: #41566b;
  --text-muted: #5a7085;
  --text-faint: #7d92a6;
  --accent: #7ba2c4;
  --accent-on-dark: #8fb4d4;
  --border-header: #dde8f1;
  --border-card: #e3edf5;
  --border-btn: #b9cfe2;
  --border-on-dark: #4d6b86;
  --stars: #c9a24b;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fba58;
  --whatsapp-text: #0b2b17;

  /* Tipografia */
  --font-heading: 'Marcellus', serif;
  --font-body: 'Karla', sans-serif;
  --font-script: 'Great Vibes', cursive;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
}

/* Le ancore non finiscono sotto l'header sticky */
section[id] {
  scroll-margin-top: 80px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Componenti condivisi
   -------------------------------------------------------------------------- */

.kicker {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--bg);
}

.btn-outline {
  border: 1.5px solid var(--border-btn);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-header);
}

.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-cta {
  color: var(--bg);
  background: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
  margin: -8px 0;
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--bg);
}

/* Header compatto su schermi stretti: brand e nav su due righe ordinate */
@media (max-width: 800px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: 16px;
    white-space: nowrap;
  }

  .site-nav {
    justify-content: center;
    row-gap: 10px;
    column-gap: 16px;
    font-size: 13px;
  }

  .nav-cta {
    margin: 0;
    padding: 7px 14px;
  }

  section[id] {
    scroll-margin-top: 130px;
  }
}

@media (max-width: 360px) {
  .brand span {
    font-size: 14px;
  }
}

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

.hero {
  padding-top: clamp(40px, 7vw, 90px);
  padding-bottom: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-copy .kicker {
  font-size: clamp(30px, 4vw, 42px);
}

.hero-copy p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
  max-width: 52ch;
}

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

.hero-photo {
  position: relative;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 24px -16px -16px 24px;
  background: var(--deco);
  border-radius: 24px;
}

.hero-photo img {
  position: relative;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  display: block;
  box-shadow: 0 20px 50px rgba(22, 50, 75, 0.18);
}

/* --------------------------------------------------------------------------
   Chi sono
   -------------------------------------------------------------------------- */

.about {
  background: var(--band-white);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.about .container {
  max-width: 900px;
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(48px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  align-items: center;
}

.about p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
  max-width: 64ch;
}

.stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Servizi
   -------------------------------------------------------------------------- */

.services {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(48px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--band-white);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.service-card:hover {
  border-color: var(--border-btn);
  box-shadow: 0 10px 30px rgba(22, 50, 75, 0.08);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Recensioni
   -------------------------------------------------------------------------- */

.reviews {
  background: var(--band-blue);
}

.reviews .container {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(48px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.review-card {
  background: var(--band-white);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(22, 50, 75, 0.06);
}

.review-stars {
  color: var(--stars);
  font-size: 15px;
  letter-spacing: 3px;
}

.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  font-style: italic;
  margin: 0;
}

.review-author {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Dove ricevo
   -------------------------------------------------------------------------- */

.location {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(48px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.location-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

.location-copy .btn {
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 14px;
}

.location iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(22, 50, 75, 0.1);
}

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

.contact {
  background: var(--ink);
}

.contact .container {
  max-width: 900px;
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  text-align: center;
  align-items: center;
}

.contact .kicker {
  font-size: 36px;
  color: var(--accent-on-dark);
}

.contact h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--bg);
}

.contact p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--border-btn);
  margin: 0;
  max-width: 52ch;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-actions .btn {
  letter-spacing: 0.02em;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-text);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: var(--whatsapp-text);
}

.btn-email {
  background: var(--bg);
  color: var(--ink);
}

.btn-email:hover {
  background: var(--deco);
  color: var(--ink);
}

.btn-instagram {
  border: 1.5px solid var(--border-on-dark);
  color: var(--bg);
}

.btn-instagram:hover {
  border-color: var(--accent-on-dark);
  color: var(--bg);
}

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

.site-footer {
  background: var(--footer-bg);
}

.site-footer .container {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-heading);
  color: var(--accent-on-dark);
  font-size: 15px;
}

.footer-info {
  color: var(--border-on-dark);
  font-size: 13px;
}
