/* ==========================================================================
   THE WISE GUY · Mother-Ship Full-Screen Cinema Hero Styles
   100svh Edge-to-Edge Stage · Ecosystem Vector Lockups · 3-Panel Finale
   ========================================================================== */

.hero-stage[data-hero-mode="cinema"] {
  margin-top: 112px !important;
  padding: 0 !important;
  min-height: calc(100svh - 112px) !important;
  height: calc(100svh - 112px);
  max-height: 1080px;
  display: block !important;
  overflow: hidden;
  background: #08090F;
}
.hero-stage[data-hero-mode="cinema"] > .hero-bg-media,
.hero-stage[data-hero-mode="cinema"] > .hero-scrim-layer,
.hero-stage[data-hero-mode="cinema"] > .hero-neural-svg,
.hero-stage[data-hero-mode="cinema"] > .hero-bottom-fade {
  display: none !important;
}
.hero-stage[data-hero-mode="cinema"] .hl-mode-cinema {
  display: block !important;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 112px);
}

.twc {
  position: relative; width: 100%; height: calc(100svh - 112px); min-height: 590px;
  overflow: hidden; background: #08090F; color: #F4F3F8; isolation: isolate;
}
.twc-stage {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  background: #08090F url('/assets/restyling/media/cinema/t01.jpg') center/cover no-repeat;
  transition: filter 0.65s ease, transform 0.65s ease;
}
.twc-stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; pointer-events: none; transform: scale(1.04); transition: opacity 0.85s ease;
  animation: twcKenBurns 9s linear infinite alternate; will-change: transform, opacity;
}
.twc-stage video.is-on { opacity: 1; }
@keyframes twcKenBurns {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.11) translate(-1.1%, -0.7%); }
}
.twc-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(80% 60% at 70% 35%, rgba(8, 9, 15, 0.08), rgba(8, 9, 15, 0.64)),
    linear-gradient(180deg, rgba(8, 9, 15, 0.58) 0%, rgba(8, 9, 15, 0.14) 34%, rgba(8, 9, 15, 0.30) 58%, rgba(8, 9, 15, 0.95) 100%);
}
.twc-grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}

/* ── Kinetic Scene Overlay + Direct Pillar Link ── */
.twc-ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: var(--twg-container-max, 1360px); margin-inline: auto;
  padding: 0 var(--twg-gutter, 24px) 84px;
  z-index: 10; transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none;
}
.twc-txt { max-width: var(--twg-content-max, 1312px); transition: opacity 0.36s ease, transform 0.36s ease; }
.twc-txt.is-out { opacity: 0; transform: translateY(12px); }
.twc-fase {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #4EDEA3; margin-bottom: 11px;
  padding: 5px 12px; border-radius: 8px; background: rgba(10, 12, 22, 0.76);
  border: 1px solid rgba(78, 222, 163, 0.38); backdrop-filter: blur(8px);
}
.twc-fase:empty { display: none; }
.twc-line {
  max-width: 19.5ch; font-family: var(--font-sans);
  font-size: clamp(30px, 4.8vw, 68px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.04; color: #FFFFFF; text-shadow: 0 8px 42px rgba(0, 0, 0, 0.88); margin: 0;
}
.twc-line b { background: linear-gradient(95deg, #DDB7FF 0%, #22D3EE 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.twc-sub {
  margin: 11px 0 0; font-size: clamp(14.5px, 1.25vw, 19px); line-height: 1.45;
  color: #DCE2EE; max-width: 65ch; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.92);
}
.twc-pillar-cta {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 7px 14px; border-radius: 999px;
  background: rgba(168, 85, 247, 0.22); border: 1px solid rgba(192, 132, 252, 0.58);
  color: #F5F3FF !important; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; backdrop-filter: blur(8px); transition: all 0.18s ease;
}
.twc-pillar-cta:hover {
  transform: translateY(-1px);
  background: rgba(168, 85, 247, 0.36);
  border-color: #4EDEA3;
}
.twc-pillar-cta:empty { display: none; }

/* Suspense Question Beat */
.twc.is-q .twc-stage { filter: brightness(0.32) contrast(1.08); transform: scale(1.03); }
.twc.is-q .twc-ui { top: 0; bottom: 0; padding: 0 24px; display: flex; align-items: center; justify-content: center; text-align: center; }
.twc.is-q .twc-line {
  max-width: none;
  font-size: clamp(36px, 6.2vw, 88px);
  color: #FFFFFF;
  text-shadow: 0 0 64px rgba(168, 85, 247, 0.68), 0 8px 40px rgba(0, 0, 0, 0.92);
}
.twc.is-q .twc-sub, .twc.is-q .twc-fase, .twc.is-q .twc-pillar-cta, .twc.is-q .twc-bar { opacity: 0; pointer-events: none; }

/* ── Clickable Segmented Story Bar ── */
.twc-bar {
  position: absolute;
  left: clamp(20px, 4.5vw, 64px);
  right: clamp(20px, 4.5vw, 64px);
  bottom: 62px;
  height: 4px;
  z-index: 20;
  display: flex;
  gap: 6px;
  transition: opacity 0.35s ease;
}
.twc-bar button {
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  border-radius: 99px;
  cursor: pointer;
}
.twc-bar button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  bottom: -12px;
}
.twc-bar button:hover { background: rgba(255, 255, 255, 0.36); }
.twc-bar button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #A855F7, #22D3EE, #4EDEA3);
  transform: scaleX(0);
  transform-origin: left;
}
.twc-bar button.is-done::after { transform: scaleX(1); }
.twc-bar button.is-on::after { animation: twcBarFill var(--twc-dur, 6000ms) linear forwards; }
@keyframes twcBarFill { to { transform: scaleX(1); } }
.twc.is-sol .twc-bar, .twc.is-sol .twc-ui { opacity: 0 !important; pointer-events: none !important; }
.twc.is-sol #twcBtnSol, .twc.is-sol #twcBtnConfig { display: none !important; }
.twc.is-sol .twc-stage { filter: blur(1.5px) brightness(0.5); }

/* ── Bottom Controls + Audio Switcher ── */
.twc-ctrl {
  position: absolute;
  left: clamp(16px, 4.5vw, 64px);
  right: clamp(16px, 4.5vw, 64px);
  bottom: 14px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 960px) {
  .twc-ctrl { right: 332px; flex-wrap: nowrap; }
}
.twc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 13, 22, 0.84);
  color: #ECEAF4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: all 0.18s ease;
}
.twc-btn:hover { border-color: #C084FC; color: #FFFFFF; transform: translateY(-1px); }
.twc-btn--primary { background: rgba(168, 85, 247, 0.30); border-color: rgba(192, 132, 252, 0.72); color: #FFFFFF; }
.twc-btn--cyan { background: rgba(34, 211, 238, 0.18); border-color: rgba(34, 211, 238, 0.62); color: #ECFEFF; }
.twc-btn--audio.is-on { border-color: #4EDEA3; color: #4EDEA3; background: rgba(78, 222, 163, 0.16); }
.twc-tracks {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(11, 13, 22, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.twc-tracks button {
  border: 0;
  background: transparent;
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
}
.twc-tracks button.is-on { background: rgba(168, 85, 247, 0.36); color: #F3E8FF; }
.twc-down { text-decoration: none; margin-left: auto; }

/* ── 3-Panel Ecosystem Finale Overlay ── */
.twc-sol {
  position: absolute;
  inset: 0;
  z-index: 14;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.twc.is-sol .twc-sol {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s ease, visibility 0s;
}
.twc-sol-pan {
  position: absolute;
  inset: 0;
  padding: 58px clamp(16px, 4.5vw, 56px) 58px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.twc-sol-inner { width: 100%; max-width: var(--twg-content-max, 1312px); margin: auto; }
.twc-sol-pan::-webkit-scrollbar { width: 5px; }
.twc-sol-pan::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.35); border-radius: 99px; }
.twc.is-sol .twc-sol-pan.is-on { opacity: 1; visibility: visible; pointer-events: auto; }

.twc-emblem-head { text-align: center; margin-bottom: 10px; }
.twc-emblem {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(26px, 4.2vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #FFFFFF;
}
.twc-emblem-ring {
  width: 1.08em;
  height: 1.08em;
  border-radius: 50%;
  background: url('/assets/wise-logo-nav.png') center/cover no-repeat;
  box-shadow: 0 0 0 3px #A855F7, 0 0 30px rgba(34, 211, 238, 0.45);
  flex-shrink: 0;
}
.twc-emblem-sub { margin-top: 5px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #4EDEA3; }
.twc-regia-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--twg-content-max, 1312px);
  width: 100%;
  margin: 0 auto 10px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.46);
  background: rgba(12, 14, 24, 0.84);
  font-size: 13.5px;
  color: #E2E8F0;
}

/* Official Product Vector Lockups & Cinema Buttons (Light-Mode Safe) */
.twc .twg-pmark.twc-pmark { font-size: 16.5px; justify-content: flex-start; margin-bottom: 5px; }
.twc .twg-pmark-on { color: #FFFFFF !important; }
.twc .twg-pmark-s4 { color: #94A3B8 !important; }
.twc .btn-primary { background: linear-gradient(95deg, #A855F7 0%, #22D3EE 100%) !important; color: #090A10 !important; border-color: transparent !important; font-weight: 800; }
.twc .btn-secondary { background: rgba(255, 255, 255, 0.10) !important; color: #FFFFFF !important; border: 1px solid rgba(255, 255, 255, 0.28) !important; }
.twc .btn-secondary:hover { border-color: #22D3EE !important; background: rgba(34, 211, 238, 0.16) !important; }

.twc-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: var(--twg-content-max, 1312px);
  width: 100%;
  margin: 0 auto;
}
.twc-eco-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 14, 24, 0.84);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: #FFFFFF !important;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.twc-eco-card:hover { transform: translateY(-2px); border-color: #22D3EE; }
.twc-eco-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.twc-squad-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: #4EDEA3; padding: 3px 8px;
  border-radius: 999px; border: 1px solid rgba(78, 222, 163, 0.35); white-space: nowrap;
}
.twc-eco-arrow { font-size: 11px; color: #C084FC; font-weight: 700; white-space: nowrap; }
.twc-eco-card strong { display: block; font-size: 15px; color: #FFFFFF; margin-bottom: 3px; }
.twc-eco-card p { margin: 0; font-size: 12.2px; line-height: 1.38; color: #CBD5E1; }

.twc-sol-nav {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(11, 13, 22, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.twc.is-sol .twc-sol-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s;
}
.twc-sol-nav button {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.twc-sol-nav button.is-on { background: linear-gradient(95deg, #A855F7, #22D3EE); color: #090A10; }


/* ── Panel 2: Department Photo Configurator («Cosa vuoi automatizzare?») ── */
.twc-cfg-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.twc-cfg-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4EDEA3;
  margin-bottom: 3px;
}
.twc-cfg-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #FFFFFF;
}
.twc-cfg-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #DCE2EE;
}
.twc-cfg-all { flex-shrink: 0; }
.twc-cfg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.twc-cfg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 236px;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF !important;
  background: #141625;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.twc-cfg-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}
.twc-cfg-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 11, 22, 0.90) 0%, rgba(10, 11, 22, 0.44) 56%, rgba(10, 11, 22, 0.14) 100%);
}
.twc-cfg-card:hover,
.twc-cfg-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--t, #22D3EE);
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.75), 0 0 0 1px color-mix(in srgb, var(--t, #22D3EE) 45%, transparent);
}
.twc-cfg-card:hover img,
.twc-cfg-card:focus-visible img { transform: scale(1.08); }
.twc-cfg-ico {
  position: absolute;
  top: 11px;
  left: 11px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--t, #22D3EE);
  background: rgba(10, 11, 22, 0.68);
  border: 1px solid color-mix(in srgb, var(--t, #22D3EE) 55%, transparent);
  backdrop-filter: blur(8px);
  --cg-f: color-mix(in srgb, var(--t, #22D3EE) 35%, transparent);
}
.twc-cfg-ico .cg-i { display: block; width: 20px; height: 20px; }
.twc-cfg-ico .cg-i .f { fill: var(--cg-f, none); }
.twc-cfg-num {
  position: absolute;
  top: 15px;
  left: 54px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F4F3F8;
  background: rgba(10, 11, 22, 0.68);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.twc-cfg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 54px 14px 13px;
  text-shadow: 0 1px 10px rgba(8, 6, 16, 0.8);
}
.twc-cfg-nome {
  display: block;
  font-size: 18.5px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}
.twc-cfg-riga {
  font-size: 12.2px;
  line-height: 1.35;
  color: #DDE2EE;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.twc-cfg-va {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t, #22D3EE);
}
.twc-cfg-va b { display: inline-block; transition: transform 0.22s ease; }
.twc-cfg-card:hover .twc-cfg-va b { transform: translateX(3px); }

#twgDevDirectorBar.hl-dev-bar { top: 86px; right: 16px; left: auto; bottom: auto; max-width: calc(100vw - 32px); }

@media (max-width: 960px) {
  .twc-eco-grid, .twc-cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-stage[data-hero-mode="cinema"] { margin-top: 98px !important; min-height: calc(100svh - 98px) !important; height: calc(100svh - 98px); }
  .hero-stage[data-hero-mode="cinema"] .hl-mode-cinema { min-height: calc(100svh - 98px); }
  .twc { height: calc(100svh - 98px); min-height: 540px; }
}
@media (max-width: 700px) {
  .twc-ui { padding: 0 16px 176px; }
  .twc-line { font-size: clamp(25px, 7.2vw, 38px); }
  .twc-sub { font-size: 13.5px; }
  .twc-bar { left: 14px; right: 14px; bottom: 146px; gap: 4px; }
  .twc-ctrl { left: 12px; right: 72px; bottom: 14px; gap: 5px; flex-wrap: wrap; justify-content: flex-start; }
  .twc-ctrl .twc-btn { padding: 5px 7px; font-size: 8.8px; letter-spacing: 0.02em; }
  .twc-ctrl::-webkit-scrollbar { display: none; }
  .twc-down { margin-left: 0; }
  .twc-sol-nav { left: 12px; right: 12px; top: 10px; transform: none; justify-content: space-between; }
  .twc-sol-nav button { padding: 5px 8px; font-size: 10px; }
  .twc-sol-pan {
    padding: 52px 14px 128px;
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 118px), transparent calc(100% - 92px));
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 118px), transparent calc(100% - 92px));
  }
  .twc-eco-grid { grid-template-columns: 1fr; gap: 8px; }
  .twc-cfg-grid { grid-template-columns: 1fr; gap: 9px; }
  .twc-cfg-card { min-height: 168px; }
  .twc-cfg-eyebrow, .twc-cfg-num, .twc-cfg-va { font-size: 12px; }
  #twgDevDirectorBar.hl-dev-bar { top: auto; bottom: 14px; left: 12px; right: auto; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) { .twc-stage video { animation: none !important; } }

/* ══ UX TELEFONO 14/11 (U4): testi ≥12px e tocco ≥44px, disegno invariato ══ */
@media (max-width: 900px) {
  .twc-fase, .twc-emblem-sub, .twc-eco-arrow, .twc-squad-chip { font-size: 12px; }
  .twc-ui { padding-bottom: 176px; }
  .twc-bar { bottom: 146px; }
  .twc-ctrl .twc-btn { padding: 6px 8px; font-size: 12px; letter-spacing: 0; }
  .twc-sol-nav button { font-size: 12px; padding: 5px 7px; letter-spacing: 0; }
  .twc-tracks button { font-size: 12px; }
  .twc-btn, .twc-sol-nav button, .twc-tracks button { position: relative; }
  .twc-btn::before,
  .twc-sol-nav button::before,
  .twc-tracks button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: 44px;
    transform: translate(-50%, -50%);
  }
  .twc-tracks button::before { width: 44px; }
}

/* 25/11/2026 (P1-ECOSISTEMA): «…quanti fornitori ti servivano prima?» · marchi 1,7-2x cliccabili in orbita larga + 2 col mobile 390 */
.twc-qanim { position: absolute; inset: 0; pointer-events: none; z-index: 3; display: none; }
.twc.is-q .twc-qanim { display: block; }
.twc.is-q .twc-stage { filter: brightness(0.34) contrast(1.06) saturate(0.88); }
.twc.is-q .twc-vignette { opacity: 0.50; }
.twc.is-q .twc-ui { align-items: flex-start; padding-top: clamp(22px, 4.4vh, 52px); pointer-events: none; }
.twc.is-q .twc-line {
  max-width: none;
  font-size: clamp(28px, 4.4vw, 72px);
  color: #FFFFFF;
  text-shadow: 0 0 64px rgba(168, 85, 247, 0.68), 0 8px 40px rgba(0, 0, 0, 0.92);
  animation: twcQIn .65s ease-out both;
}

.twc-qaxis {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.twc-qaxis.is-on { opacity: 1; }
.twc-qaxis-line {
  stroke: var(--qc, #22D3EE);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  filter: drop-shadow(0 0 6px var(--qc, #22D3EE));
}
.twc-qaxis-dot {
  fill: var(--qc, #22D3EE);
  filter: drop-shadow(0 0 6px var(--qc, #22D3EE));
}

.twc-qhero {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(.7);
  opacity: 0;
  filter: blur(8px);
  text-align: center;
  animation: twcQHero 0.8s ease-out 0.65s forwards;
}
.twc-qhero img {
  width: clamp(134px, 9.5vw, 184px);
  height: auto;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 0 4px rgba(52,211,153,.88), 0 0 60px 10px rgba(168,85,247,.55), 0 0 120px 30px rgba(34,211,238,.25);
}
.twc-qhero span {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .01em;
  font-size: clamp(17px, 1.3vw, 23px);
  color: #fff;
  text-shadow: 0 2px 20px #000;
}

.twc-qlogo {
  --s: 1;
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 3;
  opacity: 0;
  filter: blur(6px);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 14px;
  background: rgba(9, 11, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(0.84);
  animation: twcQLogo .55s ease-out calc(1.15s + var(--i) * .16s) forwards;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  white-space: nowrap;
}
.twc-qlogo::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--qc, #22D3EE);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.twc-qlogo-mark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.twc .twc-qlogo .twg-pmark.twc-pmark {
  font-size: clamp(22px, 2.25vw, 35px);
  margin-bottom: 0;
  line-height: 1;
}
.twc .twc-qlogo--8 .twg-pmark.twc-pmark {
  font-size: clamp(24px, 2.4vw, 37px);
}
.twc-qlogo .twg-pmark-av { margin: 0 0.18em; }
.twc-qlogo-tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translate(-50%, -3px);
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(9, 11, 20, 0.92);
  color: #FFFFFF;
  border: 1px solid var(--qc, #22D3EE);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.twc-qlogo:hover,
.twc-qlogo:focus-visible {
  z-index: 6;
  background: rgba(12, 15, 28, 0.88);
  border-color: var(--qc, #22D3EE);
  box-shadow: 0 0 0 1px var(--qc, #22D3EE), 0 14px 34px rgba(0, 0, 0, 0.55);
  outline: none;
}
.twc-qlogo:hover::after,
.twc-qlogo:focus-visible::after {
  transform: scaleX(1);
}
.twc-qlogo:hover .twc-qlogo-tag,
.twc-qlogo:focus-visible .twc-qlogo-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Orbita ellittica ampia (desktop 1280px–2000px+, proporzionata a marchi ~40-46px senza sovrapposizioni) */
.twc-qlogo--0 { --x: 0px;                            --y: clamp(-252px, -24vh,   -176px); }
.twc-qlogo--1 { --x: clamp(-415px, -24.5vw, -230px); --y: clamp(-154px, -14.5vh, -106px); }
.twc-qlogo--2 { --x: clamp(250px,  25vw,    440px);  --y: clamp(-154px, -14.5vh, -106px); }
.twc-qlogo--3 { --x: clamp(-520px, -29vw,   -285px); --y: clamp(-38px,  -3.5vh,  -24px); }
.twc-qlogo--4 { --x: clamp(285px,  28.5vw,  515px);  --y: clamp(-38px,  -3.5vh,  -24px); }
.twc-qlogo--5 { --x: clamp(-505px, -28vw,   -280px); --y: clamp(72px,   8vh,     108px); }
.twc-qlogo--6 { --x: clamp(280px,  28vw,    505px);  --y: clamp(72px,   8vh,     108px); }
.twc-qlogo--7 { --x: clamp(-390px, -20.5vw, -195px); --y: clamp(174px,  19vh,    230px); }
.twc-qlogo--8 { --x: clamp(195px,  20.5vw,  390px);  --y: clamp(174px,  19vh,    230px); }

/* Tema chiaro (:root[data-theme="light"]): chip chiaro satinato + marchi e icone ad alto contrasto */
:root[data-theme="light"] .twc.is-q .twc-qhero span,
html[data-theme="light"] .twc.is-q .twc-qhero span,
body[data-theme="light"] .twc.is-q .twc-qhero span {
  background: rgba(248, 250, 252, 0.92);
  color: #0F172A;
  text-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
}
:root[data-theme="light"] .twc.is-q .twc-qlogo,
html[data-theme="light"] .twc.is-q .twc-qlogo,
body[data-theme="light"] .twc.is-q .twc-qlogo {
  background: rgba(248, 250, 252, 0.93);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
}
:root[data-theme="light"] .twc.is-q .twc-qlogo:hover,
:root[data-theme="light"] .twc.is-q .twc-qlogo:focus-visible {
  background: #FFFFFF;
  border-color: var(--qc, #0284C7);
  box-shadow: 0 0 0 1.5px var(--qc, #0284C7), 0 14px 32px rgba(15, 23, 42, 0.28);
}
:root[data-theme="light"] .twc.is-q .twg-pmark-on,
html[data-theme="light"] .twc.is-q .twg-pmark-on,
body[data-theme="light"] .twc.is-q .twg-pmark-on {
  color: #0F172A !important;
}
:root[data-theme="light"] .twc.is-q .twg-pmark-s4,
html[data-theme="light"] .twc.is-q .twg-pmark-s4,
body[data-theme="light"] .twc.is-q .twg-pmark-s4 {
  color: #475569 !important;
  opacity: 0.96;
}
:root[data-theme="light"] .twc.is-q .twg-pmark svg [stroke="#94a3b8"] { stroke: #475569; }
:root[data-theme="light"] .twc.is-q .twg-pmark svg [stroke="#22d3ee"] { stroke: #0284C7; }
:root[data-theme="light"] .twc.is-q .twg-pmark svg [fill="#22d3ee"] { fill: #0284C7; }
:root[data-theme="light"] .twc.is-q .twg-pmark svg [stroke="#34d399"] { stroke: #047857; }
:root[data-theme="light"] .twc.is-q .twg-pmark svg [fill="#34d399"] { fill: #047857; }
:root[data-theme="light"] .twc.is-q .twg-pmark svg [stroke="#fbbf24"] { stroke: #B45309; }
:root[data-theme="light"] .twc.is-q .twg-pmark svg g[stroke="#a3e635"],
:root[data-theme="light"] .twc.is-q .twg-pmark svg [stroke="#a3e635"] { stroke: #4D7C0F; }
:root[data-theme="light"] .twc.is-q .twg-pmark svg [fill="#a3e635"] { fill: #4D7C0F; }
:root[data-theme="light"] .twc.is-q .twc-qlogo-tag {
  background: #0F172A;
  color: #FFFFFF;
}

@keyframes twcQIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes twcQHero { to { opacity: 1; filter: none; transform: translate(-50%, -50%) scale(1); } }
@keyframes twcQLogo { to { opacity: 1; filter: none; transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(var(--s, 1)); } }

/* Mobile <= 900px: due colonne di marchi sotto l'avatar, 0 sovrapposizioni, 0 overflow */
@media (max-width: 900px) {
  .twc.is-q .twc-ui { padding: 16px 14px 0; align-items: flex-start; }
  .twc.is-q .twc-line { font-size: clamp(22px, 6.2vw, 32px); line-height: 1.12; }
  .twc.is-q .twc-qanim {
    top: 94px;
    bottom: 108px;
    left: 0;
    right: 0;
    padding: 4px 12px 14px;
    overflow-y: auto;
    pointer-events: auto;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    align-items: center;
  }
  .twc.is-q .twc-qanim { display: none; }
  .twc.is-q.is-q .twc-qanim { display: grid; }
  .twc-qaxis { display: none !important; }
  .twc-qhero {
    position: static;
    transform: none;
    opacity: 1;
    filter: none;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
    animation: twcQIn .45s ease-out both;
  }
  .twc-qhero img { width: 74px; }
  .twc-qhero span { margin-top: 6px; font-size: 14px; }
  .twc-qlogo {
    position: static;
    transform: none;
    --s: 1;
    opacity: 1;
    filter: none;
    width: 100%;
    min-height: 46px;
    padding: 6px 6px;
    border-radius: 12px;
    animation: twcQIn .4s ease-out calc(.3s + var(--i) * .06s) both;
  }
  .twc-qlogo--8 {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 4px);
  }
  .twc .twc-qlogo .twg-pmark.twc-pmark,
  .twc .twc-qlogo--8 .twg-pmark.twc-pmark {
    font-size: clamp(12.5px, 3.35vw, 16px);
  }
  .twc-qlogo .twc-qlogo-tag {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .twc-qhero, .twc-qlogo, .twc.is-q .twc-line {
    animation-duration: .01s !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* volo: niente velo né testo sopra, si vede chi vola */
.twc.is-pulita .twc-vignette { opacity: 0; }
.twc.is-pulita .twc-ui { opacity: 0; pointer-events: none; }
.twc.is-pulita .twc-stage { filter: none; }

/* Home senza riga del percorso (23/11, richiesta Lorenzo): il film di apertura si attacca alla testata */
body:has(#mainContent.is-home) #siteHeader .twg-crumbbar { display: none !important; }
html:has(#mainContent.is-home) { scroll-padding-top: 77px; }
#mainContent.is-home .hero-stage[data-hero-mode="cinema"] { margin-top: 77px !important; min-height: calc(100svh - 77px) !important; height: calc(100svh - 77px); }
@media (max-width: 760px) {
  html:has(#mainContent.is-home) { scroll-padding-top: 67px; }
  #mainContent.is-home .hero-stage[data-hero-mode="cinema"] { margin-top: 67px !important; min-height: calc(100svh - 67px) !important; height: calc(100svh - 67px); }
  #mainContent.is-home .hero-stage[data-hero-mode="cinema"] .hl-mode-cinema { min-height: calc(100svh - 67px); }
  #mainContent.is-home .twc { height: calc(100svh - 67px); }
}

/* ══ P1-PATTO · Pannello 3 (Il Patto) — Variante 1 scelta da Lorenzo ══ */
#twcSolP3 .twc-pact {
  width: 100%;
  max-width: 1040px;
  font-family: var(--font-sans);
  color: #F8FAFC;
}
#twcSolP3 .twc-pact-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(10, 12, 22, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: clamp(20px, 2.8vw, 30px) clamp(20px, 3.2vw, 34px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#twcSolP3 .twc-pact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
#twcSolP3 .twc-pact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
  opacity: 0.22;
  filter: saturate(0.86) contrast(1.06);
}
#twcSolP3 .twc-pact-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(10, 12, 22, 0.28) 0%, rgba(10, 12, 22, 0.68) 100%);
}
#twcSolP3 .twc-pact-head,
#twcSolP3 .twc-pact-rows,
#twcSolP3 .twc-pact-apps,
#twcSolP3 .twc-pact-foot {
  position: relative;
  z-index: 2;
}
#twcSolP3 .twc-pact-head {
  margin-bottom: 18px;
}
#twcSolP3 .twc-pact-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4EDEA3;
  margin-bottom: 5px;
}
#twcSolP3 .twc-pact-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #FFFFFF;
}
#twcSolP3 .twc-pact-sub {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #DCE4F0;
}
#twcSolP3 .twc-pact-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
#twcSolP3 .twc-pact-row {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 10px 26px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
#twcSolP3 .twc-pact-rlead {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
#twcSolP3 .twc-pact-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--pact-c, #4EDEA3);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
#twcSolP3 .twc-pact-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pact-c, #34D399);
  background: color-mix(in srgb, var(--pact-c, #34D399) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pact-c, #34D399) 34%, transparent);
}
#twcSolP3 .twc-pact-ico svg {
  width: 17px;
  height: 17px;
  display: block;
}
#twcSolP3 .twc-pact-rtitle {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #FFFFFF;
}
#twcSolP3 .twc-pact-rdesc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #CBD5E1;
}

/* Horizontal logo strip (zero pills, wraps cleanly without overflow) */
#twcSolP3 .twc-pact-apps {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
#twcSolP3 .twc-pact-apps-lbl {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #94A3B8;
  white-space: nowrap;
}
#twcSolP3 .twc-pact-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
#twcSolP3 a.twc-pact-logo {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 4px 2px;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
#twcSolP3 a.twc-pact-logo:hover {
  transform: translateY(-1px);
}
#twcSolP3 a.twc-pact-logo:focus-visible {
  outline: 2px solid #22D3EE;
  outline-offset: 4px;
}
#twcSolP3 .twg-pmark.twc-pact-pmark {
  font-size: 14.5px;
  margin-bottom: 0;
  line-height: 1;
}
#twcSolP3 .twc-pact-pmark .twg-pmark-av {
  margin: 0 0.18em;
}
#twcSolP3 .twc-pact-pmark .twg-pmark-ico-l,
#twcSolP3 .twc-pact-pmark .twg-pmark-ico-r {
  height: 0.94em;
}

/* Primary/secondary CTAs and plain text product links */
#twcSolP3 .twc-pact-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
#twcSolP3 .twc-pact-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#twcSolP3 .twc-pact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13.5px;
}
#twcSolP3 .twc-pact-links-lbl {
  color: #94A3B8;
}
#twcSolP3 .twc-pact-sep {
  color: #64748B;
}
#twcSolP3 a.twc-pact-tlink {
  color: #F8FAFC;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.55);
  padding: 4px 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
#twcSolP3 a.twc-pact-tlink:hover {
  color: #4EDEA3;
  border-color: #4EDEA3;
}
#twcSolP3 a.twc-pact-tlink:focus-visible {
  outline: 2px solid #22D3EE;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── TEMA CHIARO (:root[data-theme="light"]): superficie perla + testi e loghi scuri leggibili ── */
:root[data-theme="light"] #twcSolP3 .twc-pact,
html[data-theme="light"] #twcSolP3 .twc-pact,
body[data-theme="light"] #twcSolP3 .twc-pact {
  color: #0F172A;
}
:root[data-theme="light"] #twcSolP3 .twc-pact-surface,
html[data-theme="light"] #twcSolP3 .twc-pact-surface,
body[data-theme="light"] #twcSolP3 .twc-pact-surface {
  background: rgba(248, 250, 252, 0.94);
  border-color: rgba(15, 23, 42, 0.13);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.24);
}
:root[data-theme="light"] #twcSolP3 .twc-pact-bg img,
html[data-theme="light"] #twcSolP3 .twc-pact-bg img,
body[data-theme="light"] #twcSolP3 .twc-pact-bg img {
  opacity: 0.20;
  filter: saturate(0.75) contrast(1.04) brightness(1.08);
}
:root[data-theme="light"] #twcSolP3 .twc-pact-surface::before,
html[data-theme="light"] #twcSolP3 .twc-pact-surface::before,
body[data-theme="light"] #twcSolP3 .twc-pact-surface::before {
  background: radial-gradient(ellipse at center, rgba(248, 250, 252, 0.22) 0%, rgba(248, 250, 252, 0.72) 100%);
}
:root[data-theme="light"] #twcSolP3 .twc-pact-eyebrow,
html[data-theme="light"] #twcSolP3 .twc-pact-eyebrow,
body[data-theme="light"] #twcSolP3 .twc-pact-eyebrow {
  color: #047857;
}
:root[data-theme="light"] #twcSolP3 .twc-pact-title,
:root[data-theme="light"] #twcSolP3 .twc-pact-rtitle,
html[data-theme="light"] #twcSolP3 .twc-pact-title,
html[data-theme="light"] #twcSolP3 .twc-pact-rtitle {
  color: #0F172A;
}
:root[data-theme="light"] #twcSolP3 .twc-pact-sub,
:root[data-theme="light"] #twcSolP3 .twc-pact-rdesc,
html[data-theme="light"] #twcSolP3 .twc-pact-sub,
html[data-theme="light"] #twcSolP3 .twc-pact-rdesc {
  color: #334155;
}
:root[data-theme="light"] #twcSolP3 .twc-pact-rows,
:root[data-theme="light"] #twcSolP3 .twc-pact-row,
:root[data-theme="light"] #twcSolP3 .twc-pact-foot {
  border-color: rgba(15, 23, 42, 0.11);
}
:root[data-theme="light"] #twcSolP3 .twc-pact-num {
  color: #0F172A;
}
:root[data-theme="light"] #twcSolP3 .twc-pact-ico {
  background: color-mix(in srgb, var(--pact-c, #047857) 14%, #FFFFFF);
  border-color: color-mix(in srgb, var(--pact-c, #047857) 35%, transparent);
  color: color-mix(in srgb, var(--pact-c, #047857) 75%, #0F172A);
}
:root[data-theme="light"] #twcSolP3 .twc-pact-apps-lbl,
:root[data-theme="light"] #twcSolP3 .twc-pact-links-lbl {
  color: #475569;
}
:root[data-theme="light"] #twcSolP3 .twg-pmark-on {
  color: #0F172A !important;
}
:root[data-theme="light"] #twcSolP3 .twg-pmark-s4 {
  color: #475569 !important;
  opacity: 0.96;
}
:root[data-theme="light"] #twcSolP3 .twg-pmark svg [stroke="#94a3b8"],
html[data-theme="light"] #twcSolP3 .twg-pmark svg [stroke="#94a3b8"],
body[data-theme="light"] #twcSolP3 .twg-pmark svg [stroke="#94a3b8"] {
  stroke: #475569;
}
:root[data-theme="light"] #twcSolP3 .twg-pmark svg [stroke="#22d3ee"],
html[data-theme="light"] #twcSolP3 .twg-pmark svg [stroke="#22d3ee"] {
  stroke: #0284C7;
}
:root[data-theme="light"] #twcSolP3 .twg-pmark svg [fill="#22d3ee"],
html[data-theme="light"] #twcSolP3 .twg-pmark svg [fill="#22d3ee"] {
  fill: #0284C7;
}
:root[data-theme="light"] #twcSolP3 .twg-pmark svg [stroke="#34d399"],
html[data-theme="light"] #twcSolP3 .twg-pmark svg [stroke="#34d399"] {
  stroke: #047857;
}
:root[data-theme="light"] #twcSolP3 .twg-pmark svg [fill="#34d399"],
html[data-theme="light"] #twcSolP3 .twg-pmark svg [fill="#34d399"] {
  fill: #047857;
}
:root[data-theme="light"] #twcSolP3 .btn-secondary {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
}
:root[data-theme="light"] #twcSolP3 .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.11) !important;
  border-color: #0E7490 !important;
}
:root[data-theme="light"] #twcSolP3 a.twc-pact-tlink {
  color: #0F172A;
  border-bottom-color: rgba(109, 40, 217, 0.45);
}
:root[data-theme="light"] #twcSolP3 a.twc-pact-tlink:hover {
  color: #6D28D9;
  border-color: #6D28D9;
}

@media (max-width: 860px) {
  #twcSolP3 .twc-pact-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }
  #twcSolP3 .twc-pact-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 700px) {
  #twcSolP3 .twc-pact-head {
    margin-bottom: 10px;
    text-align: left;
  }
  #twcSolP3 .twc-pact-eyebrow {
    font-size: 11px;
    margin-bottom: 3px;
  }
  #twcSolP3 .twc-pact-surface {
    padding: 13px 13px;
    border-radius: 14px;
  }
  #twcSolP3 .twc-pact-title {
    font-size: 20px;
  }
  #twcSolP3 .twc-pact-sub {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.32;
  }
  #twcSolP3 .twc-pact-ico {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  #twcSolP3 .twc-pact-ico svg {
    width: 14px;
    height: 14px;
  }
  #twcSolP3 .twc-pact-row {
    padding: 7px 0;
    gap: 3px;
  }
  #twcSolP3 .twc-pact-rtitle {
    font-size: 15px;
  }
  #twcSolP3 .twc-pact-rdesc {
    font-size: 12.5px;
    line-height: 1.32;
  }
  #twcSolP3 .twc-pact-apps {
    margin-top: 9px;
    padding-top: 9px;
    gap: 6px 10px;
  }
  #twcSolP3 .twc-pact-logos {
    width: 100%;
    gap: 6px 14px;
  }
  #twcSolP3 .twg-pmark.twc-pact-pmark {
    font-size: 12px;
  }
  #twcSolP3 .twc-pact-foot {
    margin-top: 10px;
    padding-top: 10px;
    gap: 8px;
  }
  #twcSolP3 .twc-pact-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  #twcSolP3 .twc-pact-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
  }
  #twcSolP3 .twc-pact-links {
    font-size: 12.5px;
    gap: 4px 8px;
  }
  #twcSolP3 a.twc-pact-tlink {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    min-height: 36px;
  }
}
/* 25/11/2026 (P1-ECOSISTEMA-b): Schermi >=1280px — hero coerente a tutta ampiezza col gutter della testata aperta (~24-48px) */
@media (min-width: 1280px) {
  .hero-stage[data-hero-mode="cinema"],
  body:has(#mainContent.is-home .hero-stage[data-hero-mode="cinema"]) {
    --twg-wide-gx: clamp(24px, calc(3.75vw - 24px), 48px);
  }
  .hero-stage[data-hero-mode="cinema"] .twc:not(.is-q) .twc-ui {
    max-width: none;
    padding: 0 var(--twg-wide-gx) 84px;
  }
  .hero-stage[data-hero-mode="cinema"] .twc.is-q .twc-ui {
    max-width: none;
    padding-inline: var(--twg-wide-gx);
  }
  .hero-stage[data-hero-mode="cinema"] .twc-bar {
    left: var(--twg-wide-gx);
    right: var(--twg-wide-gx);
  }
  .hero-stage[data-hero-mode="cinema"] .twc-ctrl {
    left: var(--twg-wide-gx);
    right: calc(var(--twg-wide-gx) + 296px);
  }
  body:has(#mainContent.is-home .hero-stage[data-hero-mode="cinema"]) .alfred-launcher {
    right: var(--twg-wide-gx);
  }
}
