/* ============================================================
   fabioranfi.it — stile unico: radiofonico
   ============================================================ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── VARIABILI ── */
:root {
  --bg:     #0c0d10;
  --bg2:    #13151b;
  --bg3:    #1a1d26;
  --text:   #e8eaee;
  --muted:  #7a8499;
  --acc:    #e5484d;
  --acc2:   #f5a524;
  --line:   #232733;
  --radius: 8px;
  --font-d: 'Barlow Condensed', sans-serif;
  --font-b: 'Archivo', sans-serif;
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.0;
  margin: 0 0 .4em;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 0 28px; height: 58px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: '';
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; }
.main-nav { display: flex; gap: 24px; margin-left: 8px; }
.main-nav a {
  font-family: var(--font-b); font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); transition: color .15s;
}
.main-nav a:hover { color: var(--text); }
.theme-switcher { display: none; }

@media (max-width: 680px) {
  .main-nav { display: none; }
  .site-header { padding: 0 16px; }
}

/* ── SECTION LABEL (con icone FA) ── */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-b); font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 10px;
}
.section-label i { font-size: .85rem; letter-spacing: 0; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 560px; display: flex; align-items: stretch;
}

/* sfondo foto studio */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/fabio-studio.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12,13,16,.97) 0%,
    rgba(12,13,16,.82) 50%,
    rgba(12,13,16,.25) 100%
  );
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 80px 28px 60px;
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-b); font-size: .75rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.onair-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 10px var(--acc);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

.hero-title {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(60px, 10vw, 108px);
  line-height: .92; text-transform: uppercase; letter-spacing: .01em;
  color: var(--text); margin-bottom: 24px;
  min-height: 3.0em;
}
/* cursore typewriter */
.cursor {
  display: inline-block;
  color: var(--acc);
  font-weight: 400;
  animation: blink .65s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size: .95rem; color: var(--muted); max-width: 480px;
  line-height: 1.75; margin-bottom: 28px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.btn {
  display: inline-flex; align-items: center;
  font-family: var(--font-d); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 24px; border-radius: var(--radius); transition: all .18s;
}
.btn-primary { background: var(--acc); color: #fff; border: 2px solid var(--acc); }
.btn-primary:hover { background: transparent; color: var(--acc); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); }

/* ── EQ BAR — gradient, wide, fast ── */
.eq-bar {
  display: flex; align-items: flex-end; gap: 3px;
  height: 52px; width: 100%;
}
.eq-bar span {
  display: block; flex: 1; min-width: 0;
  border-radius: 2px 2px 0 0; opacity: .85;
  animation: eq .45s ease-in-out infinite alternate;
}
/* colori: gradiente rosso → arancione → ambra */
.eq-bar span:nth-child(1)  { height: 35%; background: #e5484d; animation-delay: .00s; }
.eq-bar span:nth-child(2)  { height: 72%; background: #e54f46; animation-delay: .02s; }
.eq-bar span:nth-child(3)  { height: 48%; background: #e5573f; animation-delay: .04s; }
.eq-bar span:nth-child(4)  { height: 88%; background: #e55f38; animation-delay: .06s; }
.eq-bar span:nth-child(5)  { height: 55%; background: #e66731; animation-delay: .08s; }
.eq-bar span:nth-child(6)  { height: 78%; background: #e6702b; animation-delay: .10s; }
.eq-bar span:nth-child(7)  { height: 40%; background: #e67824; animation-delay: .12s; }
.eq-bar span:nth-child(8)  { height: 93%; background: #e7801e; animation-delay: .14s; }
.eq-bar span:nth-child(9)  { height: 62%; background: #e78817; animation-delay: .16s; }
.eq-bar span:nth-child(10) { height: 82%; background: #e89011; animation-delay: .18s; }
.eq-bar span:nth-child(11) { height: 44%; background: #e8990b; animation-delay: .20s; }
.eq-bar span:nth-child(12) { height: 70%; background: #e9a105; animation-delay: .22s; }
.eq-bar span:nth-child(13) { height: 95%; background: #eaa000; animation-delay: .24s; }
.eq-bar span:nth-child(14) { height: 58%; background: #eaa800; animation-delay: .26s; }
.eq-bar span:nth-child(15) { height: 80%; background: #ebb000; animation-delay: .28s; }
.eq-bar span:nth-child(16) { height: 42%; background: #f0aa00; animation-delay: .30s; }
.eq-bar span:nth-child(17) { height: 75%; background: #f2ab08; animation-delay: .32s; }
.eq-bar span:nth-child(18) { height: 52%; background: #f3ad10; animation-delay: .34s; }
.eq-bar span:nth-child(19) { height: 86%; background: #f4af18; animation-delay: .36s; }
.eq-bar span:nth-child(20) { height: 60%; background: #f5b120; animation-delay: .38s; }
.eq-bar span:nth-child(21) { height: 78%; background: #f5a524; animation-delay: .40s; }
.eq-bar span:nth-child(22) { height: 50%; background: #f5a524; animation-delay: .42s; }
.eq-bar span:nth-child(23) { height: 90%; background: #f5a524; animation-delay: .44s; }
.eq-bar span:nth-child(24) { height: 65%; background: #f5b340; animation-delay: .46s; }
.eq-bar span:nth-child(25) { height: 82%; background: #f5b340; animation-delay: .48s; }
.eq-bar span:nth-child(26) { height: 45%; background: #f5b340; animation-delay: .50s; }
.eq-bar span:nth-child(27) { height: 70%; background: #f5a524; animation-delay: .52s; }
.eq-bar span:nth-child(28) { height: 88%; background: #f5a524; animation-delay: .54s; }
.eq-bar span:nth-child(29) { height: 55%; background: #f0aa00; animation-delay: .56s; }
.eq-bar span:nth-child(30) { height: 76%; background: #eaa000; animation-delay: .58s; }
.eq-bar span:nth-child(31) { height: 40%; background: #e89011; animation-delay: .60s; }
.eq-bar span:nth-child(32) { height: 92%; background: #e67824; animation-delay: .62s; }
.eq-bar span:nth-child(33) { height: 62%; background: #e55f38; animation-delay: .64s; }
.eq-bar span:nth-child(34) { height: 84%; background: #e54f46; animation-delay: .66s; }
.eq-bar span:nth-child(35) { height: 48%; background: #e5484d; animation-delay: .68s; }

@keyframes eq { from{transform:scaleY(.25)} to{transform:scaleY(1)} }

/* foto hero */
.hero-photo {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
}
.hero-photo img {
  max-height: 460px; width: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 0 40px rgba(229,72,77,.3));
}
.hero-photo::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
}

@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; padding: 56px 18px 48px; }
  .hero-photo { display: none; }
}

/* ── SEZIONI ── */
.section {
  padding: 72px 28px;
  border-bottom: 1px solid var(--line);
  max-width: 1100px; margin: 0 auto;
}
.section:last-child { border-bottom: none; }

.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-d); font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--text);
}
.section-sub {
  margin-top: 10px; font-size: .9rem; color: var(--muted); max-width: 560px;
  line-height: 1.7;
}
.section-more { margin-top: 24px; font-size: .85rem; }
.section-more a { color: var(--acc2); transition: opacity .15s; }
.section-more a:hover { opacity: .75; }

@media (max-width: 680px) { .section { padding: 48px 16px; } }

/* ── DIRETTA ── */
.diretta-wrap {
  display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start;
}
.diretta-text p {
  font-size: .9rem; color: var(--muted); line-height: 1.75; margin-bottom: 24px;
}
.diretta-info ul { display: flex; flex-direction: column; }
.diretta-info li {
  display: flex; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: .85rem; align-items: baseline;
}
.di-k {
  font-family: var(--font-b); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--acc2); width: 72px; flex-shrink: 0;
}
.di-v { color: var(--muted); }
.di-v a { color: var(--acc2); transition: opacity .15s; }
.di-v a:hover { opacity: .75; }

@media (max-width: 860px) { .diretta-wrap { grid-template-columns: 1fr; gap: 32px; } }

/* ── BLUEPRINT WRAP (sezione Progetti) ── */
.blueprint-wrap {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.blueprint-wrap::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-color: #0b1523;
  background-image:
    linear-gradient(rgba(80,140,220,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,140,220,.09) 1px, transparent 1px),
    linear-gradient(rgba(80,140,220,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,140,220,.04) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.blueprint-wrap::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(11,21,35,.7) 100%);
}
.blueprint-wrap .section {
  border-bottom: none; position: relative; z-index: 1;
}
/* Cards col bg semi-trasparente per leggibilità sopra blueprint */
.blueprint-wrap .card {
  background: rgba(19,21,27,.82);
  backdrop-filter: blur(4px);
  border-color: rgba(80,140,220,.2);
}
.blueprint-wrap .card:hover {
  border-color: var(--acc);
  box-shadow: 0 8px 32px rgba(229,72,77,.2);
}

/* ── CARD PROGETTI ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
}
.card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  border-color: var(--acc);
  box-shadow: 0 8px 32px rgba(229,72,77,.15);
  transform: translateY(-2px);
}
.card-num {
  font-family: var(--font-d); font-size: 48px; font-weight: 900;
  line-height: 1; color: var(--line); margin-bottom: 14px; transition: color .2s;
}
.card:hover .card-num { color: var(--acc); }
.card h3 {
  font-family: var(--font-d); font-size: 1.3rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--text); margin-bottom: 10px;
}
.card p { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ── NEWSLETTER (Rufus in Fabula box) ── */
.rif-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: linear-gradient(135deg, #0d7a78 0%, #0891b2 45%, #0cb49a 100%);
  border: 1px solid rgba(255,255,255,.1);
}
/* blobs decorativi */
.rif-box::before,
.rif-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.rif-box::before {
  width: 360px; height: 360px;
  background: rgba(255,255,255,.07);
  top: -120px; right: -80px;
}
.rif-box::after {
  width: 220px; height: 220px;
  background: rgba(0,200,180,.15);
  bottom: -60px; left: 200px;
}

/* badge Substack — angolo in alto a destra */
.rif-sub-badge {
  position: absolute; top: 14px; right: 16px; z-index: 10;
  display: inline-flex; align-items: center; gap: 6px;
  background: #FF6719; color: #fff;
  font-family: var(--font-b); font-size: .7rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 20px;
  transition: opacity .15s;
}
.rif-sub-badge:hover { opacity: .85; }

/* lato sinistro */
.rif-left {
  position: relative; z-index: 1;
  padding: 36px 28px; display: flex; flex-direction: column; align-items: flex-start;
  border-right: 1px solid rgba(255,255,255,.12);
}
.rif-logo {
  width: 100%; max-width: 200px; height: auto;
  border-radius: 6px; margin-bottom: 20px;
}
.rif-desc {
  font-size: .9rem; color: rgba(255,255,255,.85);
  line-height: 1.65; margin-bottom: 24px;
}
.rif-cta {
  display: inline-flex; align-items: center;
  font-family: var(--font-d); font-weight: 700; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.18);
  color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  transition: background .18s, border-color .18s;
}
.rif-cta:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.7); }

/* lato destro */
.rif-right {
  position: relative; z-index: 1;
  padding: 36px 28px 36px 32px;
}
.rif-recent-label {
  font-family: var(--font-b); font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 16px;
}
.rif-post-list { display: flex; flex-direction: column; }
.rif-post-list li a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  transition: color .15s;
}
.rif-post-list li:first-child a { border-top: 1px solid rgba(255,255,255,.12); }
.rif-post-list li a:hover { color: rgba(255,255,255,.7); }
.rif-date {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.rif-title { font-size: .9rem; color: rgba(255,255,255,.9); line-height: 1.4; }
.rif-empty { font-size: .85rem; color: rgba(255,255,255,.6); padding: 12px 0; }
.rif-more {
  display: inline-block; margin-top: 18px;
  font-size: .8rem; letter-spacing: .08em;
  color: rgba(255,255,255,.6); transition: color .15s;
}
.rif-more:hover { color: rgba(255,255,255,.95); }

@media (max-width: 860px) {
  .rif-box { grid-template-columns: 1fr; }
  .rif-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .rif-sub-badge { position: static; display: inline-flex; margin-bottom: 16px; }
}

/* ── POST LIST (longform) ── */
.post-list { display: flex; flex-direction: column; }
.post-item a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: .9rem; transition: color .15s;
}
.post-item:first-child a { border-top: 1px solid var(--line); }
.post-item a:hover { color: var(--acc2); }
.post-date {
  font-family: var(--font-b); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--acc); white-space: nowrap; flex-shrink: 0;
}
.post-title { color: var(--text); line-height: 1.4; }
.empty-state { font-size: .85rem; color: var(--muted); padding: 16px 0; }

/* ── STATISTICHE ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
  margin-bottom: 48px;
}
.stat {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-n {
  font-family: var(--font-d); font-weight: 900; font-size: 52px; line-height: 1;
  color: var(--acc2); letter-spacing: .01em;
}
.stat-l { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.big-quote {
  font-family: var(--font-d); font-weight: 400;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.3; color: var(--muted); font-style: normal;
  padding: 20px 0 20px 28px;
  border-left: 4px solid var(--acc); max-width: 720px;
}

/* ── CONTATTI ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.contact-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 5px;
  transition: border-color .18s, transform .18s;
}
.contact-card:hover { border-color: var(--acc2); transform: translateY(-2px); }
.ck {
  font-family: var(--font-b); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--acc2);
}
.cv { font-size: .85rem; color: var(--muted); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 40px 28px; text-align: center; position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
}
.quote {
  font-family: var(--font-d); font-weight: 400; font-size: 1.3rem;
  color: var(--muted); margin-bottom: 10px; font-style: italic;
}
.footer-meta { font-size: .75rem; color: var(--line); letter-spacing: .08em; }

/* ── ACCESSIBILITÀ / RIDUZIONE MOVIMENTO ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; }
