/* ============================================================
   FIBONACCI ACADEMY × UNINETTUNO — Shared Stylesheet
   Aesthetic: European academia meets digital campus
   Palette: midnight navy · academic gold · azure · warm paper
   ============================================================ */

:root {
  --ink:         #0C1530;
  --navy:        #122046;
  --navy-soft:   #1B2E63;
  --azure:       #2F6FB0;
  --azure-light: #5B9BD5;
  --gold:        #C9A24B;
  --gold-light:  #E3C677;
  --gold-deep:   #A8842F;
  --ink-text:    #1A2238;
  --paper:       #FCFAF4;
  --cream:       #F6F2E9;
  --line:        rgba(12, 21, 48, 0.10);
  --line-strong: rgba(12, 21, 48, 0.20);

  --grad-hero:   linear-gradient(140deg, #0C1530 0%, #122046 52%, #1B2E63 100%);
  --grad-gold:   linear-gradient(90deg, #A8842F, #C9A24B, #E3C677);
  --grad-soft:   linear-gradient(180deg, #FCFAF4 0%, #F6F2E9 100%);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(12,21,48,0.06);
  --shadow:    0 14px 44px rgba(12,21,48,0.12);
  --shadow-lg: 0 34px 90px rgba(12,21,48,0.22);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1240px, 92%); margin: 0 auto; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(12, 21, 48, 0.82);
  border-bottom: 1px solid rgba(227,198,119,0.14);
  transition: background .3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 18px; }
.brand { display: flex; align-items: center; gap: 13px; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: linear-gradient(135deg, #16234D, #0C1530);
  border: 1px solid rgba(227,198,119,0.35);
  box-shadow: 0 0 22px rgba(201,162,75,0.25);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .2px; line-height: 1; }
.brand-name small {
  display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  color: var(--gold-light); letter-spacing: 2.4px; margin-top: 4px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.80); font-size: 14.5px; font-weight: 500; position: relative; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--grad-gold); transition: width .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--grad-gold); color: var(--ink);
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,75,0.4); }
.nav-toggle { display: none; color: #fff; width: 40px; height: 40px; align-items: center; justify-content: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--grad-gold); color: var(--ink); box-shadow: 0 14px 38px rgba(201,162,75,0.38); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(201,162,75,0.5); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.34); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.btn-dark { background: var(--navy); color: #fff; border: 1px solid rgba(227,198,119,0.25); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(12,21,48,0.28); }
.btn-outline { border: 1.5px solid var(--gold-deep); color: var(--gold-deep); }
.btn-outline:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-3px); }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ============ PAGE HERO ============ */
.page-hero { position: relative; padding: 184px 0 96px; background: var(--grad-hero); color: #fff; overflow: hidden; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(91,155,213,0.22), transparent 42%),
    radial-gradient(circle at 80% 68%, rgba(201,162,75,0.20), transparent 46%);
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,155,213,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,155,213,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 76%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 22px; }
.page-hero h1 .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 18.5px; color: rgba(255,255,255,0.80); max-width: 720px; margin: 0 auto 36px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border: 1px solid rgba(227,198,119,0.4); background: rgba(227,198,119,0.08);
  border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 12px var(--gold-light); animation: pulse 2s ease-in-out infinite; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.72); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ============ SECTIONS ============ */
section { padding: 108px 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: 780px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.section-tag::before { content: ""; width: 32px; height: 2px; background: var(--grad-gold); }
.section-head.center .section-tag { justify-content: center; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 44px); font-weight: 600; line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 20px; }
.section-title em { font-style: italic; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { font-size: 18px; color: rgba(26,34,56,0.66); max-width: 660px; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.dark { background: var(--ink); color: #fff; }
.dark .section-title { color: #fff; }
.dark .section-sub { color: rgba(255,255,255,0.68); }
.dark .section-tag { color: var(--gold-light); }
.cream-bg { background: var(--grad-soft); }

/* ============ MARQUEE ============ */
.marquee { background: var(--gold); color: var(--ink); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 56px; animation: marquee 34s linear infinite; white-space: nowrap; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 21px; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-size: 13px; font-style: normal; opacity: .7; }

/* ============ CARDS ============ */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,162,75,0.5); }

/* ============ FOOTER ============ */
footer { background: #070C20; color: rgba(255,255,255,0.7); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.foot-brand p { margin: 18px 0 22px; font-size: 14.5px; line-height: 1.65; max-width: 330px; }
.foot-brand .city { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(227,198,119,0.28); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--gold-light); }
.foot-col h6 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 18px; letter-spacing: .3px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color .2s ease; }
.foot-col a:hover { color: var(--gold-light); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.42); }
.foot-bottom .socials { display: flex; gap: 14px; }
.foot-bottom .socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center; color: rgba(255,255,255,0.6); transition: all .25s ease; }
.foot-bottom .socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .6; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 18px; background: rgba(7, 12, 32, 0.97); padding: 22px; backdrop-filter: blur(16px); border-top: 1px solid rgba(227,198,119,0.14); }
  .nav-toggle { display: flex; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  section { padding: 78px 0; }
  .page-hero { padding: 134px 0 70px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.lang-current:hover { background: rgba(255,255,255,0.12); border-color: rgba(227,198,119,0.4); }
.lang-current .flag { font-size: 15px; }
.lang-current .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .7; transition: transform .25s ease; }
.lang-switcher[open] .lang-current .caret { transform: rotate(225deg) translate(-2px, -2px); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; background: rgba(7,12,32,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 110; }
.lang-switcher[open] .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 13.5px; color: rgba(255,255,255,0.78); border-radius: 8px; transition: background .15s ease, color .15s ease; }
.lang-menu a:hover { background: rgba(201,162,75,0.12); color: #fff; }
.lang-menu a.active { color: var(--gold-light); font-weight: 700; }
.lang-menu a.active::before { content: "✓"; margin-right: -4px; }
.lang-menu .flag { font-size: 18px; }

@media (max-width: 768px) {
  .lang-switcher { display: none; }
  .lang-menu-mobile { display: block; padding-top: 14px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.10); }
  .lang-menu-mobile h6 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.45); }
  .lang-menu-mobile .links { display: flex; flex-wrap: wrap; gap: 6px; }
  .lang-menu-mobile a { padding: 6px 12px; background: rgba(255,255,255,0.06); border-radius: 6px; font-size: 13px; color: rgba(255,255,255,0.78); }
  .lang-menu-mobile a.active { background: var(--gold); color: var(--ink); }
}
@media (min-width: 769px) { .lang-menu-mobile { display: none; } }
