/* ═══════════════════════════════════════════════════════════════
   AlexPuntoEsse.it — Global Stylesheet (Dark Theme)
   ═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --surface: #1e1e2a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent: #00e5a0;
  --accent-dim: rgba(0,229,160,0.15);
  --accent-glow: rgba(0,229,160,0.4);
  --accent2: #6c5ce7;
  --accent2-dim: rgba(108,92,231,0.15);
  --accent3: #fd7e14;
  --accent3-dim: rgba(253,126,20,0.15);
  --pokemon-yellow: #ffcb05;
  --pokemon-blue: #3d7dca;
  --pokemon-red: #ff1c1c;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-primary); }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg-primary); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(10,10,15,0.92); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo-text span { color: var(--accent); }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero-orb--1 { width: 500px; height: 500px; background: var(--accent); top: -10%; right: -5%; opacity: 0.12; }
.hero-orb--2 { width: 350px; height: 350px; background: var(--accent2); bottom: 10%; left: -5%; opacity: 0.1; animation-delay: -3s; }

@keyframes orbFloat { to { transform: translate(30px, -20px) scale(1.1); } }

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #00b4d8 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-hover); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.8rem; }

/* ═══════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════ */
section { padding: 6rem 4rem; position: relative; }

.section-header { margin-bottom: 4rem; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin: 0 4rem;
}

/* ═══════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent, var(--accent)), transparent);
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.product-card:hover::before { opacity: 1; }
.product-card.coming-soon { opacity: 0.65; }
.product-card.coming-soon:hover { opacity: 0.85; transform: translateY(-2px); }

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.product-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.product-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.product-tag {
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   APP CARDS
   ═══════════════════════════════════════════ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.app-card.coming-soon { opacity: 0.5; }
.app-card.coming-soon:hover { opacity: 0.7; transform: translateY(-2px); }

.app-card-img {
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}
.app-card-img .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.app-card-body { padding: 1.5rem; }
.app-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.app-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-soon {
  background: rgba(255,203,5,0.1);
  border: 1px solid rgba(255,203,5,0.2);
  color: var(--pokemon-yellow);
}
.badge-new {
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.2);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   POKÉMON TOOLS SECTION
   ═══════════════════════════════════════════ */
.pokemon-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pokemon-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pokemon-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: var(--pokemon-yellow);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  top: -80px; right: -60px;
}
.pokemon-banner::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: var(--pokemon-blue);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  bottom: -60px; left: -40px;
}

.pokemon-banner-icon { font-size: 3rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.pokemon-banner h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.pokemon-banner p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.pokemon-tools-preview {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}
.pokemon-tool-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pokemon-tool-mini span { font-size: 1.1rem; }

/* Pokémon page specific */
.pokemon-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pokemon-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0.55;
}
.pokemon-tool-card::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: var(--transition-slow);
  top: -20px; right: -20px;
}
.pokemon-tool-card:hover { opacity: 0.75; transform: translateY(-2px); }
.pokemon-tool-card:hover::after { opacity: 0.12; }

.pokemon-tool-card--prices::after { background: var(--pokemon-yellow); }
.pokemon-tool-card--collection::after { background: var(--pokemon-blue); }
.pokemon-tool-card--deck::after { background: var(--pokemon-red); }
.pokemon-tool-card--scan::after { background: var(--accent); }

.pokemon-tool-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.pokemon-tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.pokemon-tool-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  aspect-ratio: 1;
  max-width: 380px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.about-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.about-passions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.about-passion-tag {
  padding: 0.35rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.about-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.about-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-section { text-align: center; padding: 8rem 4rem; }
.contact-section .section-desc { margin-left: auto; margin-right: auto; }

.contact-info {
  margin-bottom: 2.5rem;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 100px;
  transition: var(--transition);
}
.contact-email:hover { background: rgba(0,229,160,0.25); }

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-row { display: flex; gap: 1rem; }

.input-field {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
textarea.input-field { min-height: 120px; resize: vertical; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-copy a { color: var(--accent); }
.footer-email { font-size: 0.78rem; color: var(--text-muted); }
.footer-email a { color: var(--text-secondary); transition: var(--transition); }
.footer-email a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   COMING SOON PAGE (generic)
   ═══════════════════════════════════════════ */
.coming-soon-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}
.coming-soon-page .icon { font-size: 4rem; margin-bottom: 1.5rem; }
.coming-soon-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.coming-soon-page p {
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  section, .hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .divider { margin: 0 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { max-width: 250px; margin: 0 auto; }
  .footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,0.96);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .contact-row { flex-direction: column; }
  .contact-section { padding: 5rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .products-grid, .apps-grid, .pokemon-page-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1rem; }
  .pokemon-tools-preview { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURED CARDS — varianti card grande con logo a sinistra
   Usate quando c'è un solo prodotto/app prominente da mostrare
   (.products-grid--single, .apps-grid--single)
   ═══════════════════════════════════════════════════════════════════ */
.products-grid--single,
.apps-grid--single {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}

/* Card featured: layout split logo+contenuto */
.product-card--featured,
.app-card--featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-height: 280px;
}

.product-card--featured:hover,
.app-card--featured:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* Sezione media (sinistra): sfondo colorato, logo centrato */
.product-card__media,
.app-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  /* Background impostato inline per ogni card (gradient brand-specific) */
}

.product-card__media::before,
.app-card__media::before {
  /* Texture decorativa sopra al gradient per un look più ricco */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.15) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(0,0,0,0.18) 0%, transparent 55%);
  pointer-events: none;
}

.product-card__logo,
.app-card__logo {
  position: relative;
  width: 100%;
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.35));
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card--featured:hover .product-card__logo,
.app-card--featured:hover .app-card__logo {
  transform: scale(1.05);
}

/* Sezione body (destra): testo, tag, CTA */
.product-card__body,
.app-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-card__head,
.app-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.product-card__head h3,
.app-card__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-card--featured p,
.app-card--featured p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* CTA in fondo alla card */
.product-card__cta,
.app-card__cta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--card-accent, var(--accent3));
  display: inline-block;
  transition: transform 0.25s ease;
}
.product-card--featured:hover .product-card__cta,
.app-card--featured:hover .app-card__cta {
  transform: translateX(6px);
}

/* La striscia colorata in alto (::before di .product-card) la nascondiamo
   sulle featured perché abbiamo già il media colorato a sinistra. */
.product-card--featured::before {
  display: none;
}

/* Mobile: stack verticale */
@media (max-width: 800px) {
  .product-card--featured,
  .app-card--featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .product-card__media,
  .app-card__media {
    aspect-ratio: 16 / 9;
    padding: 1.5rem;
  }
  .product-card__logo,
  .app-card__logo {
    max-width: 140px;
    max-height: 140px;
  }
  .product-card__body,
  .app-card__body {
    padding: 1.5rem;
  }
  .product-card__head h3,
  .app-card__head h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .product-card__media,
  .app-card__media {
    padding: 1rem;
  }
  .product-card__logo,
  .app-card__logo {
    max-width: 110px;
    max-height: 110px;
  }
}
