/*
Theme Name: AB NORMAL FAMILY
Theme URI: https://www.abnormal.family
Author: AB Normal Family
Description: Tema ufficiale AB NORMAL FAMILY – stile fumetto pop-art.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: abnormal-family
*/

/* ─── GOOGLE FONTS ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bangers&family=Permanent+Marker&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --yellow:  #FFD23F;
  --pink:    #FF4D6D;
  --green:   #06D6A0;
  --teal:    #1B9AAA;
  --violet:  #9B5DE5;
  --blue:    #3DA9FC;
  --orange:  #FF8C42;
  --ink:     #0a0a0a;
  --cream:   #fdfaf2;

  /* character colors */
  --massimo: var(--orange);
  --silvia:  var(--violet);
  --giada:   var(--yellow);
  --chicco:  var(--blue);

  /* typography */
  --font-display:    'Bangers', cursive;
  --font-marker:     'Permanent Marker', cursive;
  --font-label:      'Anton', sans-serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* borders */
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── HALFTONE HELPER ────────────────────────────────────────────────────────── */
.halftone {
  background-image: radial-gradient(rgba(10,10,10,0.16) 1.4px, transparent 1.6px);
  background-size: 10px 10px;
}
.halftone-light {
  background-image: radial-gradient(rgba(10,10,10,0.08) 1.2px, transparent 1.4px);
  background-size: 8px 8px;
}
.speed-lines {
  background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 5.4deg, rgba(10,10,10,0.07) 5.4deg 6deg);
}

/* ─── TOPBAR ─────────────────────────────────────────────────────────────────── */
#topbar {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pink);
}
#topbar a { color: var(--yellow); }

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */
#site-header {
  background: var(--yellow);
  border-bottom: var(--border);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 4px 0 var(--ink);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-ab {
  font-family: var(--font-display);
  font-size: 36px;
  background: var(--ink);
  color: var(--green);
  padding: 2px 8px 4px;
  transform: rotate(-3deg);
  display: inline-block;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
}
.logo-normal {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--cream);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--pink);
  line-height: 1;
}
.logo-family {
  font-family: var(--font-marker);
  font-size: 18px;
  color: var(--ink);
  background: var(--cream);
  padding: 0 8px;
  border: 1.5px solid var(--ink);
  transform: rotate(-1.5deg);
  display: inline-block;
  line-height: 1.6;
  margin-left: 4px;
}

/* NAV */
#site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
#site-nav a {
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: block;
}
#site-nav a:hover {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}
.nav-hamburger {
  display: none;
  background: var(--ink);
  border: none;
  color: var(--yellow);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  background: var(--yellow);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  border-bottom: var(--border);
}
#hero .bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10,10,10,0.18) 1.6px, transparent 1.8px);
  background-size: 12px 12px;
  pointer-events: none;
}
#hero .bg-lines {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 5.6deg, rgba(10,10,10,0.07) 5.6deg 6deg);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 860px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 180px);
  line-height: 0.88;
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--pink), 8px 8px 0 var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.hero-title .ab-word {
  display: block;
}
.hero-title .normal-word {
  display: block;
  color: #fff;
}
.hero-family {
  font-family: var(--font-marker);
  font-size: clamp(36px, 6vw, 72px);
  color: var(--ink);
  background: var(--cream);
  display: inline-block;
  padding: 4px 28px;
  border: 3px solid var(--ink);
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  margin-top: 4px;
}
.hero-tagline {
  font-family: var(--font-marker);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--ink);
  background: var(--ink);
  color: #fff;
  display: inline-block;
  padding: 10px 32px;
  border-radius: 4px;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}
.hero-tagline .ab-highlight {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 6px;
  display: inline-block;
  transform: rotate(-1deg);
  font-style: normal;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-label);
  font-size: 20px;
  letter-spacing: 0.1em;
  padding: 16px 36px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
}
.hero-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 var(--ink);
}
.hero-cta svg { flex-shrink: 0; }

/* Burst decorativo */
.hero-burst {
  position: absolute;
  pointer-events: none;
}
.burst-pow {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-14deg);
  left: 4%; top: 10%;
}
.burst-boom {
  font-family: var(--font-display);
  font-size: 70px;
  color: var(--green);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  transform: rotate(9deg);
  right: 4%; top: 12%;
}
.burst-zap {
  font-family: var(--font-display);
  font-size: 60px;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--pink);
  transform: rotate(-7deg);
  right: 6%; bottom: 14%;
}

/* ─── SECTION: PERSONAGGI ────────────────────────────────────────────────────── */
#personaggi {
  padding: 80px 24px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
#personaggi .section-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(253,250,242,0.07) 1.4px, transparent 1.6px);
  background-size: 12px 12px;
  pointer-events: none;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  letter-spacing: 0.06em;
}
#personaggi .section-title {
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 4px 4px 0 var(--pink);
}
.cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 2;
}
.char-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.char-card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow: 14px 14px 0 var(--ink);
}
.char-portrait {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.char-portrait .halftone-light {
  position: absolute; inset: 0;
}
.char-initial {
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 0.85;
  color: var(--cream);
  -webkit-text-stroke: 6px var(--ink);
  text-shadow: 8px 8px 0 var(--ink);
  position: relative; z-index: 1;
}
.char-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  transform: rotate(-4deg);
  z-index: 2;
}
.char-info {
  padding: 22px 22px 26px;
}
.char-name {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.char-role {
  font-family: var(--font-marker);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 14px;
  -webkit-text-stroke: 0.5px var(--ink);
}
.char-quote {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  position: relative;
  box-shadow: 4px 4px 0 var(--ink);
}
.char-quote::after {
  content: '';
  position: absolute;
  left: 24px; bottom: -14px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid var(--ink);
}

/* ─── SECTION: INTRO VIDEO ───────────────────────────────────────────────────── */
#intro-video {
  background: var(--cream);
  padding: 80px 24px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#intro-video .section-title {
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--pink);
}
.intro-frame-wrap {
  max-width: 900px;
  margin: 0 auto 32px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  aspect-ratio: 16/9;
}
.intro-frame-wrap iframe,
.intro-frame-wrap .intro-embed {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ─── SECTION: YOUTUBE ───────────────────────────────────────────────────────── */
#youtube-section {
  background: var(--pink);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 3px solid var(--ink);
}
#youtube-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10,10,10,0.12) 1.4px, transparent 1.6px);
  background-size: 10px 10px;
  pointer-events: none;
}
#youtube-section .section-title {
  color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
}
.yt-sub-text {
  font-family: var(--font-marker);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 22px;
  letter-spacing: 0.1em;
  padding: 18px 44px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative; z-index: 1;
  text-decoration: none;
  animation: pulse-yt 2s ease-in-out infinite;
}
.yt-btn:hover {
  transform: translate(-3px, -3px) scale(1.03);
  box-shadow: 14px 14px 0 var(--ink);
  animation: none;
}
@keyframes pulse-yt {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.yt-btn .yt-icon {
  width: 48px; height: 34px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.yt-icon svg { fill: #fff; }

/* ─── SECTION: BRAND PALETTE STRIP ──────────────────────────────────────────── */
#palette-strip {
  display: flex;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.palette-chip {
  flex: 1;
  height: 12px;
}

/* ─── SECTION: NEWS / BLOG ───────────────────────────────────────────────────── */
#news-section {
  padding: 80px 24px;
  background: var(--cream);
}
#news-section .section-title {
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--yellow);
  text-align: center;
  margin-bottom: 48px;
}
.posts-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}
.post-card-thumb {
  height: 180px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.post-card-body {
  padding: 20px 22px 24px;
}
.post-card-cat {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.16em;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
  transform: rotate(-1deg);
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.post-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(10,10,10,0.7);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 24px 30px;
  border-top: 4px solid var(--pink);
  position: relative;
  overflow: hidden;
}
#site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(253,250,242,0.05) 1.2px, transparent 1.4px);
  background-size: 10px 10px;
  pointer-events: none;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  position: relative; z-index: 1;
}
.footer-brand .footer-logo-text {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.9;
  margin-bottom: 12px;
}
.footer-brand .footer-logo-text span {
  color: var(--yellow);
}
.footer-brand p {
  font-family: var(--font-marker);
  font-size: 16px;
  color: rgba(253,250,242,0.75);
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(253,250,242,0.15);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(253,250,242,0.8);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(253,250,242,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(253,250,242,0.5);
  position: relative; z-index: 1;
}
.footer-handle { color: var(--yellow); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #site-nav { display: none; }
  #site-nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--yellow); border-bottom: 3px solid var(--ink); padding: 12px 0; z-index: 998; }
  #site-nav.open ul { flex-direction: column; }
  #site-nav.open a { font-size: 18px; padding: 14px 24px; }
  .nav-hamburger { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-burst { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
