/* =========================================================
   Giuseppe Zizza — Analista OSM
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #FFF8EE;
  --sand: #FBEEDB;
  --white: #FFFFFF;
  --orange: #C45117;      /* bianco su arancio: 4.6:1 */
  --orange-dark: #9E3E0D; /* testo arancio su avorio/bianco: > 6:1 */
  --sun: #F6C445;
  --sun-soft: #FBE29C;
  --ink: #30261F;
  --ink-soft: #5B4A3D;    /* su avorio: > 8:1 */
  --line: rgba(48, 38, 31, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(48, 38, 31, 0.06), 0 10px 30px -12px rgba(48, 38, 31, 0.22);
  --header-h: 80px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* le ancore non finiscono sotto l'header fisso */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* "clip" non interferisce con position: sticky */
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.3rem + 4.2vw, 4.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem); line-height: 1.25; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

a { color: var(--orange-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

main:focus,
[tabindex="-1"]:focus { outline: none; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  border-radius: 3px;
  background: var(--sun);
  flex: none;
}
.eyebrow-light { color: var(--white); }

.lead {
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38em;
}

/* Evidenziatore giallo: sempre sotto testo scuro */
.mark {
  background: linear-gradient(transparent 58%, var(--sun-soft) 58%, var(--sun-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.08em;
}
h1 .mark { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 90%, transparent 90%); }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px -10px rgba(196, 81, 23, 0.7);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.0625rem; }

.text-link {
  display: inline;
  font-weight: 700;
  color: var(--orange-dark);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 3px;
}
.text-link:hover { color: var(--ink); }
.text-link-light { color: var(--white); }
.text-link-light:hover { color: var(--sun); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 248, 238, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(48, 38, 31, 0.5);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-logo { width: 96px; height: auto; flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  white-space: nowrap;
}
.brand-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.35rem 0;
  background: linear-gradient(var(--sun), var(--sun)) no-repeat left bottom / 0 3px;
  transition: background-size 0.2s var(--ease);
}
.nav-list a:hover { background-size: 100% 3px; }
.btn-header { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-list { gap: 1.1rem; }
  .site-nav { gap: 1.1rem; }
}

@media (max-width: 959px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 64px; }
  .brand-name { font-size: 1.025rem; }
  .brand-text { padding-left: 0.7rem; }
  .brand { gap: 0.7rem; }

  .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(48, 38, 31, 0.45);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .btn-header { width: 100%; min-height: 52px; font-size: 1rem; }

  /* Senza JavaScript il menu resta visibile sotto l'intestazione */
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav { width: 100%; flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  .brand-logo { width: 54px; }
  .brand-name { font-size: 0.95rem; }
  .brand-role { font-size: 0.75rem; }
  .menu-toggle-label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero::before { /* sole morbido */
  content: "";
  position: absolute;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  right: -14%;
  top: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 196, 69, 0.38), rgba(246, 196, 69, 0) 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-avatar { display: none; }
.hero-sub {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.microtext {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 30em;
}

.hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
}
.hero-photo::before { /* campitura gialla dietro la foto */
  content: "";
  position: absolute;
  inset: 8% -6% -5% 12%;
  background: var(--sun);
  border-radius: var(--radius-lg);
  transform: rotate(3deg);
}
.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #d9d6d2;
}
.photo-tag {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.2;
}
.photo-tag-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.photo-tag-role { font-size: 0.8125rem; font-weight: 600; color: var(--orange-dark); }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-eyebrow { gap: 0.85rem; line-height: 1.45; margin-bottom: 1.25rem; }
  .hero-eyebrow::before { display: none; }
  .hero-avatar {
    display: block;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--sun);
    object-fit: cover;
  }
  .hero .eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; }
  .hero-photo { justify-self: center; max-width: 460px; margin-top: 1rem; }
  .hero-photo::before { inset: 6% -3% -4% 8%; }
  .photo-tag { left: 1rem; bottom: 1rem; }
}

/* ---------- Sezioni ---------- */
.section {
  padding-block: var(--section-y);
}
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 46rem; }
.section-head h2 { margin-bottom: 0.5em; }

/* ---------- Ti riconosci ---------- */
.situations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
}
.situation {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.situation-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
}
.situation h3 { margin-bottom: 0.5em; }
.situation p { color: var(--ink-soft); margin: 0; }

.situations-close {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 54rem;
}
.situations-close .lead { color: var(--ink); margin-bottom: 1.25rem; }

@media (max-width: 699px) {
  .situations { grid-template-columns: 1fr; }
}

/* ---------- Chi sono ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo::before {
  content: "";
  position: absolute;
  inset: -1.25rem 2.5rem 2.5rem -1.25rem;
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.about-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% 25%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.prose p { max-width: 36em; }
.prose p:first-child { font-size: 1.125em; color: var(--ink); }

.promises {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.promises li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}
.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(246, 196, 69, 0.3);
}
.promises strong { color: var(--ink); }

.team-photo {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.team-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.team-photo figcaption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.075rem;
  color: var(--ink-soft);
}

@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; margin-inline: auto; width: 100%; }
  .about-photo img { aspect-ratio: 1 / 1; object-position: 62% 30%; }
  .team-photo img { aspect-ratio: 4 / 3; object-position: 35% 45%; }
}

/* ---------- Dove posso aiutarti ---------- */
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.areas { margin-bottom: 2.5rem; }
.area {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.area:last-child { border-bottom: 1px solid var(--line); }
.area h3 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  margin-bottom: 0.45em;
}
.area-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}
.area p { margin: 0 0 0.4rem; padding-left: 2.95rem; max-width: 34em; }
.area .area-q {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}
.help-photo {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.help-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 30% 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 899px) {
  .help-grid { grid-template-columns: 1fr; }
  .help-photo { position: static; order: -1; }
  .help-photo img { aspect-ratio: 4 / 3; object-position: 30% 25%; }
}
@media (max-width: 599px) {
  .hero-cta .btn,
  .help-main .btn { width: 100%; }
}
@media (max-width: 480px) {
  .area p { padding-left: 0; }
}

/* ---------- Il mio approccio ---------- */
.approach-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.approach-head .section-head { margin-bottom: 0; }
.approach-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 55% 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
}
.steps::before { /* linea che unisce i passaggi */
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 14px);
  opacity: 0.55;
}
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--sand);
}
.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--ink-soft); margin: 0; }

@media (max-width: 899px) {
  .approach-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 1.1rem;
    padding-bottom: 1.75rem;
  }
  .step::before { /* linea verticale */
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--orange) 0 8px, transparent 8px 14px);
    opacity: 0.55;
  }
  .step:last-child::before { display: none; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: center; margin-top: 0.6rem; }
}

/* ---------- Formazione gratuita (conversione) ---------- */
.section-cta {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(246, 196, 69, 0.28), transparent 45%),
    var(--orange);
  color: var(--white);
  overflow: hidden;
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.cta-text h2 { color: var(--white); font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
.cta-lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 30em; }
.checklist {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.0625rem;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330261F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(0.5rem, 2.5vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(48, 38, 31, 0.55);
  min-width: 0;
}

/* Contenitore del modulo GHL: l'iframe occupa tutta la larghezza disponibile */
.ghl-form {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 835px; /* riserva lo spazio mentre il modulo si carica */
}
.ghl-form iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 835px; /* altezza dichiarata dal modulo (data-height) */
  border: 0;
  border-radius: var(--radius);
}

/* Segnaposto neutro: da eliminare quando si inserisce l'embed */
.ghl-placeholder {
  display: grid;
  place-content: center;
  gap: 0.25rem;
  min-height: 360px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px dashed rgba(48, 38, 31, 0.25);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink-soft);
}
.ghl-placeholder p { margin: 0; max-width: 24em; }
.ghl-placeholder-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 899px) {
  .cta-grid { grid-template-columns: 1fr; }
  .ghl-placeholder { min-height: 260px; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330261F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
.faq summary:hover { color: var(--orange-dark); }
.faq-body { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); }
.faq-body p { margin: 0; }

@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img { width: 140px; height: auto; margin-bottom: 1.25rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}
.footer-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a, .legal-links a { color: rgba(255, 255, 255, 0.88); }
.footer-links a:hover, .legal-links a:hover { color: var(--sun); }
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.9rem;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.footer-bottom p { margin: 0; }
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer :focus-visible { outline-color: var(--sun); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-links address { font-style: normal; line-height: 1.5; }
.footer-links a { overflow-wrap: anywhere; }

/* Spazi da completare: visibili solo in anteprima (classe "anteprima" su <html>) */
.todo-slot { display: none; }
.anteprima .todo-slot {
  display: block;
  padding: 0.35rem 0.6rem;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Animazioni sobrie ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary:hover { transform: none; }
}

/* ---------- Pagine legali ---------- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 248, 238, 0.95);
  border-bottom: 1px solid var(--line);
}
.legal-header .header-inner { gap: 1rem; }
.legal-back { font-weight: 700; white-space: nowrap; }
.legal-main { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal-doc { max-width: 46rem; }
.legal-doc h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); }
.legal-doc h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); margin-top: 2.5rem; }
.legal-doc ul { padding-left: 1.25rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc address { font-style: normal; }
.legal-updated { color: var(--ink-soft); font-size: 0.95rem; }
.legal-box {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.legal-box p:last-child { margin-bottom: 0; }
@media (max-width: 520px) {
  .legal-header .brand-text { display: none; }
}
