/* =========================================================
   Alex Tumbarello — Landing page (Dark Mode)
   Predisposizione base. Personalizzabile tramite le variabili
   qui sotto (colori, raggio, spaziature).
   ========================================================= */

:root {
  /* Palette — monocromatica blu (dal logo "Metodo Tumbarello") */
  --bg:        #070a12;
  --bg-2:      #0b101c;
  --surface:   #101728;
  --surface-2: #16203a;
  --border:    rgba(120, 160, 230, 0.12);
  --border-2:  rgba(120, 160, 230, 0.24);

  --text:      #eef2fb;
  --text-mut:  #9aa6c4;
  --text-dim:  #6c789a;

  /* Accenti / brand — due sfumature dello stesso blu */
  --accent:      #3f7fe0;   /* Metodo 1 — Match Betting (blu principale) */
  --accent-2:    #79b0ff;   /* Metodo 2 — Match Trading (blu chiaro) */
  --accent-soft: rgba(63, 127, 224, 0.14);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1280px;
  --header-h:  68px;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font:   'Inter', system-ui, -apple-system, sans-serif;
  --display:'Sora', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

/* ===== Transizione fade tra pagine ===== */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

.page-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  opacity: 1;
  pointer-events: none;
  transition: opacity .42s ease;
}
.page-fade.is-hidden { opacity: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageFadeIn .5s ease both;
}

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

.container {
  width: 100%;
  max-width: min(var(--maxw), 98vw);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
}
.narrow { max-width: min(820px, 98vw); }
.center { text-align: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
/* Solo effetto blur, nessuno sfondo scuro: la navbar resta "vetro" trasparente */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-name { font-family: var(--display); letter-spacing: .2px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-mut); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-kicker {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.btn-sm { padding: 9px 18px; font-size: 14px; flex-direction: row; }
.btn-block { display: flex; width: 100%; flex-direction: row; margin-top: auto; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f6fd6, var(--accent));
  box-shadow: 0 12px 30px -10px rgba(63, 127, 224, .6);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(63, 127, 224, .78); }

.btn-secondary {
  color: var(--text);
  background: var(--surface-2);
  border-color: rgba(121, 176, 255, .45);
  box-shadow: 0 12px 30px -14px rgba(63, 127, 224, .4);
}
.btn-secondary:hover {
  border-color: rgba(121, 176, 255, .8);
  box-shadow: 0 16px 40px -12px rgba(63, 127, 224, .55);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--surface); }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));   /* l'hero sale sotto la navbar trasparente */
  padding: calc(96px + var(--header-h)) 0 84px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(63,127,224,.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-glow {
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(63,127,224,.20), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.hero-copy { text-align: left; }

/* Ritaglio (sfondo trasparente) di Alex nell'hero */
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 62%;
  background: radial-gradient(circle, rgba(63,127,224,.30), transparent 68%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.hero-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,.5));
  /* Sfumatura sul fondo: dissolve il taglio della foto nello sfondo */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, rgba(0,0,0,.45) 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, rgba(0,0,0,.45) 88%, transparent 100%);
}
.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-mut);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 22px;
}
.hero-copy .hero-title { margin-left: 0; }
.hero-copy .hero-sub { margin-left: 0; margin-right: 0; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy .hero-badges { justify-content: flex-start; }
.grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-mut);
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-sub strong { color: var(--text); }
.hl { color: var(--accent-2); font-weight: 600; }
.hero-sub .hl { color: #9cc4ff; }

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-head { margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.lead { color: var(--text-mut); font-size: 1.12rem; max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

.intro { padding-top: 20px; padding-bottom: 40px; }

/* ===== Metodi ===== */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.method-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.method-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
#match-betting:hover { border-color: rgba(63,127,224,.55); }
#match-trading:hover { border-color: rgba(121,176,255,.55); }

.method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.method-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  color: var(--text-dim);
  opacity: .5;
}
.method-pill {
  padding: 7px 15px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
}
.pill-blue  { color: #7aa8f5; background: rgba(63,127,224,.16);  border: 1px solid rgba(63,127,224,.35); }
.pill-green { color: #9cc4ff; background: rgba(121,176,255,.14); border: 1px solid rgba(121,176,255,.32); }

.method-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.method-desc { color: var(--text-mut); margin-bottom: 22px; }
.method-desc strong { color: var(--text); }
.method-list {
  list-style: none;
  margin: 0 0 28px;
  display: grid;
  gap: 11px;
}
.method-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-mut);
  font-size: 15px;
}
.method-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #7aa8f5;
}

/* ===== Chi sono ===== */
.split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.split-media { display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,10,18,.45));
  pointer-events: none;
}
.split-body p { margin-bottom: 14px; color: var(--text-mut); }

/* ===== Testimonianze ===== */
.testimonials { background: var(--bg-2); }
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  color: var(--text);
  font-size: 1.05rem;
}
.quote:nth-child(2) { border-left-color: var(--accent-2); }
.quote:nth-child(3) { border-left-color: var(--accent); }

/* ===== CTA finale ===== */
.final-cta {
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(63,127,224,.16), transparent 60%),
    var(--bg);
}
.final-cta .section-title { margin-bottom: 12px; }
.final-cta .hero-cta { margin-top: 32px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-note { color: var(--text-dim); font-size: 14px; }

/* ===== Pagina "Presto disponibile" ===== */
.soon {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 50% -5%, rgba(63,127,224,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.soon-inner { position: relative; display: grid; justify-items: center; gap: 22px; padding: 60px 0; }
.soon-logo { height: 92px; width: auto; }
.soon-title { margin: 6px 0; }
.soon .btn { margin-top: 10px; }

/* ===== Ultra-wide ( container fluido 94vw + cap crescente + tipografia ) ===== */
@media (min-width: 1280px) {
  :root { --maxw: 1500px; }
}
@media (min-width: 1720px) {
  :root { --maxw: 1820px; }
  html { font-size: 17px; }
  .section { padding: 100px 0; }
  .hero { padding: calc(116px + var(--header-h)) 0 96px; }
  .methods-grid { gap: 32px; }
}
@media (min-width: 2200px) {
  :root { --maxw: 2100px; }
  html { font-size: 18px; }
  .section { padding: 120px 0; }
  .hero { padding: calc(140px + var(--header-h)) 0 116px; }
  .hero-title { max-width: 1100px; }
  .hero-glow { width: 900px; height: 900px; }
}
@media (min-width: 3000px) {
  :root { --maxw: 2400px; }
  html { font-size: 20px; }
  .section { padding: 150px 0; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .methods-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .split-body .lead { margin-left: auto; margin-right: auto; }
  .portrait-frame { width: 240px; }
  .section { padding: 60px 0; }

  /* Hero mobile: titolo e foto affiancati in alto (più accogliente),
     poi sottotitolo, pulsanti e badge a tutta larghezza sotto */
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title  portrait"
      "sub     sub"
      "cta     cta"
      "badges  badges";
    align-items: center;
    column-gap: 14px;
    row-gap: 22px;
    text-align: left;
  }
  .hero-copy { display: contents; }          /* promuove i figli come item della griglia */
  .hero-title {
    grid-area: title;
    margin: 0;
    min-width: 0;
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    overflow-wrap: break-word;
  }
  .hero-portrait { grid-area: portrait; margin: 0; }
  .hero-portrait img { width: min(44vw, 175px); max-width: none; }
  .hero-copy .hero-sub { grid-area: sub; margin: 0; }
  .hero-copy .hero-cta { grid-area: cta; justify-content: center; }
  .hero-copy .hero-badges { grid-area: badges; justify-content: center; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}
