/* Gio.ia Hub — sito ombrello. Fondo notte, un colore per capitolo:
   Siti verde (come Gio.ia Web), Tap ambra, Wine bordeaux, Work blu. */
:root {
  --bg: #0d0f0e; --surface: #151917; --surface-2: #1c211f; --line: #29302c;
  --ink: #eef1ee; --muted: #93a099;
  --siti: #34a06a; --siti-l: #2af598;
  --tap: #e3a33b; --tap-l: #ffd27a;
  --wine: #b8244f; --wine-l: #ff5c8a;
  --work: #3b82e6; --work-l: #7fb2ff;
  --r: 22px; --gutter: clamp(18px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(13, 15, 14, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand b { font-weight: 800; }
.brand__dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--siti) 0 25%, var(--tap) 0 50%, var(--wine) 0 75%, var(--work) 0); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.pill:hover { transform: translateY(-1px); }
.pill--fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill--siti { background: linear-gradient(135deg, var(--siti-l), var(--siti)); color: #04140b; border: 0; }
.link { text-decoration: none; font-weight: 600; color: var(--muted); }
.link:hover { color: var(--ink); }
@media (max-width: 760px) { .nav__links { display: none; } .nav__in { justify-content: space-between; } }

/* apertura */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.eyebrow, .kicker { font: 500 13px/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.kicker i { font-style: normal; margin-right: 8px; }
h1 { font-size: clamp(46px, 7.6vw, 108px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 0; }
.grad { background: linear-gradient(90deg, var(--siti-l), var(--tap-l) 40%, var(--wine-l) 70%, var(--work-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 52ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); margin: 30px 0 0; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 15px; transition: border-color .2s, transform .2s; }
.chip i { font: 500 12px "Geist Mono", monospace; font-style: normal; opacity: .7; }
.chip:hover { transform: translateY(-1px); }
.chip--siti:hover { border-color: var(--siti); } .chip--tap:hover { border-color: var(--tap); } .chip--gest:hover { border-color: var(--wine); }
.chip--siti i { color: var(--siti-l); } .chip--tap i { color: var(--tap-l); } .chip--gest i { color: var(--wine-l); }
.hero__glow { position: absolute; inset: auto -20% -40% auto; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; border-radius: 50%; pointer-events: none; filter: blur(80px); opacity: .32;
  background: conic-gradient(from 200deg, var(--siti), var(--tap), var(--wine), var(--work), var(--siti)); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* capitoli */
.chapter { padding: clamp(90px, 12vw, 170px) 0; border-top: 1px solid var(--line); position: relative; }
.chapter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.chapter__grid--rev .chapter__visual { order: -1; }
h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1; letter-spacing: -.04em; font-weight: 800; margin: 0 0 26px; }
.chapter__text > p:not(.kicker):not(.note) { color: var(--muted); max-width: 46ch; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--c, var(--siti)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--siti)) 22%, transparent); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.ctas--center { justify-content: center; }
.note { margin-top: 26px; font-size: 14px; color: var(--tap-l); }
.chapter--siti { --c: var(--siti); } .chapter--siti .kicker { color: var(--siti-l); }
.chapter--tap { --c: var(--tap); } .chapter--tap .kicker { color: var(--tap-l); }
.chapter--gest .kicker { color: var(--wine-l); }
@media (max-width: 900px) { .chapter__grid { grid-template-columns: 1fr; } .chapter__grid--rev .chapter__visual { order: 0; } }

/* telefono con la demo vera */
.chapter__visual { display: grid; place-items: center; }
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px; background: #050606; border: 1px solid #2c3330;
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--siti) 60%, transparent), 0 0 0 1px #000 inset; transform: rotate(-3deg); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; pointer-events: none; }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; border-radius: 99px; background: #050606; transform: translateX(-50%); z-index: 2; }

/* scena tessera Tap */
.tapscene { position: relative; width: min(460px, 100%); aspect-ratio: 1; }
.tapcard { position: absolute; left: 0; top: 18%; width: 64%; aspect-ratio: 1.586; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(140deg, #2a2216, #120f0a); border: 1px solid #4a3a22; transform: rotate(-9deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.tapcard__logo { font-size: 18px; } .tapcard__logo b { color: var(--tap-l); }
.tapcard__hint { font: 500 11px "Geist Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tapcard__waves { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; }
.tapcard__waves i { position: absolute; inset: 0; border: 2px solid var(--tap); border-radius: 50%; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); animation: wave 2.4s ease-out infinite; opacity: 0; }
.tapcard__waves i:nth-child(2) { animation-delay: .5s; } .tapcard__waves i:nth-child(3) { animation-delay: 1s; }
@keyframes wave { 0% { transform: rotate(45deg) scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: rotate(45deg) scale(1.3); opacity: 0; } }
.tapphone { position: absolute; right: 4%; top: 2%; width: 44%; aspect-ratio: 9 / 18; border-radius: 34px; padding: 9px; background: #050606; border: 1px solid #2c3330; transform: rotate(7deg);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--tap) 55%, transparent); animation: tap 4s ease-in-out infinite; }
.tapphone__screen { height: 100%; border-radius: 26px; background: #f7f3ea; color: #1b1712; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px; font-size: 13px; }
.tapphone__screen b { font-size: 17px; }
.tapphone__stars { color: var(--tap); letter-spacing: 2px; font-size: 18px; }
.tapphone__btn { margin-top: 8px; width: 100%; padding: 9px 0; border-radius: 99px; background: #1b1712; color: #fff; font-weight: 600; font-size: 12px; }
.tapphone__btn--ghost { margin-top: 0; background: none; color: #1b1712; border: 1px solid #d8cfbf; }
@keyframes tap { 0%, 100% { transform: rotate(7deg) translate(0, 0); } 45%, 55% { transform: rotate(4deg) translate(-22%, 16%); } }

/* gestionali */
.gest__head { max-width: 760px; margin-bottom: clamp(60px, 8vw, 110px); }
.gest__head > p:not(.kicker) { color: var(--muted); max-width: 52ch; margin: 0; font-size: 19px; }
.product { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 90px); align-items: center; margin-bottom: clamp(90px, 11vw, 150px); }
.product:last-child { margin-bottom: 0; }
.product--work { grid-template-columns: 7fr 5fr; } .product--work .product__shots { order: -1; }
.product__name { font-size: 20px; margin: 0 0 14px; } .product--wine .product__name b { color: var(--wine-l); } .product--work .product__name b { color: var(--work-l); }
h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; }
.product__text > p:not(.product__name):not(.status) { color: var(--muted); margin: 0; max-width: 46ch; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: var(--siti-l); box-shadow: 0 0 10px var(--siti-l); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.product__shots { position: relative; aspect-ratio: 16 / 11; }
.shot { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(0,0,0,.85); background: var(--surface); }
.shot img { width: 100%; height: auto; }
.shot--back { left: 0; top: 0; width: 82%; opacity: .55; }
.shot--front { right: 0; bottom: 0; width: 82%; }
.product--wine .shot--front { box-shadow: 0 30px 80px -25px color-mix(in srgb, var(--wine) 70%, transparent); }
.product--work .shot--front { box-shadow: 0 30px 80px -25px color-mix(in srgb, var(--work) 70%, transparent); }
.shot--photo { left: -4%; bottom: -8%; width: 28%; transform: rotate(-7deg); border-radius: 6px; }
@media (max-width: 900px) { .product, .product--work { grid-template-columns: 1fr; } .product--work .product__shots { order: 0; } }

/* lavori */
.works { padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.work { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.work b { font-size: 20px; letter-spacing: -.01em; }
.work p { margin: 0; color: var(--muted); font-size: 15px; }
.work--big { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: center; padding: 16px 30px 16px 16px; transition: border-color .2s; }
.work--big:hover { border-color: var(--siti); }
.work--big img { border-radius: 12px; }
.work--big > div { display: flex; flex-direction: column; gap: 10px; }
.tag { align-self: flex-start; font: 500 11px/1 "Geist Mono", monospace; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; }
.tag--siti { background: color-mix(in srgb, var(--siti) 20%, transparent); color: var(--siti-l); }
.tag--wine { background: color-mix(in srgb, var(--wine) 22%, transparent); color: var(--wine-l); }
.tag--work { background: color-mix(in srgb, var(--work) 22%, transparent); color: var(--work-l); }
.tag--tap { background: color-mix(in srgb, var(--tap) 22%, transparent); color: var(--tap-l); }
@media (max-width: 900px) { .works__grid { grid-template-columns: 1fr; } .work--big { grid-template-columns: 1fr; padding: 16px; } }

/* come lavoriamo */
.ways { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); }
.ways b { display: block; font-size: 24px; letter-spacing: -.02em; margin-bottom: 10px; }
.ways p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .ways__grid { grid-template-columns: 1fr; } }

/* parliamone */
.talk { padding: clamp(100px, 13vw, 180px) 0; text-align: center; border-top: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--wine) 22%, transparent), transparent); }
.talk h2 { margin-bottom: 18px; }
.talk p { color: var(--muted); margin: 0; }

.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a, .foot__copy { color: var(--muted); text-decoration: none; font-size: 14px; }

/* comparse */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero__glow, .tapphone, .tapcard__waves i, .status span { animation: none; } }

/* logo Gio.ia che scorre lentamente tutti i colori (hue-rotate sul logo verde originale) */
.brand__logo { width: 34px; height: 34px; animation: rgb 12s linear infinite; filter: drop-shadow(0 0 10px rgba(42, 245, 152, .25)); }
.foot .brand__logo { width: 28px; height: 28px; }
@keyframes rgb { from { filter: hue-rotate(0deg) saturate(1.25) drop-shadow(0 0 10px rgba(255, 255, 255, .15)); } to { filter: hue-rotate(360deg) saturate(1.25) drop-shadow(0 0 10px rgba(255, 255, 255, .15)); } }
@media (prefers-reduced-motion: reduce) { .brand__logo { animation: none; } }

/* siti a rotazione nel telefono */
.chapter--siti .chapter__visual { gap: 22px; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; }
.phone__screen iframe { position: absolute; inset: 0; border-radius: 0; opacity: 0; transition: opacity .9s ease; }
.phone__screen iframe.is-on { opacity: 1; }
.sites__label { display: flex; align-items: baseline; gap: 10px; min-height: 28px; transition: opacity .4s; }
.sites__label.is-swap { opacity: 0; }
.sites__label span { font: 500 11px/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--siti-l); }
.sites__label b { font-size: 19px; letter-spacing: -.01em; }
.sites__dots { display: flex; gap: 8px; }
.sites__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.sites__dots button.is-on { width: 26px; background: var(--siti); }
/* sito esterno: la sua barra di scorrimento non si può nascondere da qui, si allarga l'iframe e la si taglia fuori */
.phone__screen iframe.is-ext { width: calc(100% + 20px); }

/* invito alla prova gratuita dei gestionali */
.gest__head a { color: var(--ink); text-underline-offset: 3px; }
.pilot { margin-top: clamp(80px, 10vw, 130px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: clamp(28px, 4vw, 48px);
  border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--wine) 18%, var(--surface)), color-mix(in srgb, var(--work) 18%, var(--surface))); }
.pilot .kicker { color: var(--ink); opacity: .8; }
.pilot h3 { margin-bottom: 14px; }
.pilot p:not(.kicker) { margin: 0; color: var(--muted); max-width: 58ch; }
@media (max-width: 760px) { .pilot { grid-template-columns: 1fr; } }

/* modulo contatti: le richieste arrivano nel pannello (pagina Richieste) */
.form { max-width: 720px; margin: 40px auto 0; text-align: left; display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input:not([type=checkbox]), .form textarea { width: 100%; font: 400 16px/1.4 "Geist", sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--siti); outline-offset: 1px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__want { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__want legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.form__want label { display: block; }
.form__want input { position: absolute; opacity: 0; pointer-events: none; }
.want { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s; }
.form__want input:focus-visible + .want { outline: 2px solid var(--ink); outline-offset: 2px; }
.form__want input:checked + .want--siti { background: color-mix(in srgb, var(--siti) 25%, transparent); border-color: var(--siti); }
.form__want input:checked + .want--tap { background: color-mix(in srgb, var(--tap) 25%, transparent); border-color: var(--tap); }
.form__want input:checked + .want--gest { background: color-mix(in srgb, var(--work) 25%, transparent); border-color: var(--work); }
.form .pill { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form .pill:disabled { opacity: .5; cursor: default; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__msg { margin: 0; min-height: 1.2em; font-size: 14px; color: #ff8a8a; }
.form__note { margin: 0; font-size: 12px; color: var(--muted); }
.form.is-done { text-align: center; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
