/* =========================================
   3BLAZE — style.css 
========================================= */

/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }


body {
   margin: 0;
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  letter-spacing: 0.01em;
  line-height: 1.4;

  /* Gradient nero → grigio molto scuro */
  background:
    radial-gradient(
      1200px 800px at 20% 0%,
      rgba(255,255,255,0.05),
      rgba(0,0,0,0.92) 55%
    ),
    linear-gradient(
      180deg,
      #242424 0%,
      #111111 100%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* Grid 1px fittissima */
  background-image:
    linear-gradient(
      to right,
      rgba(255,255,255,0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.096) 1px,
      transparent 1px
    );

  background-size: 24px 24px;
  opacity: 0.35;

  /* leggero blur per renderla più “soft” */
  filter: blur(0.2px);
}


/* =========================================
   TYPOGRAPHY — 3BLAZE
   (self-hosted fonts)
========================================= */
@font-face {
  font-family: "ST Nizhegorodsky";
  src: url("/fonts/ST-Nizhegorodsky.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("/fonts/GlacialIndifference-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("/fonts/GlacialIndifference-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* =========================================
   ROOT TOKENS
========================================= */
:root {
  /* Typography system */
  --font-display: "ST Nizhegorodsky", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Glacial Indifference", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale (mobile first) */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: clamp(28px, 7vw, 44px);
  --fs-xxl: clamp(42px, 10vw, 72px);

  /* B/W */
  --bg: #000000;
  --text: #faf8f8;
  --white: #ffffff;
  --black: #000000;

  /* iOS radius */
  --r-pill: 999px;
  --r-card: 24px;

  /* Liquid glass */
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.55);

  /* Blur strength */
  --blur: 18px;
  --blur-overlay: 26px;

  /* Shadow */
  --shadow: rgba(0, 0, 0, 0.12);

  /* Spacing */
  --pad: 12px;

  /* Animation */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t-base: 320ms var(--ease);
  --t-slow: 520ms var(--ease);

  /* Z */
  --z-pill: 1000;
  --z-overlay: 1100;
}

/* =========================================
   TEXT STYLES
========================================= */
h1, h2, h3, h4,
.title,
.display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}

h1 { font-size: var(--fs-xxl); line-height: 1.05; }
h2 { font-size: var(--fs-xl);  line-height: 1.10; }
h3 { font-size: 28px;         line-height: 1.15; }

p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* Utility per “testi grandi” non-titolo */
.text-lg {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* =========================================
   LIQUID GLASS — base helpers
========================================= */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.10),
    inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;
}

/* Effetto “liquid sheen” (riflesso che scorre) */
.liquid {
  position: relative;
}
.liquid::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255,255,255,0.28),
    rgba(255,255,255,0.00) 60%
  );
  transform: translate3d(-20%, -20%, 0);
  filter: blur(10px);
  opacity: 0.65;
  animation: liquidSheen 6.5s var(--ease) infinite;
}
.liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0.00),
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.00)
  );
  transform: translateX(-120%);
  opacity: 0.55;
  animation: liquidSweep 5.5s var(--ease) infinite;
}

@keyframes liquidSheen {
  0%, 100% { transform: translate3d(-18%, -18%, 0) scale(1); opacity: 0.55; }
  50%      { transform: translate3d(10%,  6%,  0) scale(1.06); opacity: 0.75; }
}

@keyframes liquidSweep {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* =========================================
   NAV PILL (chiusa) — fixed top-left
========================================= */
.nav-pill {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: var(--z-pill);

  width: 58px;
  height: 118px;

  display: grid;
  grid-template-rows: 1fr 1px 1fr;
  align-items: center;
  justify-items: center;

  padding: 10px;

  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);

  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

  box-shadow:
    0 10px 30px var(--shadow),
    inset 0 1px 0 var(--glass-highlight);

  overflow: hidden;

  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* Liquid glass look */
.nav-pill.liquid::before,
.nav-pill.liquid::after { border-radius: var(--r-pill); }

.nav-pill:hover { transform: translateY(-1px); }
.nav-pill:active { transform: translateY(0px) scale(0.99); }

.nav-pill__divider {
  width: 70%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.nav-pill__logo,
.nav-pill__burger {
  color: var(--white);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

/* Accessibilità tappabile */
.nav-pill__burger button,
.nav-pill__logo a {
  all: unset;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Hamburger icon styling */
.burger {
  width: 22px;
  height: 14px;
  display: grid;
  gap: 4px;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  opacity: 0.95;
  transform-origin: center;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* =========================================
   OVERLAY MENU (aperto)
   - blur pagina intera
   - link in colonna, bianchi
   - X in alto a sinistra
========================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);

  /* hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);

  /* Liquid glass fullscreen */
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(var(--blur-overlay));
  -webkit-backdrop-filter: blur(var(--blur-overlay));

  transition: opacity var(--t-slow), transform var(--t-slow);
}

/* Overlay “liquid” subtle sheen */
.menu-overlay.liquid::before { opacity: 0.35; }
.menu-overlay.liquid::after  { opacity: 0.25; }

/* Quando menu è aperto */
body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Nascondi la pillola quando menu aperto (come da tua richiesta) */
body.menu-open .nav-pill {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

/* Blocca scroll dietro */
body.menu-open { overflow: hidden; }

/* Topbar overlay (X) */
.menu-overlay__topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pulsante X (glass mini) */
.menu-close {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 24px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.45);

  cursor: pointer;
  display: grid;
  place-items: center;

  transition: transform var(--t-fast), background var(--t-fast), opacity var(--t-fast);
}

/* Animazione entrata della X */
body.menu-open .menu-close {
  animation: menuPopIn 420ms var(--ease) both;
}

.menu-close:hover { transform: translateY(-1px); }
.menu-close:active { transform: translateY(0px) scale(0.98); }

.menu-close svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  opacity: 0.95;
}

/* Contenuto overlay */
.menu-overlay__content {
  height: 100%;
  display: flex;
  align-items: center;        /* center verticale */
  justify-content: center;    /* center orizzontale */
  padding: 90px 22px 40px;    /* spazio per X */
}

/* Stack verticale */
.menu-list {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 18px;
  text-align: left;
}

/* Link: bianchi, puliti, “iOS editorial” */
.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 18px;
  border-radius: 18px;

  color: #fff;
  text-decoration: none;

  /* Menu = testo grande brand */
  font-family: var(--font-display);
  font-size: clamp(22px, 5.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;

  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);

  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);

  /* Stato iniziale per animazione (quando overlay apre) */
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
}

/* Hover/active */
.menu-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}
.menu-link:active {
  transform: translateY(0px) scale(0.99);
}

/* Piccola freccia opzionale */
.menu-link__chev {
  opacity: 0.7;
  font-size: 18px;
  line-height: 1;
  font-family: var(--font-body);
}

/* =========================================
   MENU ANIMATIONS (testi & generale)
========================================= */

/* Entrata overlay: testo (stagger) */
body.menu-open .menu-link {
  animation: menuItemIn 560ms var(--ease) both;
}

/* Stagger per ogni item */
body.menu-open .menu-link:nth-child(1) { animation-delay: 80ms; }
body.menu-open .menu-link:nth-child(2) { animation-delay: 140ms; }
body.menu-open .menu-link:nth-child(3) { animation-delay: 200ms; }
body.menu-open .menu-link:nth-child(4) { animation-delay: 260ms; }
body.menu-open .menu-link:nth-child(5) { animation-delay: 320ms; }
body.menu-open .menu-link:nth-child(6) { animation-delay: 380ms; }
body.menu-open .menu-link:nth-child(7) { animation-delay: 440ms; }

@keyframes menuItemIn {
  0%   { opacity: 0; transform: translateY(12px); filter: blur(2px); }
  60%  { opacity: 1; transform: translateY(0px);  filter: blur(0px); }
  100% { opacity: 1; transform: translateY(0px);  filter: blur(0px); }
}

@keyframes menuPopIn {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0px)  scale(1); }
}

/* Utility: animazione testo generica (per titoli/hero) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  animation: textReveal 700ms var(--ease) both;
}

.reveal.delay-1 { animation-delay: 120ms; }
.reveal.delay-2 { animation-delay: 240ms; }
.reveal.delay-3 { animation-delay: 360ms; }

@keyframes textReveal {
  0%   { opacity: 0; transform: translateY(12px); filter: blur(2px); }
  70%  { opacity: 1; transform: translateY(0);  filter: blur(0); }
  100% { opacity: 1; transform: translateY(0);  filter: blur(0); }
}

/* =========================================
   BUTTON + CARD (base)
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.card {
  background: #fff;
  border-radius: var(--r-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px;
}

/* =========================================
   Desktop refinement (leggero)
========================================= */
@media (min-width: 1024px) {
  .nav-pill { top: 18px; left: 18px; }
  .menu-overlay__content { padding-top: 110px; }
  .menu-list { gap: 16px; }
}

/* =========================================
   Reduced motion
========================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .liquid::before,
  .liquid::after {
    animation: none !important;
  }

  .menu-overlay,
  .nav-pill,
  .menu-link,
  .menu-close,
  .reveal {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}


/* =========================================
   HOME — HERO GRID 2x2 (full screen)
   Mobile: stack verticale
========================================= */

.hero-grid {
  position: relative;
  z-index: 1;

  min-height: 100vh;
  width: 100%;

  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(180px, 1fr);

  gap: 12px;
  padding: 14px;
}

/* Desktop / tablet: 2x2 */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    padding: 18px;
  }
}

/* Tile cliccabile */
.hero-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;

  border-radius: var(--r-card);
  overflow: hidden;

  text-decoration: none;
  color: #fff;

  /* Glass border leggero (iOS vibe) */
  border: 1px solid rgba(255, 255, 255, 0.10);

  /* Per hover smooth */
  transform: translateZ(0);
  transition: transform var(--t-base), border-color var(--t-base);
}

.hero-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-tile:active {
  transform: translateY(0px) scale(0.995);
}

/* Background immagine: layer dedicato così possiamo filtrare */
.hero-tile::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--bg);
  background-size: cover;
  background-position: center;

  /* B/N di default */
  filter: grayscale(1) contrast(1.05) brightness(0.85);
  transform: scale(1.02);

  transition: filter 700ms var(--ease), transform 700ms var(--ease);
}

/* Overlay per leggibilità testo */
.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.55) 25%,
      rgba(0,0,0,0.15) 55%,
      rgba(0,0,0,0.00) 75%
    );

  opacity: 1;
  transition: opacity var(--t-base);
}


/* Contenuto in basso a destra */
.hero-tile__content {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;

  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  padding: 16px;
}

/* Box testo: in basso a dx */
.hero-tile__text {
  max-width: min(42ch, 90%);
}


/* Titolo (display font) */
.hero-tile__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;

  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.05;

  transition: transform var(--t-base);
}

/* Descrizione: nascosta finché non hover */
.hero-tile__desc {
  margin: 10px 0 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);

  opacity: 0;
  transform: translateY(8px);
  filter: blur(2px);

  transition: opacity var(--t-base), transform var(--t-base), filter var(--t-base);
}

/* HOVER: immagine a colori + titolo sale + desc appare */
@media (hover: hover) and (pointer: fine) {
  .hero-tile:hover::before {
    filter: grayscale(0) contrast(1.02) brightness(1);
    transform: scale(1.06);
  }

  .hero-tile:hover::after {
    opacity: 0.85;
  }

  .hero-tile:hover .hero-tile__title {
    transform: translateY(-6px);
  }

  .hero-tile:hover .hero-tile__desc {
    opacity: 1;
    transform: translateY(0px);
    filter: blur(0px);
  }
}

/* Focus accessibilità (tastiera) */
.hero-tile:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-tile,
  .hero-tile::before,
  .hero-tile::after,
  .hero-tile__text,
  .hero-tile__title,
  .hero-tile__desc {
    transition: none !important;
  }
}


/* =========================================
   HOME — TOP CLIENTS (infinite backdrop loop)
========================================= */

.top-clients {
  position: relative;
  z-index: 1;
  padding: 28px 14px 10px;
}

@media (min-width: 768px) {
  .top-clients { padding: 44px 18px 14px; }
}

.top-clients__inner {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}

.top-clients__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 14px 0;
}

/* Marquee container (maschera / backdrop) */
.marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  padding: 14px 0;

  /* leggero “backdrop panel” sopra la griglia */
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Fade ai lati (look iOS) */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.95), rgba(0,0,0,0));
}

.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(0,0,0,0.95), rgba(0,0,0,0));
}

/* Track che scorre */
.marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  will-change: transform;

  animation: marquee-scroll var(--marquee-duration, 26s) linear infinite;
}

/* Pausa on hover (opzionale, feel premium) */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* Gruppi (originale + clone) */
.marquee__group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}

/* Card liquid glass */
.client-card {
  display: flex;
  align-items: center;       /* ALLINEAMENTO VERTICALE REALE */
  justify-content: center;

  width: 130px;
  height: 84px;

  border-radius: 18px;
  text-decoration: none;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);

  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);

  overflow: hidden;          /* clip sempre dentro il blocco */
  isolation: isolate;        /* evita blend strani su overlay/blur */
}

.client-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
}

.client-card:active {
  transform: translateY(0px) scale(0.99);
}

/* Logo: di default B/N, on hover a colori */
.client-logo {
  display: block;

  max-width: 72%;
  max-height: 72%;
  width: auto;
  height: auto;

  object-fit: contain;

  /* “da codice” B/N */
  filter: grayscale(1) saturate(0) contrast(1.05) brightness(1.15);
  opacity: 0.92;

  transition: filter var(--t-base), opacity var(--t-base), transform var(--t-base);
}

.client-card:hover .client-logo {
  filter: grayscale(0) saturate(1) contrast(1) brightness(1);
  opacity: 1;
  transform: scale(1.02);
}

/* Responsive tiles */
@media (min-width: 768px) {
  .client-card { width: 150px; height: 92px; }
  .client-logo { max-width: 74%; max-height: 74%; }
}

/* Keyframes: il track si sposta di metà (perché duplicato) */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
}

/* Assicurati che track e group siano FLEX */
.marquee__track,
.marquee__group {
  display: flex;
  align-items: center;
}


/* =========================================
   FOOTER — Minimal iOS / Editorial
========================================= */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding-bottom: 40px;
}

/* Linea separatore */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 36px;
}

/* Contenuto centrale */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 18px;
}

/* Logo */
.footer-logo img {
  height: 60px;
  width: auto;
  opacity: 0.9;
}

/* Copyright */
.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* Actions row */
.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* Mail button (pill glass) */
.footer-mail {
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;

  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.footer-mail:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}

/* Social links */
.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-socials a:hover {
  color: #fff;
}

/* Desktop refinement */
@media (min-width: 768px) {
  .footer-actions {
    flex-direction: row;
    gap: 18px;
  }
}

/* Social icons */
.social-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 999px;
  text-decoration: none;

  color: rgba(255,255,255,0.75);

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* Hover */
.social-icon:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}

/* Active */
.social-icon:active {
  transform: translateY(0) scale(0.96);
}



.service-hero {
  min-height: 60vh;
  padding: 140px 18px 10px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-intro {
  max-width: 72ch;
  font-size: clamp(16px, 3.8vw, 18px);
  color: rgba(255,255,255,0.78);
}


.service-text {
  max-width: 900px;
  margin: 0 auto;
}

.service-text p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* =========================================
   PACKAGES — Apple-like, vendibile
========================================= */

.packages {
  position: relative;
  z-index: 1;
  padding: 70px 14px 30px;
}

.packages-head {
  max-width: 980px;
  margin: 0 auto 26px;
  text-align: center;
}

.packages-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 54px);
  letter-spacing: -0.03em;
  margin: 0;
}

.packages-sub {
  margin: 14px auto 0;
  max-width: 70ch;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.55;
}

.packages-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1100px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Card */
.pkg {
  border-radius: 26px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 18px 50px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.35);

  transform: translateY(0);
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
  overflow: hidden;
  position: relative;
}

/* micro glow top-left */
.pkg::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,0.22), rgba(255,255,255,0) 55%);
  opacity: 0.55;
  filter: blur(10px);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .pkg:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
  }
}

/* Header */
.pkg-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pkg-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1.05;
}

.pkg-kicker {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  font-family: var(--font-body);
}

.pkg-badge {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.8);

  padding: 8px 10px;
  border-radius: 999px;

  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.14);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* List */
.pkg-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pkg-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.45;
}

/* tick */
.pkg-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 5px;
  background: rgba(255,255,255,0.9);
  opacity: 0.55;
}

/* Note (Media House) */
.pkg-note {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer / CTA row */
.pkg-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Price button (pill) */
.pkg-price-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;

  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;

  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);

  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.pkg-price-btn span {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.pkg-price-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}

/* CTA “Richiedi” */
.pkg-cta {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.92);

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);

  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.pkg-cta:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,0.30);
  border-color: rgba(255,255,255,0.22);
}

/* Featured */
.pkg-featured {
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.10);
}


/* Entrance animation (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .pkg {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
    animation: pkgIn 650ms var(--ease) both;
  }
  .pkg:nth-child(1){ animation-delay: 80ms; }
  .pkg:nth-child(2){ animation-delay: 140ms; }
  .pkg:nth-child(3){ animation-delay: 200ms; }
  .pkg:nth-child(4){ animation-delay: 260ms; }
  .pkg:nth-child(5){ animation-delay: 320ms; }
  .pkg:nth-child(6){ animation-delay: 380ms; }

  @keyframes pkgIn {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
}

.pkg {
  --accent: rgba(255,255,255,0.18); /* default neutro */
  border: 1px solid var(--accent);
}

.pkg-economy   { --accent: rgba(79, 209, 255, 0.55); }
.pkg-standard  { --accent: rgba(125, 255, 179, 0.55); }
.pkg-premium   { --accent: rgba(205, 143, 82, 0.55); }
.pkg-executive { --accent: rgba(207, 212, 217, 0.55); }
.pkg-mediahouse{ --accent: rgba(244, 197, 106, 0.65); }

.pkg {
  border: 1px solid var(--accent);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.22),
    0 0 0 1px var(--accent),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.pkg::before {
  background: radial-gradient(
    circle at 18% 12%,
    var(--accent),
    rgba(255,255,255,0) 60%
  );
  opacity: 0.35;
}

.pkg-badge {
  border: 1px solid var(--accent);
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .pkg:hover {
    box-shadow:
      0 26px 70px rgba(0,0,0,0.28),
      0 0 0 1px var(--accent),
      0 0 22px color-mix(in srgb, var(--accent) 40%, transparent),
      inset 0 1px 0 rgba(255,255,255,0.45);
  }
}
