:root {
  --ink: #0c0c0c;
  --paper: #ffffff;
  --shade-200: #e5e5e5;
  --shade-300: #d4d4d4;
  --shade-400: #a3a3a3;
  --shade-700: #404040;
  --shade-800: #262626;
  --shade-900: #171717;
  --brand-2: #40e5ff;
  --font: 'Barlow', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout fluido. Su mobile restano i valori in px; da 768px in su si usano rem,
     cosi' su monitor grandi tutta l'interfaccia scala insieme al font radice. */
  --sidebar-w: 0px;
  --header-h: 60px;
  --pad-l: 24px;
  --pad-r: 24px;
  --content-max: 112rem;
  --gutter-l: var(--pad-l);
  --gutter-r: var(--pad-r);
}

/* Scala dell'interfaccia sui monitor oltre il Full HD (QHD, 4K, ultrawide).
   Sotto i 1921px non cambia nulla; il tetto evita che il testo diventi enorme. */
@media (min-width: 1921px) {
  html { font-size: clamp(100%, min(0.8334vw, 1.48vh), 175%); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
}
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(64,229,255,0.18); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
::selection { background: var(--brand-2); color: var(--ink); }
body.menu-open { overflow: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--shade-800); }
::-webkit-scrollbar-thumb:hover { background: var(--shade-700); }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: 80px; height: 100vh;
  border-right: 1px solid var(--shade-800);
  background: var(--shade-900);
  z-index: 50;
  display: none; flex-direction: column; align-items: center;
}
.sidebar-logo {
  position: relative; width: 100%; height: var(--header-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border-bottom: 1px solid var(--shade-800);
  background: var(--shade-900); text-decoration: none;
}
.sidebar-logo svg { width: 2rem; height: 2rem; filter: brightness(0) invert(1); transition: transform 0.5s var(--ease-out), filter 0.3s; }
.sidebar-logo span { display: block; text-align: center; font-size: 0.75rem; line-height: 1.25rem; text-transform: uppercase; }
.sidebar-logo .brand { font-weight: 700; letter-spacing: 0.16em; color: var(--paper); }
.sidebar-logo .sub { font-weight: 500; letter-spacing: 0.3em; color: var(--shade-400); margin-top: -6px; transition: color 0.3s; }
@media (hover: hover) {
  .sidebar-logo:hover svg { transform: scale(1.12) rotate(-6deg); }
  .sidebar-logo:hover .sub { color: var(--brand-2); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; width: 100%;
  background: rgba(12,12,12,0.48); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
@media (max-width: 767px) { .site-header { background: rgba(12,12,12,0.72); } }
/* Dopo il primo scroll la barra si fa piu' solida: il testo sotto non disturba la navigazione */
.site-header.is-scrolled { background: rgba(12,12,12,0.86); box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 14px 36px rgba(0,0,0,0.35); }
.header-inner { display: flex; align-items: center; height: var(--header-h); padding: 0 20px; gap: 20px; }
.header-nav { display: none; flex: 1; justify-content: center; gap: 2rem; }
.header-nav a {
  font-size: 1.25rem; font-weight: 600; text-transform: uppercase; line-height: 1.75rem;
  text-decoration: none; color: rgba(255,255,255,0.48); letter-spacing: 0.02em;
  transition: color 0.2s; position: relative;
}
.header-nav a:hover, .header-nav a.active { color: var(--paper); }
.header-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--paper);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.35s var(--ease-out);
}
.header-nav a:hover::after, .header-nav a:focus-visible::after, .header-nav a.active::after { transform: scaleX(1); }
.header-nav a:hover:not(.active)::after { background: var(--brand-2); }
/* Link che si aprono in una nuova scheda (Negozio): piccola freccia in alto a destra */
.header-nav a[target="_blank"] { padding-right: 1.1rem; }
.header-nav a[target="_blank"]::before {
  content: ''; position: absolute; right: 0; top: 0.45rem; width: 0.7rem; height: 0.7rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7; transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.header-nav a[target="_blank"]:hover::before { transform: translate(2px, -2px); opacity: 1; }
.header-social { display: none; align-items: center; gap: 2rem; }
.header-social a { color: var(--paper); transition: color 0.2s, transform 0.3s var(--ease-out); display: flex; }
.header-social a:hover { color: var(--brand-2); transform: translateY(-2px); }
.header-social svg { width: 1.75rem; height: 1.75rem; }
.menu-btn { margin-left: auto; margin-right: -4px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--paper); position: relative; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: all 0.3s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: all 0.3s; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { bottom: -7px; }

.mobile-menu {
  position: fixed; inset: 0; background: rgba(12,12,12,0.98); z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-menu a { font-size: 2rem; font-weight: 700; text-transform: uppercase; color: var(--paper); text-decoration: none; letter-spacing: 0.05em; padding: 10px 24px; }
.mobile-menu a[aria-current="page"] { color: var(--brand-2); }
.mobile-menu .close-btn { position: absolute; top: 6px; right: 12px; width: 48px; height: 48px; background: none; border: none; color: var(--paper); font-size: 2.25rem; line-height: 1; cursor: pointer; }
@media (max-height: 520px) { .mobile-menu { gap: 4px; } .mobile-menu a { font-size: 1.5rem; padding: 6px 24px; } }

/* Hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 420px; width: 100%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  margin-top: -60px;
}
/* Il fondale e' piu' grande del contenitore: lascia margine al parallasse col mouse senza mostrare bordi */
.hero-bg { position: absolute; inset: 0; z-index: 0; translate: var(--hx, 0px) var(--hy, 0px); will-change: translate; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease, transform 0.7s ease; }
/* Scurimento come overlay invece di filter: brightness(0.7) (stesso risultato, nero al 30%).
   Un filter su un'immagine animata costringe a rifare il filtro a ogni frame. */
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); pointer-events: none; }
.hero-bg img.switching { opacity: 0; transform: scale(1.04); }
.hero.is-offscreen .hero-bg img { animation-play-state: paused; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,12,0.6) 0%, rgba(12,12,12,0) 50%); z-index: 1; }
.play-btn {
  position: relative; z-index: 2; width: 112px; height: 104px;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.3s, background 0.3s, box-shadow 0.3s; text-decoration: none;
}
.play-btn { border: none; box-shadow: 0 12px 48px rgba(0,0,0,0.45); }
.play-btn:active { transform: scale(0.97); }
@media (hover: hover) { .play-btn:hover { transform: scale(1.05); background: var(--brand-2); box-shadow: 0 12px 60px rgba(64,229,255,0.45); } }
.play-btn svg { width: 44px; height: 44px; color: var(--ink); margin-left: 4px; position: relative; z-index: 2; }
.play-btn .play-ring { position: absolute; inset: -2px; border: 2px solid rgba(64,229,255,0.7); opacity: 0; pointer-events: none; }
@media (hover: hover) { .play-btn:hover .play-ring { animation: playPing 1.1s ease-out infinite; } }
@keyframes playPing { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

/* Webplayer modal */
.video-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 12px; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.video-modal.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,5,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.video-modal-box { position: relative; z-index: 2; width: 100%; max-width: min(960px, calc((100vh - 130px) * 16 / 9)); max-width: min(960px, calc((100svh - 130px) * 16 / 9)); background: #0c0c0c; border: 1px solid #2a2a2a; box-shadow: 0 30px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(64,229,255,0.15), 0 0 60px rgba(64,229,255,0.12); transform: translateY(24px) scale(0.97); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.video-modal.open .video-modal-box { transform: translateY(0) scale(1); }
.video-modal-box::before { content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-2), transparent); z-index: 3; }
.video-close-btn { display: flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); border: none; padding: 8px 16px; min-height: 44px; font-family: var(--font); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; transition: background 0.2s; margin-left: auto; }
.video-close-btn:hover { background: var(--brand-2); }
.video-close-btn svg { width: 14px; height: 14px; }
.video-modal-box { padding: 14px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; margin-top: 12px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.modal-open { overflow: hidden; }
.hero-bottom-left { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; transition: opacity 0.35s ease, transform 0.35s ease; }
.hero-bottom-left.switching { opacity: 0; transform: translateY(10px); }
.hero-title-box { background: var(--paper); padding: 8.5px 14px; display: inline-block; }
.hero-title-box h1 { font-size: clamp(22px, 7.6vw, 30px); font-weight: 800; text-transform: uppercase; line-height: 1.05; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.hero-desc-box { background: rgba(12,12,12,0.95); padding: 20px; }
.hero-desc-box p { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--paper); }
.hero-slider { position: absolute; bottom: 0; right: 0; z-index: 2; display: none; align-items: center; gap: 14px; height: 96px; background: var(--ink); padding: 0 24px; }
.hero-slider .num { font-size: 2rem; font-weight: 600; text-transform: uppercase; line-height: 2.25rem; color: var(--paper); font-variant-numeric: tabular-nums; }
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dots button { padding: 14px 0; background: none; border: none; cursor: pointer; }
.slider-dots span { display: block; width: 46px; height: 3.5px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; transition: background 0.3s; }
.slider-dots button:hover span { background: rgba(255,255,255,0.55); }
/* Barra di avanzamento: la fine dell'animazione fa scattare la slide successiva (vedi index.html) */
.slider-dots button.active span::after {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  transform-origin: left center; animation: slideProgress var(--slide-ms, 6s) linear forwards;
}
.hero.paused .slider-dots button.active span::after { animation-play-state: paused; }
@keyframes slideProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Sections */
section { position: relative; width: 100%; }
.container { width: 100%; padding: 0 24px; }

/* News */
.news-section { padding: 56px 0 48px; }
.section-header { margin-bottom: 15px; }
.section-header h2 { font-size: 20px; font-weight: 600; text-transform: uppercase; line-height: 22.5px; color: var(--paper); letter-spacing: 0.01em; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 15px; }
.filter-btn {
  padding: 12px 14px; min-height: 44px; font-family: var(--font); font-size: 14px; line-height: 20px;
  letter-spacing: 0.02em; border: none; cursor: pointer; transition: all 0.3s;
  background: transparent; color: rgba(255,255,255,0.9);
}
.filter-btn.active { background: var(--paper); color: var(--ink); }
@media (hover: hover) { .filter-btn:hover:not(.active) { color: var(--brand-2); } }
.news-nav { display: none; margin-left: auto; gap: 0.5rem; }
.news-nav-btn {
  width: 3rem; height: 3rem; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--shade-700);
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s, transform 0.25s;
}
.news-nav-btn svg { width: 1.25rem; height: 1.25rem; }
.news-nav-btn:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.news-nav-btn:active:not(:disabled) { transform: scale(0.93); }
.news-nav-btn:disabled { opacity: 0.28; cursor: default; }
.news-grid {
  display: flex; gap: 20px;
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--shade-800) transparent;
}
.news-grid::-webkit-scrollbar { height: 6px; }
.news-grid::-webkit-scrollbar-track { background: transparent; margin: 0 48px; }
.news-grid::-webkit-scrollbar-thumb { background: var(--shade-800); }
.news-grid::-webkit-scrollbar-thumb:hover { background: var(--shade-700); }
.news-grid { cursor: grab; }
.news-grid.dragging { cursor: grabbing; scroll-snap-type: none; }
.news-grid.dragging .news-card { cursor: grabbing; pointer-events: none; }
.news-card {
  position: relative; display: block; aspect-ratio: 526/720;
  flex: 0 0 80%; max-width: 340px;
  scroll-snap-align: start;
  overflow: hidden; background: var(--shade-700); text-decoration: none; color: var(--paper); cursor: pointer;
}
.news-card[hidden] { display: none; }
.news-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); -webkit-user-drag: none; user-select: none; }
@media (hover: hover) { .news-card:hover img { transform: scale(1.06); } }
.news-card .gradient-overlay { position: absolute; inset: 0; background: linear-gradient(134deg, rgba(12,12,12,0.64) 0%, rgba(12,12,12,0) 52%); z-index: 1; }
.news-card .blend-overlay { position: absolute; inset: 0; opacity: 0; mix-blend-mode: color; transition: opacity 0.3s; background: linear-gradient(to right, #fefefe, var(--brand-2)); z-index: 2; pointer-events: none; }
@media (hover: hover) { .news-card:hover .blend-overlay, .news-card:focus-visible .blend-overlay { opacity: 1; } }
.news-card-content { position: absolute; top: 20px; left: 13px; right: 13px; z-index: 3; }
.news-card-content .tag { font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1.2; color: var(--shade-300); margin-bottom: 4px; text-shadow: 0 4px 32px rgba(0,0,0,0.08); }
.news-card-content h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; line-height: 1.15; color: #fff; text-shadow: 0 4px 32px rgba(0,0,0,0.08); letter-spacing: -0.01em; text-wrap: balance; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.news-card-arrow { position: absolute; bottom: 0; left: 0; width: 109px; height: 44px; background: var(--paper); display: flex; align-items: center; justify-content: center; z-index: 3; transition: width 0.45s var(--ease-out), background 0.3s; }
/* Con il mouse l'intera card reagisce: la barra con la freccia si allunga */
@media (hover: hover) {
  .news-card:hover .news-card-arrow, .news-card:focus-visible .news-card-arrow { width: 100%; background: var(--brand-2); }
  .news-card:hover .news-card-arrow svg, .news-card:focus-visible .news-card-arrow svg { transform: translateX(4px); }
}
.news-card-arrow svg { width: 20px; height: 20px; color: var(--ink); transition: transform 0.35s var(--ease-out); }

/* Feature sections (image + caption like nopixel.net) */
.feature-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.feature-frame {
  position: relative;
  width: 100%;
  padding: 0 24px 40px;
}
.feature-media-wrap {
  position: relative;
  width: 100%;
}
.feature-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-caption {
  position: relative;
  margin: 14px 0 0;
  background: var(--ink);
  padding: 0;
}
.feature-caption h2 {
  font-size: clamp(22px, 6.4vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.07;
  color: var(--paper);
  letter-spacing: -0.01em;
}

/* Editorial layout */
.editorial-row { display: flex; flex-direction: column; gap: 24px; margin: 40px 0; }
.editorial-row.reverse { flex-direction: column; }
.editorial-media { position: relative; overflow: hidden; flex: 1; }
.editorial-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.editorial-text { flex: 1; border-top: 1px solid var(--shade-800); border-bottom: 1px solid var(--shade-800); padding: 24px 0; }
.editorial-text h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.15; letter-spacing: 0.01em; color: rgba(255,255,255,0.85); margin-bottom: 12px; }
.editorial-text h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; line-height: 1.3; letter-spacing: 0.02em; color: var(--brand-2); margin-top: 16px; margin-bottom: 6px; }
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 20px 0;
  border-radius: 4px;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-media {
  position: relative;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 16/9;
}
.video-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.editorial-text p { font-size: 15px; line-height: 1.6; letter-spacing: 0.01em; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.editorial-text p:last-child { margin-bottom: 0; }
.editorial-full { margin: 40px 0; }
.editorial-full img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.text-section { padding: 0 0 48px; }
.text-section h2 { font-size: 24px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; letter-spacing: 0.01em; }
.text-section h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.01em; color: rgba(255,255,255,0.85); }
.text-section p { font-size: 16px; line-height: 1.6; letter-spacing: 0.01em; color: rgba(255,255,255,0.7); margin-bottom: 16px; }

/* Light Footer */
.site-footer { width: 100%; font-family: var(--font); }
.footer-top {
  position: relative; background: #fbfbfc; overflow: hidden;
}
.footer-top .texture {
  position: absolute; inset: 0; opacity: 0.4;
  background: radial-gradient(circle at 20% 50%, rgba(64,229,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(64,229,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.footer-inner {
  position: relative; display: flex; flex-direction: column; justify-content: between;
  gap: 40px; padding: 40px 24px;
}
.footer-col-group { display: flex; flex-direction: column; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 5px; max-width: 200px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-row svg { width: 20px; height: 20px; color: var(--ink); }
.footer-brand .logo-row .brand { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase; }
.footer-brand .logo-row .sub { display: block; font-size: 8px; letter-spacing: 0.42em; color: var(--shade-800); text-transform: uppercase; margin-top: -2px; }
.footer-brand p { font-size: 12.5px; line-height: 17.5px; letter-spacing: 0.02em; color: var(--shade-800); }
.footer-links { display: flex; flex-direction: column; gap: 5px; min-width: 75px; }
.footer-links h4 { font-size: 20px; font-weight: 600; text-transform: uppercase; line-height: 22.5px; color: rgba(0,0,0,0.8); margin-bottom: 4px; }
.footer-links a { font-size: 12.5px; line-height: 17.5px; letter-spacing: 0.02em; color: var(--shade-800); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-socials { display: flex; align-items: center; gap: 12px; }
.footer-socials span { font-size: 12.5px; line-height: 17.5px; letter-spacing: 0.02em; color: var(--shade-900); }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); transition: opacity 0.2s, transform 0.3s var(--ease-out), color 0.2s; }
.footer-socials a:hover { opacity: 0.7; }
.footer-socials a svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--shade-300); background: var(--paper);
}
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px; font-size: 13px; line-height: 18px;
}
.footer-bottom-inner p { color: var(--shade-900); letter-spacing: 0.02em; }
.footer-bottom-inner a { display: inline-block; padding: 10px 0; color: var(--shade-900); text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em; transition: opacity 0.2s; }
.footer-bottom-inner a:hover { opacity: 0.7; }

/* Article page */
.article-page { padding-top: 0; }
.article-header {
  position: relative; min-height: 60vh; min-height: 60svh; display: flex; align-items: flex-end;
  overflow: hidden; padding-bottom: 40px;
}
.article-header-bg { position: absolute; inset: 0; z-index: 0; }
.article-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.article-header-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); pointer-events: none; }
.article-header-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,12,0.85) 0%, rgba(12,12,12,0.2) 60%); z-index: 1; }
.article-header .container { position: relative; z-index: 2; }
.article-tag { display: inline-block; background: var(--paper); color: var(--ink); padding: 6px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.article-header h1 { font-size: clamp(28px, 9vw, 36px); font-weight: 800; text-transform: uppercase; line-height: 1.04; color: var(--paper); margin-bottom: 12px; letter-spacing: -0.01em; }
.article-date { font-size: 14px; color: var(--shade-400); letter-spacing: 0.02em; }
.article-body { padding-block: 40px 64px; }
.article-body .text-section { padding: 0 0 32px; }
.article-body .editorial-row { margin: 32px 0; }
.article-body .editorial-full { margin: 32px 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink); padding: 10px 20px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  min-height: 44px; text-decoration: none; transition: background 0.3s; margin-bottom: 32px; border: none; cursor: pointer;
}
@media (hover: hover) { .back-link:hover { background: var(--brand-2); } }
.back-link:active { background: var(--brand-2); }
.back-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
@media (hover: hover) { .back-link:hover svg { transform: translateX(-4px); } }
/* Barra di lettura (creata da site.js sulle pagine articolo) */
.read-progress { position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: 3px; z-index: 70; pointer-events: none; }
.read-progress { background: linear-gradient(90deg, #1e90ff, var(--brand-2)); transform-origin: left center; transform: scaleX(0); will-change: transform; }

/* ============================================================
   DESKTOP  (>= 768px)
   Token fluidi: sidebar, header e margini laterali crescono con lo schermo;
   oltre --content-max il contenuto resta centrato (ultrawide).
   ============================================================ */
@media (min-width: 768px) {
  /* Niente scatto di layout quando una modale blocca lo scroll (la scrollbar non sparisce piu') */
  html { scrollbar-gutter: stable; }
  :root {
    --sidebar-w: 5rem;
    --header-h: 5rem;
    --pad-l: 2.5rem;
    --pad-r: 2.5rem;
    /* 100vw include la scrollbar (6px): errore trascurabile, serve solo a centrare il contenuto sugli schermi larghissimi */
    --gutter-l: calc(var(--pad-l) + max(0px, (100vw - var(--sidebar-w) - var(--content-max) - var(--pad-l) - var(--pad-r)) / 2));
    --gutter-r: calc(var(--pad-r) + max(0px, (100vw - var(--sidebar-w) - var(--content-max) - var(--pad-l) - var(--pad-r)) / 2));
    --content-w: calc(100vw - var(--sidebar-w) - var(--gutter-l) - var(--gutter-r));
  }

  .sidebar { display: flex; width: var(--sidebar-w); }
  .site-header { width: calc(100% - var(--sidebar-w)); margin-left: var(--sidebar-w); }
  /* Menu centrato davvero sulla pagina (prima era spinto a sinistra dai social) */
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 2rem; gap: 2rem; }
  .header-nav { display: flex; flex: none; grid-column: 2; }
  .header-social { display: flex; grid-column: 3; justify-self: end; }
  .menu-btn { display: none; }
  main { margin-left: var(--sidebar-w); }
  .site-footer { margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); }

  /* Hero: l'offset della sidebar lo da' gia' <main> */
  .hero { margin-top: calc(var(--header-h) * -1); min-height: 35rem; }
  .hero-bg { inset: -7% -2% -2.5%; }
  .play-btn { width: clamp(8.5rem, 11.1vw, 15rem); height: calc(clamp(8.5rem, 11.1vw, 15rem) * 0.939); }
  .play-btn svg { width: calc(clamp(8.5rem, 11.1vw, 15rem) * 0.47); height: calc(clamp(8.5rem, 11.1vw, 15rem) * 0.47); }
  .hero-bottom-left { right: auto; max-width: calc(100% - 1rem); }
  .hero-title-box { padding: 0.84rem 1.25rem; }
  .hero-title-box h1 { font-size: clamp(2rem, 6.4vw, 4rem); line-height: 1.06; }
  .hero-desc-box { padding: 1.5rem 1.75rem; max-width: min(42rem, calc(100vw - 21.25rem)); }
  .hero-desc-box p { font-size: clamp(1.125rem, 2.4vw, 1.5rem); line-height: 1.35; }
  .hero-slider { display: flex; height: 6rem; gap: 0.875rem; padding: 0 1.5rem; }
  .slider-dots { gap: 0.5rem; }
  .slider-dots span { width: 2.875rem; height: 4px; }
  .container {
    width: 100%; padding: 0 var(--gutter-r) 0 var(--gutter-l);
  }

  /* News */
  .news-section { padding: clamp(5rem, 14svh, 10rem) 0 clamp(6rem, 12svh, 11rem); }
  .section-header { margin-bottom: 1.5rem; }
  .section-header h2 { font-size: 2rem; line-height: 2.25rem; }
  .filter-bar { margin-bottom: 1.5rem; gap: 1rem 2rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 1.25rem; line-height: 1.75rem; }
  .news-nav { display: flex; }
  /* La fila di card esce fino al bordo destro dello schermo: si capisce che c'e' altro da scoprire */
  .news-grid {
    gap: 2rem; margin-right: calc(var(--gutter-r) * -1); padding-right: var(--gutter-r);
  }
  .news-grid::-webkit-scrollbar-track { margin: 0 var(--gutter-r) 0 0; }
  .news-card { aspect-ratio: auto; height: max(20rem, min(45rem, 50svh)); flex: 0 0 calc((var(--content-w) - 2rem) / 2.2); max-width: none; }
  .news-card-content { top: 2rem; left: 1.25rem; right: 1.25rem; }
  .news-card-content .tag { font-size: 0.8125rem; line-height: 1.2rem; margin-bottom: 0.6rem; }
  .news-card-content h3 { font-size: 1.25rem; line-height: 1.5rem; }
  .news-card-arrow { width: 6.8rem; height: 2.75rem; }

  /* Feature sections */
  .feature-frame { padding: 0 var(--gutter-r) 3.5rem var(--gutter-l); }
  .feature-media { aspect-ratio: 2200/1440; }
  .feature-caption { margin: 1.25rem 0 0; padding: 0; }
  .feature-caption h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }

  /* Editorial */
  .editorial-row { flex-direction: row; gap: 2rem; margin: 5rem 0; }
  .editorial-row.reverse { flex-direction: row-reverse; }
  .editorial-media { flex: 1 1 56%; min-width: 0; }
  .editorial-text { flex: 1 1 40%; min-width: 0; padding: 2rem 0; display: flex; flex-direction: column; justify-content: center; }
  .editorial-text h3 { font-size: 2rem; line-height: 2.25rem; margin-bottom: 1rem; }
  .editorial-text h4 { font-size: 1.25rem; line-height: 1.6rem; margin-top: 1.5rem; margin-bottom: 0.625rem; }
  .editorial-text p { font-size: 1.1rem; line-height: 1.6rem; }
  .editorial-full { margin: 5rem 0; }
  .text-section { padding: 0 0 5rem; max-width: 62rem; }
  .text-section h2 { font-size: 2rem; line-height: 2.25rem; }
  .text-section h3 { font-size: 1.75rem; margin-bottom: 1rem; }
  /* Corpo testo fluido e riga limitata (~65 caratteri): prima superava i 100 caratteri su schermi larghi */
  .text-section p { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.5rem); line-height: 1.65; }

  /* Footer */
  .footer-inner { flex-direction: row; justify-content: space-between; padding: 4rem var(--gutter-r) 4rem var(--gutter-l); }
  .footer-col-group { flex-direction: row; gap: 60px; }
  .footer-brand { max-width: 320px; gap: 8px; }
  .footer-brand .logo-row svg { width: 32px; height: 32px; }
  .footer-brand .logo-row .brand { font-size: 1.5rem; }
  .footer-brand .logo-row .sub { font-size: 0.8125rem; }
  .footer-brand p { font-size: 1.25rem; line-height: 1.75rem; }
  .footer-links { min-width: 120px; gap: 8px; }
  .footer-links h4 { font-size: 2rem; line-height: 2.25rem; margin-bottom: 8px; }
  .footer-links a { font-size: 1.25rem; line-height: 1.75rem; }
  .footer-socials span { font-size: 1.25rem; line-height: 1.75rem; }
  .footer-socials a { width: 3rem; height: 3rem; }
  .footer-socials a svg { width: 1.5rem; height: 1.5rem; }
  .footer-socials a:hover { color: #0a8fa6; opacity: 1; transform: translateY(-2px); }
  .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 0.75rem var(--gutter-r) 0.75rem var(--gutter-l); font-size: 1rem; line-height: 1.5rem; }

  /* Pagina articolo: l'header passa sotto la barra come nelle altre pagine */
  .article-header { margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); padding-bottom: 4rem; min-height: 70vh; min-height: 70svh; }
  .article-header h1 { font-size: 3.75rem; }
  .article-tag { font-size: 0.8125rem; padding: 0.4rem 0.85rem; }
  .article-date { font-size: 1rem; }
  .article-body { padding-block: 5rem 7.5rem; }
  .article-body .editorial-row { margin: 4rem 0; }
  .article-body .editorial-full { margin: 4rem 0; }
  .back-link { padding: 0.65rem 1.25rem; font-size: 0.9375rem; }
}

@media (min-width: 1024px) {
  :root { --pad-l: 3.125rem; --pad-r: 5.625rem; }
  .hero-slider { right: 11.25rem; padding: 0 4rem; }
  .hero-desc-box { max-width: min(42rem, calc(100vw - 37.5rem)); }
  .news-card { flex: 0 0 calc((var(--content-w) - 4rem) / 3.2); }
  .article-header h1 { font-size: clamp(3.75rem, 6.6vw, 6rem); line-height: 1.04; }
}

/* Side Navigation: indicatore di scorrimento nella sidebar (sempre cliccabile con il mouse) */
.side-nav {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.side-nav-track {
  position: relative;
  width: 3px;
  height: clamp(9rem, 32vh, 18rem);
  background: var(--shade-800);
  cursor: pointer;
}
/* Area di click piu' larga della linea visibile */
.side-nav-track::before { content: ''; position: absolute; inset: 0 -1.25rem; }
.side-nav-fill {
  position: absolute; inset: 0; background: linear-gradient(to bottom, #1e90ff, var(--brand-2));
  transform-origin: top center; transform: scaleY(0); pointer-events: none; will-change: transform;
}
.side-nav-thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--shade-900), 0 0 18px rgba(64,229,255,0.6);
  transition: transform 0.25s var(--ease-out);
  pointer-events: none;
  z-index: 2;
  will-change: translate;
}
.side-nav-track:hover .side-nav-thumb, .side-nav-track.dragging .side-nav-thumb { transform: translate(-50%, -50%) scale(1.35); }

@media (min-width: 1280px) {
  :root { --header-h: 6rem; --pad-l: 6.25rem; --pad-r: 11.25rem; }
  .news-card-content .tag { font-size: 1rem; line-height: 1.4rem; margin-bottom: 0.75rem; }
  .news-card-content h3 { font-size: 1.5rem; line-height: 1.75rem; }

  /* Didascalia sovrapposta all'immagine. Tutte le misure derivano dalla larghezza
     della cornice (cqw): la composizione resta identica a ogni dimensione. */
  .feature-section { container-type: inline-size; }
  .feature-frame {
    padding: 0 var(--gutter-r) 0 var(--gutter-l);
    aspect-ratio: 2480/1440;
    max-height: 100svh;
  }
  .feature-media-wrap {
    position: absolute;
    inset: 0;
    padding: 0 var(--gutter-r) 0 var(--gutter-l);
  }
  .feature-media {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .feature-media img {
    position: absolute;
    inset: 0;
  }
  .feature-caption {
    position: absolute;
    bottom: min(13cqw, 16rem);
    left: var(--gutter-l);
    width: clamp(26rem, 38.7cqw, 50rem);
    margin: 0;
    padding: clamp(1rem, 1.3cqw, 1.75rem);
  }
  .feature-frame.feature-right .feature-caption {
    left: auto;
    right: calc(var(--gutter-r) - 5rem);
  }
  .feature-caption h2 { font-size: clamp(2rem, 3.48cqw, 4.5rem); }
}

/* Compact Footer */
.footer-inner.compact {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 24px 20px;
  gap: 16px;
  background: #fbfbfc;
}
.footer-inner.compact .footer-socials { margin-left: -13px; }
.footer-brand-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand-row .logo-row svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.footer-brand-row .logo-row .brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
}
.footer-brand-row .logo-row .sub {
  font-size: 8px;
  letter-spacing: 0.42em;
  color: var(--shade-800);
  text-transform: uppercase;
  margin-top: -2px;
}
.footer-brand-row p {
  font-size: 12.5px;
  line-height: 17.5px;
  letter-spacing: 0.02em;
  color: var(--shade-800);
  margin: 0;
  max-width: 260px;
}
@media (min-width: 480px) {
  .footer-brand-row { flex-direction: row; align-items: center; gap: 16px; }
}
@media (min-width: 768px) {
  .footer-inner.compact {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem var(--gutter-r) 1.5rem var(--gutter-l);
  }
  .footer-inner.compact .footer-socials { margin-left: 0; }
  .footer-brand-row .logo-row svg { width: 1.75rem; height: 1.75rem; }
  .footer-brand-row .logo-row .brand { font-size: 1.1875rem; }
  .footer-brand-row .logo-row .sub { font-size: 0.625rem; }
  .footer-brand-row p { font-size: 0.9375rem; line-height: 1.35rem; max-width: 22rem; }
  .footer-inner.compact .footer-socials a { width: 3rem; height: 3rem; }
}

/* Reveal all'ingresso nel viewport */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Fitness — Attività Fisica */
.fitness-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0 40px;
}
.fitness-card {
  background: linear-gradient(180deg, #1b1b1b 0%, #111 100%);
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--brand-2);
  padding: 24px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fitness-card:nth-child(2) { border-top-color: #7CFC00; }
.fitness-card:nth-child(3) { border-top-color: #FFC93C; }
.fitness-card::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(64,229,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.fitness-icon {
  font-size: 32px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 14px;
}
.fitness-card h3 {
  font-size: 20px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px; color: #fff;
}
.fitness-card p {
  font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
}
.fitness-bar {
  height: 8px; background: rgba(255,255,255,0.12);
  overflow: hidden; margin-bottom: 8px;
}
.fitness-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #1e90ff, var(--brand-2));
  transition: width 1s ease;
}
.fitness-fill.alt { background: linear-gradient(90deg, #2e8b57, #7CFC00); }
.fitness-fill.gold { background: linear-gradient(90deg, #ff8c00, #FFC93C); }
.reveal.visible .fitness-fill { width: var(--w, 70%); }
.fitness-card .fitness-fill { width: 82%; }
.fitness-card:nth-child(2) .fitness-fill { width: 68%; }
.fitness-card:nth-child(3) .fitness-fill { width: 74%; }
.fitness-level {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand-2);
}
.fitness-card:nth-child(2) .fitness-level { color: #7CFC00; }
.fitness-card:nth-child(3) .fitness-level { color: #FFC93C; }
.fitness-alert {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, #1a0f0f 0%, #241111 100%);
  border: 1px solid #3a1d1d;
  border-left: 4px solid #ff4d4d;
  padding: 22px;
  margin: 32px 0;
  color: #fff;
}
.fitness-alert-icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
.fitness-alert h3 {
  font-size: 18px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; margin-bottom: 8px; color: #fff;
}
.fitness-alert p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.75); }
.fitness-alert strong { color: #ffb3b3; }
.text-section strong { color: inherit; }
@media (min-width: 768px) {
  .fitness-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0 3.5rem; }
  .fitness-card { padding: 1.75rem 1.5rem; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
  .fitness-card h3 { font-size: 1.375rem; }
  .fitness-card p { font-size: 0.9375rem; }
  .fitness-alert { padding: 1.75rem; margin: 3rem 0; }
  .fitness-alert h3 { font-size: 1.375rem; }
  .fitness-alert p { font-size: 1rem; }
}
@media (min-width: 768px) and (hover: hover) {
  .fitness-card:hover { transform: translateY(-6px); }
}
/* Modal (light) overrides — keep cards dark & punchy */
.article-modal-content .fitness-card,
.article-modal-content .fitness-alert { color: #fff; }
.article-modal-content .fitness-card p,
.article-modal-content .fitness-alert p { color: rgba(255,255,255,0.75); }
.article-modal-content .text-section p { color: #333; }
.article-modal-content .text-section strong { color: #111; }

/* Article Modal */
.article-modal {
  position: fixed; inset: 0; z-index: 100;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.article-modal.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.article-modal-backdrop {
  position: absolute; inset: 0; background: rgba(12,12,12,0.6); z-index: 1;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
/* Il pannello scorre con transform (compositor) invece che con "right": niente ricalcolo del layout a ogni frame */
.article-modal-panel {
  position: absolute;
  top: 0; right: 0;
  width: 100%; max-width: 56.25rem; height: 100%;
  background: #fbfbfc;
  display: flex; flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.25);
  z-index: 2;
  will-change: transform;
}
.article-modal.open .article-modal-panel {
  transform: translate3d(0, 0, 0);
}
.article-modal-toolbar {
  position: relative;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 12px; flex-shrink: 0;
  border-bottom: 1px solid #e5e5e5;
  background: #fbfbfc;
}
/* Avanzamento di lettura dentro la modale */
.article-modal-toolbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ink); transform-origin: left center; transform: scaleX(var(--mp, 0));
}
.article-modal-close-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); border: none;
  padding: 8px 16px; min-height: 44px; font-family: var(--font); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
  transition: background 0.2s;
  pointer-events: auto;
  -webkit-appearance: none; appearance: none;
}
.article-modal-close-btn:hover { background: #333; }
.article-modal-close-btn svg { width: 14px; height: 14px; pointer-events: none; transition: transform 0.35s var(--ease-out); }
.article-modal-close-btn:hover svg { transform: rotate(90deg); }
.article-modal-close-btn span { pointer-events: none; }
.article-modal:not(.open) .article-modal-panel { pointer-events: none; }
.article-modal-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; min-width: 0;
}
.meta-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--shade-800);
  background: var(--paper); border: 1px solid #d4d4d4;
  padding: 5px 10px;
}
.meta-date {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--shade-800);
}
.article-modal-scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.article-modal-content {
  padding: 0 20px calc(48px + env(safe-area-inset-bottom, 0px));
}
.article-modal-content .article-page { padding-top: 0; }
.article-modal-content .article-header {
  min-height: auto; padding: 28px 0 20px; margin-top: 0;
  position: static; display: block;
}
.article-modal-content .article-header-bg { display: none; }
.article-modal-content .article-header-overlay { display: none; }
.article-modal-content .article-header .container { position: static; padding: 0; }
.article-modal-content .article-tag {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 5px 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
}
.article-modal-content .article-header h1 {
  font-size: 28px; font-weight: 800; text-transform: uppercase;
  line-height: 1.1; color: var(--ink); margin-bottom: 8px;
}
.article-modal-content .article-date {
  font-size: 13px; color: var(--shade-700); letter-spacing: 0.02em;
}
.article-modal-content .article-body { padding: 0; }
.article-modal-content .article-body .container { padding: 0; }
.article-modal-content .text-section { padding: 0 0 28px; max-width: none; }
.article-modal-content .text-section h2 {
  font-size: 24px; color: var(--ink); margin-bottom: 14px;
}
.article-modal-content .text-section h3 {
  font-size: 20px; color: var(--ink); margin-bottom: 10px;
}
.article-modal-content .text-section p {
  font-size: 15px; line-height: 1.6; color: #333;
}
.article-modal-content .editorial-row {
  margin: 28px 0; gap: 20px;
}
.article-modal-content .editorial-text {
  border-color: #e5e5e5;
}
.article-modal-content .editorial-text h3 {
  color: var(--ink);
}
.article-modal-content .editorial-text p {
  color: #333;
}
.article-modal-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 0; gap: 16px;
}
.article-modal-loader p {
  font-size: 13px; font-weight: 600; color: var(--shade-800); text-transform: uppercase;
}
.loader-spinner {
  width: 28px; height: 28px;
  border: 3px solid #e5e5e5; border-top-color: var(--ink);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .video-modal { padding: 2.5rem; }
  .video-modal-box { padding: 1.25rem; max-width: min(60rem, calc((100vh - 9rem) * 16 / 9)); max-width: min(60rem, calc((100svh - 9rem) * 16 / 9)); }
  .article-modal-panel { width: min(88%, 56.25rem); }
  .article-modal-toolbar { padding: 1.25rem 2rem; }
  .article-modal-close-btn { padding: 10px 16px; font-size: 13px; gap: 10px; }
  .article-modal-close-btn svg { width: 16px; height: 16px; }
  .meta-tag, .meta-date { font-size: 12px; padding: 6px 12px; }
  .article-modal-content { padding: 0 2rem 6.25rem; }
  .article-modal-content .article-header { padding: 2.25rem 0 1.5rem; }
  .article-modal-content .article-header h1 { font-size: 2.5rem; }
  .article-modal-content .text-section p { font-size: 1.0625rem; line-height: 1.7; }
}
@media (min-width: 1024px) {
  .article-modal-panel { width: min(65%, 62.5rem); }
  .article-modal-toolbar { padding: 1.25rem 2.5rem; }
  .article-modal-content { padding: 0 2.5rem 7.5rem; }
  .article-modal-content .article-header h1 { font-size: clamp(2.75rem, 3.4vw, 3.5rem); }
  .article-modal-content .text-section h2 { font-size: 1.75rem; }
  .article-modal-content .editorial-text p { font-size: 1.0625rem; line-height: 1.7; }
}
@media (min-width: 1280px) {
  .article-modal-panel { width: min(62%, 68rem); }
}

/* More banner — chiusura articolo 5 */
.more-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 56px 0 0;
  padding: 44px 20px 36px;
  background: linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
  border: 1px solid #262626;
}
.more-banner::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
}
.more-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 240px;
  background: radial-gradient(ellipse at center, rgba(64,229,255,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.more-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--brand-2);
  border: 1px solid rgba(64,229,255,0.4);
  padding: 6px 14px; margin-bottom: 18px;
  background: rgba(64,229,255,0.06);
}
.more-banner h3 {
  font-size: clamp(26px, 8vw, 30px); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.05; color: #fff;
  margin-bottom: 14px;
}
.more-banner p {
  max-width: 560px; margin: 0 auto 24px;
  font-size: 15px; line-height: 1.6; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
}
.more-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.more-pills span {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  border: 1px solid #333; background: #171717;
  padding: 8px 16px;
}
.more-pills span.highlight {
  color: #0c0c0c; background: var(--brand-2); border-color: var(--brand-2);
}
@media (min-width: 768px) {
  .more-banner { padding: 4.5rem 3rem 3.75rem; margin: 5rem 0 0; }
  .more-banner h3 { font-size: 2.75rem; }
  .more-banner p { max-width: 38rem; font-size: 1.0625rem; }
  .more-glow { width: 26rem; height: 15rem; }
}
/* In modale chiara resta una card scura */
.article-modal-content .more-banner { border-color: #e5e5e5; }
/* Il banner chiude la pagina: un filo di spazio sotto */
.article-body:has(.more-banner:last-child) { padding-bottom: 24px; }
.article-modal-content:has(.more-banner:last-child) { padding-bottom: 24px; }

/* Schermi molto larghi: card news piu' strette, 4 per riga */
@media (min-width: 1536px) {
  .news-card { flex: 0 0 calc((var(--content-w) - 6rem) / 4.2); }
}

/* Telefoni in orizzontale (poca altezza): hero compatta, niente elementi giganti */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { height: 100vh; height: 100svh; min-height: 0; }
  .play-btn { width: 112px; height: 104px; }
  .play-btn svg { width: 44px; height: 44px; }
  .hero-title-box { padding: 8px 14px; }
  .hero-title-box h1 { font-size: 1.75rem; line-height: 1.1; }
  .hero-desc-box { padding: 12px 16px; }
  .hero-desc-box p { font-size: 0.9375rem; line-height: 1.35; }
  .hero-slider { height: 64px; padding: 0 20px; }
  .article-header { min-height: 100vh; min-height: 100svh; }
}

/* ============================================================
   MOVIMENTO  (solo dove il browser lo supporta e l'utente non lo disattiva)
   Parallasse e zoom lento girano interamente sul compositor.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes heroKen { from { scale: 1; } to { scale: 1.08; } }
  /* Zoom lento sulla slide corrente (solo desktop: su telefono costerebbe batteria per nulla) */
  @media (min-width: 768px) { .hero-bg img { animation: heroKen 20s ease-out both; } }

  /* Didascalie delle feature: entrano un attimo dopo l'immagine */
  .feature-section .feature-caption { opacity: 0; translate: 0 1.5rem; transition: opacity 0.9s var(--ease-out) 0.2s, translate 0.9s var(--ease-out) 0.2s; }
  .feature-section.reveal.visible .feature-caption { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .feature-media img { transition: scale 1.2s var(--ease-out); }
  @media (hover: hover) { .feature-media:hover img { scale: 1.05; } }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
    /* Parallasse dell'immagine mentre la sezione attraversa lo schermo: serve un po' di margine (zoom 1.14) */
    .feature-media img { scale: 1.14; animation: featureParallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @media (hover: hover) { .feature-media:hover img { scale: 1.2; } }
    @keyframes featureParallax { from { translate: 0 -5%; } to { translate: 0 5%; } }
    /* Il fondale dell'hero scorre piu' piano della pagina; l'header articolo fa lo stesso */
    .hero-bg img { animation: heroKen 20s ease-out both, heroParallax linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0px 100svh; }
    @keyframes heroParallax { to { translate: 0 6%; } }
    .article-header-bg img { animation: heroParallax linear both; animation-timeline: scroll(root); animation-range: 0px 90svh; scale: 1.15; }
  }
}

/* Chi riduce le animazioni a livello di sistema non le subisce */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .slider-dots button.active span::after { animation: none; transform: scaleX(1); }
}
