/* ==========================================================================
   Scuderi Academy · design system dalla BI "Video Corso Scuderi - Alpi Studio"
   Palette, font ed elementi visivi vincolanti: vedi DESIGN.md e PRODUCT.md.
   Pagine a blocchi di colore pieni (rosso, bordeaux, crema, verde) come le
   tavole della BI; testi in Geist Mono, parole singole in Pristine Script.
   ========================================================================== */

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Pristine Script";
  src: url("/assets/fonts/PristineScript.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Palette BI */
  --red: #e52525;
  --cream: #d8cab4;
  --cream-2: #cbc2b0;
  --cream-hi: #ece3d3;
  --green: #3d6b3f;
  --green-2: #355e37;
  --yellow: #ffb339;
  --bordeaux: #491f1f;
  --ground: #211010;

  /* Testo secondario tinto dal fondo, mai grigio */
  --on-dark-2: #c4b49d;
  /* rosso schiarito solo per testo piccolo su fondo scuro (AA): i grandi restano --red */
  --red-text: #ff6b5e;
  --on-cream-2: #5b3330;

  --line-dark: rgba(216, 202, 180, 0.18);
  --line-cream: rgba(73, 31, 31, 0.22);

  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-script: "Pristine Script", "Brush Script MT", cursive;

  --r-card: 18px;
  --r-btn: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1360px;
  --bar-h: 62px;
  --header-h: 72px;

  --z-float: 90;
  --z-header: 100;
  --z-menu: 110;
  --z-toast: 120;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base (solo pagine .sa; la pagina Casa usa Tailwind e i soli componenti)
   -------------------------------------------------------------------------- */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-color: var(--red) var(--ground);
}

body.sa {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--red);
}

:where(.sa) *,
:where(.sa) *::before,
:where(.sa) *::after {
  box-sizing: border-box;
}

:where(.sa) :where(img, video, iframe, svg) {
  display: block;
  max-width: 100%;
}

:where(.sa) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) {
  margin: 0;
}

:where(.sa) :where(ul, ol) {
  padding: 0;
  list-style: none;
}

:where(.sa) :where(a) {
  color: inherit;
  text-decoration: none;
}

:where(.sa) :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: var(--cream-hi);
}

a,
button,
[role="button"],
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Campi di colore BI (sezioni)
   -------------------------------------------------------------------------- */
.field {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
  isolation: isolate;
}

.field--red {
  background: var(--red);
  color: var(--ground);
}

.field--bordeaux {
  background: var(--bordeaux);
  color: var(--cream);
}

.field--ground {
  background: var(--ground);
  color: var(--cream);
}

.field--cream {
  background: var(--cream);
  color: var(--ground);
}

/* Righe verticali verdi (tavola 7) */
.field--green {
  color: var(--cream-hi);
  background: repeating-linear-gradient(90deg, var(--green) 0 clamp(36px, 4.5vw, 72px), var(--green-2) clamp(36px, 4.5vw, 72px) clamp(72px, 9vw, 144px));
}

.field--tight {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-mono);
  font-weight: 650;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display .line {
  display: block;
}

.d-hero {
  font-size: clamp(2.7rem, 7.4vw, 6rem);
}

.d-xl {
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
}

.d-lg {
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
}

.d-md {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.05;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 0.9;
}

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  max-width: 58ch;
}

/* Su rosso e verde il testo corrente e' grande e bold (AA testo grande) */
.field--red .lead,
.hero .lead {
  font-size: clamp(1.2rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
}

.field--green .lead {
  font-size: clamp(1.2rem, 1.5vw, 1.3rem);
  font-weight: 650;
  line-height: 1.5;
}

.muted-dark {
  color: var(--on-dark-2);
}

.label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-old {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.75;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.tag--yellow {
  background: var(--yellow);
  color: var(--ground);
}

.tag--green {
  background: var(--green);
  color: var(--cream-hi);
}

.tag--ground {
  background: var(--ground);
  color: var(--cream);
}

.placeholder-note {
  display: inline-block;
  margin: 1.5rem 0 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 2px dashed currentColor;
  background: var(--ground);
  color: var(--cream-hi);
  border-radius: var(--r-btn);
  font-size: 0.85rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Bottoni: rettangolari, mono maiuscolo, freccia disegnata
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.85rem 1.35rem;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

.btn .icon {
  transition: transform 360ms var(--ease-spring);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn--ink {
  background: var(--ground);
  color: var(--cream-hi);
}

.btn--cream {
  background: var(--cream-hi);
  color: var(--ground);
}

.btn--line {
  border-color: currentColor;
  background: transparent;
}

.btn--block {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover {
    background: var(--bordeaux);
  }

  .btn--cream:hover {
    background: #fff6e8;
  }

  .btn--line:hover {
    background: rgba(216, 202, 180, 0.12);
  }

  .field--cream .btn--line:hover,
  .field--red .btn--line:hover,
  .hero .btn--line:hover {
    background: rgba(33, 16, 16, 0.08);
  }

  .btn:hover .icon {
    transform: translateX(4px);
  }

  .btn[aria-expanded]:hover .icon {
    transform: none;
  }
}

.btn[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.btn.is-pending {
  cursor: help;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 639px) {
  .btn {
    white-space: normal;
    text-align: left;
    max-width: 100%;
  }

  .btn-row > .btn {
    width: 100%;
    justify-content: space-between;
  }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.link .icon {
  transition: transform 360ms var(--ease-spring);
}

/* --------------------------------------------------------------------------
   Header: capsula sospesa scura (come la prima bozza), firma rossa e BI
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: var(--z-header);
  top: 0;
  left: 0;
  right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 0;
  color: var(--cream);
  font-family: var(--font-mono);
  pointer-events: none;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--bar-h);
  max-width: calc(var(--maxw) + 2rem);
  margin-inline: auto;
  padding: 0 7px 0 clamp(16px, 2vw, 24px);
  border: 1px solid rgba(216, 202, 180, 0.14);
  border-radius: 999px;
  background: rgba(33, 16, 16, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(236, 227, 211, 0.06);
  pointer-events: auto;
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}

.site-header.is-scrolled .site-header__bar {
  background: rgba(33, 16, 16, 0.86);
  border-color: rgba(216, 202, 180, 0.2);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header__bar { background: var(--ground); }
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--red);
  text-decoration: none;
}

/* La firma si dimensiona sull'altezza: resta sempre dentro la capsula */
.brand svg {
  width: auto;
  height: calc(var(--bar-h) - 22px);
  aspect-ratio: 916 / 420;
  fill: currentColor;
}

.brand__academy {
  padding: 0.25rem 0.42rem;
  border: 1.5px solid var(--cream);
  border-radius: 3px;
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.site-nav a[aria-current="page"] {
  color: var(--cream-hi);
  background: rgba(236, 227, 211, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--cream-hi);
    background: rgba(236, 227, 211, 0.07);
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__cta {
  display: none;
}

.site-header__cta.btn {
  min-height: 50px;
  gap: 0.9rem;
  padding: 0 6px 0 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Freccia dentro il suo cerchio, come la prima bozza */
.btn__dot {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream-hi);
  transition: transform 360ms var(--ease-spring);
}

.btn__dot .icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .site-header__cta:hover .btn__dot { transform: translateX(3px); }
}

.burger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(216, 202, 180, 0.22) !important;
  border-radius: 50%;
  background: transparent !important;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: var(--cream);
  transition: transform 380ms var(--ease-spring), background-color 200ms;
}

.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }

@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  :root { --bar-h: 68px; --header-h: 78px; }
  .site-nav { display: flex; }
  .burger { display: none; }
}

/* Menu mobile: campo rosso con la firma, come la tavola 9 */
.site-menu {
  position: fixed;
  z-index: var(--z-menu);
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--red);
  color: var(--ground);
  font-family: var(--font-mono);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms;
  overscroll-behavior: contain;
  overflow: hidden;
  isolation: isolate;
}

.site-menu::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -40%;
  bottom: 4%;
  width: 170%;
  aspect-ratio: 916 / 420;
  background: var(--bordeaux);
  -webkit-mask: url("/assets/brand/signature.svg") center / contain no-repeat;
  mask: url("/assets/brand/signature.svg") center / contain no-repeat;
}

.menu-open .site-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms var(--ease-out);
}

.menu-open .site-header {
  z-index: calc(var(--z-menu) + 1);
}

.menu-open .site-header__bar {
  background: var(--ground);
}

.site-menu__links a {
  display: block;
  padding: 0.35rem 0;
  font-size: clamp(2.2rem, 10vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ground);
  text-decoration: none;
  transform: translateY(1.5rem);
  opacity: 0;
  transition: transform 600ms var(--ease-spring), opacity 400ms var(--ease-out);
}

.site-menu__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.menu-open .site-menu__links a { transform: none; opacity: 1; }
.menu-open .site-menu__links li:nth-child(2) a { transition-delay: 50ms; }
.menu-open .site-menu__links li:nth-child(3) a { transition-delay: 100ms; }
.menu-open .site-menu__links li:nth-child(4) a { transition-delay: 150ms; }

.site-menu__foot {
  display: grid;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-menu__foot a {
  display: inline-block;
  padding-block: 0.55rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-menu__foot .btn {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Reveal (gestito da motion.js; senza JS o modulo tutto resta visibile)
   -------------------------------------------------------------------------- */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 800ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.motion-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   HERO fotografico: foto vere del girato a tutto schermo, titoli BI
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(1.25rem, 4vh, 2.75rem)) 0 clamp(1.75rem, 5vh, 3.5rem);
  background: var(--ground);
  color: var(--cream-hi);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ground);
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1400ms var(--ease-out);
}

.hero__slide.is-active {
  opacity: 1;
  animation: kenburns 9s linear forwards;
}

@keyframes kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1.15); }
}

.hero__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

.hero__video.is-ready {
  opacity: 1;
}

.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 56.25svh);
  height: max(177.78vw, 100svh);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Velatura bordeaux: tiene leggibile il testo sopra la foto */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(33, 16, 16, 0.55) 0%, rgba(33, 16, 16, 0) 24%, rgba(33, 16, 16, 0.3) 48%, rgba(33, 16, 16, 0.94) 100%),
    radial-gradient(95% 70% at 6% 100%, rgba(33, 16, 16, 0.78), transparent 66%);
}

/* Da telefono il titolo e il testo stanno a metà foto: velo più pieno al centro (Alessandro, 6/11/2026) */
@media (max-width: 899px) {
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(33, 16, 16, 0.6) 0%, rgba(33, 16, 16, 0.4) 22%, rgba(33, 16, 16, 0.64) 44%, rgba(33, 16, 16, 0.76) 64%, rgba(33, 16, 16, 0.94) 100%),
      radial-gradient(95% 70% at 6% 100%, rgba(33, 16, 16, 0.78), transparent 66%);
  }
}

/* Firma rossa sovrapposta alla foto, come le tavole 6 e 13 della BI */
.hero__sig {
  position: absolute;
  z-index: -1;
  right: -3%;
  bottom: 16%;
  width: min(58vw, 820px);
  color: var(--red);
  rotate: -3deg;
  pointer-events: none;
}

.hero__sig svg {
  width: 100%;
  height: auto;
  aspect-ratio: 916 / 420;
  overflow: visible;
  fill: currentColor;
}

/* Hero: la firma si scrive all'apertura, dopo l'entrata del testo */
.hero__sig[data-sign] {
  --sign-delay: 0.5s;
}

/* Home: firma più stretta, così non passa sotto il titolo a sinistra */
@media (min-width: 900px) {
  .hero__sig[data-sign] {
    width: min(44vw, 720px);
  }
}

@media (max-width: 899px) {
  .hero__sig {
    right: -8%;
    top: calc(var(--header-h) + 14vh);
    bottom: auto;
    width: 92vw;
  }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__kicker {
  max-width: 44ch;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(33, 16, 16, 0.7);
}

.hero__kicker .tag {
  margin-right: 0.5rem;
  vertical-align: 0.1em;
  text-shadow: none;
}

.hero__title {
  align-self: end;
  color: var(--cream-hi);
}

.hero__title .line {
  display: block;
}

.hero__title .line:last-child:not(:first-child) {
  color: var(--red);
}

/* Pro da telefono: firma piccola in alto a destra, titolo staccato dalla foto */
@media (max-width: 899px) {
  .hero--pro .hero__sig {
    top: calc(var(--header-h) + 12svh);
    right: 3%;
    width: 52vw;
  }

  .hero--pro .hero__title {
    text-shadow: 0 2px 4px rgba(15, 6, 6, 0.55), 0 6px 28px rgba(15, 6, 6, 0.85);
  }

  .hero--pro .hero__foot .lead {
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 0 1px 14px rgba(15, 6, 6, 0.8);
  }

  .hero--pro .hero__micro {
    font-size: 0.82rem;
  }
}

.hero__foot {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 1024px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2.5rem;
  }
}

.hero__foot .lead {
  max-width: 50ch;
  color: var(--cream-hi);
}

/* Home: frase sotto il titolo un po' più piccola */
.hero--home .hero__foot .lead {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.25vw, 1.15rem);
  line-height: 1.5;
}

.hero__cta {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.hero__micro {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}

.hero .btn--line {
  color: var(--cream-hi);
  background: rgba(33, 16, 16, 0.35);
}

/* --------------------------------------------------------------------------
   Fascia "tavola 9": campo rosso, firma gigante, mattarello 3D (non nell'hero)
   -------------------------------------------------------------------------- */
.band9 {
  position: relative;
  display: grid;
  min-height: min(96svh, 980px);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--red);
  color: var(--ground);
  overflow: hidden;
  isolation: isolate;
}

.sig-texture {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 52%;
  width: max(185vw, 1700px);
  aspect-ratio: 916 / 420;
  color: var(--bordeaux);
  translate: -50% -50%;
  rotate: -4deg;
  pointer-events: none;
}

.sig-texture svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 767px) {
  .sig-texture {
    width: 340vw;
  }
}

.roll__stage {
  position: absolute;
  z-index: -1;
  inset: 18% 0 -12%;
  pointer-events: none;
}

.roll__stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

.roll__stage.is-live canvas {
  opacity: 1;
}

.roll__poster {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(58vw, 740px);
  translate: -50% -50%;
  rotate: -8deg;
  filter: drop-shadow(0 30px 40px rgba(33, 16, 16, 0.35));
  transition: opacity 600ms var(--ease-out);
}

.roll__stage.is-live .roll__poster {
  opacity: 0;
}

@media (max-width: 899px) {
  .band9 {
    min-height: 640px;
  }

  .roll__stage {
    inset: 30% 0 auto;
    height: 62%;
  }

  .band9--top {
    min-height: max(100svh, 780px);
  }

  .roll__poster {
    width: 104vw;
  }
}

.band9__grid {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band9 .display {
  font-weight: 700;
  color: var(--cream-hi);
  text-shadow: 0 2px 24px rgba(33, 16, 16, 0.35);
}

.band9 .claim-b {
  text-align: right;
}

/* Pro: un solo blocco di testo in alto, mattarello libero sotto */
.band9--top .band9__grid {
  align-content: start;
}

.band9__claim {
  display: grid;
  gap: 0.2em;
  max-width: 34ch;
  font-size: clamp(1.45rem, 3.1vw, 2.9rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream-hi);
}

.band9__claim-end {
  margin-top: 0.7em;
}

.band9--top .roll__stage {
  inset: 32% 0 -16%;
}

@media (max-width: 899px) {
  .band9--top .roll__stage {
    inset: 48% 0 auto;
    height: 48%;
  }
}

/* --------------------------------------------------------------------------
   Striscia fotografica: tre scatti veri accostati, senza testo
   -------------------------------------------------------------------------- */
.photo-strip {
  overflow: hidden;
  background: var(--ground);
  padding-block: 4px;
}

.photo-strip__track {
  display: flex;
  width: max-content;
  animation: strip-run 70s linear infinite;
}

.photo-strip figure {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 500px);
  aspect-ratio: 4 / 3;
  margin: 0 4px 0 0;
  overflow: hidden;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1200ms var(--ease-out);
}

/* Alcuni scatti dalle nostre Academy: stessa striscia che scorre, foto più grandi */
.scatti {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.photo-strip--scatti {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 0;
  background: transparent;
}

.photo-strip--scatti .photo-strip__track {
  animation-duration: 155s;
}

.photo-strip--scatti figure {
  width: clamp(280px, 34vw, 560px);
  margin-right: 10px;
  border-radius: var(--r-card);
}

@media (max-width: 767px) {
  .photo-strip--scatti figure { width: 78vw; }
  .photo-strip--scatti .photo-strip__track { animation-duration: 100s; }
}

@keyframes strip-run {
  to { transform: translateX(-50%); }
}

@media (hover: hover) and (pointer: fine) {
  .photo-strip:hover .photo-strip__track { animation-play-state: paused; }
  .photo-strip figure:hover img { scale: 1.05; }
}

@media (max-width: 767px) {
  .photo-strip figure { width: 72vw; }
  .photo-strip__track { animation-duration: 45s; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-strip { overflow-x: auto; }
  .photo-strip__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Percorsi: dittico Pro (bordeaux, foto in duotono) / Casa (crema, losanghe)
   -------------------------------------------------------------------------- */
.paths-head {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.paths {
  display: grid;
}

@media (min-width: 900px) {
  .paths {
    grid-template-columns: 1fr 1fr;
  }
}

.path {
  --pad: clamp(1.5rem, 3.5vw, 3rem);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--pad);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}

.path--pro {
  background: var(--bordeaux);
  color: var(--cream);
}

.path--casa {
  background: var(--cream);
  color: var(--ground);
}

.path__visual {
  position: relative;
  aspect-ratio: 4 / 3;
}

/* Desktop: le due fasce hanno la stessa altezza e partono dal bordo alto,
   cosi' foto, titoli e prezzi restano allineati tra Pro e Casa */
@media (min-width: 900px) {
  .path__visual {
    aspect-ratio: auto;
    height: clamp(380px, 40vw, 64svh);
  }
}

.path--pro .path__visual {
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0;
  width: auto;
  background: var(--red);
  overflow: hidden;
}

.path--pro .path__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.18) brightness(1.06);
  mix-blend-mode: multiply;
  transition: scale 1200ms var(--ease-out);
}

.path--casa .path__visual {
  display: grid;
  place-items: center;
}

@media (min-width: 900px) {
  .path--casa .path__visual {
    margin-top: calc(var(--pad) * -1);
  }
}

.path--casa .path__visual::before {
  content: "";
  position: absolute;
  inset: 6% 0 14%;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 4 76 40 40 76 4 40Z' fill='%23ffb339'/%3E%3C/svg%3E");
  background-size: clamp(46px, 5vw, 72px);
}

.path--casa .path__visual img {
  position: absolute;
  inset: 4% 8% 0;
  width: 84%;
  height: 96%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 24px 30px rgba(33, 16, 16, 0.28));
  transition: scale 1200ms var(--ease-out);
}

.path__script {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: -0.16em;
  font-size: clamp(6rem, 16vw, 12.5rem);
  pointer-events: none;
}

.path--pro .path__script {
  left: var(--pad);
  color: var(--cream-hi);
}

.path--casa .path__script {
  color: var(--bordeaux);
}

.path .tag {
  position: absolute;
  z-index: 3;
  top: clamp(1.25rem, 3vw, 2.25rem);
  left: var(--pad);
}

.path__body {
  display: grid;
  gap: 1.25rem;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.path__body p {
  max-width: 46ch;
  font-size: 1.05rem;
}

.path__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.path__price {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

@media (hover: hover) and (pointer: fine) {
  .path--pro:hover .path__visual img { scale: 1.05; }
  .path--casa:hover .path__visual img { scale: 1.05; }
  .path:hover .link .icon { transform: translateX(6px); }
}

/* --------------------------------------------------------------------------
   Metodo: quattro regole (dopo la fascia tavola 9)
   -------------------------------------------------------------------------- */
.method {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.method__top {
  display: grid;
  gap: 2rem;
  align-items: center;
}



.method__top .lead {
  color: var(--cream);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: 52ch;
}

.rules {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .rules { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .rules { grid-template-columns: repeat(4, 1fr); }
}

.rule {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 1rem;
  border-top: 2px solid var(--line-dark);
}

.rule__n {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.rule h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rule p {
  color: var(--on-dark-2);
  font-size: 0.96rem;
}

.method__close {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 2px solid var(--line-dark);
}

/* --------------------------------------------------------------------------
   Lezioni: anello 3D su crema
   -------------------------------------------------------------------------- */
.ring-head {
  text-align: center;
}

.ring {
  --card-w: clamp(170px, 19vw, 270px);
  position: relative;
  height: calc(var(--card-w) * 1.62 + 60px);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  perspective: 1600px;
  perspective-origin: 50% 40%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 767px) {
  .ring { perspective: 950px; }
}

.ring.is-dragging { cursor: grabbing; }

.ring__stage {
  position: absolute;
  left: 50%;
  top: 30px;
  width: var(--card-w);
  height: calc(var(--card-w) * 1.6);
  margin-left: calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  will-change: transform;
}

.ring__card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--radius));
  opacity: var(--vis, 1);
  -webkit-user-drag: none;
}

.ring__img {
  display: block;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bordeaux);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.75);
}

.ring__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(var(--lit, 1));
  pointer-events: none;
  -webkit-user-drag: none;
}

.ring__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.ring__nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid currentColor !important;
  border-radius: var(--r-btn);
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}

.icon-btn .icon {
  width: 22px;
  height: 22px;
}

.icon-btn--prev .icon {
  transform: rotate(180deg);
}

.icon-btn:active { transform: scale(0.95); }

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: rgba(33, 16, 16, 0.08); }
  .field--bordeaux .icon-btn:hover,
  .field--ground .icon-btn:hover { background: rgba(216, 202, 180, 0.12); }
}

.ring-cta {
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ring.is-flat {
  height: auto;
  perspective: none;
  cursor: auto;
}

.ring.is-flat .ring__stage {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  display: flex;
  gap: 14px;
  padding: 0 var(--gutter) 1rem;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  transform: none !important;
}

.ring.is-flat .ring__card {
  position: relative;
  flex: 0 0 var(--card-w);
  height: calc(var(--card-w) * 1.6);
  transform: none;
  opacity: 1;
  scroll-snap-align: center;
}

.ring.is-flat + .ring__nav { display: none; }

/* --------------------------------------------------------------------------
   Docenti: ritratti in duotono rosso/bordeaux, firma sovrapposta
   -------------------------------------------------------------------------- */
.duo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--red);
}

.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2) brightness(1.08);
  mix-blend-mode: multiply;
}

.people {
  display: grid;
  gap: clamp(2rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 960px) {
  .people {
    grid-template-columns: 1.55fr 1fr;
    align-items: start;
  }
}

.lead-person {
  display: grid;
  gap: 1.1rem;
}

.lead-person__photo {
  position: relative;
}

.lead-person .duo {
  aspect-ratio: 4 / 3.5;
}

.lead-person .duo img {
  object-position: 50% 16%;
}

.lead-person__sig {
  position: absolute;
  left: 5%;
  bottom: 4%;
  width: 72%;
  color: var(--cream-hi);
  pointer-events: none;
}

.lead-person__sig svg {
  width: 100%;
  height: auto;
  aspect-ratio: 916 / 420;
  fill: currentColor;
  filter: drop-shadow(0 3px 0 rgba(33, 16, 16, 0.55));
}

.lead-person__body {
  display: grid;
  gap: 0.6rem;
}

.lead-person .role,
.other .role {
  color: var(--red-text);
}

.lead-person p {
  color: var(--on-dark-2);
  max-width: 60ch;
}

.others {
  display: grid;
  gap: 1.5rem;
}

.other {
  display: grid;
  grid-template-columns: minmax(104px, 38%) 1fr;
  gap: 1.1rem;
  align-items: start;
}

.other .duo {
  aspect-ratio: 4 / 4.6;
  border-radius: 12px;
}

.other .duo img {
  object-position: 50% 18%;
}

.other h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.other .role {
  margin: 0.4rem 0 0.5rem;
}

.other p {
  color: var(--on-dark-2);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Docenti: carosello animato (scorre da solo, si ferma al passaggio)
   -------------------------------------------------------------------------- */
.team__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.team__nav {
  display: flex;
  gap: 0.6rem;
}

.team__track {
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0.5rem var(--edge) 1rem;
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.team__track::-webkit-scrollbar {
  display: none;
}

/* Scorrimento continuo (site.js): niente aggancio alle card, si muove fluido */
.team__track.is-marquee {
  scroll-snap-type: none;
}

.member {
  flex: 0 0 min(78vw, 360px);
  display: grid;
  align-content: start;
  gap: 1rem;
  scroll-snap-align: start;
}

.member--lead {
  flex-basis: min(88vw, 560px);
}

.member__photo {
  position: relative;
}

.member .duo {
  aspect-ratio: 4 / 5;
}

.member--lead .duo {
  aspect-ratio: 4 / 4.3;
}

.member .duo img {
  object-position: 50% 18%;
  transition: scale 1000ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .member:hover .duo img { scale: 1.04; }
}

.member__body {
  display: grid;
  gap: 0.45rem;
}

.member__name {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.member .role {
  color: var(--red-text);
}

/* Qualifiche professionali sotto il ruolo (es. Camillo Caddeo) */
.member__creds {
  display: grid;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--on-dark-2);
}

.member__creds li {
  padding-left: 0.7rem;
  border-left: 2px solid var(--red);
}

.member__creds strong {
  color: var(--cream-hi);
  font-weight: 700;
}

.member__creds span {
  margin-inline: 0.2rem;
  opacity: 0.5;
}

.member__body p:last-child {
  color: var(--on-dark-2);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Recensioni (segnaposto) su rosso
   -------------------------------------------------------------------------- */
.reviews {
  display: flex;
  gap: 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.25rem var(--gutter) 1rem;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.review {
  flex: 0 0 min(80vw, 380px);
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bordeaux);
  color: var(--cream-hi);
  scroll-snap-align: start;
}

/* stesso formato per tutte: la foto viene tagliata */
.review img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.review__body {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem 1.3rem 1.35rem;
}

.review__quote {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.review__who {
  font-size: 0.85rem;
  color: var(--on-dark-2);
}

/* --------------------------------------------------------------------------
   Partner
   -------------------------------------------------------------------------- */
.partners {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 820px) {
  .partners { grid-template-columns: repeat(2, 1fr); }
}

.partner {
  display: grid;
  grid-template-rows: clamp(84px, 9vw, 112px) auto;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--line-dark);
}

.partner__logo {
  display: block;
  align-self: center;
  width: auto;
  height: 100%;
}

/* Moretti: logo ufficiale nel suo riquadro grigio, alto quanto la fascia dei loghi */
.partner__logo--moretti {
  height: 100%;
}

/* Astec: location del progetto, separata dagli sponsor */
.partner-location {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--line-dark);
  border-radius: var(--r-card);
}

.partner-location .label {
  color: var(--red-text);
}

.partner-location__row {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.partner-location .partner__logo--astec {
  height: clamp(48px, 6vw, 68px);
  align-self: start;
}

.partner-location p:not(.label) {
  color: var(--on-dark-2);
  max-width: 48ch;
}

@media (min-width: 820px) {
  .partner-location__row {
    grid-template-columns: auto 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

.partner p {
  color: var(--on-dark-2);
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   Prossimamente: righe verdi, panetto con testo in cerchio
   -------------------------------------------------------------------------- */
.soon {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .soon {
    grid-template-columns: 1fr minmax(320px, 1fr) 1fr;
    column-gap: clamp(3rem, 6vw, 6.5rem);
  }
}

.soon__copy {
  display: grid;
  gap: 1.1rem;
}

.soon__copy .display {
  color: var(--cream-hi);
}

.orbit {
  position: relative;
  width: min(86vw, 420px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit__dough {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(16, 28, 16, 0.45));
}

.orbit__text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--cream-hi);
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  animation: orbit 40s linear infinite;
}

@keyframes orbit {
  to { rotate: 360deg; }
}

.form {
  display: grid;
  gap: 0.65rem;
}

.form label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input {
  width: 100%;
  min-height: 56px;
  padding: 0 1rem;
  border-radius: var(--r-btn);
  border: 2px solid var(--cream-hi);
  background: var(--ground);
  color: var(--cream-hi);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}

.input::placeholder {
  color: var(--on-dark-2);
}

.input:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.input[aria-invalid="true"] {
  border-color: var(--yellow);
}

.form-msg {
  min-height: 1.4em;
  font-size: 1.05rem;
  font-weight: 700;
}

.form-help {
  font-size: 1.05rem;
  font-weight: 650;
}

.form-help a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   FAQ su crema
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 1024px) {
  .faq {
    grid-template-columns: 4fr 7fr;
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
}

.faq__head {
  display: grid;
  gap: 2rem;
}

.faq__badge {
  width: clamp(110px, 12vw, 170px);
  color: var(--red);
}

.faq__badge svg {
  width: 100%;
  height: auto;
  aspect-ratio: 306.6 / 279.4;
  fill: currentColor;
}

.faq__list {
  border-top: 2px solid var(--line-cream);
}

.faq-item {
  border-bottom: 2px solid var(--line-cream);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding: 1.15rem 0;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary .icon {
  width: 22px;
  height: 22px;
  color: var(--bordeaux);
  transition: transform 380ms var(--ease-spring);
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-item__a {
  padding: 0 3rem 1.5rem 0;
  max-width: 66ch;
  color: var(--on-cream-2);
}

.faq-item__a a {
  color: var(--ground);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item__a p + p { margin-top: 0.75rem; }

@supports selector(::details-content) {
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 450ms var(--ease-out), content-visibility 450ms allow-discrete;
  }

  .faq-item[open]::details-content { block-size: auto; }

  :root { interpolate-size: allow-keywords; }
}

/* --------------------------------------------------------------------------
   Chiusura: la firma che si scrive
   -------------------------------------------------------------------------- */
.closing-field {
  isolation: isolate;
}

.closing__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(73, 31, 31, 0.92) 0%, rgba(33, 16, 16, 0.72) 45%, rgba(33, 16, 16, 0.9) 100%);
}

.closing {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  justify-items: center;
  text-align: center;
}

.closing__sig {
  width: min(100%, 980px);
  margin-bottom: calc(clamp(1.5rem, 5vw, 4.5rem) * -1);
}

.closing__sig svg {
  width: 100%;
  height: auto;
  aspect-ratio: 916 / 420;
  overflow: visible;
}

[data-sign] path {
  fill: var(--red);
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

[data-sign].is-prepped path {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  fill-opacity: 0;
  transition:
    stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--sign-delay, 0s) + var(--i) * 0.13s),
    fill-opacity 0.45s ease-out calc(var(--sign-delay, 0s) + var(--i) * 0.13s + 0.85s);
}

[data-sign].sign-instant path {
  transition: none;
}

[data-sign].is-signed path {
  stroke-dashoffset: 0;
  fill-opacity: 1;
}

@media (max-width: 1023px) {
  .closing__sig { margin-bottom: 0; }
}

.closing .display {
  position: relative;
  color: var(--cream-hi);
}

.closing .btn-row {
  justify-content: center;
}

.closing__micro {
  font-size: 0.9rem;
  color: var(--on-dark-2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 calc(env(safe-area-inset-bottom, 0px) + 2.5rem);
  background: var(--ground);
  color: var(--on-dark-2);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: left;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1.5px solid var(--line-dark);
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__brand .brand svg {
  width: clamp(150px, 16vw, 200px);
}

.site-footer__mark {
  width: 44px;
  color: var(--cream);
}

.site-footer__mark svg {
  width: 100%;
  height: auto;
  aspect-ratio: 231.8 / 308.9;
  fill: currentColor;
}

.site-footer__label {
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-text);
}

.site-footer__list {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list a {
  display: inline-block;
  padding: 0.6rem 0;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover {
    color: var(--cream-hi);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.site-footer__legal {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
  font-size: 0.82rem;
}

@media (min-width: 900px) {
  .site-footer__legal {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.site-footer__legal p { margin: 0; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  z-index: var(--z-toast);
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-btn);
  background: var(--cream-hi);
  color: var(--ground);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(33, 16, 16, 0.6);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 400ms var(--ease-spring), opacity 280ms var(--ease-out);
}

.toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ==========================================================================
   Pagina Corso Pro
   ========================================================================== */
.facts {
  display: grid;
  background: var(--ground);
  color: var(--cream);
  border-bottom: 1.5px solid var(--line-dark);
  font-family: var(--font-mono);
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.fact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem var(--gutter);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fact + .fact { border-top: 1.5px solid var(--line-dark); }

@media (min-width: 720px) {
  .fact { justify-content: center; }
  .fact + .fact { border-top: 0; border-left: 1.5px solid var(--line-dark); }
}

.fact svg {
  width: 22px;
  height: auto;
  aspect-ratio: 231.8 / 308.9;
  fill: var(--red);
  flex: none;
}

/* Trailer: card scura come la tavola 13 */
.trailer {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .trailer { grid-template-columns: 1fr minmax(300px, 400px); }
}

.trailer .lead {
  max-width: 34ch;
  margin-top: 1.25rem;
  color: var(--on-dark-2);
}

.trailer-field {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.sig-texture--soft {
  top: 58%;
  color: var(--ground);
  opacity: 0.55;
}

.trailer__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.trailer__shots figure {
  margin: 0;
}

.trailer__shots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
}

.trailer__shots figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

@media (max-width: 899px) {
  .trailer__shots { display: none; }
}

@media (max-width: 479px) {
  .cta-tail { display: none; }
}

.trailer__note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--line-dark);
  max-width: 560px;
  color: var(--cream);
}

.trailer__frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ground);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.trailer__frame iframe,
.trailer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ground);
}

.trailer__video {
  object-fit: cover;
}

.trailer__badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-hi);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.trailer__badge svg {
  width: 34px;
  height: auto;
  aspect-ratio: 306.6 / 279.4;
  fill: var(--red);
}

.trailer__audio {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: var(--r-btn);
  background: var(--cream-hi) !important;
  color: var(--ground);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.trailer__audio svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.trailer__audio.is-on {
  background: var(--ground) !important;
  color: var(--cream-hi);
}

.trailer__progress {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(216, 202, 180, 0.2);
}

.trailer__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 250ms linear;
}

/* Per chi e' (su righe verdi) */
.fit {
  display: grid;
  gap: 14px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .fit { grid-template-columns: 1.3fr 1fr; }
}

.fit__col {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-card);
}

.fit__col--yes {
  background: var(--cream-hi);
  color: var(--ground);
}

.fit__col--no {
  background: var(--ground);
  color: var(--cream);
}

.fit__title {
  margin-bottom: 1.25rem;
}

.fit__list {
  display: grid;
  gap: 0.9rem;
}

.fit__list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.65rem;
  line-height: 1.45;
}

.fit__list svg {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

.fit__col--yes .fit__list svg { color: var(--green); }
.fit__col--no .fit__list svg { color: var(--red); }

.fit__list a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Se ti suona familiare: bordeaux, card a blocchi BI */
.pain__quote {
  max-width: 18ch;
}

.pain__sub {
  margin-top: 1.25rem;
  color: var(--on-dark-2);
}

.pain__grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 820px) {
  .pain__grid { grid-template-columns: repeat(2, 1fr); }
}

.pain-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 1.1rem;
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border-radius: var(--r-card);
}

.pain-card > div {
  display: grid;
  gap: 0.55rem;
}

/* Icone a tratto spesso, come le illustrazioni della BI */
.pain-card__ico {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.pain-card__ico .ico-fill { fill: currentColor; stroke: none; }
.pain-card__ico * { transform-box: view-box; }
.pain-card--cream .pain-card__ico,
.pain-card--ground .pain-card__ico { color: var(--red); }
.pain-card--red .pain-card__ico { color: var(--ground); }
.pain-card--green .pain-card__ico { color: var(--cream-hi); }

@media (prefers-reduced-motion: no-preference) {
  .pain-card.is-in .ico-merc { transform-origin: 32px 44px; animation: ico-merc 3.6s var(--ease-out) infinite alternate; }
  .pain-card.is-in .ico-ray { animation: ico-blink 3.6s ease-in-out infinite alternate; }
  .pain-card.is-in .ico-swap { transform-origin: 32px 32px; animation: ico-swap 3.2s var(--ease-out) infinite; }
  .pain-card.is-in .ico-no { transform-origin: 32px 27px; animation: ico-no 2.8s ease-in-out infinite; }
  .pain-card.is-in .ico-drop { animation: ico-drop 2.6s cubic-bezier(0.5, 0, 0.9, 0.6) infinite; }
}

@keyframes ico-merc { from { scale: 1 0.25; } to { scale: 1 1; } }
@keyframes ico-blink { from { opacity: 0.15; } to { opacity: 1; } }
@keyframes ico-swap { 0%, 35% { rotate: 0deg; } 65%, 100% { rotate: 180deg; } }
@keyframes ico-no {
  0%, 55%, 100% { rotate: 0deg; }
  62% { rotate: -14deg; }
  70% { rotate: 12deg; }
  78% { rotate: -8deg; }
  86% { rotate: 4deg; }
}
@keyframes ico-drop {
  0% { translate: 0 -6px; opacity: 0; }
  15% { opacity: 1; }
  70% { translate: 0 30px; opacity: 1; }
  85%, 100% { translate: 0 34px; opacity: 0; }
}

@media (max-width: 599px) {
  .pain-card { grid-template-columns: 40px 1fr; gap: 0.9rem; }
  .pain-card__ico { width: 40px; height: 40px; }
}

.pain-card h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.pain-card--cream { background: var(--cream-hi); color: var(--ground); }
.pain-card--cream p { color: var(--on-cream-2); }
.pain-card--red { background: var(--red); color: var(--ground); }
.pain-card--red p { font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.pain-card--green { background: var(--green); color: var(--cream-hi); }
.pain-card--green p { font-size: 1.2rem; font-weight: 650; line-height: 1.45; }
.pain-card--ground { background: var(--ground); color: var(--cream); }
.pain-card--ground p { color: var(--on-dark-2); }

.pain__close {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(4rem, 8vw, 6rem);
}

@media (min-width: 960px) {
  .pain__close { grid-template-columns: 1.1fr 1fr; }
}

.pain__close-lines p {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--on-dark-2);
  text-transform: uppercase;
}

.pain__close-lines .display {
  margin-top: 1.25rem;
  color: var(--cream-hi);
}

/* Lezioni Pro: scorrimento orizzontale su crema */
.lessons-head {
  display: grid;
  gap: 1.25rem;
}

.lessons-head .lead {
  color: var(--on-cream-2);
}

.lessons__track {
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: flex;
  gap: 14px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 0.5rem var(--edge) 1.5rem;
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bordeaux) transparent;
}

.lesson {
  flex: 0 0 min(82vw, 340px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-card);
  background: var(--cream-hi);
  color: var(--ground);
  overflow: hidden;
  scroll-snap-align: start;
}

.lesson--feature {
  flex-basis: min(88vw, 440px);
  background: var(--ground);
  color: var(--cream);
}

.lesson__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.lesson__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.7rem;
  padding: 1.3rem 1.35rem 1.35rem;
}

.lesson__ep {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lesson__title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.lesson__p {
  font-size: 0.94rem;
  color: var(--on-cream-2);
}

.lesson--feature .lesson__p {
  color: var(--on-dark-2);
}

.lesson--feature .lesson__ep b {
  color: var(--red-text);
}

.lesson__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1.5px solid var(--line-cream);
}

.lesson--feature .lesson__buy {
  border-top-color: var(--line-dark);
}

.lesson__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.lesson__price strong {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.lesson__buy .btn {
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
}

.lessons__nav {
  display: flex;
  gap: 0.6rem;
}

.lessons__sum {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-card);
  background: var(--bordeaux);
  color: var(--cream);
}

@media (min-width: 900px) {
  .lessons__sum { grid-template-columns: 1fr auto; }
}

.lessons__sum p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
}

/* Senza glutine: campo rosso */
.gf {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .gf { grid-template-columns: 1fr 1fr; }
}

.gf-field {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Icona BI in trasparenza nell'angolo in alto a destra */
.gf__icon {
  position: absolute;
  z-index: -1;
  top: -24%;
  right: -9%;
  width: min(44vw, 620px);
  height: auto;
  opacity: 0.26;
  rotate: 12deg;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .gf__icon { animation: gf-icon 12s ease-in-out infinite alternate; }
}

@keyframes gf-icon {
  from { rotate: 12deg; translate: 0 0; }
  to { rotate: 4deg; translate: -2% 3%; }
}

@media (max-width: 899px) {
  .gf__icon { top: -6%; right: -18%; width: 78vw; }
}

.gf__img {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  background: var(--bordeaux);
}

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

.gf__copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

/* Titoletto grande: "SENZA GLUTINE" in evidenza su fondo scuro */
.gf__kicker {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.gf__kicker strong {
  display: inline-block;
  padding: 0.1em 0.35em;
  border-radius: var(--r-btn);
  background: var(--ground);
  color: var(--cream-hi);
  font-size: 1.35em;
  line-height: 1.15;
}

/* Pacchetti su crema */
.packs-head .lead {
  margin-top: 1rem;
  color: var(--on-cream-2);
}

.packs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84vw, 340px);
  gap: 12px;
  margin: clamp(2.5rem, 5vw, 3.5rem) calc(var(--gutter) * -1) 0;
  padding: 1.75rem var(--gutter) 1.5rem;
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bordeaux) transparent;
}

@media (min-width: 1100px) {
  .packs {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

.pack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  gap: 1rem;
  padding: 1.6rem 1.35rem 1.35rem;
  border-radius: var(--r-card);
  background: var(--cream-hi);
  color: var(--ground);
  scroll-snap-align: start;
}

.pack--top {
  background: var(--bordeaux);
  color: var(--cream);
}

.pack__badge {
  position: absolute;
  top: -24px;
  right: 14px;
  width: 64px;
  color: var(--red);
}

.pack__badge svg {
  width: 100%;
  height: auto;
  aspect-ratio: 306.6 / 279.4;
  fill: currentColor;
}

.pack__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pack__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pack__price strong {
  font-size: clamp(2.6rem, 4.2vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.pack__sub {
  font-weight: 700;
}

.pack__list {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--line-cream);
}

.pack--top .pack__list {
  border-top-color: var(--line-dark);
}

.pack__list li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pack__list svg {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  color: var(--green);
}

.pack--top .pack__list svg {
  color: var(--red);
}

.pack__menu {
  display: grid;
  gap: 2px;
  margin-top: 0.4rem;
  padding: 4px;
  border-radius: var(--r-btn);
  background: var(--ground);
  color: var(--cream);
}

.pack__menu[hidden] { display: none; }

.pack__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
  padding: 0 0.8rem;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pack__menu a span:last-child {
  color: var(--yellow);
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .pack__menu a:hover { background: var(--bordeaux); }
}

.packs__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.packs__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.packs__trust svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* Foto di Alessandro in testa alle card prezzi */
.pack__photo {
  margin: -1.6rem -1.35rem 0.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--ground);
}

.pack__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: scale 900ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pack:hover .pack__photo img { scale: 1.04; }
}

.pack:has(.pack__photo) {
  grid-template-rows: auto auto auto auto 1fr auto;
}

/* Corso + Laboratorio: la mezza giornata con Alessandro in risalto */
.pack__highlight {
  position: relative;
  display: block;
  margin: 1.1rem 0 0.35rem;
  padding: 1.35rem 1.1rem 1rem;
  border-radius: var(--r-card);
  background: var(--red);
  color: var(--cream-hi);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  rotate: -1.5deg;
  box-shadow: 0 14px 28px -14px rgba(73, 31, 31, 0.75);
}

.pack__highlight-tag {
  position: absolute;
  top: -0.85rem;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-btn);
  background: var(--yellow);
  color: var(--ground);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  rotate: 2deg;
}

.pack__highlight-tag svg {
  width: 13px;
  height: 17px;
  fill: currentColor;
}

.pack--top .pack__badge {
  z-index: 1;
}

/* Telefono: card più strette e basse, il bottone di ogni pacchetto resta in vista */
@media (max-width: 699px) {
  .packs {
    grid-auto-columns: min(74vw, 290px);
    gap: 10px;
    padding-top: 1.5rem;
  }

  .pack {
    gap: 0.6rem;
    padding: 1.1rem 1rem 1rem;
  }

  .pack__photo {
    margin: -1.1rem -1rem 0.15rem;
    aspect-ratio: 16 / 7;
  }

  .pack__badge {
    top: -20px;
    width: 52px;
  }

  .pack__price strong {
    font-size: 2.1rem;
  }

  .pack__sub {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .pack__list {
    gap: 0.4rem;
    padding-top: 0.7rem;
  }

  .pack__list li {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .pack__highlight {
    margin: 0.8rem 0 0.2rem;
    padding: 1rem 0.8rem 0.7rem;
    font-size: 0.9rem;
  }

  .pack__cta .btn {
    min-height: 46px;
    font-size: 0.82rem;
  }

  /* Lezioni singole: stessa misura compatta dei pacchetti */
  .lessons__track {
    gap: 10px;
  }

  .lesson,
  .lesson--feature {
    flex-basis: min(74vw, 290px);
  }

  .lesson__img {
    aspect-ratio: 16 / 7;
  }

  .lesson__body {
    gap: 0.5rem;
    padding: 1rem 1rem 1rem;
  }

  .lesson__title {
    font-size: 1.2rem;
  }

  .lesson__p {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .lesson__buy {
    padding-top: 0.7rem;
  }

  .lesson__price strong {
    font-size: 1.3rem;
  }
}

/* Home · prezzi: gruppi Pro / Casa e card Casa a tutta larghezza */
.pricing__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.95rem;
  font-weight: 700;
}

.pricing__group + .packs {
  margin-top: 0.25rem;
}

.pack--casa,
.pack--casa:has(.pack__photo) {
  grid-template-rows: none;
  margin-top: 1rem;
  background: var(--green);
  color: var(--cream-hi);
}

.pack--casa .pack__head {
  display: grid;
  gap: 1rem;
}

.pack--casa .pack__list {
  border-top-color: rgba(236, 227, 211, 0.25);
}

.pack--casa .pack__list svg {
  color: var(--cream-hi);
}

@media (min-width: 900px) {
  .pack--casa {
    grid-template-columns: minmax(200px, 0.8fr) 1fr 1.2fr minmax(220px, 0.8fr);
    align-items: center;
    column-gap: clamp(1.75rem, 3vw, 3rem);
    padding: 0 clamp(1.75rem, 3vw, 2.5rem) 0 0;
    overflow: hidden;
  }

  .pack--casa .pack__photo {
    align-self: stretch;
    margin: 0;
    aspect-ratio: auto;
    min-height: 220px;
    border-radius: 0;
  }

  .pack--casa .pack__list {
    padding: 0 0 0 clamp(2rem, 4vw, 3.5rem);
    border-top: 0;
    border-left: 1.5px solid rgba(236, 227, 211, 0.25);
  }
}

/* Come funziona */
.steps {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
}

.step {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-top: 1rem;
  border-top: 2px solid var(--red);
}

.step__n {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.step p { color: var(--on-dark-2); }

.steps__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1.5px solid var(--line-dark);
  color: var(--on-dark-2);
  max-width: 820px;
}

/* Barra CTA mobile (Pro) */
.float-cta {
  position: fixed;
  z-index: var(--z-float);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 0.6rem);
  background: var(--ground);
  border-top: 1.5px solid var(--line-dark);
  color: var(--cream);
  font-family: var(--font-mono);
  transform: translateY(110%);
  transition: transform 420ms var(--ease-spring);
}

.float-cta.is-on { transform: none; }

.float-cta__txt {
  display: grid;
  line-height: 1.2;
  font-weight: 700;
}

.float-cta__txt span {
  font-size: 0.78rem;
  color: var(--on-dark-2);
}

.float-cta .btn {
  min-height: 46px;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  width: auto;
}

@media (min-width: 900px) {
  .float-cta { display: none; }
}

/* Fascia "La pizza e' il tuo lavoro?" (pagina Casa) */
.crosslink {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--bordeaux);
  color: var(--cream);
  font-family: var(--font-mono);
}

.crosslink__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .crosslink__inner { grid-template-columns: 1fr auto; gap: 3rem; }
}

.crosslink p {
  color: var(--on-dark-2);
  max-width: 52ch;
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Movimento ridotto
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .orbit__text { animation: none; }
  .site-menu__links a { transform: none; transition: opacity 200ms linear; }
  .btn, .btn .icon, .float-cta, .path__visual img { transition: none; }
}

/* Casa · "Fa per te / Non fa per te": icone a tratto spesso della BI */
.target-ico {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.target-ico * { transform-box: view-box; }
.target-ico .ico-fill { fill: currentColor; stroke: none; }
.target-ico .ico-thin { stroke-width: 3; }
@media (min-width: 1024px) { .target-ico { width: 64px; height: 64px; } }
.target-ico--yes { color: #5fa463; }
.target-ico--no { color: var(--red); }

@media (prefers-reduced-motion: no-preference) {
  .target-ico .ico-spin { transform-origin: 32px 32px; animation: ico-spin 14s linear infinite; }
  .target-ico .ico-top { transform-origin: center; transform-box: fill-box; animation: ico-pop 3.6s var(--ease-out) infinite; }
  .target-ico .ico-top:nth-of-type(2) { animation-delay: 0.3s; }
  .target-ico .ico-top:nth-of-type(3) { animation-delay: 0.6s; }
  .target-ico .ico-no { transform-origin: 32px 41px; animation: ico-no 2.8s ease-in-out infinite; }
}

@keyframes ico-spin { to { rotate: 360deg; } }
@keyframes ico-pop {
  0%, 10% { scale: 0; }
  22% { scale: 1.25; }
  30%, 80% { scale: 1; }
  92%, 100% { scale: 0; }
}

/* ==========================================================================
   Pagina Corso Casa (stesso sistema di Home e Pro, copy della landing)
   ========================================================================== */
.hero--casa .hero__title {
  font-size: clamp(2.3rem, 5.8vw, 5.2rem);
}

.casa-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--cream-hi);
}

.casa-price strong {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Quattro fatti: righe sottili tra le celle */
.facts--4 {
  gap: 1.5px;
  background: var(--line-dark);
}

.facts--4 .fact {
  background: var(--ground);
  border: 0 !important;
}

@media (min-width: 560px) {
  .facts--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .facts--4 { grid-template-columns: repeat(4, 1fr); }
}

.casa-stars span {
  color: var(--yellow);
  letter-spacing: 0.1em;
}

.casa-accent {
  color: var(--red-text);
}

.field--cream .casa-accent {
  color: var(--red);
}

.trailer__copy .lead + .lead {
  margin-top: 1rem;
}

.trailer__copy .casa-accent {
  font-weight: 700;
}

.casa-offer {
  display: grid;
  gap: 1rem;
  max-width: 480px;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.35rem;
  border-radius: var(--r-card);
  background: var(--ground);
  color: var(--cream);
}

.casa-offer__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.casa-offer__row p {
  display: grid;
  gap: 0.3rem;
}

.casa-offer__row p:last-child {
  text-align: right;
}

.casa-offer__row .label {
  color: var(--red-text);
}

.casa-offer__row strong {
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--cream-hi);
}

.casa-offer__micro {
  font-size: 0.82rem;
  color: var(--on-dark-2);
  text-align: center;
}

.casa-trailer-hint {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* Problema */
.casa-pain-label {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--on-dark-2);
}

.casa-pain-label + .pain__grid {
  margin-top: 1.25rem;
}

.casa-em {
  font-style: normal;
  color: var(--red-text);
}

.casa-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.casa-duo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-card);
}

.casa-pain-end {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--line-dark);
  color: var(--on-dark-2);
  max-width: 70ch;
}

/* Videolezioni: card cliccabili, play sulla foto, bonus a sorpresa */
.lesson.ep-card {
  cursor: pointer;
  transition: translate 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lesson.ep-card:hover { translate: 0 -4px; }
}

.casa-play {
  position: relative;
}

.casa-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(33, 16, 16, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='%23ece3d3'/%3E%3C/svg%3E") center / 30px no-repeat;
  border: 2px solid rgba(236, 227, 211, 0.45);
}

.casa-bonus {
  display: grid;
  place-items: center;
  background: var(--bordeaux);
  outline: 2px dashed rgba(216, 202, 180, 0.35);
  outline-offset: -14px;
}

.casa-bonus span {
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cream-hi);
  opacity: 0.4;
}

.casa-lesson-sub {
  font-weight: 700;
  color: var(--bordeaux);
}

.lesson--feature .casa-lesson-sub {
  color: var(--red-text);
}

.lessons__sum em {
  font-style: normal;
  color: var(--cream-hi);
}

/* Metodo */
.rule .label {
  color: var(--red-text);
}

.casa-method-close {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--cream-hi);
  max-width: 48ch;
}

/* Bottone principale ripetuto ogni 1-2 sezioni (come nella pagina Casa) */
.cta-row {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.cta-row__micro {
  font-size: 0.85rem;
  opacity: 0.8;
}

.casa-cta-row {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* La soluzione */
.casa-sol {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .casa-sol { grid-template-columns: 1fr 1fr; }
}

.casa-sol__img img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--r-card);
}

.casa-sol__copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.casa-sol__copy > p:not(.label):not(.lead) {
  color: var(--on-cream-2);
  max-width: 58ch;
}

.casa-sol__copy strong {
  color: var(--red);
}

.casa-sol__lead {
  font-weight: 700;
}

.casa-sol__sig {
  width: min(260px, 60%);
  color: var(--red);
}

.casa-sol__sig svg {
  width: 100%;
  height: auto;
  aspect-ratio: 916 / 420;
  fill: currentColor;
}

/* Tutto incluso */
.casa-incl {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .casa-incl { grid-template-columns: 1.2fr 1fr; }
  .casa-incl__img { position: sticky; top: calc(var(--header-h) + 24px); }
}

.casa-incl__list {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.casa-incl__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--line-cream);
}

.casa-incl__list svg {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  color: var(--green);
}

.casa-incl__list h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.casa-incl__list p {
  color: var(--on-cream-2);
}

.casa-incl__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-card);
}

/* Sponsor e ospite: foto + testo */
.casa-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .casa-split { grid-template-columns: 1fr 1.15fr; }
  .casa-split--rev .casa-split__img { order: 2; }
}

.casa-split__img img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--r-card);
}

.casa-split__img--tall img {
  aspect-ratio: 4 / 5;
  object-position: 50% 20%;
}

.casa-split__copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.casa-split__copy > p:not(.label) {
  max-width: 58ch;
}

.field--bordeaux .casa-split__copy > p:not(.label) {
  color: var(--on-dark-2);
}

.field--bordeaux .casa-split__copy strong {
  color: var(--cream-hi);
}

.field--red .casa-split__copy > p:not(.label) {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.5;
}

.casa-split__logo {
  width: 96px;
  height: auto;
}

.casa-quote {
  padding-left: 1rem;
  border-left: 4px solid currentColor;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream-hi);
}

/* Fascia CTA con foto */
.casa-band {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.casa-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casa-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(33, 16, 16, 0.88), rgba(33, 16, 16, 0.6) 50%, rgba(33, 16, 16, 0.9));
}

.casa-band__inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.casa-band .label {
  color: var(--red-text);
}

.casa-band .display {
  color: var(--cream-hi);
}

.casa-band .lead strong {
  color: var(--yellow);
}

.casa-band__micro {
  font-size: 0.85rem;
  color: var(--on-dark-2);
}

/* Il risultato: tre foto del prodotto finito */
.casa-results {
  background: var(--ground);
}

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

.casa-results__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.casa-results__cap {
  padding: 1.1rem var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* Acquista */
.casa-buy-sub {
  font-size: 0.55em;
  color: var(--bordeaux);
}

.casa-buy {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--r-card);
}

@media (min-width: 900px) {
  .casa-buy { grid-template-columns: 1.15fr 1fr; }
}

.casa-buy__info {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--cream-hi);
  color: var(--ground);
  border-radius: var(--r-card) var(--r-card) 0 0;
}

.casa-buy__price {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--bordeaux);
  color: var(--cream);
  border-radius: 0 0 var(--r-card) var(--r-card);
}

@media (min-width: 900px) {
  .casa-buy__info { border-radius: var(--r-card) 0 0 var(--r-card); }
  .casa-buy__price { border-radius: 0 var(--r-card) var(--r-card) 0; }
}

.casa-buy__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.casa-buy__brand svg {
  width: 130px;
  height: auto;
  aspect-ratio: 916 / 420;
  fill: var(--red);
}

.casa-buy__title {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.casa-buy__intro {
  color: var(--on-cream-2);
}

.casa-buy__price > .label {
  color: var(--red-text);
}

.casa-buy__price .pack__price strong {
  font-size: clamp(3.6rem, 6vw, 4.8rem);
  color: var(--cream-hi);
}

.casa-buy__vat {
  font-size: 0.85rem;
  color: var(--on-dark-2);
}

.casa-klarna {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1.5px solid rgba(255, 168, 205, 0.4);
  border-radius: var(--r-btn);
  background: rgba(255, 168, 205, 0.08);
}

.casa-klarna__tag {
  flex: none;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  background: #ffa8cd;
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.casa-klarna__t {
  font-weight: 700;
  color: var(--cream-hi);
}

.casa-klarna__s {
  font-size: 0.8rem;
  color: var(--on-dark-2);
}

.casa-buy__btn {
  min-height: 64px;
}

.casa-buy__btn span {
  display: grid;
  gap: 0.2rem;
  text-align: left;
}

.casa-buy__btn small {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.casa-buy__trust {
  display: grid;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--line-dark);
  font-size: 0.88rem;
  color: var(--on-dark-2);
}

.casa-buy__trust li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.5rem;
}

.casa-buy__trust svg {
  width: 14px;
  height: 14px;
  margin-top: 0.25rem;
  color: var(--red-text);
}

.casa-buy__foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--on-cream-2);
}

.casa-buy__note {
  max-width: 72ch;
  margin: 0.75rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--on-cream-2);
}

/* Assistenza */
.casa-help {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.casa-help .display {
  max-width: 26ch;
}

.casa-help p + p {
  margin-top: 0.5rem;
}

.casa-help a {
  font-weight: 700;
  color: var(--cream-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.casa-faq-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  opacity: 0.8;
}

.casa-closing-em {
  color: var(--red-text);
}

.closing .label {
  color: var(--red-text);
}

/* Popup "contenuto bloccato" */
.casa-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  font-family: var(--font-mono);
}

.casa-modal[hidden] {
  display: none;
}

.casa-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 6, 6, 0.78);
}

.casa-modal__box {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: center;
  width: 100%;
  max-width: 480px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--r-card);
  background: var(--bordeaux);
  color: var(--cream);
  text-align: center;
}

.casa-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--cream-hi);
  rotate: 45deg;
}

.casa-modal__title {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cream-hi);
}

.casa-modal__box em {
  font-style: normal;
  color: var(--yellow);
}

.casa-modal__back {
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.casa-modal__trust {
  padding-top: 0.9rem;
  border-top: 1.5px solid var(--line-dark);
  width: 100%;
  font-size: 0.78rem;
  color: var(--on-dark-2);
}

/* "Sei sicuro?": proposta del corso completo prima di una lezione singola */
.upsell {
  width: min(calc(100vw - 32px), 460px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: var(--cream-hi);
  color: var(--ground);
  font-family: var(--font-mono);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.upsell::backdrop {
  background: rgba(33, 16, 16, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.upsell[open] {
  animation: upsell-in 380ms var(--ease-out);
}

@keyframes upsell-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
}

.upsell__photo {
  height: 170px;
  margin: 0;
  overflow: hidden;
}

.upsell__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.upsell__body {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem 1.4rem 1.4rem;
}

.upsell__title {
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.upsell__text strong {
  color: var(--red);
}

.upsell__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.upsell__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 16, 16, 0.6);
  color: var(--cream-hi);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .upsell[open] { animation: none; }
}

/* --------------------------------------------------------------------------
   Uscita del Corso Professionale (16/11/2026)
   -------------------------------------------------------------------------- */
[data-soon][hidden],
[data-buy][hidden],
.countdown[hidden] { display: none; }

/* Titolo hero più lungo: corpo più piccolo, va a capo da solo */
.hero--pro .hero__title {
  font-size: clamp(2.1rem, 5.6vw, 4.9rem);
  line-height: 1;
  max-width: 16ch;
}

/* Conto alla rovescia nell'hero */
.countdown {
  display: grid;
  gap: 0.55rem;
}

.countdown__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 6px;
}

.countdown__unit {
  display: grid;
  justify-items: center;
  min-width: 4.1rem;
  padding: 0.5rem 0.55rem 0.45rem;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--r-btn);
  background: rgba(33, 16, 16, 0.55);
  color: var(--cream-hi);
}

.countdown__unit b {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.countdown__unit span {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

@media (max-width: 699px) {
  .countdown__unit { min-width: 3.5rem; padding-inline: 0.4rem; }
}

/* La firma che si scrive anche in alto, prima del trailer */
.sign-band .closing__sig { margin-bottom: 0; }

/* Corso completo: le 7 lezioni dentro la card */
.pack__lessons {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.pack__lessons li {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
}

.pack__lessons span {
  font-variant-numeric: tabular-nums;
  color: var(--red-text);
  font-weight: 700;
}

/* «Disponibile da lunedì 16 novembre»: la scritta va a capo dentro il bottone */
.btn:has(> [data-soon]:not([hidden])) {
  white-space: normal;
  text-align: center;
}

/* Fonte del dato sui celiaci */
.gf__source {
  margin-top: -0.6rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

.gf__source a { text-decoration: underline; text-underline-offset: 0.18em; }

/* Da telefono e tablet i pacchetti partono dal Corso completo */
@media (max-width: 1099px) {
  .pack--top { order: -1; }
}

/* «Professionale» in corsivo è più lungo di «Pro»: corpo legato alla larghezza della card */
.path--pro .path__script {
  font-size: clamp(3.6rem, 21vw, 7.5rem);
}

@media (min-width: 900px) {
  .path--pro .path__script { font-size: clamp(4.5rem, 9vw, 8.5rem); }
}

/* --------------------------------------------------------------------------
   Pacchetti del Corso Professionale (4/11/2026): due livelli e confronto.
   1 = solo il corso online (Corso completo, Lezione singola)
   2 = pacchetti VIP (Corso + Kit, Corso + Laboratorio): pannello scuro e oro
   -------------------------------------------------------------------------- */
.tier {
  display: grid;
  gap: 0.35rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.tier__label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier__n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ground);
  color: var(--cream-hi);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.tier__sub {
  color: var(--on-cream-2);
  font-size: 0.95rem;
}

/* Livello 1: due card affiancate, mai a carosello */
.packs.packs--duo {
  grid-auto-flow: row;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-columns: auto;
  gap: 14px;
  margin: 1.4rem 0 0;
  padding: 1.5rem 0 0;
  overflow: visible;
}

@media (min-width: 760px) {
  .packs.packs--duo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .packs--duo .pack__photo { aspect-ratio: 16 / 8; }
}

@media (min-width: 1100px) {
  .packs--duo .pack__lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
}

.pack__for {
  font-weight: 700;
  line-height: 1.4;
}

/* Livello 2: VIP */
.vip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.4rem, 4vw, 3.25rem);
  border: 1px solid rgba(255, 179, 57, 0.3);
  border-radius: calc(var(--r-card) * 1.4);
  background:
    radial-gradient(110% 70% at 90% 0%, rgba(255, 179, 57, 0.17), transparent 60%),
    linear-gradient(165deg, #2f1515 0%, var(--ground) 62%);
  color: var(--cream);
  box-shadow: 0 34px 70px -34px rgba(33, 16, 16, 0.75);
}

.vip .sig-texture {
  width: 190%;
  color: var(--bordeaux);
  opacity: 0.45;
}

.tier__label--vip { color: var(--yellow); }

.tier__label--vip .tier__n {
  background: var(--yellow);
  color: var(--ground);
}

.vip__title {
  max-width: 24ch;
  margin-top: 0.9rem;
  color: var(--cream-hi);
  font-size: clamp(1.55rem, 3.3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.vip__sub {
  margin-top: 0.75rem;
  color: var(--cream);
}

.vip__cards {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 900px) {
  .vip__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.vip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--r-card);
  background: rgba(236, 227, 211, 0.04);
}

.vip-card--gold {
  border-color: var(--yellow);
  background: linear-gradient(180deg, rgba(255, 179, 57, 0.12), rgba(255, 179, 57, 0.02) 55%);
  box-shadow: 0 0 0 1px rgba(255, 179, 57, 0.35), 0 26px 60px -26px rgba(255, 179, 57, 0.4);
}

.vip-card__photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ground);
}

.vip-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: scale 900ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .vip-card:hover .vip-card__photo img { scale: 1.04; }
}

/* «Posti limitatissimi»: sopra il nome del pacchetto, mai sopra la foto (copriva il viso) */
.vip-card__ribbon {
  align-self: flex-start;
  margin-bottom: -0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border-radius: var(--r-btn);
  background: var(--yellow);
  color: var(--ground);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(33, 16, 16, 0.7);
}

.vip-card__ribbon svg {
  width: 12px;
  height: 16px;
  fill: currentColor;
}

.vip-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.4rem 1.35rem 1.35rem;
}

.vip-card__name {
  color: var(--cream-hi);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vip-card__price strong {
  color: var(--cream-hi);
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.vip-card--gold .vip-card__price strong { color: var(--yellow); }

.vip-card__for {
  color: var(--cream-hi);
  font-weight: 700;
  line-height: 1.4;
}

.vip-card__get {
  display: grid;
  gap: 0.5rem;
}

.vip-card__get li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(236, 227, 211, 0.06);
}

.vip-card__get b {
  display: block;
  color: var(--cream-hi);
  font-size: 0.95rem;
  line-height: 1.25;
}

.vip-card__get span {
  display: block;
  margin-top: 0.15rem;
  color: var(--cream);
  font-size: 0.82rem;
  line-height: 1.4;
}

.vip-ico {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(236, 227, 211, 0.1);
  fill: none;
  stroke: var(--cream-hi);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vip-ico--fill {
  padding: 0.6rem 0.75rem;
  background: var(--ground);
  fill: var(--yellow);
  stroke: none;
}

/* La mezza giornata con Alessandro: il bannerino rosso di prima, con l'etichetta gialla «Dal vivo» */
.vip-card__get .vip-card__star {
  position: relative;
  margin-top: 0.85rem;
  padding-top: 1.1rem;
  background: var(--red);
  rotate: -1.5deg;
  box-shadow: 0 14px 28px -14px rgba(229, 37, 37, 0.7);
}

.vip-card__star b {
  color: var(--cream-hi);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.vip-card__star span { color: var(--cream-hi); }

.vip-card__live {
  position: absolute;
  top: -0.8rem;
  left: 0.85rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-btn);
  background: var(--yellow);
  color: var(--ground);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  rotate: 2deg;
}

.vip-card__cta {
  margin-top: auto;
  padding-top: 0.4rem;
}

.btn--gold {
  background: var(--yellow);
  color: var(--ground);
}

@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: #ffc263; }
}

.vip__note {
  margin-top: 1.5rem;
  color: var(--cream);
  font-size: 0.9rem;
}

@media (max-width: 699px) {
  .vip {
    margin-inline: calc(var(--gutter) * -0.5);
    padding: 1.4rem 1rem 1.25rem;
  }
  .vip-card__body { padding: 1.15rem 1rem 1rem; }
  .vip-card__get li { grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.7rem; padding: 0.65rem 0.7rem; }
  .vip-ico { width: 2.3rem; height: 2.3rem; padding: 0.45rem; }
}

/* Confronto dei pacchetti */
.compare {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.compare__title {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.compare__scroll {
  margin-top: 1.25rem;
  overflow-x: auto;
  border-radius: var(--r-card);
  background: var(--cream-hi);
  scrollbar-width: thin;
}

.compare table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare th,
.compare td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1.5px solid var(--line-cream);
  text-align: center;
  vertical-align: middle;
}

.compare tbody th {
  text-align: left;
  font-weight: 700;
  line-height: 1.3;
}

.compare thead th {
  vertical-align: bottom;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.compare thead th span {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.compare tbody th,
.compare thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 34%;
  background: var(--cream-hi);
}

.compare .is-top { background: rgba(73, 31, 31, 0.08); }

.compare thead th.is-vip {
  background: var(--ground);
  color: var(--yellow);
}

.compare thead th.is-vip span { color: var(--cream-hi); }

.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }

.compare .yes,
.compare .no {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.compare .yes {
  background: var(--green);
  color: var(--cream-hi);
}

.compare .yes::before { content: "✓"; }

.compare .yes--gold {
  background: var(--red);
  color: var(--cream-hi);
}

.compare .no { color: rgba(33, 16, 16, 0.3); }

.compare .no::before { content: "—"; }

.compare .c-short { display: none; }
.compare thead b { display: block; font-weight: 800; }

/* Telefono: la tabella entra tutta nello schermo, intestazioni corte */
@media (max-width: 699px) {
  .compare table { min-width: 0; table-layout: fixed; font-size: 0.74rem; }
  .compare th, .compare td { padding: 0.65rem 0.25rem; }
  .compare tbody th, .compare thead th:first-child { width: 36%; padding-left: 0.7rem; }
  .compare thead th { font-size: 0.64rem; letter-spacing: 0.02em; }
  .compare thead th span { font-size: 0.86rem; }
  .compare .c-long { display: none; }
  .compare .c-short { display: block; }
  .compare td .c-short { font-size: 0.95rem; font-weight: 800; }
  .compare .yes, .compare .no { width: 1.35rem; height: 1.35rem; font-size: 0.75rem; }
}

/* Telefono: le foto dei pacchetti intere (3:2, come lo scatto), mai teste tagliate */
@media (max-width: 699px) {
  .packs--duo .pack__photo,
  .vip-card__photo { aspect-ratio: 3 / 2; }
  .packs--duo .pack__photo img,
  .vip-card__photo img { object-position: 50% 0%; }
}

/* Pacchetti VIP: cosa succede dopo l'acquisto, ben in vista sopra il bottone */
.vip-after {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  margin-top: 0.35rem;
  padding: 0.9rem 0.95rem;
  border: 1.5px dashed rgba(255, 179, 57, 0.7);
  border-radius: 12px;
  background: rgba(255, 179, 57, 0.08);
}

.vip-after__ico {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--yellow);
  fill: none;
  stroke: var(--ground);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vip-after b {
  display: block;
  color: var(--yellow);
  font-size: 0.95rem;
  line-height: 1.3;
}

.vip-after span {
  display: block;
  margin-top: 0.25rem;
  color: var(--cream-hi);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Home: i pacchetti del Professionale sotto l'etichetta del gruppo; il Casa più staccato dal confronto */
.tier--first { margin-top: 1.25rem; }
#prezzi .compare + .pricing__group { margin-top: clamp(3rem, 6vw, 4.5rem); }

