/* ============================================================
   LA MATRICE DEL TEMPO — Armando Morandi
   Astrologia Finanziaria · Cicli · Timing
   Design system condiviso — tema blu cosmico + oro
   ============================================================ */

/* Font self-hosted (in sito/fonts/) — nessuna chiamata a Google, niente banner cookie */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/cormorant-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/cormorant-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/cormorant-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/cormorant-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/cormorant-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/cormorant-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/cormorant-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/cormorant-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:200;font-display:swap;src:url(../fonts/raleway-200-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:200;font-display:swap;src:url(../fonts/raleway-200-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/raleway-300-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/raleway-300-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/raleway-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/raleway-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/raleway-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/raleway-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/raleway-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Raleway';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/raleway-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg:          #020a18;
  --bg-deep:     #010510;
  --blue:        #0d3a8c;
  --blue-light:  #1a5cb8;
  --panel:       rgba(12, 34, 78, 0.30);
  --panel-solid: #061a3e;
  --gold:        #c9a84c;
  --gold-light:  #f5e6b8;
  --gold-deep:   #a08638;
  --gold-dim:    rgba(201, 168, 76, 0.65);
  --line:        rgba(201, 168, 76, 0.18);
  --line-soft:   rgba(140, 180, 255, 0.12);
  --text:        rgba(255, 255, 255, 0.84);
  --text-dim:    rgba(200, 215, 245, 0.62);
  --text-faint:  rgba(180, 200, 240, 0.40);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Raleway', system-ui, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.2px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   SFONDO COSMICO FISSO (su tutte le pagine)
   ============================================================ */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(13, 58, 140, 0.45) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 40%, rgba(10, 48, 120, 0.40) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(11, 46, 112, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 30%, #061a3e 0%, #030d22 45%, #010510 100%);
}
.space-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(100, 160, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 160, 255, 0.025) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.space-bg .nebula { position: absolute; border-radius: 50%; filter: blur(90px); }
.neb-1 { width: 720px; height: 480px; background: radial-gradient(circle, #1a5cb8, transparent 70%); top: -8%; left: -10%; opacity: 0.30; }
.neb-2 { width: 640px; height: 440px; background: radial-gradient(circle, #154a9e, transparent 70%); bottom: 2%; right: -8%; opacity: 0.28; }
.neb-3 { width: 500px; height: 400px; background: radial-gradient(circle, #1255a0, transparent 70%); top: 45%; left: 30%; opacity: 0.18; }

.stars { position: absolute; inset: 0; }
.star {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.15; } 100% { opacity: 1; } }

/* Orbite decorative */
.orbits {
  position: absolute; top: 50%; left: 50%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  pointer-events: none;
}
.orbit {
  position: absolute; top: 50%; left: 50%;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 80s linear infinite;
}
.orbit:nth-child(1) { width: 360px;  height: 360px;  animation-duration: 50s; }
.orbit:nth-child(2) { width: 560px;  height: 560px;  animation-duration: 70s; animation-direction: reverse; }
.orbit:nth-child(3) { width: 780px;  height: 780px;  animation-duration: 95s; }
.orbit:nth-child(4) { width: 1040px; height: 1040px; animation-duration: 120s; animation-direction: reverse; border-color: rgba(140,180,255,0.06); }
.orbit::after {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold-deep));
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
  transform: translateX(-50%);
}
.orbit:nth-child(2)::after { width: 4px; height: 4px; top: auto; bottom: -2px; }
.orbit:nth-child(3)::after { width: 8px; height: 8px; top: 50%; left: -4px; transform: translateY(-50%); }
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .star, .orbit { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }
.center { text-align: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 13px 0;
  background: rgba(3, 10, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Wordmark (logo italiano in CSS) */
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .mark {
  display: flex; flex-direction: column;
  font-family: var(--serif); font-weight: 700;
  font-size: 23px; letter-spacing: 3.5px; text-transform: uppercase;
  line-height: 1.06;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 75%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(201, 168, 76, 0.18));
}
.brand .mark > span { display: block; }
.brand .sub {
  font-size: 9.5px; letter-spacing: 4.5px; text-transform: uppercase;
  color: var(--text-faint); margin-top: 7px; font-weight: 400;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative; font-size: 12.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--text-dim);
  font-weight: 400; transition: color 0.3s;
  padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 32px; position: relative; z-index: 110;
}
.nav-toggle span {
  position: absolute; left: 6px; right: 6px; height: 1.5px; background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 23px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: 2.2px; text-transform: uppercase;
  padding: 15px 34px; border-radius: 2px; cursor: pointer;
  transition: all 0.4s var(--ease); border: 1px solid transparent;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #0a1326; box-shadow: 0 8px 30px rgba(201, 168, 76, 0.18);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(201, 168, 76, 0.32); }
.btn-outline { border-color: var(--gold-dim); color: var(--gold-light); background: transparent; }
.btn-outline:hover { background: rgba(201, 168, 76, 0.08); border-color: var(--gold); }
.btn-ghost { color: var(--text-dim); border-color: var(--line-soft); }
.btn-ghost:hover { color: #fff; border-color: var(--text-dim); }

/* ============================================================
   TIPOGRAFIA / SECTION HEADERS
   ============================================================ */
.pre-title {
  font-size: 12px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold-dim); font-weight: 400; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: #fff; line-height: 1.15; }
.display {
  font-weight: 700; letter-spacing: 6px; text-transform: uppercase;
  font-size: clamp(38px, 7vw, 78px);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 42%, var(--gold-deep) 72%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.18));
}
h2.section-title { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: 1px; }
h3 { font-size: 23px; letter-spacing: 0.5px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text); font-weight: 300; line-height: 1.8; }
p { color: var(--text-dim); margin-bottom: 16px; }
.muted { color: var(--text-faint); }
.gold-text { color: var(--gold); }

.divider {
  width: 110px; height: 1px; margin: 22px 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.center .divider, .divider.center { margin-left: auto; margin-right: auto; }

.section-head { max-width: 760px; margin: 0 auto 64px; }
.section-head.left { margin-left: 0; }

.greek {
  font-family: var(--serif); font-size: 17px; letter-spacing: 10px;
  color: rgba(180, 200, 240, 0.18); text-transform: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 140px 24px 80px;
}
.hero .greek { margin: 18px 0; }
.hero .lead { max-width: 620px; margin: 8px auto 0; }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-author {
  margin-top: 46px; font-size: 13px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold-dim);
}
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--gold-dim), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Page hero (interne) */
.page-hero { padding: 180px 0 70px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 60px); letter-spacing: 2px; }
.page-hero .lead { max-width: 680px; margin: 18px auto 0; }
.breadcrumb { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   GRID & CARDS (glass)
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 38px 32px; border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dim); border-radius: 50%;
  color: var(--gold-light); font-size: 22px; font-family: var(--serif);
}
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 15px; }
.card .num {
  font-family: var(--serif); font-size: 15px; color: var(--gold);
  letter-spacing: 3px; margin-bottom: 14px; display: block;
}

/* Modalità di pagamento */
.pay-methods { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 18px 0 0; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 14px; letter-spacing: 0.5px; color: var(--text);
}
.pay-chip .ico { font-size: 17px; color: var(--gold-light); }
.pay-chip strong { color: #fff; font-weight: 500; }
.pay-note { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 14px; }

/* Pagine legali */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 25px; margin: 40px 0 12px; color: var(--gold-light); }
.legal h3 { font-size: 18px; margin: 26px 0 8px; color: #fff; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; line-height: 1.85; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold); }
.legal a:hover { color: var(--gold-light); }
.legal .updated { font-size: 13px; color: var(--text-faint); margin-bottom: 8px; }
.legal strong { color: var(--text); }

.footer-bottom a { color: var(--text-faint); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--gold-light); }

/* Testimonianze */
.quote-card {
  position: relative; padding: 34px 30px 28px; border-radius: 4px;
  background: var(--panel); border: 1px solid var(--line-soft);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.quote-card::before {
  content: '\201C'; position: absolute; top: 2px; left: 18px;
  font-family: var(--serif); font-size: 64px; line-height: 1;
  color: var(--gold-dim); opacity: 0.5;
}
.quote-card p { color: var(--text); font-size: 16px; line-height: 1.7; margin: 14px 0 18px; font-style: italic; }
.quote-card .who { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.quote-card .stars { color: var(--gold); letter-spacing: 3px; font-size: 13px; margin-bottom: 2px; }

/* Banner immagine largo (slide cosmiche) */
/* #1 I MAESTRI — ritratti uniformi */
.master-photo {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  margin: 0 auto 22px; display: block;
  border: 1px solid var(--gold-dim);
  filter: grayscale(0.5) contrast(1.05) brightness(0.95) sepia(0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 0 4px rgba(2,10,24,0.6);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.master-photo:hover { filter: grayscale(0.15) contrast(1.05); transform: scale(1.04); }
.master-era { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dim); margin: 2px 0 12px; }

/* #2 LIGHTBOX — ingrandimento dashboard performance */
.perf-shot { cursor: zoom-in; }
.lb-hint {
  position: absolute; z-index: 4; bottom: 12px; right: 12px;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-light); background: rgba(3,10,26,0.7);
  border: 1px solid var(--gold-dim); border-radius: 20px; padding: 5px 12px;
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.perf-shot:hover .lb-hint { opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(1,4,11,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vw; opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 96vw; max-height: 90vh; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 28px; width: 44px; height: 44px;
  border: 1px solid var(--gold-dim); border-radius: 50%; background: rgba(3,10,26,0.6);
  color: var(--gold-light); font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover { background: rgba(201,168,76,0.12); }

/* Ritratto bio — trattamento elegante (fonde col tema cosmico) */
.portrait {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  background: var(--bg-deep);
}
.portrait img {
  display: block; width: 100%; height: auto;
  filter: contrast(1.04) brightness(1.0) saturate(1.02);
  transition: transform 0.8s var(--ease);
}
.portrait:hover img { transform: scale(1.02); }
.portrait::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,10,24,0) 52%, rgba(2,10,24,0.88) 100%),
    radial-gradient(ellipse at center, rgba(13,58,140,0) 55%, rgba(2,10,24,0.45) 100%),
    linear-gradient(180deg, rgba(13,58,140,0.16), rgba(201,168,76,0.05));
}
.portrait .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px 18px; text-align: left; }
.portrait .cap .nm { font-family: var(--serif); font-size: 22px; color: #fff; letter-spacing: 1px; }
.portrait .cap .rl { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-dim); margin-top: 3px; }
.portrait .frame-corner { position: absolute; width: 34px; height: 34px; border-color: var(--gold-dim); border-style: solid; z-index: 3; }
.portrait .fc-tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.portrait .fc-tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.portrait .fc-bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.portrait .fc-br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* Broker partner (AvaTrade / AvaFutures) */
.broker {
  max-width: 900px; margin: 0 auto; text-align: center;
  border-radius: 10px; padding: 2px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(245,230,184,0.85), rgba(201,168,76,0.20) 45%, rgba(201,168,76,0.7));
  box-shadow: 0 30px 75px rgba(0,0,0,0.65), 0 0 70px rgba(201,168,76,0.16);
}
.broker .broker-inner {
  border-radius: 9px; padding: 34px 38px 46px; overflow: hidden;
  background: linear-gradient(160deg, rgba(8,22,52,0.96), rgba(3,11,30,0.98));
}
/* foto come riquadro a sé: cornice oro su tutti i lati, staccata in alto e dal badge */
.broker .broker-photo {
  display: block;
  width: 100%; height: auto; object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4);
  margin: 0 0 34px;
}
.broker .badge-partner {
  display: inline-block; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid var(--gold-dim); border-radius: 20px;
  padding: 5px 16px; margin-bottom: 20px;
}
.broker h3 { font-size: 28px; margin-bottom: 12px; }
.broker .broker-logo { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.broker .broker-logo span { color: var(--gold); }
.broker ul.checklist { display: inline-block; text-align: left; margin: 22px auto; }
.broker .note-aff { font-size: 12px; color: var(--text-faint); margin-top: 18px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* slide allineata al blocco di testo sopra (.section-head = 760px) */
.media-banner { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.media-banner .frameC { border-radius: 10px; padding: 2px; background: linear-gradient(135deg, rgba(245,230,184,0.85), rgba(201,168,76,0.20) 45%, rgba(201,168,76,0.7)); box-shadow: 0 30px 75px rgba(0,0,0,0.65), 0 0 70px rgba(201,168,76,0.16); }
.media-banner img { width: 100%; height: auto; display: block; border-radius: 8px; }
.banner-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 920px; margin: 40px auto 0; }
.banner-points .bp { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); }
.banner-points .bp::before { content: '✦'; color: var(--gold); font-size: 14px; line-height: 1.5; flex-shrink: 0; }
@media (max-width: 760px){ .banner-points { grid-template-columns: 1fr; gap: 14px; max-width: 420px; } }

/* Immagini dashboard performance */
.perf-shot { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #06080f; box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
.perf-shot img { width: 100%; height: auto; display: block; }
.perf-shot figcaption { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); text-align: center; padding: 10px; border-top: 1px solid var(--line-soft); }
.perf-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px){ .perf-gallery { grid-template-columns: 1fr; } }

/* Tabella performance */
.perf-table { width: 100%; max-width: 640px; margin: 0 auto; border-collapse: collapse; font-size: 15px; }
.perf-table th, .perf-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.perf-table th { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.perf-table td:last-child, .perf-table th:last-child { text-align: right; }
.perf-table .val { font-family: var(--serif); color: var(--gold-light); font-size: 19px; }
.perf-table tr.total td { border-bottom: none; border-top: 1px solid var(--gold-dim); padding-top: 18px; }
.perf-table tr.total td:first-child { font-weight: 600; color: #fff; }
.perf-table tr.total .val { color: var(--gold); font-size: 23px; }

/* Ritratti "I Maestri" */
.master-photo {
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  margin: 0 auto 20px; display: block;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.06), 0 14px 30px rgba(0,0,0,0.4);
  filter: grayscale(0.12) contrast(1.03);
}
.master-era {
  font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

/* Feature alternato (testo + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text h2 { margin-bottom: 8px; }
.split-visual {
  position: relative; min-height: 360px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(26,92,184,0.35), transparent 65%),
    linear-gradient(160deg, #061a3e, #030d22);
  display: flex; align-items: center; justify-content: center;
}

/* Lista check */
.checklist { list-style: none; margin: 20px 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
  color: var(--text); font-size: 15.5px;
}
.checklist li::before {
  content: '✦'; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 14px;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .n { font-family: var(--serif); font-size: 52px; font-weight: 600; color: var(--gold-light); line-height: 1; }
.stat .l { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin-top: 12px; }

/* ============================================================
   BANNER / CTA FASCIA
   ============================================================ */
.band {
  position: relative; padding: 90px 0; text-align: center; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at center, rgba(13,58,140,0.30), transparent 70%);
}
.band h2 { margin-bottom: 18px; }

/* Frame ornamentale (angoli oro) */
.framed { position: relative; }
.corner { position: absolute; width: 46px; height: 46px; border-color: var(--line); border-style: solid; pointer-events: none; }
.corner.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner.br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* ============================================================
   TIMELINE (Storico)
   ============================================================ */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 0; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--gold-dim), var(--line-soft));
}
.tl-item { position: relative; padding: 0 0 46px 48px; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: radial-gradient(circle, var(--gold-light), var(--gold-deep));
  box-shadow: 0 0 14px rgba(201,168,76,0.5); border: 2px solid var(--bg-deep);
}
.tl-item .yr { font-family: var(--serif); font-size: 22px; color: var(--gold); letter-spacing: 2px; }
.tl-item h3 { font-size: 20px; margin: 4px 0 8px; }

/* ============================================================
   FORM
   ============================================================ */
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-soft);
  border-radius: 3px; padding: 14px 16px; transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-dim); background: rgba(255,255,255,0.05);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-list { list-style: none; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list .k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.contact-list .v { font-family: var(--serif); font-size: 20px; color: #fff; margin-top: 4px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line-soft); padding: 24px 0; }
.faq-item h3 { font-size: 19px; margin-bottom: 10px; color: var(--gold-light); }
.faq-item p { margin-bottom: 0; }

/* Pricing tiers */
.tier { display: flex; flex-direction: column; }
.tier.featured { border-color: var(--gold-dim); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.tier .badge {
  position: absolute; top: 16px; right: 16px; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--gold-dim);
  padding: 4px 10px; border-radius: 20px;
}
.tier .price { font-family: var(--serif); font-size: 40px; color: #fff; margin: 12px 0; }
.tier .price small { font-size: 14px; color: var(--text-faint); letter-spacing: 1px; }
.tier .checklist { flex: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; padding: 80px 0 36px; margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(2, 8, 20, 0.6));
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-grid h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 20px; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { font-size: 14px; color: var(--text-dim); transition: color 0.3s; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand .mark { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.footer-brand p { font-size: 14px; max-width: 320px; margin-top: 16px; }
.disclaimer {
  font-size: 11.5px; line-height: 1.7; color: var(--text-faint);
  border-top: 1px solid var(--line-soft); padding-top: 26px; margin-top: 10px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--text-faint); letter-spacing: 0.5px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .section { padding: 84px 0; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 30px; background: rgba(3, 9, 22, 0.97); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform 0.5s var(--ease); z-index: 105;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 16px; letter-spacing: 3px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .section { padding: 70px 0; }
  .brand .mark { font-size: 20px; letter-spacing: 2.5px; }
  .brand .sub { font-size: 8px; letter-spacing: 3px; }
}
