/*
Theme Name: ALAI Premium
Theme URI: https://alai.pro
Author: OpenAI Codex
Description: Tema custom per il sito istituzionale ALAI.
Version: 1.1.0
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: alai-premium
*/

:root {
  --bg: #06101d;
  --bg-soft: #0a1830;
  --panel: rgba(11, 24, 48, 0.86);
  --panel-strong: rgba(14, 28, 54, 0.96);
  --text: #edf2fb;
  --muted: #aeb8cb;
  --line: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-soft: #f0d988;
  --accent: #8aa6ff;
  --danger: #ffc9c9;
  --max: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.10), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(79, 114, 205, 0.20), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #06101d 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; height: auto; display: block; }

.site-shell { min-height: 100vh; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card,
.highlight,
.faq-item,
.page-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.card,
.highlight,
.page-card { padding: 28px; }
.card h3,
.highlight h3,
.page-card h3 { margin: 0 0 12px; font-size: 1.2rem; }
.card p,
.highlight p,
.page-card p,
.page-card li { margin: 0; color: var(--muted); }
.page-card ul { margin: 16px 0 0; padding-left: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 16, 29, 0.84);
  backdrop-filter: blur(18px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-toggle {
  display: none;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
}
.site-nav .nav-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  color: var(--text);
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 12px;
}
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.language-switcher a.is-current {
  border-color: rgba(212, 175, 55, 0.44);
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.08);
}

.hero { padding: 92px 0 72px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
}
.hero-panel {
  padding: 42px;
  background: linear-gradient(180deg, rgba(11, 24, 48, 0.95), rgba(6, 16, 29, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.hero p {
  margin: 0 0 28px;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.button,
.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.12));
  border-color: rgba(212, 175, 55, 0.44);
  color: var(--text);
}
.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.metric strong { display: block; margin-bottom: 6px; font-size: 1.4rem; }
.metric span { color: var(--muted); font-size: 0.88rem; }
.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(13, 29, 56, 0.96), rgba(6, 16, 29, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-orb {
  position: absolute;
  inset: auto -90px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 65%);
  filter: blur(8px);
}
.hero-glow {
  position: absolute;
  inset: -60px auto auto -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 161, 255, 0.24), transparent 62%);
  filter: blur(8px);
}
.hero-stack {
  position: relative;
  display: grid;
  gap: 18px;
}
.motion-illustration {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: calc(var(--radius-md) + 2px);
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 217, 136, 0.10), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(138, 166, 255, 0.14), transparent 28%),
    rgba(255,255,255,0.03);
  overflow: hidden;
  isolation: isolate;
  animation: illustration-float 16s ease-in-out infinite;
}
.motion-illustration::before,
.motion-illustration::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
}
.motion-illustration::before {
  top: -36px;
  left: -28px;
  width: 124px;
  height: 124px;
  background: radial-gradient(circle, rgba(240, 217, 136, 0.12), transparent 72%);
}
.motion-illustration::after {
  right: -32px;
  bottom: -42px;
  width: 156px;
  height: 156px;
  background: radial-gradient(circle, rgba(138, 166, 255, 0.16), transparent 72%);
}
.motion-illustration img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.hero-illustration {
  padding: 14px;
}
.hero-quote,
.hero-note,
.hero-pillars {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
}
.hero-quote p,
.hero-note p { margin: 0; color: var(--text); }
.hero-note small { display: block; margin-top: 10px; color: var(--muted); }
.hero-pillars ul { margin: 0; padding-left: 20px; color: var(--muted); }
.hero-pillars li + li { margin-top: 10px; }

.band {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.band-item { padding: 28px 0; }
.band-item strong { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.band-item p { margin: 0; color: var(--muted); }

.process-list {
  counter-reset: process;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.process-step {
  position: relative;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.process-step h3 { margin: 0 0 12px; font-size: 1.08rem; }
.process-step p { margin: 0; color: var(--muted); }

.highlight-grid,
.trust-grid,
.faq-grid,
.page-grid { margin-top: 34px; }
.highlight { min-height: 100%; }
.highlight strong,
.trust-bullet strong { color: var(--text); }
.trust-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.trust-bullet + .trust-bullet { margin-top: 16px; }
.trust-bullet p { margin: 6px 0 0; color: var(--muted); }

.faq-item { padding: 0; overflow: hidden; }
.faq-item details { padding: 22px 24px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 14px 0 0; color: var(--muted); }

.cta-wrap {
  padding: 42px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(212,175,55,0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cta-wrap h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-wrap p { margin: 0 0 22px; max-width: 62ch; color: var(--muted); }

.site-footer {
  padding: 42px 0 58px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
}
.footer-brand p,
.footer-meta p,
.footer-meta a { color: var(--muted); margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--gold-soft);
}

.page-hero { padding: 74px 0 28px; }
.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
}
.page-hero-copy {
  min-width: 0;
}
.page-hero-illustration {
  min-height: 100%;
}
.page-hero .section-title { max-width: 920px; }
.page-content { padding-bottom: 88px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 28px; }
.page-content .entry-content p,
.page-content .entry-content li,
.page-content .entry-content h2,
.page-content .entry-content h3 { color: var(--text); }
.page-content .entry-content p,
.page-content .entry-content li { color: var(--muted); }
.page-content .entry-content h2 { margin-top: 0; }
.page-content .entry-content ul { padding-left: 20px; }
.page-sidebar .page-card + .page-card { margin-top: 24px; }

@keyframes illustration-float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1080px) {
  .hero-layout,
  .page-hero-layout,
  .trust-grid,
  .page-grid,
  .footer-grid,
  .band-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .process-list {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 420px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 54px; }
  .hero-panel,
  .hero-visual,
  .cta-wrap,
  .card,
  .highlight,
  .page-card { padding: 24px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .site-header-inner { min-height: 76px; }
  .brand { gap: 10px; }
  .brand-logo-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .language-switcher {
    margin-left: auto;
    margin-right: 0;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .site-nav .nav-cta a { width: 100%; }
  .footer-links,
  .footer-legal { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-illustration {
    animation: none;
  }
}

.pricing-section .pricing-grid { margin-top: 28px; }
.pricing-card { display: flex; flex-direction: column; gap: 12px; }
.pricing-amount {
  display: block;
  color: var(--gold-soft);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-link { margin: 28px 0 0; }
.waitlist-shell {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 32px;
  background: linear-gradient(180deg, rgba(6, 18, 36, 0.92), rgba(5, 14, 28, 0.88));
  border: 1px solid rgba(212,175,55,0.20);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.waitlist-head {
  max-width: 720px;
}
.waitlist-head h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.08;
}
.waitlist-head p,
.waitlist-note {
  margin: 0;
  color: var(--muted);
}
.waitlist-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.waitlist-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
}
.waitlist-field {
  display: grid;
  gap: 8px;
  text-align: left;
}
.waitlist-field span {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
}
.waitlist-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 1rem;
}
.waitlist-form input::placeholder {
  color: rgba(237, 242, 251, 0.50);
}
.waitlist-form input:focus {
  outline: none;
  border-color: rgba(212,175,55,0.38);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.08);
}
.waitlist-submit {
  min-width: 280px;
  justify-self: start;
}
.waitlist-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}
.waitlist-status-success,
.waitlist-status-exists {
  background: rgba(110, 231, 183, 0.10);
  border: 1px solid rgba(110, 231, 183, 0.30);
  color: #bdf3d8;
}
.waitlist-status-error {
  background: rgba(255, 201, 201, 0.10);
  border: 1px solid rgba(255, 201, 201, 0.30);
  color: var(--danger);
}
.waitlist-note {
  margin-top: 2px;
  font-size: 0.94rem;
  max-width: 62ch;
}

@media (max-width: 900px) {
  .waitlist-shell {
    padding: 24px;
  }
  .waitlist-fields {
    grid-template-columns: 1fr;
  }
  .waitlist-submit {
    width: 100%;
    min-width: 0;
  }
}
