/* ===== Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700;800&family=Mulish:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== Base ===== */
:root {
  /* Neutri caldi (leggermente virati verso l'arancione, non grigio freddo) */
  --ink:        #2a2320;
  --muted:      #6f645b;
  --line:       #ece2d6;
  --bg:         #faf6f0;
  --bg-2:       #fffdfa;
  --card:       #ffffff;

  /* Arancione del marchio (invariato) */
  --brand:      #c94f00;
  --brand-600:  #a84200;
  --brand-soft: #fff2e6;

  /* Secondo accento — petrolio/teal (si lega al mondo Studio Facilitato) */
  --teal:       #0e6b68;
  --teal-700:   #0a5250;
  --teal-soft:  #e6f2f1;

  --radius:     16px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(42,35,32,.05);
  --shadow-md:  0 10px 30px -12px rgba(42,35,32,.18);
}

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

img { max-width: 100%; }

button,
input,
select,
textarea { font: inherit; }

html { height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3,
.eyebrow, .btn, .main-nav a, .stat-num, .step .num, .brand-text strong {
  font-family: "Lexend", system-ui, sans-serif;
  letter-spacing: -.01em;
}

.wrap {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(38px, 6vw, 64px) 0;
}

.section > h2 {
  margin-bottom: 10px;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.18;
  font-weight: 700;
  text-wrap: balance;
}

h1, h2, h3 { scroll-margin-top: 110px; }

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.muted { color: var(--muted); }

.center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* Occhiello: ora una "pillola" teal */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
  background: var(--teal-soft);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,240,.85);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.logo {
  width: 168px;
  height: auto;
  display: block;
}

.menu-toggle { display: none; }

.main-nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.main-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-600);
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.main-nav a:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
.cookie-btn:focus-visible,
.cookie-link:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(14, 107, 104, .4);
  outline-offset: 3px;
}

/* ===== Hero pagine interne (centrato) ===== */
.hero-simple {
  text-align: center;
  max-width: 900px;
}

.hero-simple .eyebrow { margin-inline: auto; }

.hero-simple h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-simple .lead {
  margin-inline: auto;
}

.single-action {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Striscia di fiducia centrata negli hero interni */
.hero-simple .trust {
  justify-content: center;
  max-width: 680px;
  margin-inline: auto;
}

/* ===== Hero home (allineato a sinistra, editoriale) ===== */
.hero {
  padding: clamp(44px, 8vw, 80px) 0 clamp(28px, 5vw, 48px);
}

.hero-inner { max-width: 760px; }

.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 18px;
}

.hero h1 .hl { color: var(--brand); }

.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 640px;
  margin-bottom: 26px;
}

/* Striscia di fiducia */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--muted);
  font-weight: 600;
}

.trust span::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  background: var(--teal);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== Bottoni ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 23px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.btn svg { width: 19px; height: 19px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.btn-ghost .ph { color: var(--teal); }

.btn-white { background: #fff; color: var(--teal-700); }
.btn-white:hover { background: #eafaf9; transform: translateY(-2px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .6;
  transform: none;
  box-shadow: none;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.three-columns {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #ddd0c0;
}

.card h2,
.card h3 {
  margin-bottom: 10px;
  font-weight: 700;
}

.card h3 { font-size: 1.28rem; }

.card p + p { margin-top: 10px; }

.card a {
  color: var(--brand);
  font-weight: 700;
}

.card a:hover { text-decoration-thickness: 2px; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.card-icon.orange { background: var(--brand-soft); }
.card-icon.teal { background: var(--teal-soft); }

.card .more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: none;
}

.card .more:hover { text-decoration: underline; }

.bullets {
  margin: 14px 0 0;
  padding-left: 1.1rem;
}

.bullets li { margin: 6px 0; }

.soft-box {
  background: linear-gradient(135deg, #ffffff, var(--brand-soft));
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  border-color: #f3d9c2;
}

.soft-box .bullets {
  text-align: left;
  max-width: 620px;
  margin-inline: auto;
  margin-top: 16px;
}

.steps-clean {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 720px;
  margin-inline: auto;
}

.contact-box {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.contact-box a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

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

/* ===== Intestazione di sezione (home) ===== */
.section-head {
  max-width: 640px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  text-wrap: balance;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Fascia "Ciao, sono Chiara" ===== */
.about {
  background: linear-gradient(120deg, var(--teal-soft), #f3faf9);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
}

.avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, var(--teal), #14938f);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Lexend", sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  box-shadow: 0 12px 28px -10px rgba(14,107,104,.5);
  border: 4px solid #fff;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.about-text p {
  color: #47504e;
  max-width: 640px;
}

.about-text .sign {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  color: var(--teal-700);
  margin-top: 10px;
  font-size: 1.05rem;
}

/* ===== Come funziona (a step numerati) ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.step .num {
  font-weight: 800;
  font-size: 1.05rem;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: .92rem;
}

/* ===== CTA finale ===== */
.cta-band {
  background: var(--teal-700);
  color: #fff;
  border-radius: 26px;
  padding: clamp(34px, 5vw, 52px);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-wrap: balance;
}

.cta-band p {
  color: #cfe8e6;
  max-width: 520px;
  margin: 0 auto 26px;
  font-size: 1.08rem;
}

.cta-band .single-action { justify-content: center; margin-top: 0; }

.cta-band .btn-primary { background: var(--brand); }
.cta-band .btn-primary:hover { background: #e2711d; }

/* ===== Pagine legali ===== */
.legal-page { max-width: 900px; }

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

.legal-card { margin-top: 18px; }

.legal-card h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.legal-card p { margin-bottom: 10px; }

.legal-card a,
.site-footer a {
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 700;
}

.legal-card a:hover,
.site-footer a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  padding: 30px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}

/* ===== Reveal al caricamento ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.rise { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
.rise.d1 { animation-delay: .07s; }
.rise.d2 { animation-delay: .14s; }
.rise.d3 { animation-delay: .21s; }

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .logo { width: 138px; }

  .menu-toggle {
    display: block;
    background: var(--brand);
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    font-weight: 800;
    cursor: pointer;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  body.menu-open .main-nav { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .two-columns,
  .three-columns,
  .steps {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .about-text p { margin-inline: auto; }

  .btn { width: 100%; justify-content: center; }
}

@media (min-width: 561px) and (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner__content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-link {
  text-decoration: none;
  color: var(--teal-700);
  font-weight: 600;
}

.cookie-link:hover { text-decoration: underline; }

.cookie-btn {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.cookie-btn:hover { opacity: 0.92; }

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .cookie-banner__content p { font-size: 14px; }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn,
  .cookie-link { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .rise { animation: none; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
