/* ============================================================
   SocialZen — homepage
   Token del kit v2 (styles/socialzen.css), proporzioni ricavate dal
   mockup homepage-desktop-concept.png (971 px ≈ 1440 px reali, ×1,48).
   ============================================================ */

@font-face { font-family: Inter; src: url('../assets/fonts/Inter-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --midnight: #080D18;
  --mint: #53F5C6;
  --mint-hover: #89F8D9;
  --electric: #5367FF;
  --violet: #9B6BFF;
  --ice: #F3F7FA;
  --slate: #8291A8;
  --muted: #ADB9CC;
  --panel: #101B2D;
  --panel-2: #0C1525;
  --border: #25354B;
  --ink: #0E1A2B;
  --ink-2: #4A5870;
  --line: #E1E7EF;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --container: 1440px;
  --gutter: 50px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--midnight); color: var(--ice); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
/* Il mockup ha titoli piu' pesanti del 700 di Space Grotesk: un filo di tratto li avvicina senza cambiare font. */
.hero-title, .section-title, .cta-title { -webkit-text-stroke: .012em currentColor; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mint { color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--mint); color: var(--midnight); border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; border-radius: 6px; }
.brands :focus-visible { outline-color: var(--electric); }

/* Icone: sprite Lucide del kit, ereditano il colore. */
.i { width: 24px; height: 24px; flex: none; color: inherit; }
.i--sm { width: 16px; height: 16px; }
.i--mint { color: var(--mint); }
.i--electric { color: var(--electric); }
.i.flip { transform: rotate(180deg); }
.i.down { transform: rotate(90deg); }

/* Icone social: Simple Icons del kit, a colori del marchio. */
.soc { width: 20px; height: 20px; flex: none; color: var(--ice); }
.soc.sm { width: 14px; height: 14px; }
.soc.lg { width: 44px; height: 44px; }
.soc--fb { color: #1877F2; }
.soc--li { color: #0A66C2; }
.soc--white { color: #fff; }
.soc--ink { color: #0B0F17; }
.soc--tt { filter: drop-shadow(-1.2px -1px 0 #25F4EE) drop-shadow(1.2px 1px 0 #FE2C55); }
.soc--ig {
  display: inline-block;
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  -webkit-mask: url('../assets/icons/social/instagram.svg') center / contain no-repeat;
  mask: url('../assets/icons/social/instagram.svg') center / contain no-repeat;
}

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 14px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn--mint { background: var(--mint); color: var(--midnight); box-shadow: 0 0 0 0 rgba(83, 245, 198, 0); }
.btn--mint:hover { background: var(--mint-hover); box-shadow: 0 8px 30px -8px rgba(83, 245, 198, .55); }
.btn--ghost { background: transparent; border-color: rgba(243, 247, 250, .55); color: var(--ice); }
.btn--ghost:hover { background: rgba(243, 247, 250, .06); border-color: var(--ice); }
.btn--sm { min-height: 44px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn .i { width: 22px; height: 22px; }

.eyebrow { font: 600 13px/1.4 var(--body); letter-spacing: .32em; text-transform: uppercase; color: #C9D3E3; }
.eyebrow--wide { font-size: 16px; letter-spacing: .42em; font-weight: 500; }
.eyebrow--dark { color: var(--ink-2); }
.section-title { font-size: 60px; margin-top: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 106px; }
.logo img { width: 243px; height: auto; }
.site-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
.nav-links { display: flex; gap: 44px; margin-right: auto; margin-left: auto; padding-left: 30px; }
.nav-links a, .nav-login { text-decoration: none; font-size: 16px; color: var(--ice); opacity: .92; }
.nav-links a:hover, .nav-login:hover { color: var(--mint); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 36px; }
.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 36px 0 30px; }
.hero-deco { position: absolute; inset: -110px 0 -40px; overflow: hidden; pointer-events: none; z-index: 0; }
.glow--hero { position: absolute; right: 2%; top: 4%; width: 62%; height: 90%; background: radial-gradient(closest-side, rgba(83, 103, 255, .28), rgba(83, 103, 255, .08) 55%, transparent 75%); filter: blur(10px); }
.orbit { position: absolute; border-radius: 50%; border: 2px solid transparent; }
.orbit--hero {
  right: -20%; top: 5%; width: 80%; height: 112%; border-width: 3px;
  border-color: transparent;
  border-top-color: rgba(83, 245, 198, .95); border-left-color: rgba(83, 103, 255, .6); border-right-color: rgba(83, 160, 255, .75);
  transform: rotate(-14deg);
  filter: drop-shadow(0 0 4px rgba(83, 245, 198, .9)) drop-shadow(0 0 16px rgba(83, 245, 198, .5)) drop-shadow(0 0 34px rgba(83, 103, 255, .6));
}
.sphere { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #A9B7FF 0%, #5367FF 35%, #2533B8 70%, #121B5A 100%); box-shadow: 0 0 40px 6px rgba(83, 103, 255, .55), 0 0 90px 20px rgba(83, 103, 255, .25); }
.sphere--hero { width: 84px; height: 84px; right: 3.6%; top: 70px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 16px; align-items: start; }
.hero-copy { padding-top: 14px; }
.hero-title { margin-top: 16px; font-size: 92px; line-height: .98; letter-spacing: -.055em; white-space: nowrap; }
/* "More presence." e' piu' larga di "Più presenza.": stessa misura della colonna. */
:lang(en) .hero-title { font-size: 78px; }
.hero-lead { margin-top: 24px; max-width: 500px; font-size: 22px; line-height: 1.42; color: #E4EAF2; }
.hero-ctas { display: flex; flex-wrap: nowrap; gap: 20px; margin-top: 30px; }
.hero-ctas .btn { padding: 0 32px; }
.hero-note { display: flex; align-items: center; gap: 14px; margin-top: 38px; font-size: 16px; color: #D0D8E4; }
.hero-note .i { width: 30px; height: 30px; }

/* --- Dashboard illustrativa --- */
.hero-visual { margin: -18px -8px 0 0; padding: 0; }
.app {
  position: relative; display: grid; grid-template-columns: 148px 1fr; min-height: 556px;
  background: linear-gradient(180deg, #0D1729, #0A1222); border: 1px solid #2A3E66; border-radius: 22px; padding: 10px;
  box-shadow: 0 0 0 1px rgba(83, 103, 255, .25), 0 0 46px -6px rgba(83, 103, 255, .55), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.app-side { padding: 14px 8px 0 6px; }
.app-logo { width: 104px; height: auto; margin: 6px 0 26px 8px; }
.app-side li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 11.5px; color: #B9C4D6; margin-bottom: 4px; }
.app-side li .i { width: 16px; height: 16px; }
.app-side li.on { background: #1B2A44; color: #fff; }
.app-main { background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 18px 18px; overflow: hidden; }
.app-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.app-head .i { width: 16px; height: 16px; color: #64748B; }
.app-tools { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12px; }
.pill { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.arrows { display: inline-flex; gap: 2px; }
.arrows .i { width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.month { font-weight: 500; }
.seg { margin-left: auto; display: inline-flex; background: #F1F4F9; border-radius: 9px; padding: 3px; }
.seg span { padding: 5px 12px; border-radius: 7px; color: #64748B; }
.seg .on { background: #E3E8FF; color: var(--electric); font-weight: 600; }
.plus { width: 30px; height: 30px; border-radius: 8px; background: var(--electric); display: grid; place-items: center; color: #fff; }
.plus .i { width: 18px; height: 18px; }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; font-size: 10.5px; }
.chip .soc { width: 15px; height: 15px; }
.week { margin-top: 14px; border-top: 1px solid var(--line); }
.week-head { display: grid; grid-template-columns: 38px repeat(6, 1fr); padding: 10px 0 8px; font-size: 10.5px; color: #64748B; text-align: center; }
.week-head b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--electric); color: #fff; font-size: 9.5px; }
.week-body {
  position: relative; display: grid; grid-template-columns: 38px repeat(6, 1fr); grid-template-rows: repeat(3, 98px); min-height: 300px;
  background-image: linear-gradient(90deg, transparent 37px, var(--line) 37px, var(--line) 38px, transparent 38px), repeating-linear-gradient(90deg, transparent 0, transparent calc((100% - 38px) / 6 - 1px), #EEF2F7 calc((100% - 38px) / 6 - 1px), #EEF2F7 calc((100% - 38px) / 6));
  background-position: 0 0, 38px 0;
  background-color: #FBFCFE;
}
.hours { grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; font-size: 9.5px; color: #94A3B8; padding: 4px 0; }
.post {
  grid-column: calc(var(--col) + 1); grid-row: var(--row);
  margin: 6px 6px 0; align-self: start; background: #fff; border-radius: 9px; padding: 7px; font-size: 9.5px; line-height: 1.3;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .25), 0 0 0 1px rgba(15, 23, 42, .04);
  display: flex; flex-direction: column; gap: 5px; z-index: 1;
}
.post img { border-radius: 6px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post .t { font-weight: 500; }
.post .t--inline { order: -1; }
.post--sm { width: 82%; justify-self: end; }
.st { display: inline-flex; align-items: center; gap: 5px; color: #475569; }
.st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st--ok::before { background: #22C59A; }
.st--wait::before { background: #F5B21B; }
.st--draft::before { background: #8291A8; }

.ai-panel {
  position: absolute; z-index: 5; right: -14px; bottom: -66px; width: 68%; padding: 16px 20px 18px;
  background: linear-gradient(180deg, #121D3A, #0D1630); border: 1px solid #4258C8; border-radius: 16px; color: var(--ice);
  box-shadow: 0 0 0 1px rgba(83, 103, 255, .35), 0 0 40px -4px rgba(83, 103, 255, .7), 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.ai-body { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.ai-spark { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; color: var(--mint); }
.ai-spark .i { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(83, 245, 198, .7)); }
.ai-spark .i--sm { width: 16px; height: 16px; margin-left: 2px; }
.ai-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ai-head .i { width: 22px; height: 22px; }
.ai-head .close { margin-left: auto; width: 16px; height: 16px; color: #8291A8; }
.ai-input { flex: 1; display: flex; align-items: flex-end; gap: 10px; background: #fff; color: var(--ink); border-radius: 10px; padding: 12px 12px 12px 14px; font-size: 14px; line-height: 1.4; }
.ai-input p { flex: 1; }
.send { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--electric); color: #fff; display: grid; place-items: center; }
.send .i { width: 18px; height: 18px; }
.ai-chips { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-left: 44px; font-size: 12.5px; }
.ai-chips span { border: 1px solid #33456B; border-radius: 99px; padding: 7px 20px; color: #C3CCE0; }
.ai-chips .on { border-color: var(--electric); color: #fff; background: rgba(83, 103, 255, .2); box-shadow: 0 0 12px rgba(83, 103, 255, .5); }
.ai-chips .i { width: 18px; height: 18px; color: #8291A8; }

/* ============================================================
   CANALI
   ============================================================ */
.channels { position: relative; z-index: 2; padding: 30px 0 0; }
.channel-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--border); border-radius: 18px; background: rgba(12, 21, 37, .7); }
.channel-strip li { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 90px; font-size: 20px; font-weight: 500; position: relative; }
.channel-strip li + li::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--border); }
.channel-strip .soc--ig.lg { width: 46px; height: 46px; }
/* Canali non ancora collegabili: visibili ma dichiarati, non spacciati per pronti. */
.channel-strip .ch-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.1; }
.soon-badge { font: 600 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #FFE5AA; background: #42351F; border-radius: 99px; padding: 4px 8px; }
.channel-strip .soon .soc { opacity: .75; }

/* ============================================================
   COME FUNZIONA
   ============================================================ */
.process { padding: 48px 0 30px; }
.process .section-title { font-size: 62px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 42px; }
.step { position: relative; }
.step + .step::before { content: ''; position: absolute; left: -30px; top: 23px; width: 12px; height: 12px; border-right: 2px solid #8291A8; border-top: 2px solid #8291A8; transform: rotate(45deg); }
.step-head { display: flex; align-items: center; gap: 22px; }
.step-head h3 { font-size: 26px; letter-spacing: -.02em; font-family: var(--body); font-weight: 600; }
.step-head .i { width: 32px; height: 32px; }
.num { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 2px solid currentColor; font: 600 21px var(--body); color: var(--mint); box-shadow: 0 0 16px -2px currentColor, inset 0 0 12px -6px currentColor; }
.step--2 .num, .step--3 .num { color: #6E80FF; }
.step--4 .num { color: var(--violet); }
.step p { margin: 20px 0 0 80px; max-width: 250px; font-size: 16px; line-height: 1.45; color: #C2CCDB; }

/* ============================================================
   FUNZIONALITÀ
   ============================================================ */
.features { padding: 0 0 20px; }
.features .container { max-width: 1420px; padding: 0 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; flex-direction: column; padding: 24px 18px 10px; background: linear-gradient(180deg, #0F192B, #0B1322); border: 1px solid #1F2D44; border-radius: var(--radius); }
.feature h3 { font-size: 34px; letter-spacing: -.045em; padding: 0 4px; max-width: 330px; }
.feature > p { margin: 14px 4px 0; font-size: 17px; line-height: 1.42; color: #C2CCDB; max-width: 380px; }
.ui { margin-top: 20px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; font-size: 13px; flex: 1; min-height: 400px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }

/* calendario */
.cal-tools { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.cal-tools .select { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 12px; }
.cal-tools .select .i { width: 14px; height: 14px; }
.cal-icons { display: flex; gap: 10px; margin-top: 16px; }
.cal-icons > span { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; }
.cal-icons .soc { width: 20px; height: 20px; }
.cal-grid { margin-top: 16px; border-top: 1px solid var(--line); }
.cal-head { display: grid; grid-template-columns: 40px repeat(4, 1fr); padding: 10px 0; font-size: 11.5px; color: #64748B; text-align: center; }
.cal-body {
  display: grid; grid-template-columns: 40px repeat(4, 1fr); grid-template-rows: repeat(3, 92px);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc((100% - 40px) / 4 - 1px), #EEF2F7 calc((100% - 40px) / 4 - 1px), #EEF2F7 calc((100% - 40px) / 4));
  background-position: 40px 0; background-color: #FBFCFE;
}
.cal-body .hours { font-size: 10.5px; }
.mini { grid-column: calc(var(--col) + 1); grid-row: var(--row); margin: 6px 5px; align-self: start; background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .25), 0 0 0 1px rgba(15, 23, 42, .04); }
.mini .lbl { display: flex; align-items: center; gap: 5px; font-size: 10px; margin-bottom: 5px; }
.mini .soc { width: 13px; height: 13px; }
.mini img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 5px; }

/* AI */
.ai2-head { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.ai2-head .i { width: 26px; height: 26px; }
.tabs { display: flex; gap: 6px; margin-top: 14px; font-size: 11.5px; }
.tabs span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; background: #F1F4F9; color: #64748B; }
.tabs .on { background: #E3E8FF; color: var(--electric); font-weight: 600; }
.prompt { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 108px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: #334155; }
.prompt .count { margin-top: auto; align-self: flex-end; font-size: 10.5px; color: #94A3B8; }
.gen { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; padding: 13px; border-radius: 10px; background: linear-gradient(90deg, #4C62FF, #49C9F2); color: #fff; font-weight: 600; font-size: 14px; }
.gen .i { width: 18px; height: 18px; }
.result { display: grid; grid-template-columns: 28px 1fr 84px; gap: 10px; align-items: start; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.45; color: #334155; }
.result .soc { width: 22px; height: 22px; }
.result img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }

/* Team */
.item { display: grid; grid-template-columns: 130px 1fr 20px; gap: 12px; align-items: center; }
.item img { width: 130px; height: 74px; object-fit: cover; border-radius: 8px; }
.item strong { display: block; font-size: 13px; }
.item span { display: block; font-size: 11.5px; color: #64748B; }
.item .i { width: 18px; height: 18px; color: #64748B; }
.badge { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 9px; border-radius: 99px; font-size: 11px !important; font-weight: 500; }
.badge--wait { background: #FFF2CC; color: #7A5300 !important; }
.badge--wait::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #F5B21B; }
.tabs--line { margin-top: 16px; background: #F1F4F9; border-radius: 9px; padding: 3px; }
.tabs--line span { background: transparent; }
.tabs--line .on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.comments li { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #EEF2F7; font-size: 12px; line-height: 1.45; }
.comments strong { font-size: 12px; }
.comments em { font-style: normal; color: #94A3B8; font-size: 10.5px; margin-left: 4px; }
.comments p { color: #475569; }
.av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--body); font-style: normal; color: #fff; border: 2px solid #fff; }
.av--1 { background: linear-gradient(135deg, #F59E8B, #C2547A); }
.av--2 { background: linear-gradient(135deg, #7DD3C0, #2F7F8F); }
.av--3 { background: linear-gradient(135deg, #A9B7FF, #5367FF); }
.add { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 5px 5px 14px; font-size: 11.5px; color: #94A3B8; }
.add .send { border-radius: 50%; width: 32px; height: 32px; }

/* AI e MCP: card */
.ai-l { width: 20px; height: 20px; flex: none; }
.ai-l--claude { color: #D97757; }
.ai-l--chatgpt { color: #0D0D0D; }
.ai-l--gemini { color: #5B6CFF; }
.mcp-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.mcp-head .ai-logos { display: inline-flex; gap: 4px; padding: 6px 8px; border-radius: 9px; background: #F1F4F9; }
.mcp-head .live { margin-left: auto; font: 600 10.5px/1 var(--body); letter-spacing: .08em; padding: 5px 8px; border-radius: 99px; background: #DFF9F1; color: #0B6B53; }
.bubble { margin-top: 14px; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; max-width: 88%; }
.bubble--me { margin-left: auto; background: #E3E8FF; color: #26338F; border-bottom-right-radius: 4px; }
.bubble--ai { background: #F1F4F9; color: #334155; border-bottom-left-radius: 4px; }
.tool-steps { margin-top: 14px; display: grid; gap: 8px; padding: 12px; border: 1px dashed #CBD5E1; border-radius: 10px; }
.tool-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #334155; }
.tool-steps .i { width: 16px; height: 16px; color: #0B6B53; flex: none; }
.mcp-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.mcp-foot img { width: 56px; height: 42px; object-fit: cover; border-radius: 7px; }
.mcp-foot .badge { margin: 0 0 0 auto; }

/* AI e MCP: sezione */
.ai { padding: 70px 0 60px; }
.ai-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ai .section-title { font-size: 58px; }
.ai-lead p { font-size: 19px; line-height: 1.5; color: #C2CCDB; max-width: 560px; }
.ai-lead .works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; background: var(--ice); color: var(--ink); font-weight: 600; font-size: 14px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.ai-grid li { padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(180deg, #0F192B, #0B1322); border: 1px solid #1F2D44; }
.ai-grid .i { width: 30px; height: 30px; color: var(--mint); }
.ai-grid h3 { margin-top: 18px; font-size: 24px; letter-spacing: -.03em; }
.ai-grid p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #C2CCDB; }
.ai-control { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 20px 24px; border-radius: var(--radius); background: rgba(83, 245, 198, .08); border: 1px solid rgba(83, 245, 198, .28); }
.ai-control > .i { width: 32px; height: 32px; color: var(--mint); flex: none; }
.ai-control p { flex: 1; font-size: 17px; line-height: 1.45; color: #DCE4EF; }
.ai-control strong { color: #fff; }

@media (max-width: 1100px) {
  .ai-intro { grid-template-columns: 1fr; gap: 20px; }
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ai { padding: 46px 0 40px; }
  .ai .section-title { font-size: 38px; }
  .ai-lead p { font-size: 17px; }
  .ai-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .ai-control { flex-direction: column; align-items: flex-start; }
  .ai-control .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   MULTIBRAND
   ============================================================ */
.brands { margin-top: 12px; padding: 30px 0 32px; background: linear-gradient(180deg, #F3F7FA, #EDF2F8); color: var(--ink); }
.brands-grid { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: 40px; align-items: center; }
.brands .section-title { font-size: 62px; color: #0B1220; }
.brands-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 19px; line-height: 1.45; color: #3B4A60; max-width: 420px; }
.brands-copy .btn { margin-top: 28px; min-width: 270px; }
.brands-visual { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.brand-list { background: #fff; border-radius: 14px; padding: 16px 12px; box-shadow: 0 16px 40px -20px rgba(15, 23, 42, .35); font-size: 12px; }
.brand-list strong { display: block; padding: 0 8px 10px; font-size: 13px; }
.brand-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: #334155; }
.brand-list li .i { width: 15px; height: 15px; color: #64748B; }
.brand-list li b { margin-left: auto; font-weight: 500; color: #64748B; }
.brand-list li.on { background: var(--electric); color: #fff; }
.brand-list li.on .i, .brand-list li.on b { color: #fff; }
.brand-list li.new { margin-top: 6px; color: #0B1220; font-weight: 500; }
.brand-rows { display: flex; flex-direction: column; gap: 12px; }
.brand-rows li { display: grid; grid-template-columns: auto 1fr auto 20px; gap: 22px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 18px 12px 12px; box-shadow: 0 16px 40px -22px rgba(15, 23, 42, .35); }
.thumbs { display: flex; gap: 8px; }
.thumbs img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; }
.brand-rows .name { font-size: 12.5px; color: #64748B; }
.brand-rows strong { display: block; font-size: 16px; color: #0B1220; margin-bottom: 4px; }
.avs { display: flex; }
.avs .av { margin-left: -8px; width: 32px; height: 32px; }
.avs .more { margin-left: -8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #E8EDF5; color: #475569; font: 600 11px var(--body); font-style: normal; border: 2px solid #fff; }
.brand-rows .i { width: 18px; height: 18px; color: #64748B; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta { position: relative; padding: 34px 0 22px; overflow: hidden; background: radial-gradient(ellipse 60% 90% at 30% 120%, rgba(83, 103, 255, .35), transparent 70%); }
.cta-deco { position: absolute; inset: 0; pointer-events: none; }
.orbit--cta {
  left: -8%; right: -8%; top: 62%; height: 260%; border-width: 3px;
  border-color: transparent;
  border-top-color: rgba(83, 120, 255, .95); border-left-color: rgba(83, 245, 198, .5); border-right-color: rgba(83, 245, 198, .5);
  filter: drop-shadow(0 0 4px rgba(120, 140, 255, .95)) drop-shadow(0 0 18px rgba(83, 103, 255, .7)) drop-shadow(0 0 40px rgba(83, 103, 255, .4));
}
.sphere--cta { width: 68px; height: 68px; left: 15%; top: 42%; }
.cta-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-left: 26%; }
.cta-title { font-size: 54px; line-height: 1; }
.cta p { margin-top: 12px; font-size: 16px; color: #D0D8E4; }
.cta .btn { min-width: 220px; margin-right: 11%; }
.site-footer { border-top: 1px solid #172338; }
.footer-row { display: flex; align-items: center; gap: 40px; min-height: 50px; font-size: 13px; color: #B7C2D3; }
.footer-row img { width: 120px; height: auto; }
.footer-row > p:first-of-type { margin-left: 18%; }
.footer-links { display: flex; gap: 28px; margin-left: auto; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--mint); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .hero-title { font-size: 78px; }
  :lang(en) .hero-title { font-size: 66px; }
  .nav-links { padding-left: 40px; gap: 32px; }
  .feature h3 { font-size: 30px; }
}

@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 10px; max-width: 720px; }
  .hero-visual { padding: 30px 30px 50px 50px; }
  .sphere--hero { top: auto; bottom: 34%; right: 2%; }
  .channel-strip li { gap: 14px; font-size: 17px; }
  .channel-strip .soc.lg { width: 34px; height: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(3)::before { display: none; }
  .feature-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .brands-grid { grid-template-columns: 1fr; }
  .cta-row { padding-left: var(--gutter); }
  .cta .btn { margin-right: 0; }
  .sphere--cta { left: auto; right: 7%; top: 18px; width: 56px; height: 56px; }
  /* L'orbita dell'hero resta dietro la dashboard, non sopra i testi. */
  .orbit--hero { top: 46%; width: 150%; right: -60%; height: 60%; }
  .footer-row { flex-wrap: wrap; gap: 14px 28px; padding: 18px var(--gutter); }
  .footer-row > p:first-of-type { margin-left: 0; }
}

/* Menu a scomparsa sotto i 1024 px: fra 860 e 1024 le voci, la lingua,
   "Accedi" e "Scopri i piani" non stanno su una riga. */
@media (max-width: 1024px) {
  .header-row { height: 80px; }
  .logo img { width: 180px; }
  .menu-toggle { display: grid; place-items: center; width: 48px; height: 48px; background: transparent; border: 1px solid var(--border); border-radius: 12px; color: var(--ice); cursor: pointer; }
  .site-nav {
    position: absolute; top: 80px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch;
    background: #0E1729; border: 1px solid var(--border); border-radius: 18px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; padding: 0; margin: 0; }
  .nav-links a { display: block; padding: 14px 12px; font-size: 18px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255, 255, 255, .04); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
  .nav-login { padding: 14px 12px; font-size: 18px; }
  .nav-actions .btn { min-height: 52px; font-size: 17px; }
}

@media (max-width: 860px) {
  .channel-strip { grid-template-columns: repeat(2, 1fr); border: 0; background: transparent; gap: 12px; }
  .channel-strip li { justify-content: flex-start; padding: 0 20px; min-height: 68px; border: 1px solid var(--border); border-radius: 14px; background: rgba(12, 21, 37, .7); }
  .channel-strip li + li::before { display: none; }
  .channel-strip li::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #8291A8; border-top: 2px solid #8291A8; transform: rotate(45deg); }
  .brands-visual { grid-template-columns: 1fr; }
  .brand-list { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .eyebrow--wide { font-size: 13px; letter-spacing: .32em; }
  .hero { padding-top: 10px; }
  .hero-title, :lang(en) .hero-title { font-size: clamp(46px, 13.5vw, 56px); white-space: normal; }
  .hero-lead { font-size: 18px; margin-top: 20px; }
  .hero-ctas { flex-direction: column; gap: 12px; margin-top: 26px; }
  .hero-ctas .btn { width: 100%; }
  .hero-note { margin-top: 24px; font-size: 14px; align-items: flex-start; }
  .hero-note .i { width: 22px; height: 22px; }
  .hero-visual { padding: 26px 0 0; }
  /* Dashboard su mobile: niente sidebar, calendario su tre giorni, pannello AI sotto. */
  .app { grid-template-columns: 1fr; min-height: 0; padding: 8px; }
  .app-side { display: none; }
  .app-main { padding: 12px; }
  .app-tools .seg, .app-tools .arrows { display: none; }
  .app-chips { flex-wrap: nowrap; overflow: hidden; }
  .week-head, .week-body { grid-template-columns: 34px repeat(3, 1fr); }
  .week-head span:nth-child(n+5) { display: none; }
  .week-body { grid-template-rows: repeat(3, 104px); background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc((100% - 34px) / 3 - 1px), #EEF2F7 calc((100% - 34px) / 3 - 1px), #EEF2F7 calc((100% - 34px) / 3)); background-position: 34px 0; }
  .post[style*="--col:4"], .post[style*="--col:5"], .post[style*="--col:6"] { display: none; }
  .post--sm { width: auto; }
  .post { font-size: 10px; }
  .ai-panel { position: relative; right: auto; bottom: auto; width: auto; margin-top: 12px; }
  .ai-spark { display: none; }
  .ai-chips { flex-wrap: wrap; padding-left: 0; gap: 8px; }
  .ai-chips span { padding: 6px 12px; }
  .sphere--hero { width: 52px; height: 52px; bottom: 30%; }
  .channels { padding-top: 28px; }
  .channel-strip li { gap: 10px; padding: 0 14px; min-height: 60px; font-size: 15px; }
  .channel-strip .soc.lg, .channel-strip .soc--ig.lg { width: 28px; height: 28px; }
  .process { padding-top: 54px; }
  .section-title, .process .section-title { font-size: 38px; }
  .steps { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .step + .step::before { display: none; }
  .step-head { gap: 14px; }
  .step-head h3 { font-size: 22px; }
  .num { width: 48px; height: 48px; font-size: 18px; }
  .step p { margin: 10px 0 0 62px; }
  .features .container { padding: 0 var(--gutter); }
  .feature { padding: 22px 14px 10px; }
  .feature h3 { font-size: 28px; }
  .feature > p { font-size: 16px; }
  .ui { min-height: 0; padding: 12px; }
  .cal-icons { gap: 6px; }
  .cal-icons > span { width: 32px; height: 32px; }
  .cal-head, .cal-body { grid-template-columns: 34px repeat(3, 1fr); }
  .cal-head span:nth-child(5) { display: none; }
  .mini[style*="--col:4"] { display: none; }
  .cal-body { background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc((100% - 34px) / 3 - 1px), #EEF2F7 calc((100% - 34px) / 3 - 1px), #EEF2F7 calc((100% - 34px) / 3)); background-position: 34px 0; }
  .tabs { font-size: 10.5px; }
  .result { grid-template-columns: 24px 1fr; }
  .result img { display: none; }
  .item { grid-template-columns: 96px 1fr 18px; }
  .item img { width: 96px; height: 64px; }
  .brands { padding: 46px 0; }
  .brands .section-title { font-size: 40px; }
  .brands-copy .btn { width: 100%; min-width: 0; }
  .brand-rows li { grid-template-columns: auto 1fr 18px; gap: 12px; padding: 10px 12px 10px 10px; }
  .brand-rows .avs { display: none; }
  .thumbs img { width: 56px; height: 52px; }
  .thumbs img + img { display: none; }
  .cta { padding: 56px 0 40px; }
  .cta-row { flex-direction: column; align-items: stretch; text-align: left; gap: 26px; }
  .cta-title { font-size: 42px; }
  .cta .btn { width: 100%; }
  .sphere--cta { left: auto; right: 8%; top: 22px; width: 54px; height: 54px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; flex-wrap: wrap; gap: 10px 22px; }
}

/* Lingua: mappamondo e menu (js/lang.js ricorda la scelta). Su desktop sta
   fra le voci del menu e "Accedi", come un link; sul telefono nell'header,
   accanto al pulsante del menu. */
.langmenu { position: relative; flex: none; }
.langmenu--mobile { display: none; }
.langmenu--desktop summary { height: 40px; line-height: 1; }
.langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; color: var(--ice); font-size: 16px; opacity: .92; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover, .langmenu[open] summary { color: var(--mint); opacity: 1; }
.langmenu summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 6px; }
.langmenu summary .i { width: 19px; height: 19px; }
.langmenu summary::after { content: ''; width: 6px; height: 6px; margin-left: 1px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.langmenu ul { position: absolute; right: -8px; top: calc(100% + 14px); z-index: 60; min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #0E1729; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.langmenu li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ice); text-decoration: none; font-size: 15px; }
.langmenu li a:hover { background: rgba(255, 255, 255, .05); color: var(--mint); }
.langmenu li a[aria-current] { font-weight: 600; }
.langmenu li a .i { width: 18px; height: 18px; color: var(--mint); }
.nav-links a, .nav-login { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 1025px) {
  .nav-links { gap: 24px; padding-left: 24px; }
  .nav-actions { gap: 22px; }
  .langmenu--desktop { margin-left: 10px; }
  .langmenu--desktop .lcode { display: none; }
}
@media (max-width: 1024px) {
  .langmenu--desktop { display: none; }
  .langmenu--mobile { display: block; order: 2; margin-left: auto; margin-right: 10px; }
  .langmenu--mobile summary { height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; font-weight: 600; font-size: 15px; }
  .langmenu--mobile summary::after { display: none; }
  .langmenu--mobile ul { right: 0; top: calc(100% + 8px); }
  .menu-toggle { order: 3; }
}
@media (max-width: 380px) { .langmenu--mobile .lcode { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
