/* ==========================================================================
   Frontly.Rome — foglio di stile
   Tema: "la punta dell'iceberg" — ghiaccio, azzurro, blu profondo.
   La pagina è tutto l'iceberg: si parte dalla superficie e si scende.
   ========================================================================== */

:root {
  /* Ghiaccio */
  --ice-white: #f2f9ff;
  --ice: #d7ecfa;
  --ice-2: #a9d6ef;
  --frost: rgba(190, 228, 250, 0.10);
  --frost-strong: rgba(190, 228, 250, 0.16);

  /* Azzurro / blu */
  --azzurro: #7cc9ee;
  --azure: #38bdf8;
  --blue: #2189e6;
  --blue-deep: #0e4b86;

  /* Profondità */
  --navy: #0a2c4d;
  --deep: #06203c;
  --abyss: #030f1f;

  /* Superfici e bordi */
  --surface: rgba(120, 190, 235, 0.07);
  --surface-strong: rgba(20, 60, 100, 0.85);
  --border: rgba(160, 215, 245, 0.16);
  --border-strong: rgba(160, 215, 245, 0.38);

  /* Testo (sott'acqua) */
  --text: #e9f5fd;
  --text-muted: #9dc0da;

  /* Testo (in superficie, sopra la nebbia chiara) */
  --text-sky: #0b3255;
  --text-sky-muted: #3d6b93;

  /* Promo / offerta a tempo */
  --promo: #ff5a6e;
  --promo-strong: #ff8090;
  --promo-soft: rgba(255, 90, 110, 0.12);
  --promo-border: rgba(255, 90, 110, 0.45);

  --grad: linear-gradient(120deg, #2189e6 0%, #7cc9ee 100%);
  --grad-ice: linear-gradient(180deg, #ffffff 0%, #a9d6ef 100%);

  /* Tipografia */
  --font-display: "Anton", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spaziatura */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  /* Varie */
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 76px;
  --container: 1180px;
  --shadow-glow: 0 0 60px rgba(56, 189, 248, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* clip, non hidden: hidden trasformerebbe body in contenitore di scorrimento
     e romperebbe le misure di ScrollTrigger */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

ul { list-style: none; }

::selection { background: rgba(56, 189, 248, 0.4); color: #04121f; }

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   OCEANO — strati di profondità fissi dietro a tutto
   ========================================================================== */
.ocean {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

/* ==========================================================================
   L'ICEBERG — sfondo unico dell'intera pagina
   Scala sulla larghezza: la punta sta nell'hero, il corpo scende con lo scroll.
   ========================================================================== */
.brand-berg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Dimensionato sull'altezza della finestra: la linea d'acqua cade sempre
     nella stessa posizione dell'hero, sopra al blocco di testo. */
  height: 240vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;   /* su finestre strette l'iceberg è più largo del viewport */
  /* la punta sommersa svanisce nell'acqua profonda della pagina */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, rgba(0, 0, 0, 0.45) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, rgba(0, 0, 0, 0.45) 90%, transparent 100%);
}

/* L'immagine copre tutta la larghezza della finestra. La tela è già allargata
   con le fasce laterali specchiate, così l'iceberg resta della misura giusta
   e la linea d'acqua cade a ~71vh: appena sopra al blocco di testo dell'hero. */
.brand-berg-img,
.brand-berg-fg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
}

.brand-berg-img { background-image: url("assets/img/iceberg-bg.webp"); }

/* Stessa foto ma col cielo trasparente: sta sopra alla scritta,
   così la parola passa dietro alla sagoma dell'iceberg. */
.brand-berg-fg { background-image: url("assets/img/iceberg-fg.webp"); }

/* Veli scuri: in cima per la barra di navigazione, sotto la linea d'acqua
   per tenere leggibile il testo delle sezioni sopra al ghiaccio chiaro. */
.brand-berg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 20, 40, 0.34) 0%, rgba(3, 20, 40, 0.1) 9%, transparent 18%),
    linear-gradient(180deg, transparent 30%, rgba(4, 20, 40, 0.28) 40%, rgba(4, 18, 36, 0.5) 58%, rgba(3, 16, 32, 0.6) 100%);
}

@media (max-width: 900px) {
  /* Su schermi stretti l'immagine riempie in altezza e viene tagliata ai lati:
     l'iceberg resta intero perché sta nella fascia centrale della foto. */
  .brand-berg { height: 150vh; }
  /* La posizione verticale della parola gigante sta più in basso,
     subito dopo la regola .hero-type: qui verrebbe sovrascritta. */
}

.ocean-layer { position: absolute; inset: 0; }

.ocean-surface {
  background: linear-gradient(180deg, #10517f 0%, #0b3a63 45%, #082c4d 100%);
}

.ocean-mid {
  background: linear-gradient(180deg, #0a3459 0%, #062440 55%, #04182e 100%);
  opacity: 0;
}

.ocean-abyss {
  background: linear-gradient(180deg, #05192f 0%, #030f1f 55%, #010810 100%);
  opacity: 0;
}

/* Riflessi della luce sulla superficie (caustiche) */
.caustics {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(146, 214, 250, 0.20), transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 5%, rgba(120, 200, 245, 0.16), transparent 70%);
  filter: blur(24px);
  mix-blend-mode: screen;
}

/* Fasci di luce che scendono dalla superficie */
.rays {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 90%;
  background:
    linear-gradient(178deg, rgba(190, 235, 255, 0.16) 0%, transparent 55%),
    repeating-linear-gradient(172deg,
      rgba(190, 235, 255, 0.055) 0px,
      rgba(190, 235, 255, 0.055) 3px,
      transparent 3px,
      transparent 90px);
  filter: blur(6px);
  mix-blend-mode: screen;
  transform-origin: 50% 0%;
}

/* Neve marina — particelle sospese */
.snow {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.snow span {
  position: absolute;
  border-radius: 50%;
  background: rgba(214, 240, 255, 0.75);
  will-change: transform;
}

/* ---------- Barra di avanzamento ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
}

/* ==========================================================================
   SCALA DI PROFONDITÀ (laterale)
   ========================================================================== */
.depth-rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  mix-blend-mode: normal;
}

.depth-readout {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ice-white);
  display: flex;
  align-items: baseline;
  gap: 2px;
  /* pillola scura: la scala resta leggibile sia sul cielo chiaro sia nell'abisso */
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 18, 36, 0.55);
  border: 1px solid rgba(160, 215, 245, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.depth-readout::before { content: "−"; }
.depth-unit { font-size: 11px; opacity: 0.7; }

.depth-line {
  position: relative;
  width: 2px;
  height: 220px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(233, 245, 253, 0.1), rgba(233, 245, 253, 0.6), rgba(233, 245, 253, 0.1));
  box-shadow: 0 0 8px rgba(3, 18, 36, 0.5);
}

.depth-tick {
  position: absolute;
  left: -4px;
  top: var(--p);
  width: 10px;
  height: 2px;
  background: rgba(233, 245, 253, 0.55);
}

.depth-cursor {
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
  transform: translateY(-50%);
}

.depth-label {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(3, 18, 36, 0.8);
}

@media (max-width: 1240px) { .depth-rail { display: none; } }

/* ---------- Superficie di ghiaccio (vetro freddo) ---------- */
.ice {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Spigolo di luce sul bordo alto, come una lastra di ghiaccio */
.ice::after {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 240, 255, 0.55), transparent);
  pointer-events: none;
}

/* ==========================================================================
   NAVIGAZIONE
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* vetro smerigliato sempre attivo */
  background: rgba(10, 40, 72, 0.28);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(190, 228, 250, 0.16);
  box-shadow: 0 6px 28px rgba(2, 12, 26, 0.22);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* riflesso sul bordo alto, come una lastra di vetro */
.nav::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.nav.menu-open { background: rgba(6, 32, 60, 0.92); }

.nav.scrolled {
  background: rgba(6, 28, 52, 0.62);
  border-bottom-color: rgba(190, 228, 250, 0.22);
  box-shadow: 0 10px 36px rgba(1, 10, 22, 0.45);
}

.nav-inner {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }

.brand-mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

.brand-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
}

.brand-dot { color: var(--azure); }
.brand-rome { color: var(--azure); font-weight: 600; }

.nav-links { display: flex; gap: var(--space-3); margin-left: auto; }

.nav-links a {
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 4px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav { margin-left: var(--space-2); }

/* Menu mobile */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, background 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) 24px var(--space-3);
  background: #06203c;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(1, 10, 22, 0.6);
}

.mobile-menu a { padding: 12px 4px; font-weight: 500; color: var(--text-muted); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: var(--space-1); text-align: center; color: #fff; }

.nav.menu-open .mobile-menu { display: flex; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.32);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn-primary:hover::before { animation: btn-sheen 0.75s var(--ease-out); }

@keyframes btn-sheen {
  from { left: -120%; }
  to   { left: 140%; }
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(120, 190, 235, 0.08);
}

.btn-ghost:hover {
  border-color: var(--azure);
  background: rgba(56, 189, 248, 0.14);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ==========================================================================
   HERO — LA PUNTA
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + var(--space-3)) 0 0;
  overflow: hidden;
}

/* Parola gigante */
/* Sta dentro .brand-berg, fra la foto piena e il ritaglio col cielo trasparente:
   è questo che la fa passare dietro alla punta. */
.hero-type {
  position: absolute;
  top: 26vh;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 0.82;
  pointer-events: none;
  will-change: transform;
}

.hero-word {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 14vw, 14.5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 50px rgba(6, 30, 56, 0.28);
}

/* Su schermi stretti l'iceberg è più alto: la parola sale, così resta leggibile */
@media (max-width: 900px) {
  .hero-type { top: 18vh; }
}

.hero-word-part { display: inline-block; }

/* ".ROME": stesso corpo, blu profondo, sta attaccato a FRONTLY */
.hero-word-rome {
  color: var(--blue-deep);
  text-shadow: 0 8px 34px rgba(6, 30, 56, 0.35);
}

.hero-type .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Blocco copy in basso, sull'acqua scura */
.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-bottom: clamp(var(--space-4), 7vh, var(--space-5));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Alone scuro locale: il testo resta leggibile anche sopra il ghiaccio chiaro */
.hero-copy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -32px;
  transform: translateX(-50%);
  width: min(780px, 108%);
  height: calc(100% + 48px);
  background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(4, 22, 42, 0.72), rgba(4, 22, 42, 0.28) 62%, transparent 78%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

/* Badge offerta in hero */
.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
  padding: 8px 16px;
  border: 1px solid var(--promo-border);
  border-radius: 999px;
  background: rgba(120, 20, 35, 0.55);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  color: var(--ice-white);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero-promo[hidden] { display: none; }

.hero-promo:hover,
.hero-promo:focus-visible {
  border-color: var(--promo);
  background: rgba(150, 25, 45, 0.65);
  transform: translateY(-2px);
}

.hero-promo-text { color: var(--promo-strong); font-weight: 700; }
.hero-promo-time { color: var(--ice); font-weight: 500; }
.hero-promo-time strong { color: var(--ice-white); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 12px rgba(3, 18, 34, 0.75);
}

.hero-claim {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ice-white);
  max-width: 30ch;
  text-wrap: balance;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 24px rgba(3, 18, 34, 0.6);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sull'acqua scura dell'hero serve un gradiente più chiaro */
.hero-claim .grad-text { background-image: linear-gradient(120deg, #9fdcff 0%, #ffffff 100%); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
}

.hero-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ice);
  transition: color 0.2s ease, gap 0.25s var(--ease-out);
}

.hero-textlink:hover { color: #fff; gap: 12px; }
.hero-textlink svg { width: 18px; height: 18px; animation: bob 2.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================================================
   SEZIONI
   ========================================================================== */
.section { padding: var(--space-6) 0; position: relative; }

.section-head { text-align: center; max-width: 660px; margin: 0 auto var(--space-5); }
.section-head-left { text-align: left; margin: 0 0 var(--space-4); }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azzurro);
  margin-bottom: var(--space-2);
}

.section-head-left .eyebrow { justify-content: flex-start; }

.depth-badge {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ice);
  background: rgba(120, 190, 235, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: var(--space-2); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Servizi (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.bento-wide { grid-column: span 2; }

.card {
  padding: var(--space-4);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: rgba(120, 190, 235, 0.11);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-strong);
  margin-bottom: var(--space-3);
  transition: transform 0.35s var(--ease-out), background 0.35s ease, box-shadow 0.35s ease;
}

.card:hover .card-icon {
  transform: translateY(-4px) scale(1.06);
  background: rgba(56, 189, 248, 0.22);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.28);
}

.card-icon svg { width: 24px; height: 24px; color: var(--azure); transition: transform 0.35s var(--ease-out); }
.card:hover .card-icon svg { transform: scale(1.08); }

.card h3 { font-size: 1.25rem; margin-bottom: var(--space-1); }
.card p { color: var(--text-muted); }

/* ---------- Sezione iceberg ---------- */
.berg-stat {
  margin-top: var(--space-3);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ice);
}

.berg-stat span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--azure);
}

.berg-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.berg-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.berg-list li:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
  background: rgba(120, 190, 235, 0.11);
}

.berg-depth {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--azure);
  min-width: 52px;
  padding-top: 2px;
}

.berg-list strong { display: block; font-size: 16px; margin-bottom: 2px; }
.berg-list span:not(.berg-depth) { font-size: 14px; color: var(--text-muted); }

/* ---------- Garanzia ---------- */
.section-guarantee { padding-block: var(--space-5); }

.guarantee {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
}

.guarantee::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(56, 189, 248, 0.16), transparent 60%);
  pointer-events: none;
}

.guarantee-icon {
  flex-shrink: 0;
  width: 120px; height: 120px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.guarantee-icon svg { width: 60px; height: 60px; color: var(--azure); }

.guarantee-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: var(--space-2); }
.guarantee-copy p { color: var(--text-muted); max-width: 44em; }

/* ---------- Prezzi ---------- */
.pricing {
  max-width: 560px;
  margin-inline: auto;
  padding: var(--space-5);
  text-align: center;
}

.pricing-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 180px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.28), transparent 70%);
  pointer-events: none;
}

.pricing-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azzurro);
  margin-bottom: var(--space-3);
}

/* Promo + countdown */
.promo {
  margin: 0 auto var(--space-3);
  padding: var(--space-2) var(--space-3);
  max-width: 420px;
  border: 1px solid var(--promo-border);
  border-radius: var(--radius-sm);
  background: var(--promo-soft);
}

.promo-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--promo-strong);
  margin-bottom: 12px;
}

.promo-dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--promo);
  box-shadow: 0 0 0 0 rgba(255, 90, 110, 0.6);
  animation: promo-pulse 2s ease-out infinite;
}

@keyframes promo-pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 90, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 110, 0); }
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 90, 110, 0.14);
  border: 1px solid var(--promo-border);
}

.cd-unit strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ice-white);
  font-variant-numeric: tabular-nums;
}

.cd-unit span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cd-sep {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--promo);
  transform: translateY(-6px);
}

.price-old {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration-color: var(--promo);
  text-decoration-thickness: 2px;
  margin-bottom: 2px;
}

.pricing:not(.promo-on) [data-promo-only] { display: none; }

.pricing-rows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pricing-row { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.price strong {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price em { font-style: normal; font-size: 13px; color: var(--text-muted); display: block; }
.price-desc { font-size: 14px; font-weight: 500; color: var(--text); }

.pricing-plus { font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; color: var(--text-muted); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-4);
  text-align: left;
  max-width: 360px;
  margin-inline: auto;
}

.pricing-features li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
  font-size: 15px;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2338bdf8" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 11px no-repeat,
    rgba(56, 189, 248, 0.14);
  border: 1px solid var(--border-strong);
}

.feature-strong { color: var(--text); font-weight: 600; }

/* ---------- Chi siamo ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.about-text { color: var(--text-muted); font-size: 1.05rem; }

.about-chips { display: flex; flex-direction: column; gap: var(--space-2); }

.chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.chip:hover { transform: translateX(6px); border-color: var(--border-strong); }
.chip svg { width: 26px; height: 26px; color: var(--azure); flex-shrink: 0; }
.chip strong { display: block; font-size: 15px; }
.chip span { font-size: 13px; color: var(--text-muted); }

/* ---------- Contatti — il fondo ---------- */
.section-contact {
  padding-bottom: var(--space-7);
  overflow: hidden;
  isolation: isolate;
}

.deep-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: -1;
  pointer-events: none;
}

.deep-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% center;
  opacity: 0.55;
  filter: saturate(0.9);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 30% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 70% at 30% 50%, #000 25%, transparent 78%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--azure);
  min-height: 44px;
  transition: color 0.2s ease;
}

.contact-email:hover { color: var(--ice-white); }
.contact-email svg { width: 20px; height: 20px; }

.contact-form { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field label span { color: var(--azure); }

.form-field input,
.form-field textarea {
  background: rgba(3, 16, 32, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(157, 192, 218, 0.55); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-field.invalid input,
.form-field.invalid textarea { border-color: #f87171; }

.form-error { font-size: 13px; color: #fca5a5; }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ---------- Footer — il fondale ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(2, 12, 24, 0.55), rgba(1, 6, 14, 0.9));
  padding: var(--space-4) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: var(--space-3); }

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  box-shadow: 0 16px 48px rgba(1, 8, 18, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* ---------- Stati animazione (solo con JS attivo) ---------- */
.js-anim [data-hero],
.js-anim [data-reveal],
.js-anim [data-reveal-group] > * { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .about-grid, .contact-grid, .berg-list { grid-template-columns: 1fr; gap: var(--space-4); }
  .guarantee { flex-direction: column; text-align: center; gap: var(--space-3); padding: var(--space-4); }
  .guarantee-copy p { margin-inline: auto; }
  .section-head-left .eyebrow { justify-content: center; }
  .guarantee .eyebrow { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: var(--space-5) 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .pricing { padding: var(--space-4) var(--space-3); }
  .pricing-rows { flex-direction: column; gap: var(--space-2); }
  .promo { padding: var(--space-2); }
  .hero-promo { flex-direction: column; gap: 2px; padding: 8px 14px; font-size: 12px; border-radius: var(--radius-sm); }
  .hero-promo .promo-dot { display: none; }
  .countdown { gap: 4px; }
  .cd-unit { min-width: 44px; padding: 6px 2px; }
  .cd-unit strong { font-size: 1.25rem; }
  .cd-sep { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
  .hero-berg-img { object-position: center 60%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section-head-left { text-align: center; }
  .berg-list li { flex-direction: column; gap: var(--space-1); }
}

/* ---------- Riduzione movimento ---------- */
@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;
  }

  .js-anim [data-hero],
  .js-anim [data-reveal],
  .js-anim [data-reveal-group] > * { opacity: 1; }
}
