/* Vortex Event Solutions — Styles (Vivo-show, crisp) */
:root{
  --bg:#05060c; --card:#0b0f18; --muted:#d8e8ff;
  --accent:#5ae1ff; --accent-2:#b566ff; --accent-3:#ffc15a;
  --text:#f3f8ff; --text-dim:#c9d6ea;
  --stroke:rgba(255,255,255,.14); --shadow:0 16px 40px rgba(0,0,0,.5); --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 900px at 12% 8%, rgba(90,225,255,.36), transparent 60%),
    radial-gradient(900px 700px at 85% 18%, rgba(181,102,255,.34), transparent 62%),
    radial-gradient(1100px 850px at 18% 92%, rgba(255,193,90,.22), transparent 58%),
    linear-gradient(180deg, #060915, #0a0f1d 60%, #090d16);
  background-attachment: fixed;
}
.container{max-width:1160px; margin:0 auto; padding:24px}
a{color:inherit; text-decoration:none; position:relative}
a:hover::after{content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transform-origin:left; animation:underline .9s ease}
@keyframes underline{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* Header trasparente */
header{position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; background:transparent; border:none}
.brand{display:flex; align-items:center; gap:14px}
.brand img{height:44px; display:block; filter:none;}
nav{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
/* Bottoni solidi */
.btn{padding:10px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:#0e1422; box-shadow:0 6px 18px rgba(0,0,0,.28); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease}
.btn:hover{transform:translateY(-1px); border-color:rgba(255,255,255,.28); box-shadow:0 10px 22px rgba(0,0,0,.35)}
.btn.primary{background:linear-gradient(180deg, rgba(90,225,255,.38), rgba(181,102,255,.24)); border-color:rgba(90,225,255,.7); box-shadow:0 10px 26px rgba(90,225,255,.28)}
.btn.primary:hover{box-shadow:0 16px 34px rgba(90,225,255,.34)}
/* Hero */
.hero{padding:92px 0 30px; display:grid; grid-template-columns:1.15fr 0.85fr; gap:28px; align-items:center}
.kicker{display:inline-block; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#c0d2ec; background:rgba(255,255,255,.08); border:1px solid var(--stroke); padding:6px 10px; border-radius:999px}
h1{font-size: clamp(34px, 4vw + 8px, 54px); line-height:1.04; margin:14px 0 12px}
h1 em{background:linear-gradient(90deg,var(--accent),var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent}
.lead{font-size: clamp(16px, 1.2vw + 10px, 19px); color:var(--text-dim); max-width:62ch}
.cta{margin-top:22px; display:flex; gap:12px; flex-wrap:wrap}
.card-hero{border:1px solid var(--stroke); background:#0d1321; border-radius:var(--radius); padding:18px; display:grid; gap:10px; box-shadow:var(--shadow)}
.badges{display:flex; flex-wrap:wrap; gap:8px}
.badge{font-size:12px; color:#d6e2f4; border:1px dashed rgba(255,255,255,.22); padding:6px 10px; border-radius:999px}
.hero-visual{position:relative; height:390px; border-radius:26px; border:1px solid var(--stroke); background:#0c101b; box-shadow:var(--shadow); overflow:hidden}
.glow{position:absolute; inset:-18%; background:radial-gradient(460px 240px at 70% 38%, rgba(90,225,255,.55), transparent 72%), radial-gradient(420px 220px at 30% 72%, rgba(181,102,255,.45), transparent 72%)}
.grid{position:absolute; inset:0; background-image:linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px); background-size:30px 30px; mask:linear-gradient(180deg, #000 42%, transparent)}
/* Sezioni */
.section{position:relative; padding:38px 0}
.section h2{font-size: clamp(22px, 2.4vw + 8px, 32px); margin:0 0 12px}
.section p{color:var(--text-dim)}
/* Servizi */
.services{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:22px}
.service{border:1px solid var(--stroke); background:#0d1423; border-radius:18px; padding:18px; min-height:148px; transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease; position:relative; overflow:hidden}
.service:hover{transform:translateY(-3px); border-color:rgba(255,255,255,.22); box-shadow:0 16px 30px rgba(0,0,0,.35)}
.service h3{margin:6px 0 8px; font-size:19px}
.service p{font-size:14px; color:#d0dcf0}
.chip{position:absolute; top:12px; right:12px; font-size:11px; color:#0b0c10; background:linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius:999px; padding:4px 8px; font-weight:700; box-shadow:0 6px 14px rgba(90,225,255,.38)}
/* Portfolio */
.portfolio{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:20px}
.shot{position:relative; border:1px solid var(--stroke); border-radius:16px; overflow:hidden; background:linear-gradient(135deg, rgba(90,225,255,.18), rgba(181,102,255,.14)); aspect-ratio:16/9}
.shot__img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(1.18) contrast(1.1) brightness(1.02); transform:scale(1); transition:transform .35s ease, filter .35s ease}
.shot::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 48%, rgba(0,0,0,.38)); opacity:.55; transition:opacity .35s ease}
.shot:hover .shot__img{transform:scale(1.045)}
.shot:hover::after{opacity:.7}
.shot__label{position:absolute; left:12px; bottom:10px; font-size:13px; color:#eef4ff}
/* Filtri */
.filters{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.filter{padding:8px 12px; border-radius:999px; border:1px solid var(--stroke); background:#10182a; font-size:14px; cursor:pointer; transition:all .2s ease}
.filter[aria-pressed="true"], .filter.active{background:linear-gradient(180deg, rgba(90,225,255,.40), rgba(181,102,255,.26)); border-color:rgba(90,225,255,.7)}
/* About & form */
.about{display:grid; grid-template-columns:1fr 1fr; gap:22px}
.about .card{border:1px solid var(--stroke); background:#0e1525; border-radius:18px; padding:18px; transition:transform .2s ease, box-shadow .2s ease}
.about .card:hover{transform:translateY(-3px); box-shadow:0 16px 30px rgba(0,0,0,.32)}
form{display:grid; gap:12px; margin-top:14px}
label{font-size:13px; color:#c7d5ea}
input, textarea{width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--stroke); background:#0c111d; color:var(--text); transition:border-color .2s ease, box-shadow .2s ease}
input:focus, textarea:focus{outline:none; border-color:rgba(90,225,255,.6); box-shadow:0 0 0 4px rgba(90,225,255,.18)}
textarea{min-height:120px}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
/* Footer */
footer{padding:30px 0 52px; color:#adbbcf; font-size:14px}
.foot{display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; border-top:1px solid var(--stroke); padding-top:18px}
/* Sticky CTA */
.sticky-cta{position:fixed; left:0; right:0; bottom:10px; display:flex; justify-content:center; z-index:9999; pointer-events:none}
.sticky-cta__inner{pointer-events:auto; display:flex; gap:10px; background:#0e1422; border:1px solid var(--stroke); border-radius:999px; padding:8px 12px; box-shadow:0 14px 34px rgba(0,0,0,.45)}
.sticky-cta .btn{padding:10px 14px}
/* Cookie banner */
.cookie-banner{position:fixed; left:12px; right:12px; bottom:12px; z-index:10000; background:#0e1422; border:1px solid var(--stroke); border-radius:16px; padding:12px 14px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; box-shadow:0 12px 28px rgba(0,0,0,.45)}
.cookie-banner p{margin:0; font-size:14px; color:#d4e0f2; flex:1 1 260px}
.cookie-actions{display:flex; gap:10px}
.cookie-banner .btn{padding:8px 12px}
/* Mobile spacer per CTA */
@media (max-width:779px){ body{ padding-bottom:92px } }
/* Responsive */
@media (max-width:980px){ .hero{grid-template-columns:1fr; padding-top:60px} .services{grid-template-columns:1fr 1fr} .portfolio{grid-template-columns:1fr 1fr} .about{grid-template-columns:1fr} }
@media (max-width:620px){ .services{grid-template-columns:1fr} .portfolio{grid-template-columns:1fr} .form-row{grid-template-columns:1fr} }
/* Reveal */
[data-animate]{opacity:0; transform:translateY(6px)}
[data-animate].show{animation:rise .55s ease var(--d,0s) forwards}
@keyframes rise{to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){.ticker__track{animation:none}}
/* ——— Tabella “Vortex in breve” ——— */
#vortex-in-breve .table { margin-top: 18px; }

#vortex-in-breve table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
}

#vortex-in-breve th,
#vortex-in-breve td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

#vortex-in-breve th {
  background: rgba(255,255,255,0.06);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 13px;
  color: #9dc7ff;
}

#vortex-in-breve tr:last-child td {
  border-bottom: none;
}

/* Responsive: tabella "a blocchi" su mobile */
@media (max-width: 720px) {
  #vortex-in-breve table,
  #vortex-in-breve thead,
  #vortex-in-breve tbody,
  #vortex-in-breve th,
  #vortex-in-breve td,
  #vortex-in-breve tr {
    display: block;
  }
  #vortex-in-breve th { display: none; }
  #vortex-in-breve tr { margin-bottom: 18px; }
  #vortex-in-breve td { border: none; padding: 8px 0; }
}
/* ——— Sezione Risultati: filtri + cards ——— */
.results-filters{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:14px;
}
.rf-btn{
  padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.12);
  background:#10182a; font-size:14px; cursor:pointer; transition:all .2s ease;
}
.rf-btn[aria-pressed="true"]{
  background:linear-gradient(180deg, rgba(90,225,255,.40), rgba(181,102,255,.26));
  border-color:rgba(90,225,255,.7);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.result-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 18px 20px;
  transition: background .3s ease, transform .2s ease, border-color .2s ease;
}
.result-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
}
.result-card h3 { margin: 0 0 6px; color: #9dc7ff; }
.result-card p { margin: 0 0 12px; color: #d4e0f2; }

.result-actions { display:flex; gap:10px; flex-wrap:wrap; }
.result-actions .btn { padding:8px 12px }
/* ——— Testo bottoni in bianco ——— */
.btn,
.filter,
.rf-btn,
.result-actions .btn {
  color: #fff !important;
}

.btn:hover,
.filter:hover,
.rf-btn:hover {
  color: #fff !important;
}
/* ——— Header come “card” arrotondata e sticky ——— */
header{
  position: sticky;         /* sempre visibile durante lo scroll */
  top: 0;                   /* se vuoi uno stacco dall’alto usa top:10px; */
  z-index: 60;              /* sopra al contenuto */
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(90,225,255,.2) 0%, rgba(90,225,255,0) 60%),
    radial-gradient(120% 120% at 100% 0%, rgba(181,102,255,.16) 0%, rgba(181,102,255,0) 60%),
    rgba(9,15,25,.72);      /* base scura leggermente traslucida */
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);                /* se supportato */
  -webkit-backdrop-filter: blur(6px);
  padding: 12px 16px;      /* respiro interno senza toccare il markup */
  margin: 8px 0 16px;      /* stacco dal contenuto sottostante */
}

/* effetto “solidifica” quando inizi a scorrere */
header.is-scrolled{
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(90,225,255,.25) 0%, rgba(90,225,255,0) 60%),
    radial-gradient(120% 120% at 100% 0%, rgba(181,102,255,.22) 0%, rgba(181,102,255,0) 60%),
    rgba(9,15,25,.82);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 20px 46px rgba(0,0,0,.55);
}

/* assicuriamo che brand e nav rimangano allineati come ora */
header .brand{ display:flex; align-items:center; gap:14px; }
header nav{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

/* Responsive: la card resta, ma compattiamo leggermente */
@media (max-width: 860px){
  header{ padding: 12px }
}
/* =========================
   1) HEADER — layout pulito
   ========================= */

/* Contenitore header: migliore gestione degli spazi */
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}

/* Brand allineato */
header .brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* evita overflow del testo su schermi stretti */
}

header .brand img{
  height: 42px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

header .brand strong{
  display: block;
  line-height: 1.1;
}

header .brand span{
  display: block;
  opacity: .9;
}

/* Barra bottoni */
header nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;          /* bottoni vanno a capo se serve */
  justify-content: flex-end;
  min-width: 0;
}

/* Bottoni: dimensione e leggibilità costanti */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 44px;          /* target accessibile */
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  font-weight: 600;
  color: #fff !important;   /* testo bianco ovunque */
}

/* Header su mobile: brand sopra, bottoni sotto con scroll orizzontale soft */
@media (max-width: 860px){
  header{
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 10px;
  }
  header .brand{
    width: 100%;
    gap: 10px;
  }
  header .brand img{ height: 36px; }
  header .brand strong{ font-size: 16px; }
  header .brand span{ font-size: 11px; }

  header nav{
    width: 100%;
    overflow-x: auto;              /* pillole scrollabili */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  header nav::-webkit-scrollbar{ display: none; }

  .btn{ height: 38px; padding: 0 12px; font-size: 14px; }
}

/* Evita che il contenuto si avvicini troppo all'header stickato */
.hero, .section{ scroll-margin-top: 80px; }

/* =========================
   2) FORM CONTATTI — pulito
   ========================= */

/* Griglia del form: 2 colonne desktop, 1 colonna mobile */
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .form-row{ grid-template-columns: 1fr; }
}

/* Label sopra ai campi con spaziatura coerente */
form label{
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #dbe7ff;
  letter-spacing: .2px;
}

/* Campi base */
form input,
form textarea,
form select{
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #eaf2ff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  font-size: 16px; /* evita zoom iOS */
}

/* Altezza minime */
form input[type="date"],
form input[type="email"],
form input[type="text"],
form input[type="tel"]{ min-height: 42px; }

form textarea{ min-height: 120px; resize: vertical; }

/* Focus chiaro e professionale */
form input:focus,
form textarea:focus,
form select:focus{
  border-color: rgba(90,225,255,.7);
  box-shadow: 0 0 0 3px rgba(90,225,255,.18);
  background: rgba(255,255,255,.06);
}

/* Hover */
form input:hover,
form textarea:hover,
form select:hover{
  border-color: rgba(255,255,255,.22);
}

/* Pulsante submit del form coerente */
#preventivo .btn.primary{
  height: 44px;
  padding: 0 16px;
  font-weight: 700;
}

/* Safari/Chrome date picker leggibile */
input[type="date"]{
  color-scheme: dark;
}

/* Card del form: più respiro su mobile */
@media (max-width: 720px){
  .about{ display: grid; grid-template-columns: 1fr; gap: 16px; }
  .card{ padding: 14px 16px; }
}

/* =========================
   3) FINITURE
   ========================= */

/* Mantieni testo bottoni bianco anche su varianti particolari */
.filter, .rf-btn, .result-actions .btn{ color:#fff !important; }
/* ——— Tabella "Servizi e Aree di Competenza" uguale su mobile e desktop ——— */
/* Contenitore con scroll orizzontale soft su telefoni */
#vortex-in-breve .table{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mantieni la struttura tabellare anche su mobile */
@media (max-width: 720px){
  /* forza il layout tabellare (annulla versioni "a blocchi" precedenti) */
  #vortex-in-breve table,
  #vortex-in-breve thead,
  #vortex-in-breve tbody,
  #vortex-in-breve tr,
  #vortex-in-breve th,
  #vortex-in-breve td{
    display: table !important;
  }
  #vortex-in-breve thead{ display: table-header-group !important; }
  #vortex-in-breve tbody{ display: table-row-group !important; }
  #vortex-in-breve tr{ display: table-row !important; margin: 0 !important; }
  #vortex-in-breve th,
  #vortex-in-breve td{ display: table-cell !important; padding: 12px 14px; }

  /* evita che le colonne si schiaccino: attiva scroll orizzontale quando serve */
  #vortex-in-breve table{ min-width: 720px; } /* puoi portare a 800px se vuoi più aria */

  /* opzionale: header appiccicoso dentro allo scroll (utile su liste lunghe) */
  #vortex-in-breve th{
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(255,255,255,0.06);
  }
}

/* rifiniture: bordo e colori coerenti */
#vortex-in-breve th{ font-weight: 600; color: #9dc7ff; }
#vortex-in-breve td{ color: var(--text); }
/* === Tabella "Servizi e Aree di Competenza" sempre visibile (niente scroll) === */
#vortex-in-breve .table{
  overflow-x: visible !important;   /* niente scroll orizzontale */
}

/* Struttura compatta che entra nello schermo */
#vortex-in-breve table{
  width: 100% !important;
  min-width: 0 !important;          /* annulla min-width precedenti */
  table-layout: fixed;              /* colonne a larghezza fissa + wrapping */
}

/* Colonne bilanciate e wrapping pulito */
#vortex-in-breve th, 
#vortex-in-breve td{
  white-space: normal;              /* consenti a capo */
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

/* Larghezze colonne (desktop + mobile) */
#vortex-in-breve th:nth-child(1),
#vortex-in-breve td:nth-child(1){ width: 38%; } /* Area di Competenza */
#vortex-in-breve th:nth-child(2),
#vortex-in-breve td:nth-child(2){ width: 62%; } /* Descrizione */

/* Compattazione su telefoni piccoli */
@media (max-width: 720px){
  #vortex-in-breve th, #vortex-in-breve td{
    padding: 9px 10px;              /* meno padding per far entrare tutto */
    font-size: 13.5px;              /* testo un filo più piccolo ma leggibile */
  }
  #vortex-in-breve th{
    font-size: 12px;                 /* header leggermente più piccolo */
    position: static;                /* nessun sticky header */
  }
  /* Logo/brand e paragrafi sopra non spingano i lati */
  #vortex-in-breve .lead{ font-size: clamp(14px, 3.6vw, 16px); }
}

/* Ultra-compattazione per schermi strettissimi (opzionale) */
@media (max-width: 360px){
  #vortex-in-breve th, #vortex-in-breve td{ 
    padding: 8px 8px; 
    font-size: 12.5px; 
  }
}



/* === Robust marquee (single row, seamless, 120s) === */
.macro-scroller{ margin: 24px 0 10px; }
.macro-scroller .marquee{
  position: relative;
  display:flex; align-items:center; justify-content:flex-start;
  min-height: 60px; overflow:hidden;
  background: radial-gradient(1200px 160px at 80% -40%, rgba(0,191,255,.18), rgba(0,0,0,0) 60%), rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 12px 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25) inset, 0 8px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.macro-scroller .marquee__row{
  display:flex; flex-wrap:nowrap; align-items:center;
  width:max-content; will-change:transform;
  animation: marquee-seamless 120s linear infinite;
}
.macro-scroller .marquee__track{ display:inline-flex; gap:12px; padding-left:12px; }
.macro-scroller .pill{
  display:inline-flex; align-items:center;
  height:36px; padding:0 14px; border-radius:999px;
  border:1px dashed rgba(255,255,255,.25);
  color:#e9f6ff; white-space:nowrap; font-size:14px; letter-spacing:.2px;
  backdrop-filter: blur(2px);
  background: rgba(8,14,26,.55);
  animation: glow-pulse 2.6s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0,191,255,.35), 0 0 16px rgba(0,191,255,.15), inset 0 0 10px rgba(0,191,255,.1);
  transition: all .25s ease;
}
.macro-scroller .pill:hover{
  animation-play-state: paused;
  box-shadow: 0 0 12px rgba(0,191,255,.70), 0 0 28px rgba(0,191,255,.35), inset 0 0 16px rgba(0,191,255,.22);
  transform: scale(1.05);
  border-color: rgba(0,191,255,.5);
}
.macro-scroller .marquee:hover .marquee__row{ animation-play-state: paused; }
@keyframes marquee-seamless{ 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes glow-pulse{
  0%{ box-shadow:0 0 6px rgba(0,191,255,.30),0 0 16px rgba(0,191,255,.12),inset 0 0 10px rgba(0,191,255,.08); transform:scale(1); }
  50%{ box-shadow:0 0 10px rgba(0,191,255,.55),0 0 24px rgba(0,191,255,.25),inset 0 0 14px rgba(0,191,255,.16); transform:scale(1.03); }
  100%{ box-shadow:0 0 6px rgba(0,191,255,.30),0 0 16px rgba(0,191,255,.12),inset 0 0 10px rgba(0,191,255,.08); transform:scale(1); }
}
@media (max-width: 860px){
  .macro-scroller{ margin: 16px 0 6px; }
  .macro-scroller .marquee__track{ gap: 10px; }
  .macro-scroller .pill{ height:34px; padding:0 12px; font-size:13px; animation-duration:2.2s; }
}

/* === Hamburger + drawer (mobile) === */
.menu-toggle{
  display:none; width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2); background: rgba(14,20,34,.85);
  box-shadow: 0 8px 20px rgba(0,0,0,.35); cursor:pointer;
  position:absolute; right:12px; top:10px; z-index:80;
}
.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after{
  content:""; display:block; width:20px; height:2px; background:#fff;
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); border-radius:2px;
}
.menu-toggle__icon::before{ transform:translate(-50%,-8px) }
.menu-toggle__icon::after{ transform:translate(-50%,6px) }

.mobile-drawer{
  position:fixed; top:0; right:0; bottom:0; width:min(84vw,320px);
  background:#0e1422; border-left:1px solid rgba(255,255,255,.12);
  box-shadow:-24px 0 50px rgba(0,0,0,.45);
  transform:translateX(100%); transition:transform .25s ease; z-index:10000; padding-top:70px;
}
.mobile-drawer[aria-hidden="false"]{ transform:translateX(0) }
.mobile-drawer__inner{ padding:16px }
.mobile-drawer__nav{ display:grid; gap:12px }
.mobile-drawer__nav .btn{ display:block; text-align:left; height:auto; padding:12px 14px }

.drawer-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.4); backdrop-filter: blur(2px); z-index:9999 }
body.drawer-open{ overflow:hidden }

@media (max-width: 860px){
  header{ padding-right:64px } /* spazio per hamburger */
  header nav{ display:none }
  .menu-toggle{ display:block }
  /* AR in drawer: emoji */
  .mobile-drawer__nav .area-riservata-stick{ width:44px; height:44px; border-radius:50%; padding:0; display:inline-flex; align-items:center; justify-content:center; background:#00bfff; color:transparent; font-size:0 }
  .mobile-drawer__nav .area-riservata-stick::before{ content:"👤"; font-size:22px; color:#fff; line-height:1 }
}

/* Desktop: nascondi hamburger/drawer */
@media (min-width: 861px){
  .menu-toggle, #mobile-drawer, #drawer-overlay{ display:none !important }
}

/* === Area Riservata positioning === */
/* Desktop: fuori dal card a destra (ancora nel DOM dentro nav/header) */
@media (min-width: 861px){
  header{ position: sticky; }
  header .area-riservata-stick{
    position:absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%);
    height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0 14px; z-index:65;
  }
}

/* Mobile inline (emoji accanto a Risultati) */
@media (max-width: 860px){
  header .area-riservata-stick{
    position: static !important; display:inline-flex !important;
    align-items:center !important; justify-content:center !important;
    width:38px !important; height:38px !important; margin-left:10px !important; padding:0 !important; border-radius:50% !important; background:#00bfff !important;
    font-size:0 !important; color:transparent !important; text-indent:0 !important; overflow:hidden !important; white-space:nowrap !important;
  }
  header .area-riservata-stick::before{ content:"👤"; display:inline-block; font-size:20px; line-height:38px; width:38px; height:38px; text-align:center; color:#fff }
}


/* === Footer social === */
.site-footer{
  margin-top: 48px;
  padding: 24px 0 28px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.site-footer .social-wrap{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.site-footer .social-title{
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d6f3ff;
  opacity: .9;
  margin-bottom: 14px;
}
.site-footer .social-icons{
  display: inline-flex;
  gap: 14px;
  margin-bottom: 12px;
}
.site-footer .social{
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
}
.site-footer .social .ico{
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
/* Brand colors */
.social--facebook{ background: #1877F2; }
.social--instagram{
  background: radial-gradient(120% 120% at 30% 20%, #FEDA77, #F58529 35%, #DD2A7B 65%, #8134AF 85%, #515BD4 100%);
}
.social--linkedin{ background: #0A66C2; }
.social--tiktok{
  background: linear-gradient(135deg, #25F4EE 0%, #000 50%, #FE2C55 100%);
}
/* Hover glow */
.site-footer .social:hover{
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 12px rgba(0,191,255,.5), 0 0 24px rgba(0,191,255,.25);
  filter: saturate(1.08);
}
.site-footer .copyright{
  margin-top: 10px;
  font-size: 13px;
  color: #a6cfe0;
  opacity: .9;
}

/* Mobile */
@media (max-width: 860px){
  .site-footer{ margin-top: 36px; padding: 20px 0 24px; }
  .site-footer .social{ width: 38px; height: 38px; }
  .site-footer .social .ico{ font-size: 16px; }
}


/* === Footer istituzionale con icone social reali === */
.site-footer{
  margin-top: 48px;
  padding: 20px 0 26px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.site-footer .footer-row{
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}
.site-footer .footer-left{
  font-size: 13px; color: #bfeaff; opacity: .9;
}
.site-footer .footer-center{ text-align: center; }
.site-footer .footer-right{ text-align: right; }
.site-footer .privacy-link{ color: #e5f6ff; text-decoration: none; }
.site-footer .privacy-link:hover{ text-decoration: underline; }

/* Icone */
.site-footer .social-icons{ display: inline-flex; gap: 12px; align-items: center; }
.site-footer .social{
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
  color: #fff;
}
.site-footer .social .bi{ width: 20px; height: 20px; fill: currentColor; display:block; }

/* Colori brand */
.social--facebook{ background: #1877F2; }
.social--instagram{ background: radial-gradient(120% 120% at 30% 20%, #FEDA77, #F58529 35%, #DD2A7B 65%, #8134AF 85%, #515BD4 100%); }
.social--linkedin{ background: #0A66C2; }
.social--tiktok{ background: linear-gradient(135deg, #25F4EE 0%, #000 50%, #FE2C55 100%); }

/* Hover glow */
.site-footer .social:hover{
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 12px rgba(0,191,255,.5), 0 0 24px rgba(0,191,255,.25);
  filter: saturate(1.08);
}
.site-footer .social-caption{
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d6f3ff; opacity: .9;
}

/* Mobile layout */
@media (max-width: 860px){
  .site-footer{ margin-top: 36px; padding: 18px 0 22px; }
  .site-footer .footer-row{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer .footer-left{ line-height: 1.3; }
  .site-footer .footer-right{ text-align: center; }
  .site-footer .social{ width: 38px; height: 38px; }
  .site-footer .social .bi{ width: 18px; height: 18px; }
}

