/* =======================================
   VARIABILI & BASE
======================================= */

:root{
  --header-bg: url("../backgrounds/BG_Header.webp");
  --hero-ratio: 5.19;

  --page-max: 1080px;
  --padX: 18px;

  --fg: #ffffff;
  --muted: #a9a9a9;
  --card: #0e0e0e;
  --br: #1b1b1b;
  --acc: #0c2de9;

  /* (lasciato per compatibilità: stesso valore di --br) */
  --blk: #1b1b1b;

  /* ===== Mobile bar controls ===== */
  --mobilebar-lift: -12px;            /* negativo = sale sopra l'hero */
  --mobilebar-bg: rgba(0,0,0,.28);    /* trasparente */
  --mobilebar-bd: rgba(255,255,255,.12);
  --mobilebar-blur: 10px;
}

/* RESET */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  background: #000;
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

/* =======================================
   HERO
======================================= */

.hero{
  position: relative;
  background-image: var(--header-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  height: calc(100vw / var(--hero-ratio));
  max-height: 740px;
  min-height: 240px;

  padding: 0 var(--padX);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Sfumatura in basso */
.hero::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.7));
}

@media (max-width: 768px){
  .hero{ min-height: 200px; }
}

/* =======================================
   NAV DESKTOP
======================================= */

.nav{
  background: #000;
  border-bottom: 1px solid #111;
  position: relative; /* base per drawer */
}

.nav .row{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px var(--padX);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a{
  color: #ddd;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.nav a:hover{
  background: #141414;
  color: #fff;
}

.nav a.active{
  background: #181818;
  color: var(--acc);
  font-weight: 700;
}

/* =======================================
   PAGE CONTENT (card buona)
======================================= */

.page-content{
  max-width: 1120px;
  margin: 40px auto;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--br);
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,.4);
}

.page-content h1{
  font-family: "UnifrakturCook", serif;
  font-size: 2.4rem;
  text-align: center;
  margin: 0 0 30px;
  color: var(--acc);
  border-bottom: 1px solid #222;
  padding-bottom: 10px;
}

@media (max-width: 650px){
  .page-content{
    max-width: 100%;
    padding: 20px 16px 50px;
    margin: 22px auto;
  }
}

/* =======================================
   UTILS
======================================= */

.muted{
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================
   6C) BOTTONI PIATTAFORME
========================== */
.actions-icons{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 44px;
  padding: 0 14px;

  background:#000;
  border: 2px solid var(--acc);
  border-radius: 10px;

  font-weight: 800;
  font-size: .95rem;

  transition: transform .15s ease, background .2s ease, opacity .2s ease;
}

.icon-btn:hover{
  background: var(--acc);
  transform: translateY(-1px);
}

.icon-btn.is-disabled{
  opacity: .35;
  pointer-events:none;
}
body{
  margin: 0;
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  background:
    radial-gradient(1400px 900px at -10% -10%,
      rgba(80,220,220,.18),
      transparent 60%
    ),
    radial-gradient(1200px 800px at 110% 0%,
      rgba(40,140,255,.14),
      transparent 65%
    ),
    radial-gradient(1400px 900px at 50% 120%,
      rgba(0,180,140,.08),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      #050608 0%,
      #060a0f 40%,
      #050608 100%
    );

  background-attachment: fixed;
}
:root{
  /* ...le tue variabili già presenti... */

  /* ===== THEME (blu/teal vetro) ===== */
  --acc: rgb(0, 115, 192);          /* accent definitivo */
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  --panel: rgba(10,18,22,.62);           /* card vetro */
  --panel-strong: rgba(8,12,16,.90);     /* pannello più pieno */
  --bd: rgba(120,220,255,.14);           /* border freddo */
  --bd-soft: rgba(255,255,255,.10);

  --glow: rgba(80,220,220,.12);          /* glow teal */
}
.page-content{
  max-width: 1120px;
  margin: 40px auto;
  padding: 28px 26px;

  background: var(--panel);
  border: 1px solid var(--bd);
  border-radius: 16px;

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 18px var(--glow),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.page-content h1{
  font-family: "UnifrakturCook", serif;
  font-size: 2.4rem;
  text-align: center;
  margin: 0 0 30px;
  color: var(--acc);
  border-bottom: 1px solid rgba(120,220,255,.14);
  padding-bottom: 10px;
}
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 44px;
  padding: 0 14px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(120,220,255,.18);
  border-radius: 12px;

  color: var(--fg);
  font-weight: 800;
  font-size: .95rem;

  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);

  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.icon-btn:hover{
  background: rgba(80,220,220,.12);
  border-color: rgba(120,220,255,.35);
  box-shadow:
    0 12px 34px rgba(0,0,0,.55),
    0 0 16px rgba(80,220,220,.10);
  transform: translateY(-1px);
}
.nav{
  background: rgba(8,18,22,.55);
  border-bottom: 1px solid rgba(120,220,255,.14);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.nav a:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}

.nav a.active{
  background: rgba(255,255,255,.06);
  color: var(--acc);
  font-weight: 800;
  border: 1px solid rgba(120,220,255,.18);
}
