/* IT Detona Game — Homepage premium (tema chiaro) */
:root {
  --primary: #f80095;
  --primary-soft: rgba(248, 0, 149, 0.12);
  --primary-glow: rgba(248, 0, 149, 0.35);
  --bg-page: #ffffff;
  --bg-muted: #f7f5f9;
  --bg-soft: #faf8fc;
  --bg-card: #ffffff;
  --bg-deep: #ffffff;
  --bg-elevated: #f3f0f7;
  --border-subtle: rgba(26, 26, 34, 0.08);
  --border-strong: rgba(26, 26, 34, 0.12);
  --text: #14141c;
  --text-muted: #5a5a6e;
  --text-dim: #7a7a8c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 60px rgba(20, 20, 40, 0.08);
  --shadow-card: 0 4px 24px rgba(20, 20, 40, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: #fffafd;
  background-image:
    radial-gradient(ellipse 140% 90% at 0% -15%, rgba(248, 0, 149, 0.11), transparent 52%),
    radial-gradient(ellipse 100% 70% at 100% 0%, rgba(248, 0, 149, 0.08), transparent 48%),
    radial-gradient(ellipse 80% 55% at 50% 110%, rgba(248, 0, 149, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 45%, rgba(255, 105, 180, 0.05), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100%, 100% - 1.5rem);
  }
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  border-bottom: 1px solid rgba(26, 26, 34, 0.06);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 32px rgba(20, 20, 40, 0.06);
}

.header-inner {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.logo--footer .logo-img {
  height: 44px;
  max-width: min(220px, 70vw);
}

@media (max-width: 480px) {
  .logo-img {
    height: 34px;
  }

  .logo--footer .logo-img {
    height: 38px;
  }
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ff4db8);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 0 28px var(--primary-glow);
}

.logo-text {
  font-size: 1.15rem;
  color: var(--text);
}

.logo-accent {
  color: var(--primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(248, 0, 149, 0.06);
}

.nav-cta {
  color: var(--primary);
  background: rgba(248, 0, 149, 0.1);
  border: 1px solid rgba(248, 0, 149, 0.35);
}

.nav-cta:hover {
  background: rgba(248, 0, 149, 0.16);
  border-color: var(--primary);
  color: #c4007a;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(20, 20, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile-link {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.nav-mobile-link:hover {
  color: var(--text);
  background: rgba(248, 0, 149, 0.06);
}

.nav-mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #d4007f);
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100vh, 960px);
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #faf8ff 42%, #f5f2fc 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(248, 0, 149, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 0, 149, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 30% 35%, black 15%, transparent 72%);
  animation: grid-drift 32s linear infinite;
}

@keyframes grid-drift {
  to {
    transform: translate(56px, 56px);
  }
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(248, 0, 149, 0.14);
}

.hero-orbit--1 {
  width: min(90vw, 480px);
  height: min(90vw, 480px);
  top: 6%;
  right: -6%;
  animation: orbit-pulse 14s ease-in-out infinite;
}

.hero-orbit--2 {
  width: min(65vw, 340px);
  height: min(65vw, 340px);
  bottom: 18%;
  left: -6%;
  border-color: rgba(124, 58, 237, 0.1);
  animation: orbit-pulse 16s ease-in-out infinite reverse;
}

@keyframes orbit-pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.04) rotate(3deg);
    opacity: 0.85;
  }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.hero-glow--1 {
  width: 380px;
  height: 380px;
  top: -100px;
  right: 5%;
  background: var(--primary);
  animation: glow-move 20s ease-in-out infinite;
}

.hero-glow--2 {
  width: 280px;
  height: 280px;
  bottom: 5%;
  left: 15%;
  background: #8b5cf6;
  opacity: 0.18;
  animation: glow-move 24s ease-in-out infinite reverse;
}

@keyframes glow-move {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-24px, 28px);
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "main visual"
    "metrics metrics";
  gap: 2.5rem 2rem;
  align-items: center;
}

.hero-main {
  grid-area: main;
}

.hero-visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.hero-visual-frame {
  width: min(100%, 400px);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 240, 255, 0.6));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(248, 0, 149, 0.06);
  padding: clamp(1rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  height: auto;
  max-height: 360px;
  overflow: visible;
}

.hero-svg-ring--outer {
  transform-origin: 210px 210px;
  animation: hero-ring-spin 72s linear infinite;
}

@keyframes hero-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-svg-link {
  stroke-dasharray: 6 10;
  animation: hero-dash-flow 2.8s linear infinite;
}

@keyframes hero-dash-flow {
  to {
    stroke-dashoffset: -64;
  }
}

.hero-svg-pulse circle {
  transform-origin: 210px 210px;
  animation: hero-core-pulse 3.2s ease-in-out infinite;
}

@keyframes hero-core-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.38;
    transform: scale(1.12);
  }
}

.hero-svg-core {
  transform-origin: 210px 210px;
  animation: hero-core-tick 4s ease-in-out infinite;
}

@keyframes hero-core-tick {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.hero-svg-heart {
  animation: hero-heart-glow 2.5s ease-in-out infinite;
  transform-origin: 210px 220px;
}

@keyframes hero-heart-glow {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 1;
  }
}

.hero-metrics-row {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "visual"
      "metrics";
    gap: 2rem;
  }

  .hero-visual {
    min-height: 240px;
    order: 0;
  }

  .hero-main {
    text-align: center;
  }

  .hero-title {
    max-width: none;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-metrics-row {
    grid-template-columns: 1fr;
  }
}

.hero-metric-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.hero-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 0, 149, 0.22);
  box-shadow: 0 12px 40px rgba(248, 0, 149, 0.1), var(--shadow-card);
}

.hero-metric-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248, 0, 149, 0.12), rgba(139, 92, 246, 0.08));
  color: var(--primary);
}

.hero-metric-icon--sym {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
}

.hero-metric-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hero-metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.hero-metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 14rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
  max-width: 15ch;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(115deg, var(--primary) 0%, #c4007a 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #d4007f);
  color: #fff;
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 48px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 12px rgba(20, 20, 40, 0.04);
}

.btn-secondary:hover {
  border-color: rgba(248, 0, 149, 0.45);
  background: rgba(248, 0, 149, 0.06);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-glow:hover {
  box-shadow: 0 0 0 4px var(--primary-soft), 0 16px 56px var(--primary-glow);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(248, 0, 149, 0.06);
  border-color: rgba(248, 0, 149, 0.35);
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(26, 26, 34, 0.12);
  border-radius: 13px;
}

.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.4;
    transform: translateY(12px);
  }
}

@media (max-width: 640px) {
  .hero-scroll {
    display: none;
  }
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-grid,
  .hero-orbit,
  .hero-glow,
  .hero-scroll span,
  .hero-svg-ring--outer,
  .hero-svg-link,
  .hero-svg-pulse circle,
  .hero-svg-core,
  .hero-svg-heart {
    animation: none;
  }

  .blog-card,
  .cat-card,
  .purpose-card,
  .hero-metric-card {
    transition: none;
  }

  .blog-card:hover,
  .hero-metric-card:hover {
    transform: none;
  }
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section--tight {
  padding-top: 4rem;
}

.section--compact {
  padding: 3.5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-text {
  color: var(--text-muted);
  margin: 0;
  max-width: 54ch;
}

.section-text--narrow {
  max-width: 42ch;
}

.section-text--center {
  margin-inline: auto;
  text-align: center;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* —— Purpose —— */
.purpose {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-muted) 45%, var(--bg-page) 100%);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .purpose-grid {
    grid-template-columns: 1fr;
  }
}

.purpose-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.purpose-card {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.purpose-card:hover {
  border-color: rgba(248, 0, 149, 0.28);
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(248, 0, 149, 0.08);
}

.purpose-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.purpose-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.purpose-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* —— Blog grid —— */
.blog {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-out), border-color 0.35s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(248, 0, 149, 0.35);
  box-shadow: 0 24px 56px rgba(20, 20, 40, 0.1), 0 0 0 1px rgba(248, 0, 149, 0.1);
}

.blog-card-link {
  display: block;
  color: inherit;
}

.blog-card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ece8f4, #ddd8e8);
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: linear-gradient(135deg, rgba(248, 0, 149, 0.15), #f0ecf8 50%, #e8e4f2);
}

.blog-card-placeholder-letter {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  color: rgba(248, 0, 149, 0.2);
  user-select: none;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.blog-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.25s ease;
}

.blog-card:hover .blog-card-read {
  gap: 0.55rem;
}

/* Skeleton */
.blog-skeleton {
  display: contents;
}

.skeleton-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0;
  overflow: hidden;
  background: var(--bg-card);
}

.sk-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, #e8e4ef 25%, #f5f2fa 50%, #e8e4ef 75%);
  background-size: 200% 100%;
  animation: sk-shine 1.2s ease infinite;
}

.sk-line {
  height: 12px;
  margin: 0.75rem 1.25rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e4ef 25%, #f5f2fa 50%, #e8e4ef 75%);
  background-size: 200% 100%;
  animation: sk-shine 1.2s ease infinite;
}

.sk-line--lg {
  height: 18px;
  width: 70%;
}

.sk-line--sm {
  width: 40%;
  margin-bottom: 1.25rem;
}

@keyframes sk-shine {
  to {
    background-position: 200% 0;
  }
}

.blog-error {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.blog-error a {
  color: var(--primary);
  text-decoration: underline;
}

/* —— Categories —— */
.categories {
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(248, 0, 149, 0.07), var(--bg-soft));
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  position: relative;
  padding: 2rem 2rem 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.35s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 0, 149, 0.4);
}

.cat-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.cat-card--1 .cat-card-glow {
  background: radial-gradient(circle at 80% 20%, rgba(248, 0, 149, 0.2), transparent 55%);
}

.cat-card--2 .cat-card-glow {
  background: radial-gradient(circle at 20% 80%, rgba(100, 200, 255, 0.12), transparent 55%);
}

.cat-card--3 .cat-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(200, 150, 255, 0.15), transparent 50%);
}

.cat-card--4 .cat-card-glow {
  background: radial-gradient(circle at 100% 100%, rgba(255, 200, 120, 0.12), transparent 50%);
}

.cat-card:hover .cat-card-glow {
  opacity: 1;
}

.cat-icon {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  position: relative;
  z-index: 1;
}

.cat-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
  position: relative;
  z-index: 1;
  max-width: 32ch;
}

.cat-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 0.5rem 0;
  transition: gap 0.25s ease, color 0.2s;
}

.cat-link:hover {
  gap: 0.65rem;
  color: #ff4db8;
}

/* —— Benefits —— */
.benefits {
  background: var(--bg-page);
}

.benefits-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .benefits-inner {
    grid-template-columns: 1fr;
  }
}

.benefits-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--primary);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.benefits-list strong {
  color: var(--text);
}

.benefits-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(248, 0, 149, 0.18), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(248, 0, 149, 0.22);
  padding: 2px;
}

.benefits-panel-inner {
  height: 100%;
  padding: 2.5rem;
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  border: 1px solid var(--border-subtle);
}

.benefits-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  color: var(--text);
}

/* —— CTA banner —— */
.cta-banner {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, rgba(248, 0, 149, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
}

.cta-banner-text {
  margin: 0;
  color: var(--text-muted);
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  padding: 4.5rem 0 0;
  background: linear-gradient(180deg, #fff0f7 0%, #ffe8f3 14%, #fff5fa 32%, #faf5fc 55%, #ffffff 100%);
  overflow: hidden;
  border-top: 1px solid rgba(248, 0, 149, 0.12);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 20%, rgba(248, 0, 149, 0.09), transparent 42%),
    radial-gradient(circle at 92% 60%, rgba(248, 0, 149, 0.07), transparent 38%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(248, 0, 149, 0.06), transparent 50%);
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(248, 0, 149, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

.footer-brand .logo--footer {
  margin-bottom: 1.1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 34ch;
  margin: 0 0 1.5rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-social-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(248, 0, 149, 0.1), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(248, 0, 149, 0.15);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.footer-social-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(248, 0, 149, 0.15);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-heading-icon {
  display: inline-flex;
  color: var(--primary);
  opacity: 0.9;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a:hover .footer-link-icon {
  opacity: 1;
  transform: translateX(2px);
}

.footer-contact li {
  margin-bottom: 1rem;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(248, 0, 149, 0.08);
  border: 1px solid rgba(248, 0, 149, 0.12);
}

.footer-contact-text {
  min-width: 0;
}

.footer-contact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.footer-contact a,
.footer-contact span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-legal-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}

.footer-legal-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(248, 0, 149, 0.12), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(248, 0, 149, 0.15);
}

.footer-legal-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.footer-bottom {
  padding: 1.35rem 0 1.75rem;
  background: linear-gradient(90deg, rgba(248, 0, 149, 0.08), rgba(248, 0, 149, 0.04), rgba(248, 0, 149, 0.08));
  border-top: 1px solid rgba(248, 0, 149, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-copy-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.footer-copy-icon {
  display: inline-flex;
  color: var(--primary);
  opacity: 0.7;
}

.footer-made {
  margin: 0;
}

/* —— Pagine interne (testi lunghi) —— */
.page-main {
  padding-top: calc(var(--header-h) + 2.25rem);
  padding-bottom: 4rem;
}

.page-hero {
  padding: 2rem 0 2.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(248, 0, 149, 0.12);
  background: linear-gradient(180deg, rgba(248, 0, 149, 0.07), rgba(255, 255, 255, 0));
}

.page-breadcrumb {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.page-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
  line-height: 1.12;
  color: var(--text);
}

.page-meta {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin: 0;
}

.page-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 68ch;
  margin: 1.1rem 0 0;
}

.page-article {
  max-width: 820px;
  margin: 0 auto;
}

.page-article h2 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  margin: 2.6rem 0 0.95rem;
  color: var(--text);
  padding-top: 0.65rem;
  border-top: 1px solid rgba(248, 0, 149, 0.14);
}

.page-article h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.page-article h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
  margin: 1.65rem 0 0.55rem;
  color: var(--text);
}

.page-article p {
  margin: 0 0 1.05rem;
  color: var(--text-muted);
  line-height: 1.78;
}

.page-article ul,
.page-article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.page-article li {
  margin-bottom: 0.45rem;
}

.page-article strong {
  color: var(--text);
}

.page-article a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-article a:hover {
  color: #c4007a;
}

.page-callout {
  margin: 1.85rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(248, 0, 149, 0.08), rgba(248, 0, 149, 0.03));
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.page-contact-card {
  margin-top: 2rem;
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 0, 149, 0.15);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-card);
}

.page-contact-card h2 {
  margin-top: 0;
  padding-top: 0;
  border: none;
  font-size: 1.15rem;
}

.page-contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.page-contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* —— Banner cookie (consenso GDPR) —— */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  padding: 1rem 0 max(1rem, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(248, 0, 149, 0.18);
  box-shadow: 0 -10px 48px rgba(20, 20, 40, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}

.cookie-bar-copy {
  flex: 1 1 260px;
  max-width: 52rem;
}

.cookie-bar-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.cookie-bar-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.58;
}

.cookie-bar-copy a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-necessary {
  padding: 0.7rem 1.2rem;
  font-size: 0.87rem;
}

body.cookie-bar-visibile {
  padding-bottom: 7.5rem;
}

@media (min-width: 900px) {
  body.cookie-bar-visibile {
    padding-bottom: 5.5rem;
  }
}
