:root {
  --bg: #0a0a0f;
  --bg-soft: #101019;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.68);
  --accent: #d8dbe6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --transition: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(140, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(84, 203, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #07070b 0%, #0e1018 45%, #0a0b11 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  animation: pageReveal 0.7s ease forwards;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-transition {
  position: fixed;
  inset: 0;
  background: #090a0f;
  z-index: 9999;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

body.is-leaving .page-transition {
  transform: translateY(0%);
}

.home,
.brand-page {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero,
.brand-hero {
  width: 100%;
  max-width: 1280px;
  position: relative;
  z-index: 2;
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

/* TITOLO HOME PIÙ MORBIDO E MODERNO */
.hero-title,
h1.hero-title,
h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;               /* Helvetica Bold per i titoli */
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #f5f7fb;
  text-transform: none;
}

.subtitle {
  width: min(680px, 100%);
  margin: 22px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.brand-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.brand-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  isolation: isolate;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.8s ease;
  z-index: -2;
}

.brand-card-1::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.45)),
    radial-gradient(circle at 20% 20%, rgba(255, 110, 64, 0.55), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255, 77, 109, 0.35), transparent 30%),
    linear-gradient(135deg, #23120d 0%, #6d1f1f 48%, #150d12 100%);
}

.brand-card-2::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.45)),
    radial-gradient(circle at 20% 20%, rgba(73, 124, 255, 0.48), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(118, 255, 214, 0.24), transparent 30%),
    linear-gradient(135deg, #0f1628 0%, #182b59 48%, #0b101c 100%);
}

.brand-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 8, 12, 0.72), rgba(8, 8, 12, 0.12));
  z-index: -1;
}

.brand-content {
  height: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

.brand-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.brand-card h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.brand-card p {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.brand-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.brand-card:hover::before {
  transform: scale(1.06);
}

.brand-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.card-glass {
  min-height: 520px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 89, 255, 0.35), transparent 65%);
  filter: blur(10px);
}

.brand-visual-alt::before {
  background: radial-gradient(circle, rgba(107,143,255,0.35), transparent 65%);
}

.brand-logo-text {
  position: relative;
  z-index: 1;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  color: rgba(255,255,255,0.94);
}

.brand-info h1 {
  margin-bottom: 18px;
}

.brand-info p {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

/* TORNA ALLA HOME - STILE PREMIUM */
.back-home-box {
  text-align: center;
  margin-top: 40px;
}

.btn-back-home {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn-back-home:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #d8dce8);
  color: #0c0d12;
  box-shadow: 0 16px 40px rgba(255,255,255,0.14);
}

.btn-primary:hover {
  box-shadow: 0 20px 50px rgba(255,255,255,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  z-index: 0;
}

.bg-blur-1 {
  width: 240px;
  height: 240px;
  top: 10%;
  left: 8%;
  background: #7c5cff;
}

.bg-blur-2 {
  width: 300px;
  height: 300px;
  bottom: 8%;
  right: 8%;
  background: #43c8ff;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.2s;
} 

/* --- FOOTER FISSO CENTRATO --- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.88rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(245,247,251,0.85);
  z-index: 999;
  box-sizing: border-box;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* per evitare sovrapposizione con i bottoni */
.view {
  padding-bottom: 60px !important;
}





@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageReveal {
  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .brand-grid,
  .brand-hero {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 320px;
  }

  .card-glass {
    min-height: 360px;
  }

  .brand-info {
    text-align: center;
  }

  .brand-info p {
    margin: 0 auto;
  }

  .actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home,
  .brand-page {
    padding: 20px;
  }

  .subtitle {
    font-size: 0.98rem;
  }

  .brand-grid {
    margin-top: 36px;
    gap: 16px;
  }

  .brand-card {
    min-height: 260px;
    border-radius: 22px;
  }

  .brand-content {
    padding: 24px;
  }

  .card-glass {
    min-height: 280px;
    border-radius: 24px;
  }

  .btn {
    width: 100%;
  }
}
