/* ════════════════════════════════════════════════════════════════════
   CELTIC CLAN S.A.T. — Stile condiviso (mobile-first)
   Base = telefono · @media (min-width: 768px) = tablet/desktop
   ════════════════════════════════════════════════════════════════════ */

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

:root {
  --black:  #070a10;
  --dark:   #0c1220;
  --blue:   #0f2040;
  --mid:    #1a3a6a;
  --accent: #4a8fd4;
  --gold:   #c8b97a;
  --cream:  #d8e4f0;
  --dim:    #6a7e9a;
  --red:    #cc3333;
  --mono:   'Share Tech Mono', monospace;
  --cond:   'Barlow Condensed', sans-serif;
  --body:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Effetto scanline */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.12) 2px, rgba(0,0,0,.12) 4px);
  pointer-events: none;
  z-index: 9999;
}


/* ── Ticker ─────────────────────────────────────────────────────────── */
.ticker-bar { 
  background: var(--mid); 
  border-bottom: 1px solid var(--accent); 
  color: var(--cream); 
  font-family: var(--mono); 
  font-size: .65rem; 
  letter-spacing: .12em; 
  overflow: hidden; 
  white-space: nowrap; 
  padding: 5px 0; 
  width: 100%;
}

.ticker-inner { 
  display: inline-block; 
  white-space: nowrap;
  animation: ticker 45s linear infinite; 
  padding-left: 100%; /* Fa partire il testo completamente fuori schermo a destra */
}

@keyframes ticker { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-100%); } /* Si sposta del 100% della sua larghezza */
}


/* ── Navigazione: burger + drawer su mobile, barra orizzontale da 768px ── */
nav {
  position: sticky; top: 0; z-index: 100;
  /* niente backdrop-filter su mobile: creerebbe un containing block
     per il drawer position:fixed, ancorandolo alla barra invece che al viewport */
  background: rgba(7,10,16,.98);
  border-bottom: 1px solid rgba(74,143,212,.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; height: 60px;
}
.nav-logo { font-family: var(--mono); font-size: .85rem; color: var(--accent); letter-spacing: .1em; position: relative; z-index: 101; }
.nav-logo span { color: var(--dim); }

.nav-burger {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  cursor: pointer; color: var(--accent); font-size: 1.5rem;
  background: none; border: none; font-family: var(--mono);
  position: relative; z-index: 101; /* sopra il drawer aperto */
}

/* Drawer a tutto schermo (sotto la barra nav, che resta visibile col ✕) */
.nav-links {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(7,10,16,.97);
  backdrop-filter: blur(6px);
  flex-direction: column; justify-content: flex-start;
  padding: 84px 1.5rem 2rem;
  list-style: none;
  overflow-y: auto;
}
.nav-links.open { display: flex; }
.nav-links li { width: 100%; border-bottom: 1px solid rgba(74,143,212,.15); }
.nav-links a {
  display: block; padding: 1rem 0;
  font-family: var(--mono); font-size: .85rem; color: var(--cream);
  text-decoration: none; letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

@media (min-width: 768px) {
  nav { padding: 0 2rem; background: rgba(7,10,16,.94); backdrop-filter: blur(10px); }
  .nav-burger { display: none; }
  .nav-links {
    display: flex; position: static; flex-direction: row; gap: 2rem;
    padding: 0; background: none; backdrop-filter: none; overflow: visible;
  }
  .nav-links li { width: auto; border-bottom: none; }
  .nav-links a { padding: 0; font-size: .68rem; color: var(--dim); }
}

/* ── Bottoni ────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  padding: .85rem 2rem; cursor: pointer; border: none;
  transition: all .2s; display: inline-block; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: #6aaee8; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #ddd090; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(74,143,212,.1); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline-gold:hover { background: rgba(200,185,122,.1); }
.btn-red { background: var(--red); color: white; }

/* ── Form ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .12em; color: var(--dim); text-transform: uppercase;
  margin-bottom: .4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(74,143,212,.2);
  color: var(--cream); font-family: var(--mono);
  font-size: 16px; /* ≥16px su mobile: evita lo zoom automatico di iOS */
  padding: .75rem 1rem;
  outline: none; transition: border-color .2s;
  -webkit-appearance: none; border-radius: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--dark); }

/* form-row: 1 colonna su mobile, 2 da 600px */
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-group input, .form-group select, .form-group textarea { font-size: .8rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer { background: var(--dark); border-top: 1px solid rgba(74,143,212,.1); padding: 2.5rem 1.25rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-logo { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.footer-copy { font-family: var(--mono); font-size: .58rem; color: var(--dim); letter-spacing: .08em; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--dim); text-decoration: none; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent); }

@media (min-width: 768px) {
  footer { padding: 2.5rem 2rem; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .footer-links a { min-height: 0; }
}
