/* ============================================================
   SCALING PROJECT / Stylesheet principale (tema scuro)
   Palette: nero / rosso / bianco
   ============================================================ */

:root {
  --nero: #0b0b0d;
  --nero-soft: #131316;
  --superficie: #131316;
  --rosso: #e4322b;
  --rosso-scuro: #b3231d;
  --bianco: #ffffff;
  --testo: #eeeef1;
  --grigio-bg: #101014;
  --grigio-linea: #26262c;
  --grigio-testo: #a4a4ad;
  --grigio-testo-dark: #a7a7b0;

  --font-display: 'Anton', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1160px;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .65);
  --transition: .35s cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--testo);
  background: var(--nero);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bianco);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--rosso);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--rosso);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--grigio-testo);
  max-width: 640px;
}

.accent { color: var(--rosso); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grigio-linea);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: 0 10px 30px -14px rgba(0,0,0,.8); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

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

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--grigio-linea);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--bianco);
}

.brand-name span { color: var(--rosso); }

.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  color: var(--grigio-testo);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  color: #cfcfd6;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover { background: var(--superficie); color: var(--bianco); }

.main-nav a.active { color: var(--rosso); }

.main-nav .nav-cta {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #0b0b0d;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}

.main-nav .nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.main-nav .nav-cta:hover { background: #1ebe5b; transform: translateY(-1px); color: #0b0b0d; }

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

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--bianco);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--nero);
  padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 110px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 50, 43, .18) 0%, rgba(228, 50, 43, 0) 68%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--rosso);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: .12em;
  background: rgba(228, 50, 43, .3);
  z-index: -1;
  border-radius: 3px;
}

.hero .lead { margin: 26px 0 36px; }

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

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-logo-card,
.hero-photo-card {
  position: relative;
  width: min(340px, 80%);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--grigio-linea);
  box-shadow: 0 0 80px -20px rgba(228, 50, 43, .45), var(--shadow);
  transform: rotate(3deg);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.hero-photo-card {
  width: min(480px, 100%);
  aspect-ratio: 1;
  border-radius: 30px;
  transform: rotate(1.5deg);
}

.hero-logo-card:hover,
.hero-photo-card:hover { transform: rotate(0deg) scale(1.02); }

.hero-logo-card img,
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; }

/* Ritaglio quadrato ancorato a destra: tiene in scena le due persone */
.hero-photo-card img { object-position: 90% center; }
.hero-photo-card picture { display: contents; }

.hero-badge {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--superficie);
  border: 1px solid var(--grigio-linea);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  width: max-content;
  max-width: 78%;
  text-align: center;
  color: var(--testo);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--rosso);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--rosso-scuro);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(228, 50, 43, .55);
}

.btn-outline { border-color: rgba(255,255,255,.35); color: var(--bianco); background: transparent; }

.btn-outline:hover { background: var(--bianco); border-color: var(--bianco); color: var(--nero); transform: translateY(-2px); }

.btn-light { background: var(--bianco); color: var(--nero); }

.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(255,255,255,.4); }

.btn-outline-light { border-color: rgba(255,255,255,.4); color: var(--bianco); }

.btn-outline-light:hover { border-color: var(--bianco); background: var(--bianco); color: var(--nero); }

.btn-whatsapp { background: #25d366; color: #0b0b0d; }

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .45);
}

.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
}

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

section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

.section-head p { margin-top: 16px; }

.section-dark {
  background: var(--grigio-bg);
  border-top: 1px solid var(--grigio-linea);
  border-bottom: 1px solid var(--grigio-linea);
  color: var(--testo);
}

.section-dark .lead,
.section-dark p { color: var(--grigio-testo); }

.section-dark h2, .section-dark h3 { color: var(--bianco); }

.section-gray {
  background: var(--grigio-bg);
  border-top: 1px solid var(--grigio-linea);
  border-bottom: 1px solid var(--grigio-linea);
}

/* ---------- Stats strip ---------- */

.stats-strip {
  background: var(--grigio-bg);
  border-top: 1px solid var(--grigio-linea);
  border-bottom: 1px solid var(--grigio-linea);
  color: var(--bianco);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--rosso);
  line-height: 1.1;
}

.stat > span {
  font-size: .85rem;
  color: var(--grigio-testo);
  letter-spacing: .04em;
}

.stat strong span {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--superficie);
  border: 1px solid var(--grigio-linea);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #34343c;
}

.card .card-num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  color: var(--rosso);
  letter-spacing: .14em;
  margin-bottom: 14px;
  display: block;
}

.card h3 { margin-bottom: 12px; }

.card p { color: var(--grigio-testo); font-size: .96rem; }

.section-dark .card,
.section-gray .card {
  background: var(--nero-soft);
  border-color: var(--grigio-linea);
}

/* ---------- Liste problema/soluzione ---------- */

.check-list, .cross-list { list-style: none; display: grid; gap: 14px; }

.check-list li, .cross-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1rem;
  color: var(--testo);
}

.check-list li::before, .cross-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.check-list li::before { content: "✓"; color: var(--rosso); }

.cross-list li::before { content: "✕"; color: #74747e; }

/* ---------- Metodo (pagina) ---------- */

.method-step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--grigio-linea);
}

.method-step:last-of-type { border-bottom: 1px solid var(--grigio-linea); }

.method-step .step-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--rosso);
  line-height: 1;
}

.method-step h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }

.method-step p { color: var(--grigio-testo); max-width: 640px; }

.method-step ul { margin-top: 16px; }

/* ---------- Quote / citazioni ---------- */

.quote-band {
  border-left: 4px solid var(--rosso);
  background: var(--superficie);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 36px;
  margin: 40px 0;
}

.quote-band p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--bianco);
  line-height: 1.4;
}

.quote-band cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: .85rem;
  color: var(--grigio-testo);
}

/* ---------- Testimonianze ---------- */

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.testimonial-result {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--rosso);
  line-height: 1.2;
}

.testimonial-result small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  color: var(--grigio-testo);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 6px;
}

.testimonial blockquote {
  font-size: .98rem;
  color: var(--grigio-testo);
  border: 0;
  flex: 1;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--bianco);
}

.who .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #24242b;
  color: var(--bianco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
}

.who .avatar.red { background: var(--rosso); }

.who small { display: block; font-weight: 500; color: var(--grigio-testo); font-size: .78rem; }

img.avatar { object-fit: cover; flex-shrink: 0; }

/* Testimonianze a scorrimento (home) */
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--rosso) transparent;
}
.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--rosso); border-radius: 3px; }
.testimonial-track > .testimonial {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  height: auto;
}
@media (max-width: 960px) {
  .testimonial-track > .testimonial { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 720px) {
  .testimonial-track > .testimonial { flex-basis: 86%; }
}

/* ---------- Case study (pagina risultati) ---------- */

.case {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: clamp(40px, 6vw, 70px) 0;
  border-top: 1px solid var(--grigio-linea);
}

.case:first-of-type { border-top: 0; padding-top: 0; }

.case-meta .big-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--rosso);
  line-height: 1.05;
}

.case-meta .big-number small {
  display: block;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--grigio-testo);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 10px;
}

.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--superficie);
  border: 1px solid var(--grigio-linea);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--testo);
}

.case-body h3 { margin-bottom: 14px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }

.case-body p { color: var(--grigio-testo); margin-bottom: 14px; }

.case-body .prima-dopo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.prima-dopo > div {
  border-radius: var(--radius);
  padding: 22px;
  font-size: .92rem;
}

.prima-dopo .prima {
  background: var(--superficie);
  border: 1px solid var(--grigio-linea);
  color: var(--grigio-testo);
}

.prima-dopo .dopo {
  background: linear-gradient(145deg, #17171c 0%, #101014 100%);
  border: 1px solid rgba(228, 50, 43, .5);
  color: var(--testo);
  box-shadow: 0 0 40px -18px rgba(228, 50, 43, .5);
}

.prima-dopo strong {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
}

.prima-dopo .prima strong { color: var(--grigio-testo); }

.prima-dopo .dopo strong { color: var(--rosso); }

.prima-dopo ul { list-style: none; display: grid; gap: 8px; }

.prima-dopo .dopo ul { color: #d6d6dc; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 14px; max-width: 800px; }

.faq-list details {
  background: var(--superficie);
  border: 1px solid var(--grigio-linea);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-list details[open] { box-shadow: var(--shadow); border-color: #34343c; }

.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--bianco);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rosso);
  transition: transform var(--transition);
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p { margin-top: 14px; color: var(--grigio-testo); font-size: .95rem; }

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

.cta-band {
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #9c1f19 0%, #6e120d 50%, #350a08 100%);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--bianco);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 40px 90px -40px rgba(228, 50, 43, .45);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -230px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 54px solid rgba(255,255,255,.08);
}

.cta-band::after {
  content: "SCALING";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%) scaleX(1.35);
  transform-origin: center bottom;
  font-family: var(--font-display);
  font-size: clamp(76px, 12vw, 150px);
  line-height: 1;
  letter-spacing: .06em;
  color: rgba(255,255,255,.16);
  white-space: nowrap;
  pointer-events: none;
}

.cta-band h2 { position: relative; margin-bottom: 16px; font-size: clamp(1.9rem, 3.8vw, 3.1rem); }

.cta-band p {
  position: relative;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin: 0 auto 26px;
}

.cta-band .btn { position: relative; z-index: 1; }

.cta-band .btn-whatsapp { box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); }

.cta-band .btn-outline { border-color: rgba(255,255,255,.55); }

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

.site-footer {
  background: var(--nero);
  border-top: 1px solid var(--grigio-linea);
  color: var(--grigio-testo);
  padding: 60px 0 30px;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--grigio-linea);
}

.site-footer .brand-name { color: var(--bianco); }

.site-footer h4 {
  color: var(--bianco);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; display: grid; gap: 10px; }

.site-footer a:hover { color: var(--bianco); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: .8rem;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}

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

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Sezioni che si "avvitano" entrando: alternate da sinistra e da destra,
   ruotano leggermente e si assestano scendendo (overshoot sulla rotazione) */

html, body { overflow-x: clip; }

/* Ogni sezione clippa in orizzontale i container ancora traslati dallo
   screw-in: il documento non si allarga mai (niente shift laterale da
   scrollIntoView o dalla ricerca nella pagina) */
main section { overflow-x: clip; }

.screw-in {
  opacity: 0;
  transform-origin: 50% 15%;
  will-change: transform, opacity;
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.3,1.35,.45,1);
}

.screw-left { transform: translate(-64px, -44px) rotate(-5deg); }
.screw-right { transform: translate(64px, -44px) rotate(5deg); }

.screw-in.visible { opacity: 1; transform: translate(0, 0) rotate(0deg); }

/* Lucido: riflesso diagonale che attraversa la fascia CTA alla prima visualizzazione */

.cta-shine {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 38%;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 30%,
    rgba(255,255,255,.32) 50%,
    rgba(255,255,255,.10) 70%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-16deg);
  pointer-events: none;
}

.cta-band.visible .cta-shine {
  animation: cta-shine 1.3s cubic-bezier(.4, 0, .2, 1) .5s both;
}

@keyframes cta-shine {
  from { transform: translateX(0) skewX(-16deg); }
  to { transform: translateX(500%) skewX(-16deg); }
}

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

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-logo-card { width: min(240px, 60%); }
  .hero-photo-card { width: min(100%, 440px); }
  .story-split,
  .contact-intro-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Home: niente foto in testa su mobile (l'img e' neutralizzata dal <picture>) */
  .hero-visual--home { display: none; }
  /* Titolo hero: l'em va a capo invece di uscire dallo schermo; la linea
     rossa diventa uno sfondo per riga (box-decoration-break) al posto dell'::after */
  .hero h1 em {
    white-space: normal;
    background: linear-gradient(rgba(228, 50, 43, .3), rgba(228, 50, 43, .3)) no-repeat 0 calc(100% - .04em) / 100% .12em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .hero h1 em::after { display: none; }
  .main-nav {
    position: fixed;
    inset: 73px 0 auto 0;
    background: var(--nero);
    border-bottom: 1px solid var(--grigio-linea);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 26px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform var(--transition);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,.7);
    max-height: calc(100dvh - 73px);
    overflow-y: auto;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav a { padding: 13px 14px; font-size: 1rem; }

  .main-nav .nav-cta { margin: 12px 0 0; text-align: center; justify-content: center; display: inline-flex; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; gap: 20px; }

  .method-step { grid-template-columns: 1fr; gap: 10px; }

  .prima-dopo { grid-template-columns: 1fr !important; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-badge { white-space: normal; transform: translateX(-50%); width: max-content; max-width: 90%; }

  .page-visual figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 12px 14px;
    font-size: .92rem;
  }
}

/* ---------- Font display stile reel (Anton) ---------- */

.brand-name, .kicker, .stat strong, .card .card-num, .method-step .step-num,
.quote-band p, .testimonial-result, .case-meta .big-number,
.faq-list summary, .btn, .site-footer h4 {
  font-weight: 400;
}

.brand-name { text-transform: uppercase; letter-spacing: .05em; }

.btn { text-transform: uppercase; letter-spacing: .06em; }

.main-nav .nav-cta {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.quote-band p { text-transform: uppercase; letter-spacing: .02em; }

.testimonial-result, .case-meta .big-number { letter-spacing: .02em; }

/* ============================================================
   Effetti di scroll e componenti aggiuntivi
   ============================================================ */

/* Barra di avanzamento scroll */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--rosso), #ff6a5e);
  z-index: 300;
  box-shadow: 0 0 12px rgba(228, 50, 43, .6);
}

/* Marquee, nastro scorrevole */

.marquee {
  overflow: hidden;
  background: var(--rosso);
  padding: 16px 0;
  border-top: 1px solid rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(0,0,0,.25);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.05rem;
  color: var(--bianco);
  white-space: nowrap;
  padding-right: 28px;
}

.marquee-track span::after {
  content: "★";
  font-size: .8em;
  margin-left: 28px;
  color: rgba(255,255,255,.75);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Watermark gigante in background */

.watermark-wrap { position: relative; overflow: hidden; }

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 18rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

.watermark-wrap > .container { position: relative; z-index: 1; }

/* Variante riempita grigio scuro (una sezione per pagina, senza esagerare) */
.watermark-gray {
  -webkit-text-stroke: 0;
  color: #1c1c22;
}

/* Varianti reveal */

.reveal-left { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal-scale { transform: scale(.94); }

.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  transform: none;
}

/* Accento rosso animato sulle card */

.card { position: relative; overflow: hidden; }

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 3px;
  background: var(--rosso);
  transition: right .45s cubic-bezier(.22,.61,.36,1);
}

.card:hover::before { right: 0; }

/* Hero: glow parallax */

.hero-visual { will-change: transform; }

/* ============================================================
   Accessibilità e classi di utilità (ex stili inline)
   ============================================================ */

/* Skip link: visibile solo quando riceve il focus da tastiera */

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 400;
  background: var(--rosso);
  color: var(--bianco);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  transition: top .25s ease;
}

.skip-link:focus { top: 0; }

/* Focus visibile per la navigazione da tastiera */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Hero compatto per le pagine interne */

.hero-compact { padding-bottom: clamp(40px, 6vw, 70px); }

.hero-compact h1 { max-width: 820px; }

.hero-compact .lead { margin-top: 26px; margin-bottom: 0; }

.hero-compact .hero-actions { margin-top: 34px; }

/* Blocchi visuali fotografici */

.page-visual {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--grigio-linea);
  background: var(--nero-soft);
  box-shadow: 0 0 90px -32px rgba(228, 50, 43, .3), var(--shadow);
}

.page-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0) 45%, rgba(11, 11, 13, .78) 100%),
    linear-gradient(120deg, rgba(228, 50, 43, .16) 0%, rgba(228, 50, 43, 0) 38%);
  pointer-events: none;
}

.page-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.page-visual-inline {
  margin-top: 26px;
  max-width: 760px;
}

.page-visual-portrait { max-width: 440px; }

.page-visual-center { margin-left: auto; margin-right: auto; }

/* Card della scala nel hero di percorso: verticale su desktop,
   ritagliata in orizzontale su mobile per stare nello schermo */
.hero-stairs-card {
  position: relative;
  width: min(380px, 100%);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--grigio-linea);
  box-shadow: 0 0 80px -20px rgba(228, 50, 43, .45), var(--shadow);
  transform: rotate(1.5deg);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.hero-stairs-card:hover { transform: rotate(0deg) scale(1.02); }

.hero-stairs-card img { width: 100%; height: auto; display: block; }

@media (max-width: 960px) {
  .hero-stairs-card { width: 100%; transform: none; }

  .hero-stairs-card img {
    height: 230px;
    object-fit: cover;
    object-position: center 62%;
  }
}

/* Fascia fotografica bassa, larga quanto il container (manifesto in home) */
.page-visual-band { margin-top: clamp(32px, 5vw, 52px); }

.page-visual-band img {
  width: 100%;
  height: clamp(220px, 28vw, 380px);
  object-fit: cover;
}

.page-visual figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  max-width: min(460px, calc(100% - 48px));
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(11, 11, 13, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--bianco);
  font-size: .96rem;
  line-height: 1.5;
  box-shadow: var(--shadow);
}

/* Story split */

.story-split,
.contact-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

/* Deve stare DOPO la definizione qui sopra: a parità di specificità
   vince l'ultima regola e la media query a inizio file veniva ignorata */
@media (max-width: 960px) {
  .story-split,
  .contact-intro-grid { grid-template-columns: 1fr; }
}

/* Su contatti la foto riempie la stessa altezza della card accanto
   (in colonna singola height:100% si risolve in auto: nessun taglio su mobile) */
.contact-intro-grid { align-items: stretch; }

.contact-intro-grid .page-visual img {
  height: 100%;
  object-fit: cover;
  object-position: 32% center;
}

.story-copy h2,
.contact-highlight h2 {
  margin-bottom: 18px;
}

.story-copy .lead {
  margin-bottom: 18px;
}

.story-text {
  color: var(--grigio-testo);
  max-width: 640px;
}

.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.story-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(228, 50, 43, .22);
  background: linear-gradient(180deg, rgba(228, 50, 43, .13) 0%, rgba(228, 50, 43, .06) 100%);
  color: var(--bianco);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-highlight {
  padding: clamp(28px, 4vw, 40px);
}

.contact-highlight > .kicker {
  margin-bottom: 16px;
}

.contact-highlight p {
  color: var(--grigio-testo);
  margin-bottom: 18px;
}

/* Varianti di spaziatura delle sezioni */

.section-flush-top { padding-top: 0; }

.section-tight-top { padding-top: clamp(20px, 4vw, 40px); }

.section-compact { padding: clamp(40px, 6vw, 60px) 0; }

.section-cta-row { margin-top: 44px; }

/* Liste dentro le card */

.card .check-list,
.card .cross-list { margin-top: 10px; }

/* Card con contenuto impilato e pulsante ancorato in basso */

.card-stack { display: flex; flex-direction: column; gap: 14px; }

.card-stack .card-foot { margin-top: auto; }

/* Titoli delle card "fa per te / non fa per te" */

.card h3.h3-ok { color: var(--rosso); }

.card h3.h3-no { color: var(--grigio-testo-dark); }

/* Testo evidenziato nelle CTA band */

.cta-band p strong { color: var(--bianco); }

/* Nota di trasparenza */

.note-wide { max-width: 820px; }

/* Footer */

.site-footer .brand { margin-bottom: 16px; }

.footer-about { max-width: 320px; }

.footer-legal-links a { text-decoration: underline; text-underline-offset: 3px; }

/* Emoji decorative */

.emoji { margin-right: 6px; }

/* Pagine legali (privacy e cookie policy) */

.legal-content { max-width: 760px; }

.legal-content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 44px 0 14px;
}

.legal-content p,
.legal-content li { color: var(--grigio-testo); margin-bottom: 12px; }

.legal-content ul { padding-left: 22px; margin-bottom: 16px; }

.legal-content a { color: var(--bianco); text-decoration: underline; text-underline-offset: 3px; }

.legal-updated {
  font-size: .85rem;
  color: var(--grigio-testo);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 18px;
}

/* Pagina 404 */

.error-page {
  text-align: center;
  padding: clamp(90px, 14vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/404-sfondo-astratto.webp") center / cover no-repeat;
  opacity: .4;
  pointer-events: none;
}

.error-page .container { position: relative; z-index: 1; }

.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--rosso);
  display: block;
  margin-bottom: 18px;
}

.error-page .lead { margin: 18px auto 34px; }

/* ============================================================
   Rifinitura estetica e micro-interazioni
   ============================================================ */

/* Selezione testo brandizzata */

::selection { background: var(--rosso); color: var(--bianco); }

/* Hero: entrata a cascata al caricamento (kicker, titolo, testo, bottoni).
   La colonna visual anima SOLO l'opacità: il transform inline è del parallax JS */

.hero .kicker,
.hero h1,
.hero .lead,
.hero .hero-actions {
  animation: hero-in .8s cubic-bezier(.22,.61,.36,1) both;
}

.hero h1 { animation-delay: .1s; }
.hero .lead { animation-delay: .2s; }
.hero .hero-actions { animation-delay: .3s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-visual { animation: hero-in-visual .9s ease .25s both; }

@keyframes hero-in-visual {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* La sottolineatura rossa dell'em si "disegna" da sinistra dopo l'entrata */

.hero h1 em::after {
  transform: scaleX(0);
  transform-origin: left;
  animation: em-underline .6s cubic-bezier(.22,.61,.36,1) .8s forwards;
}

@keyframes em-underline { to { transform: scaleX(1); } }

/* Badge hero: fluttuazione leggera (il translateX(-50%) base va ripetuto) */

.hero-badge { animation: badge-float 5s ease-in-out 1.4s infinite; }

@keyframes badge-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -7px); }
}

/* Kicker: la lineetta rossa cresce quando la sezione appare */

.reveal .kicker::before { width: 0; transition: width .6s cubic-bezier(.22,.61,.36,1) .2s; }

.reveal.visible .kicker::before { width: 26px; }

/* Card: spotlight rosso che segue il puntatore (coordinate via JS, solo desktop) */

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(228, 50, 43, .09), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.card:hover::after { opacity: 1; }

/* Avatar testimonianze: piccolo saluto all'hover della card */

.who .avatar { transition: transform var(--transition); }

.card:hover .avatar { transform: scale(1.1) rotate(-5deg); }

/* Tag: reazione all'hover */

.tag { transition: border-color var(--transition), transform var(--transition); }

.tag:hover { border-color: rgba(228, 50, 43, .55); transform: translateY(-1px); }

/* Foto: zoom morbido all'hover (la cornice resta ferma) */

.page-visual img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }

.page-visual:hover img { transform: scale(1.035); }

/* Bottoni: riflesso che li attraversa all'hover (keyframe: niente ritorno) */

.btn { position: relative; overflow: hidden; }

.btn::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -55%;
  width: 40%;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.35) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn:hover::after { animation: btn-shine .6s ease forwards; }

@keyframes btn-shine {
  from { left: -55%; }
  to { left: 130%; }
}

/* Stesso riflesso sulla CTA dell'header */

.main-nav .nav-cta { position: relative; overflow: hidden; }

.main-nav .nav-cta::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -55%;
  width: 40%;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.4) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.main-nav .nav-cta:hover::after { animation: btn-shine .6s ease forwards; }

/* Nav: sottolineatura animata su hover e link attivo */

.main-nav a:not(.nav-cta) { position: relative; }

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--rosso);
  border-radius: 2px;
  transition: right .35s cubic-bezier(.22,.61,.36,1);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after { right: 14px; }

/* Metodo: il numerone outline si riempie di rosso all'hover dello step */

.method-step .step-num { transition: color .45s ease; }

.method-step:hover .step-num { color: var(--rosso); }

/* Marquee: pausa all'hover per leggere le voci */

.marquee:hover .marquee-track { animation-play-state: paused; }

/* FAQ: la risposta entra con un fade quando si apre */

.faq-list details[open] p { animation: faq-open .4s cubic-bezier(.22,.61,.36,1); }

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
}

/* Quote band: virgolettone decorativo */

.quote-band { position: relative; overflow: hidden; }

.quote-band::after {
  content: "\201D";
  position: absolute;
  top: -.12em;
  right: 14px;
  font-family: var(--font-display);
  font-size: 6.5rem;
  line-height: 1;
  color: rgba(228, 50, 43, .14);
  pointer-events: none;
}

.quote-band p, .quote-band cite { position: relative; }

/* Contatori: piccolo pop quando il conteggio finisce */

[data-count] { display: inline-block; }

[data-count].counted { animation: count-pop .4s cubic-bezier(.22,.61,.36,1); }

@keyframes count-pop { 50% { transform: scale(1.12); } }

/* ============================================================
   Adattamenti mobile
   ============================================================ */

@media (max-width: 720px) {
  /* Le foto verticali diventano strisce orizzontali: su uno schermo
     stretto un ritratto a tutta larghezza occupa mezzo viewport */
  .page-visual-portrait { max-width: none; }

  .page-visual-portrait img {
    height: 220px;
    object-fit: cover;
    object-position: center 22%;
  }

  /* La didascalia scende sotto la foto invece di coprirla */
  .page-visual figcaption {
    position: static;
    max-width: none;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--grigio-linea);
    border-radius: 0;
    background: var(--nero-soft);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    font-size: .88rem;
  }
}

/* ---------- Video di presentazione ---------- */

.video-section { padding-top: 0; }

.video-frame {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--grigio-linea);
  background: linear-gradient(145deg, #17171c 0%, #101014 100%);
  box-shadow: 0 0 80px -24px rgba(228, 50, 43, .45), var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-cover::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 50, 43, .28) 0%, rgba(228, 50, 43, 0) 70%);
}

.video-cover-logo {
  position: absolute;
  left: -6%;
  bottom: -18%;
  width: 42%;
  height: auto;
  opacity: .07;
  filter: grayscale(1);
  pointer-events: none;
}

.video-cover-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 20px;
}

.video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 0;
  background: var(--rosso);
  color: var(--bianco);
  cursor: pointer;
  box-shadow: 0 14px 40px -12px rgba(228, 50, 43, .7);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.video-play svg { margin-left: 4px; }

.video-coming {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--bianco);
  line-height: 1.5;
}

.video-coming span {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--grigio-testo);
}

/* Riquadro in attesa del video: play spento, nessuna interazione */

.video-placeholder .video-play {
  background: #2a2a31;
  color: var(--grigio-testo);
  cursor: default;
  box-shadow: none;
}

/* Video attivo: tutta la cover è cliccabile */

.video-ready .video-cover { cursor: pointer; }

.video-ready .video-cover:hover .video-play,
.video-ready .video-play:hover {
  transform: scale(1.08);
  background: var(--rosso-scuro);
}

@media (max-width: 720px) {
  .video-frame { border-radius: 16px; }
  .video-play { width: 62px; height: 62px; }
}

/* ============================================================
   GUIDE / ARTICOLI (hub SEO)
   ============================================================ */

.breadcrumb {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grigio-testo);
  margin-bottom: 18px;
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }

.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--grigio-linea); }

.breadcrumb a { color: var(--grigio-testo); }

.breadcrumb a:hover { color: var(--rosso); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px;
  align-items: start;
}

.article-body { max-width: 760px; min-width: 0; }

.article-body h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  margin: 30px 0 10px;
}

.article-body p,
.article-body li { color: var(--grigio-testo); margin-bottom: 14px; }

.article-body ul,
.article-body ol { padding-left: 22px; margin-bottom: 18px; }

.article-body strong { color: var(--testo); }

.article-body a {
  color: var(--bianco);
  text-decoration: underline;
  text-decoration-color: var(--rosso);
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--rosso); }

.article-body > p:first-of-type { font-size: 1.08rem; color: var(--testo); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grigio-testo);
  margin-top: 16px;
}

.takeaway {
  border: 1px solid var(--grigio-linea);
  border-left: 3px solid var(--rosso);
  background: var(--nero-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin: 28px 0;
}

.takeaway h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: .08em;
}

.takeaway p:last-child,
.takeaway li:last-child { margin-bottom: 0; }

.article-table { width: 100%; max-width: 100%; overflow-x: auto; margin: 22px 0 28px; }

.article-table table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .95rem; }

.article-table th,
.article-table td {
  border: 1px solid var(--grigio-linea);
  padding: 11px 14px;
  text-align: left;
  color: var(--grigio-testo);
}

.article-table th {
  font-family: var(--font-body);
  color: var(--bianco);
  background: var(--nero-soft);
  font-weight: 600;
}

.toc {
  position: sticky;
  top: 104px;
  border: 1px solid var(--grigio-linea);
  border-radius: var(--radius);
  background: var(--nero-soft);
  padding: 22px 24px;
}

.toc h2 {
  font-size: .95rem;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.toc ol { list-style: none; padding: 0; }

.toc li { margin-bottom: 9px; font-size: .92rem; }

.toc a { color: var(--grigio-testo); }

.toc a:hover { color: var(--rosso); }

.toc-cta { margin-top: 18px; }

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

.cta-inline {
  border: 1px solid var(--grigio-linea);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(228, 50, 43, .14), rgba(19, 19, 22, .9));
  padding: 26px 28px;
  margin: 34px 0;
}

.cta-inline h3 { font-size: 1.25rem; margin-bottom: 8px; }

.cta-inline p { color: var(--grigio-testo); margin-bottom: 16px; }

.guide-card { display: flex; flex-direction: column; }

.guide-card h3 { margin-bottom: 10px; }

.guide-card .guide-link {
  margin-top: auto;
  color: var(--rosso);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-card:hover .guide-link { color: var(--bianco); }

.related-guides { margin-top: 44px; }

.related-guides h2 { font-size: 1.3rem; margin-bottom: 18px; }

.related-guides ul { list-style: none; padding: 0; }

.related-guides li { margin-bottom: 10px; }

.related-guides a { color: var(--testo); text-decoration: underline; text-decoration-color: var(--grigio-linea); text-underline-offset: 3px; }

.related-guides a:hover { color: var(--rosso); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; order: -1; }
}

/* Nav: link Area riservata (secondario rispetto alla CTA WhatsApp) */

.main-nav a.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #e6e6ea;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.main-nav a.nav-login svg { width: 16px; height: 16px; flex-shrink: 0; }

.main-nav a.nav-login:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  color: var(--bianco);
}

.main-nav a.nav-login::after { display: none; }

/* Desktop: Area riservata come bottone tondo solo icona (testo azzerato, resta nel DOM per i lettori di schermo) */
@media (min-width: 721px) {
  .main-nav a.nav-login { font-size: 0; gap: 0; padding: 0; width: 40px; height: 40px; flex-shrink: 0; justify-content: center; margin-left: 4px; }
  .main-nav a.nav-login svg { width: 18px; height: 18px; }
}

@media (min-width: 721px) {
  .main-nav { gap: 2px; }
  .main-nav a { padding: 9px 9px; }
  .main-nav .nav-cta { padding: 11px 16px; margin-left: 6px; }
  .main-nav a.nav-login { padding: 0; margin-left: 2px; }
  .main-nav a:not(.nav-cta)::after { left: 9px; }
  .main-nav a:not(.nav-cta):hover::after,
  .main-nav a.active::after { right: 9px; }
}

/* Da 1200px la scritta "Area riservata" sta su una riga: pill con lucchetto + testo */
@media (min-width: 1200px) {
  .main-nav a.nav-login { font-size: .86rem; gap: 6px; width: auto; padding: 0 13px; }
  .main-nav a.nav-login svg { width: 15px; height: 15px; }
}

@media (max-width: 720px) {
  .main-nav a.nav-login {
    display: flex;
    margin-left: 0;
    padding: 13px 14px;
    gap: 10px;
    border: 0;
    border-radius: 10px;
  }
  .main-nav a.nav-login:hover { background: var(--superficie); }
}
