/* ============================================================
   ALI GAADOUDI — HEADER + SECTIONS + FOOTER
   Carica DOPO styles.css.
============================================================ */

:root {
  --cream:      #FBF7F4;
  --cream-line: #EFE7E0;

  --rose-deep:   #8A5459;
  --clay-deep:   #6F4A2F;
  --orange-deep: #C4600F;
  --rose-tint:   rgba(175, 119, 124, .10);
  --clay-tint:   rgba(139, 94, 60, .10);

  --nav-h: 80px;
}

/* ============================================================
   FIX CRITICO — l'header non deve MAI coprire la pagina
   Il menu mobile era nel flusso: da chiuso restava invisibile
   ma occupava ~500px di altezza dentro l'header fixed,
   creando una lastra trasparente che rubava tutti i click.
============================================================ */

/* l'header fixed è trasparente al mouse... */
.site-header { pointer-events: none; }

/* ...tranne le sue parti reali */
.nav-shell,
.sheet { pointer-events: auto; }

/* il container dell'header non deve occupare spazio proprio */
.site-header > .container {
  position: relative;
  max-width: 1400px;
  pointer-events: none;
}

/* il menu mobile esce dal flusso: appeso sotto al pill */
.sheet {
  position: absolute;
  top: calc(100% + .5rem);
  left: var(--gutter);
  right: var(--gutter);
  margin-top: 0;
  z-index: 90;
}

/* su desktop non esiste proprio */
@media (min-width: 1401px) {
  .sheet { display: none; }
}

/* ============================================================
   Nessun layer decorativo può rubare il click
============================================================ */
.hero::before,
.section-orange::before,
.section-dark::before,
.section-rose::before,
.contact-panel::before,
.footer::before {
  pointer-events: none !important;
}

a, button, .btn {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* HERO — contenuto sopra al gradiente */
.hero-inner    { position: relative; z-index: 2; }
.hero-content  { position: relative; z-index: 3; }
.hero-cta      { position: relative; z-index: 4; }
.scroll-hint   { pointer-events: none; z-index: 1; }

/* ============================================================
   NAVBAR — griglia [brand] [menu] [azioni]
============================================================ */
.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  height: var(--nav-h);
  padding: 0 1rem;
  overflow: visible;
  /* la barra resta sopra al velo del menu mobile (logo e X sempre nitidi) */
  position: relative;
  z-index: 95;
}

.brand { flex: none; min-width: 0; gap: .875rem; position: relative; }
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(6, 20, 40, .22);
  transition: width .45s var(--ease), height .45s var(--ease);
}
.site-header.scrolled .brand-mark { width: 46px; height: 46px; }

.brand-text { white-space: nowrap; min-width: 0; }
.brand-name { font-size: .9375rem; line-height: 1.15; }
/* Il ruolo professionale è stato tolto dall'header a ogni larghezza:
   andava su due righe e affollava la barra, rubando spazio al menu.
   Il testo resta nel markup (compare comunque nell'hero, in About e nei
   dati strutturati), quindi per rimetterlo basta riportare display: block. */
.brand-role { display: none; font-size: .75rem; letter-spacing: .04em; line-height: 1.2; }

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: .125rem;
  min-width: 0;
}
.nav a {
  padding: .5rem .6875rem;
  font-size: .8125rem;
  white-space: nowrap;
}

.nav-actions { display: flex; align-items: center; justify-self: end; flex: none; }

.nav-cta {
  height: 44px;
  padding-inline: 1.375rem;
  font-size: .8125rem;
  line-height: 1;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease),
              box-shadow .35s var(--ease), transform .35s var(--ease);
}
.nav-cta:hover,
.nav-cta:focus-visible,
.site-header.scrolled .nav-cta:hover,
.site-header.scrolled .nav-cta:focus-visible {
  background: var(--orange);
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(255, 145, 77, .40);
  transform: translateY(-2px);
}
.nav-cta:active,
.site-header.scrolled .nav-cta:active {
  background: #F0762B;
  color: var(--navy-900);
  transform: translateY(0);
}

/* Soglia del menu esteso: era 1400px, molto prudente — i portatili da
   1366px e 1280px, tra i formati più diffusi, vedevano l'hamburger come
   fossero telefoni. Le sette voci occupano 497px, quindi entrerebbero
   fino a ~1050px, ma a quelle larghezze il nome di Ali finisce troppo
   vicino alla prima voce del menu: la soglia è fissata a 1200px, dove
   restano oltre 140px di respiro per lato. Sotto, resta l'hamburger. */
@media (max-width: 1200px) {
  .nav              { display: none; }
  .nav-actions .btn { display: none; }
  .burger           { display: flex; }
  .nav-shell        { grid-template-columns: auto 1fr auto; }
}

/* ============================================================
   Sezioni — sfondi (glow nel background, niente pseudo-layer)
============================================================ */
.section {
  position: relative;
  padding-block: clamp(7.5rem, 11vw, 9.5rem);
  background: var(--white);
}
.section-cream { background: var(--cream); }

.section-orange {
  overflow: hidden;
  background: var(--orange);
}
.section-orange::before { content: none; }

.section-dark {
  overflow: hidden;
  background: var(--navy-900);
}
.section-dark::before { content: none; }

.section-rose {
  overflow: hidden;
  background: var(--rose);
}

/* ============================================================
   Quadrettatura tecnica — solo sulle sezioni con classe .grid-tex
============================================================ */
/* niente overflow:hidden qui — romperebbe gli elementi "sticky" (es. il
   riquadro profilo dei casi studio). La griglia è già contenuta dal suo inset. */
.grid-tex,
.page-hero,
.article-hero,
.section-dark { position: relative; }

.grid-tex::after,
.page-hero::after,
.article-hero::after,
.section-dark::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(118% 100% at 100% 0, #000 22%, transparent 68%);
  mask-image: radial-gradient(118% 100% at 100% 0, #000 22%, transparent 68%);
}
/* variante per sezioni chiare */
.grid-tex.on-light::after {
  background-image:
    linear-gradient(rgba(11, 31, 64, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 64, .05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(110% 100% at 0 0, #000 18%, transparent 62%);
  mask-image: radial-gradient(110% 100% at 0 0, #000 18%, transparent 62%);
}
/* il contenuto resta sopra alla griglia */
.grid-tex > .container,
.page-hero > .container,
.section-dark > .container { position: relative; z-index: 1; }
.section-rose::before { content: none; }

/* ============================================================
   Tipografia di sezione
============================================================ */
.label {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.section-dark   .label { color: var(--orange); }
.section-rose   .label { color: rgba(255, 255, 255, .78); }
.section-orange .label { color: rgba(255, 255, 255, .82); }

.section h2 { font-size: var(--fs-h2); }

.section .body {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-body);
}
.section .body strong { color: var(--text); font-weight: 600; }

.section-dark h2, .section-rose h2, .section-orange h2 { color: var(--white); }
.section-dark .body, .section-rose .body { color: rgba(255, 255, 255, .80); }
.section-dark .body strong, .section-rose .body strong { color: var(--white); }

.section-orange h2    { text-shadow: 0 2px 24px rgba(120, 52, 8, .35); }
.section-orange .body {
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 16px rgba(120, 52, 8, .30);
}
.section-orange .body strong { color: var(--white); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}

/* ============================================================
   Layout & primitives
============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}
.split-copy { max-width: 34rem; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy  { order: 1; }

.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-lg);
}
.media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.media-portrait { aspect-ratio: 4 / 5; }

.media-tag {
  position: absolute;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-sm);
  pointer-events: none;
}
.media-tag b    { display: block; font-size: .9375rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.media-tag span { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  transition: gap .35s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: .625rem; color: var(--orange-deep); }
.section-dark .link-arrow, .section-rose .link-arrow { color: var(--white); }
.section-dark .link-arrow:hover { color: var(--orange); }

.cta-row    { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }
.cta-center { justify-content: center; margin-top: 3.5rem; }

.section-dark .btn-primary,
.section-rose .btn-primary,
.section-orange .btn-primary {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 12px 34px rgba(120, 52, 8, .30);
}
/* hover ben visibile: su arancione e rosa il pulsante vira al navy */
.section-rose .btn-primary:hover,
.section-orange .btn-primary:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(11, 31, 64, .38);
}
/* su fondo scuro il navy non si vedrebbe: vira all'arancione della palette */
.section-dark .btn-primary:hover {
  background: var(--orange);
  color: var(--navy-900);
  box-shadow: 0 18px 44px rgba(255, 145, 77, .30);
}

/* Stats (About) */
.stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.stats div { display: flex; flex-direction: column; line-height: 1.35; position: relative; padding-left: .875rem; }
.stats div::before {
  content: "";
  position: absolute; left: 0; top: .25rem; bottom: .25rem;
  width: 2px; border-radius: 2px;
  background: var(--clay);
  pointer-events: none;
}
.stats div:nth-child(2)::before { background: var(--orange); }
.stats div:nth-child(3)::before { background: var(--rose); }
.stats b    { font-size: 1.25rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.stats span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ============================================================
   SERVICES — card bianche su arancio
============================================================ */
/* la griglia servizi va più larga del testo di intro per card meno alte */
#services .container { max-width: 1320px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service {
  display: flex; flex-direction: column;
  padding: 2rem 2rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px -24px rgba(120, 52, 8, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 44px 90px -24px rgba(120, 52, 8, .58); }

.service-media {
  aspect-ratio: 16 / 9;
  margin: -.5rem -.5rem 1.5rem;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.service h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; color: var(--text); }
.service p  { margin-top: .625rem; font-size: var(--fs-sm); line-height: 1.7; color: var(--text-body); }

.service-steps { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: 1.5rem; }
.service-steps li {
  padding: .3125rem .6875rem;
  border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 500;
  white-space: nowrap;
  text-transform: capitalize;
  background: rgba(11, 31, 64, .06);
  border: 1px solid rgba(11, 31, 64, .10);
  color: var(--navy);
}

.service .link-arrow { margin-top: auto; padding-top: 1.75rem; color: var(--navy); }
.service .link-arrow:hover { color: var(--orange-deep); }

/* ============================================================
   APPROACH — navy
============================================================ */
/* riquadro trasparente di default; si "riempie" al passaggio del mouse */
.method {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .35);
  transition: background .45s var(--ease), border-color .45s var(--ease),
              box-shadow .45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .method:hover {
    background: rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45);
  }
}
/* touch (tablet/smartphone): l'hover non esiste, quindi resta sempre pieno */
@media (hover: none) {
  .method {
    background: rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45);
  }
}
.method li { display: flex; align-items: flex-start; gap: 1.125rem; padding: 1.25rem .5rem; }
.method li + li { border-top: 1px solid rgba(255, 255, 255, .12); }

.method .num {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm);
  font-size: .8125rem; font-weight: 600;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .20);
  color: var(--white);
}
.method li:nth-child(2) .num { background: var(--orange); border-color: transparent; color: var(--navy-900); }
.method li:nth-child(3) .num { background: var(--rose);   border-color: transparent; color: var(--white); }
.method li:nth-child(4) .num { background: var(--clay);   border-color: transparent; color: var(--white); }

.method b    { display: block; font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.45; }
.method span { display: block; margin-top: .1875rem; font-size: var(--fs-sm); line-height: 1.6; color: rgba(255, 255, 255, .72); }

.quote {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--orange);
  font-size: 1.125rem; font-style: italic; line-height: 1.6;
  color: var(--white);
}
.quote cite {
  display: block; margin-top: .625rem;
  font-size: var(--fs-xs); font-style: normal;
  color: rgba(255, 255, 255, .58);
}

/* ============================================================
   SUCCESS STORIES — rosa
============================================================ */
.stories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.story {
  display: flex; flex-direction: column;
  padding: 2.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 24px 60px -20px rgba(70, 38, 42, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.story:hover { transform: translateY(-4px); box-shadow: 0 34px 80px -20px rgba(70, 38, 42, .55); }

.story-mark { margin-bottom: 1rem; font-size: 2.75rem; font-weight: 700; line-height: 1; color: var(--rose); }
.story blockquote { font-size: 1.1875rem; line-height: 1.6; letter-spacing: -0.018em; color: var(--text); }

.story-meta { display: flex; align-items: center; gap: .875rem; margin-top: auto; padding-top: 2rem; }
.story-avatar {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%; object-fit: cover;
  background: var(--cream);
}
.story-meta b    { display: block; font-size: .9375rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.story-meta span { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }

.story-result {
  margin-left: auto;
  padding: .375rem .8125rem;
  border-radius: var(--r-pill);
  background: var(--rose-tint);
  font-size: .75rem; font-weight: 600;
  color: var(--rose-deep);
  white-space: nowrap;
}

/* Teaser dei casi studio reali (home) */
.story-cat {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: .375rem .8125rem;
  border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(11, 31, 64, .06); color: var(--navy);
}
.story-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--text); }
.story-summary { margin-top: .875rem; font-size: 1rem; line-height: 1.65; color: var(--text-body); }
.story-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.75rem; }
.story-foot .story-result { margin-left: 0; }
.story-foot .link-arrow { margin-left: auto; color: var(--navy); }
.story-foot .link-arrow:hover { color: var(--orange-deep); }

/* ============================================================
   BLOG — bianco
============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.post {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-media img { transform: scale(1.04); }

.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.post-tag {
  align-self: flex-start;
  margin-bottom: .875rem;
  padding: .25rem .6875rem;
  border-radius: var(--r-pill);
  background: var(--clay-tint);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--clay-deep);
}
.post:nth-child(2) .post-tag { background: rgba(255, 145, 77, .16); color: var(--orange-deep); }
.post:nth-child(3) .post-tag { background: var(--rose-tint);        color: var(--rose-deep); }

.post h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.02em; }
.post p  { margin-top: .625rem; font-size: var(--fs-sm); line-height: 1.65; color: var(--text-body); }
.post .link-arrow { margin-top: auto; padding-top: 1.5rem; }

/* ============================================================
   CONTACT — pannello arancio
============================================================ */
.contact { padding-block: clamp(5rem, 8vw, 7rem); background: var(--white); }

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.75rem, 5vw, 5rem);
  border-radius: var(--r-xl);
  text-align: center;
  background:
    radial-gradient(680px 420px at 50% 0%,   rgba(255, 255, 255, .22), transparent 62%),
    radial-gradient(560px 400px at 92% 100%, rgba(139, 94, 60, .30),   transparent 60%),
    linear-gradient(150deg, #FF9A5A 0%, #F0762B 52%, #D96716 100%);
  box-shadow: 0 40px 100px -24px rgba(217, 103, 22, .45);
}
.contact-panel::before { content: none; }

.contact-panel .label { margin-bottom: 1rem; color: rgba(255, 255, 255, .82); }
.contact-panel h2 {
  max-width: 18ch;
  margin-inline: auto;
  color: var(--white);
  font-size: var(--fs-h2);
  text-shadow: 0 2px 24px rgba(120, 52, 8, .35);
}
.contact-panel .body {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 16px rgba(120, 52, 8, .30);
}
.contact-panel .cta-row { justify-content: center; margin-top: 2.25rem; }

.contact-panel .btn-light {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 14px 36px rgba(120, 52, 8, .34);
}
.contact-panel .btn-light:hover { background: #FFF; box-shadow: 0 20px 46px rgba(120, 52, 8, .42); }

.contact-panel .btn-frost {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}
.contact-panel .btn-frost:hover { background: rgba(255, 255, 255, .28); border-color: var(--white); }

/* ============================================================
   FOOTER — navy
============================================================ */
.footer {
  position: relative;
  z-index: 10;
  padding-block: clamp(4rem, 7vw, 5.5rem) 2rem;
  color: rgba(255, 255, 255, .62);
  background:
    radial-gradient(680px 420px at 6% 0%,  rgba(255, 145, 77, .10), transparent 62%),
    radial-gradient(560px 400px at 96% 8%, rgba(175, 119, 124, .12), transparent 60%),
    var(--navy-900);
}
.footer::before { content: none; }

.footer a,
.footer .btn { pointer-events: auto; cursor: pointer; z-index: 2; }
.footer svg  { pointer-events: none; }

.footer-grid {
  display: grid;
  /* la colonna Contact ha più respiro: email e telefono non devono spezzarsi */
  grid-template-columns: 1.55fr .9fr 1.35fr 1.2fr;
  gap: clamp(1.5rem, 2.6vw, 2.5rem);
}
.footer-grid > * { min-width: 0; }

.footer-brand { display: flex; align-items: center; gap: 1.125rem; }
.footer-brand img {
  width: 76px; height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.footer-brand b {
  display: block;
  font-size: 1.1875rem; font-weight: 600;
  color: var(--white);
  letter-spacing: -0.025em;
}
.footer-brand span { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .52); }

.footer-tagline {
  margin-top: 1.5rem;
  max-width: 26rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, .60);
}
.footer-tagline em { display: block; margin-top: .75rem; font-style: italic; color: rgba(255, 255, 255, .82); }

.footer h4 {
  margin-bottom: 1.25rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
}
.footer-col a {
  display: block;
  padding: .375rem 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .62);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-col a:hover { color: var(--white); padding-left: .25rem; }
/* l'email non deve spezzarsi a metà parola nel footer */
.footer a[href^="mailto:"] { overflow-wrap: normal; word-break: keep-all; }

.footer-cta p {
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, .62);
}
.footer-cta .btn {
  display: inline-flex;
  width: fit-content;
  height: 46px;
  padding-inline: 1.5rem;
  font-size: .875rem;
  white-space: nowrap;
  background: var(--orange);
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(255, 145, 77, .26);
  transition: background .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.footer-cta .btn:hover {
  background: #FFA366;
  padding-left: 1.5rem;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 145, 77, .38);
}

.footer-social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .78);
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.footer-social a:hover {
  background: rgba(255, 145, 77, .18);
  border-color: rgba(255, 145, 77, .45);
  color: var(--orange);
  transform: translateY(-2px);
  padding-left: 0;
}
.footer-social svg { width: 18px; height: 18px; }

.footer-location {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 1.125rem 1.5rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.footer-location:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 145, 77, .45);
}
.footer-location .pin {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 145, 77, .18);
  color: var(--orange);
}
.footer-location .pin svg { width: 19px; height: 19px; }
.footer-location address {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font-style: normal;
  min-width: 0;
}
.footer-location .kicker {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}
.footer-location .where {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}
.footer-location .maps {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  flex-shrink: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
  transition: gap .35s var(--ease), color .3s var(--ease);
}
.footer-location:hover .maps { color: var(--orange); gap: .625rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .45);
}
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--white); }

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: "Questrial", var(--font);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .55);
  transition: color .3s var(--ease);
}
.footer-credit::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--clay);
}
.footer-credit:hover { color: var(--white); }
.footer-credit b { font-weight: 700; color: rgba(255, 255, 255, .88); }

/* ---------- Rifinitura footer: separatori e gerarchia ---------- */
/* I separatori valgono solo per le colonne di testo del footer.
   .footer-location è una card a tutta larghezza con padding e bordo propri:
   va esclusa, altrimenti perde il padding sinistro e il bordo sinistro. */
.footer-grid > * + *:not(.footer-location) {
  padding-left: clamp(1rem, 1.6vw, 1.75rem);
  border-left: 1px solid rgba(255, 255, 255, .10);
}
/* nessun contatto deve mai spezzarsi a metà */
.footer a[href^="tel:"],
.footer a[href^="mailto:"],
.footer-bottom a[href^="mailto:"] {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
.footer-col h4 {
  padding-bottom: .75rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  letter-spacing: .14em;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1080px) {
  .services-grid,
  .blog-grid    { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .stories-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  /* niente separatori verticali quando le colonne vanno a capo */
  .footer-grid > * + *:not(.footer-location) { padding-left: 0; border-left: 0; }
}

/* tablet: due colonne invece di una sola (evita card enormi e spazio sprecato) */
@media (min-width: 721px) and (max-width: 1080px) {
  .services-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin-inline: 0; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split-copy, .split.reverse .split-copy   { order: 2; max-width: 100%; }
  .split-media, .split.reverse .split-media { order: 1; }
  .media-portrait { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .footer-location { align-items: flex-start; flex-wrap: wrap; }
  .footer-location .maps { margin-left: 0; margin-top: .5rem; flex-basis: 100%; }
}

@media (max-width: 640px) {
  :root { --nav-h: 72px; }
  .brand-mark       { width: 46px; height: 46px; }
  .footer-brand img { width: 64px; height: 64px; }

  .story { padding: 2rem 1.5rem; }
  .story-meta { flex-wrap: wrap; }
  .story-result { margin-left: 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .stats { flex-direction: column; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-shell  { gap: .75rem; padding-left: .75rem; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-role { display: none; }
}

/* La foto del Performance Training ha la figura più alta delle altre due:
   nella card della home il ritaglio 16:9 parte dal centro e le taglierebbe
   la testa. Qui sposto in alto la fascia visibile. Non tocca la pagina
   Services, dove l'immagine è già 4:5 e non viene ritagliata. */
.service-media img[src*="service-performance"] { object-position: center 30%; }
