/* Glisco AI & IT — Pro-Tech Dark, linee guida Gemini */

:root {
  --bg-deep: #0D1117;
  --bg-card: #161b22;
  --text-primary: #FFFFFF;
  --text-muted: #8b949e;
  --accent-ai: #7B61FF;
  --accent-it: #00D1FF;
  --accent-ai-dim: rgba(123, 97, 255, 0.15);
  --accent-it-dim: rgba(0, 209, 255, 0.12);
  --border: #30363d;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-it);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header__logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.site-header__nav {
  display: flex;
  gap: 1.5rem;
}

.site-header__nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.site-header__nav a:hover {
  color: var(--text-primary);
}

.site-header__cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-ai);
  border-radius: 8px;
  color: var(--accent-ai);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 20px var(--accent-ai-dim);
}

.site-header__cta:hover {
  background: var(--accent-ai-dim);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
  }
  .site-header__nav {
    order: 3;
    width: 100%;
  }
}

/* Hero */
.hero-ai {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-ai__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-ai__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(30, 58, 138, 0.25) 0%, transparent 60%),
              var(--bg-deep);
}

.hero-ai__neural {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 15% 25%, var(--accent-it) 1px, transparent 0),
    radial-gradient(2px 2px at 45% 55%, var(--accent-ai) 1px, transparent 0),
    radial-gradient(2px 2px at 75% 35%, var(--accent-it) 1px, transparent 0),
    radial-gradient(2px 2px at 85% 75%, var(--accent-ai) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 30% 80%, rgba(0, 209, 255, 0.5) 1px, transparent 0);
  background-size: 120px 80px, 90px 110px, 140px 90px, 100px 120px, 80px 100px;
  animation: neural-pulse 6s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes neural-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

.hero-ai__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-ai__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.hero-ai__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.hero-ai__payoff {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent-it), var(--accent-ai));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-ai__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-ai), #5a4dcc);
  color: var(--text-primary);
  border: none;
}

.btn--primary:hover {
  opacity: 0.95;
  text-decoration: none;
}

.btn--glow {
  box-shadow: 0 0 24px var(--accent-ai-dim);
}

.btn--outline {
  background: transparent;
  color: var(--accent-it);
  border: 1px solid var(--accent-it);
}

.btn--outline:hover {
  background: var(--accent-it-dim);
  text-decoration: none;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}

.section__lead {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section p {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

/* Bento Grid */
.section--bento .section__title {
  text-align: center;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 1rem;
}

.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bento__card:hover {
  border-color: var(--accent-it);
  box-shadow: 0 0 20px var(--accent-it-dim);
}

.bento__card--ai {
  border-color: rgba(123, 97, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.bento__card--ai::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(123, 97, 255, 0.08) 45%,
    rgba(123, 97, 255, 0.12) 50%,
    transparent 55%
  );
  animation: card-shine 4s ease-in-out infinite;
}

@keyframes card-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.bento__card--ai:hover {
  box-shadow: 0 0 24px var(--accent-ai-dim);
}

.bento__card h3,
.bento__card p {
  position: relative;
  z-index: 1;
}

.bento__card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.bento__card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

.bento__card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento__card--medium {
  grid-column: span 2;
}

.bento__card--small {
  grid-column: span 1;
}

.bento__card--wide {
  grid-column: span 4;
}

.bento__sede {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__card--large,
  .bento__card--medium,
  .bento__card--small,
  .bento__card--wide {
    grid-column: span 1;
  }
  .bento__card--large {
    grid-row: span 1;
  }
}

/* AI Advantage */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
}

.advantage-card__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--accent-it);
}

.advantage-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.advantage-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .advantage-grid {
    grid-template-columns: 1fr;
  }
}

/* Numbers */
.section--numbers {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.numbers__item strong {
  color: var(--accent-it);
  margin-right: 0.25rem;
}

/* CTA band — blu elettrico, testo scuro */
.cta-band {
  background: linear-gradient(135deg, #00D1FF, #0066ff);
  color: var(--bg-deep);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.cta-band h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.cta-band .btn--primary {
  background: var(--bg-deep);
  color: var(--accent-it);
}

.cta-band .btn--primary:hover {
  background: #161b22;
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 1.5rem;
  background: var(--bg-card);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.site-footer__grid p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__name {
  font-weight: 700;
  color: var(--text-primary);
}

.site-footer__legal {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
